Visual Studio 2017在启动时崩溃(Professional和Enterprise,build 15.5.2)

时间:2017-12-21 06:33:36

标签: visual-studio visual-studio-2017 crash-reports

VS 2017在启动时崩溃。

Microsoft Visual Studio 2017 has stopped working

我试过了:

  • 更新到最新版本15.5.2
  • 以管理员身份运行VS
  • 删除.vs文件夹
  • 修复VS安装
  • devenv.exe / ResetSettings
  • devenv.exe / ResetUserData
  • devenv.exe / SafeMode
  • devenv.exe / ResetSkipPkgs
  • 检查字体MT Extra是否在注册表HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion \ Fonts
  • 中有长路径而不是文件名
  • 清除%TEMP%文件夹
  • 重命名/删除%LOCALAPPDATA%\ Microsoft \ VisualStudio \ 15.xxx
  • 卸载GitExtensions

  • 卸载VS Professional,安装VS Enterprise 再次卸载,这次搜索名为VisualStudio的每个文件夹并删除注册表中的VisualStudio的每个字符串匹配(regedit),然后重新安装

  • 格式化我的C盘。我一安装VS就正常启动,但是一旦我开始添加其他程序(Steam,Notepad ++,Office等),它就会再次开始崩溃。

以上都没有解决问题。 我正在运行win 10企业,Intel Core i7-5960X CPU @ 3GHz,32GB RAM,64位操作系统

来自事件查看器:

Fault bucket , type 0
Event Name: APPCRASH
Response: Not available
Cab Id: 0

Problem signature:
P1: devenv.exe
P2: 15.0.27130.2010
P3: 5a31e4ea
P4: KERNELBASE.dll
P5: 10.0.16299.15
P6: 2cd1ce3d
P7: c000041d
P8: 001008b2
P9: 
P10: 

Faulting application name: devenv.exe, version: 15.0.27130.2010, time stamp: 0x5a31e4ea
Faulting module name: KERNELBASE.dll, version: 10.0.16299.15, time stamp: 0x2cd1ce3d
Exception code: 0xc000041d
Fault offset: 0x001008b2
Faulting process id: 0x17b0
Faulting application start time: 0x01d37a24c40d6287
Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv.exe
Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
Report Id: bdb4ae52-6612-4f9d-a016-d19e68f0ee59
Faulting package full name: 
Faulting package-relative application ID: 

Fault bucket 1293705288626429016, type 5
Event Name: CLR20r3
Response: Not available
Cab Id: 0

Problem signature:
P1: devenv.exe
P2: 15.0.27130.2010
P3: 5a31e4ea
P4: mscorlib
P5: 4.7.2600.0
P6: 59d789f1
P7: 5f9e
P8: 4
P9: System.ArgumentException
P10: 

Faulting application name: devenv.exe, version: 15.0.27130.2010, time stamp: 0x5a31e4ea
Faulting module name: KERNELBASE.dll, version: 10.0.16299.15, time stamp: 0x2cd1ce3d
Exception code: 0xe0434352
Fault offset: 0x001008b2
Faulting process id: 0x17b0
Faulting application start time: 0x01d37a24c40d6287
Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv.exe
Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
Report Id: e821f1e4-bfff-4775-9131-2c3d763b5848
Faulting package full name: 
Faulting package-relative application ID: 

Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ArgumentException
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32, IntPtr)
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32, IntPtr)
   at MS.Internal.Text.TextInterface.Native.Util.ConvertHresultToException(Int32)
   at MS.Internal.Text.TextInterface.Font.DisplayMetrics(Single, Single)
   at MS.Internal.FontFace.PhysicalFontFamily.MS.Internal.FontFace.IFontFamily.LineSpacing(Double, Double, Double, System.Windows.Media.TextFormattingMode)
   at MS.Internal.TextFormatting.SimpleTextLine..ctor(MS.Internal.TextFormatting.FormatSettings, Int32, Int32, System.Collections.ArrayList, Int32 ByRef, Int32 ByRef, Double)
   at MS.Internal.TextFormatting.SimpleTextLine.Create(MS.Internal.TextFormatting.FormatSettings, Int32, Int32, Double)
   at MS.Internal.TextFormatting.TextFormatterImp.FormatLineInternal(System.Windows.Media.TextFormatting.TextSource, Int32, Int32, Double, System.Windows.Media.TextFormatting.TextParagraphProperties, System.Windows.Media.TextFormatting.TextLineBreak, System.Windows.Media.TextFormatting.TextRunCache)
   at MS.Internal.TextFormatting.TextFormatterImp.FormatLine(System.Windows.Media.TextFormatting.TextSource, Int32, Double, System.Windows.Media.TextFormatting.TextParagraphProperties, System.Windows.Media.TextFormatting.TextLineBreak, System.Windows.Media.TextFormatting.TextRunCache)
   at MS.Internal.Text.Line.Format(Int32, Double, System.Windows.Media.TextFormatting.TextParagraphProperties, System.Windows.Media.TextFormatting.TextLineBreak, System.Windows.Media.TextFormatting.TextRunCache, Boolean)
   at System.Windows.Controls.TextBlock.MeasureOverride(System.Windows.Size)
   at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   at System.Windows.UIElement.Measure(System.Windows.Size)
   at System.Windows.Controls.DockPanel.MeasureOverride(System.Windows.Size)
   at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   at System.Windows.UIElement.Measure(System.Windows.Size)
   at System.Windows.Controls.Border.MeasureOverride(System.Windows.Size)
   at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   at System.Windows.UIElement.Measure(System.Windows.Size)
   at System.Windows.Controls.Grid.MeasureCell(Int32, Boolean)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32, System.Windows.Size, Boolean, Boolean, Boolean ByRef)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32, System.Windows.Size, Boolean, Boolean)
   at System.Windows.Controls.Grid.MeasureOverride(System.Windows.Size)
   at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   at System.Windows.UIElement.Measure(System.Windows.Size)
   at Microsoft.VisualStudio.PlatformUI.Shell.Controls.WindowContentPresenter.MeasureOverride(System.Windows.Size)
   at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   at System.Windows.UIElement.Measure(System.Windows.Size)
   at System.Windows.Window.MeasureOverrideHelper(System.Windows.Size)
   at System.Windows.Window.MeasureOverride(System.Windows.Size)
   at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   at System.Windows.UIElement.Measure(System.Windows.Size)
   at System.Windows.Interop.HwndSource.Process_WM_SIZE(System.Windows.UIElement, IntPtr, MS.Internal.Interop.WindowMessage, IntPtr, IntPtr)
   at System.Windows.Interop.HwndSource.LayoutFilterMessage(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)

更新12-23-17 决定再次格式化我的驱动器,安装Visual Studio,并在每个后续程序安装后启动应用程序。我想我将问题缩小到了Microsoft Office安装程序,除非在我不知情的情况下在后台运行某些东西。我一开始安装Office,就启动了Visual Studio并触发了崩溃。随着我了解更多,将使用新信息更新此帖子。 -Leo

enter image description here

更新2:问题已解决(不正确,请参见下一步更新)。微软Office是罪魁祸首。在路径C:\ Program Files \ Microsoft Office \ root \ Office16中,将文件MLCFG32.CPL重命名为MLCFG32.CPL.old,从Windows注销,重新登录,并成功打开Visual Studio。感谢Joyce在MSDN forum

更新12/31/17(也在答案中添加) 这不是一个永久修复.VS 2017在执行尚未确定的进程后开始崩溃。我必须重复将文件MLCFG32.CPL重命名为.old并返回,然后VS正常启动。然后第二天,它会再次开始破碎。

1 个答案:

答案 0 :(得分:3)

更新1/11/18 问题解决了!问题在于安装WindowBlinds 10.65(048 - Windows 10 Edition) - 64位操作系统,并使用应用样式系统范围字体的主题。 修复方法是通过单击左侧菜单(1)上的样式,单击字体(2),然后选中上述框来选中“不应用任何样式系统范围的字体”来禁用此功能。

Link to Stardock forums with fix details.

WindowBlinds settings

更新12/31/17 这不是一个永久修复.VS 2017在执行尚未确定的进程后开始崩溃。我必须重复将文件MLCFG32.CPL重命名为.old并返回,然后VS正常启动。然后第二天,它会再次开始破碎。

问题解决了。微软Office是罪魁祸首。在路径C:\ Program Files \ Microsoft Office \ root \ Office16中,我将文件MLCFG32.CPL重命名为MLCFG32.CPL.old,从Windows注销,重新登录,并成功打开Visual Studio。

enter image description here

感谢Joyce在MSDN forum

相关问题