首页 > 解决方案 > Visual Studio 2017 崩溃

问题描述

当我开始向不同的项目添加报告时,崩溃主要发生在。我做的越多,它变得越糟糕,但它通常不会花很长时间就会冻结。

我的第一个想法是检查事件查看器以查看我得到了什么,但我不太确定该怎么做(SSRS 开发人员,对 VS 故障排除或一般 .NET 没有全面的经验)。

在此处输入图像描述

Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.OutOfMemoryException
   at System.Drawing.Graphics.FromHdcInternal(IntPtr)
   at System.Drawing.Font.GetHeight()
   at System.Drawing.Font.get_Height()
   at System.Windows.Forms.GroupBoxRenderer.DrawThemedGroupBoxWithText(System.Drawing.Graphics, System.Drawing.Rectangle, System.String, System.Drawing.Font, System.Drawing.Color, System.Windows.Forms.TextFormatFlags, System.Windows.Forms.VisualStyles.GroupBoxState)
   at System.Windows.Forms.GroupBoxRenderer.DrawGroupBox(System.Drawing.Graphics, System.Drawing.Rectangle, System.String, System.Drawing.Font, System.Windows.Forms.TextFormatFlags, System.Windows.Forms.VisualStyles.GroupBoxState)
   at System.Windows.Forms.GroupBox.OnPaint(System.Windows.Forms.PaintEventArgs)
   at System.Windows.Forms.Control.PaintWithErrorHandling(System.Windows.Forms.PaintEventArgs, Int16)
   at System.Windows.Forms.Control.OnPrint(System.Windows.Forms.PaintEventArgs)
   at System.Windows.Forms.Control.WmPrintClient(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.GroupBox.WndProc(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
   at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr, Int32, IntPtr, IntPtr)
   at System.Windows.Forms.NativeWindow.DefWndProc(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.Control.DefWndProc(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.TextBoxBase.WndProc(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.TextBox.WndProc(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)

然后在此之后 1 秒出现另一个错误:

Faulting application name: devenv.exe, version: 15.9.28307.1093, time stamp: 0x5e93584b
Faulting module name: KERNELBASE.dll, version: 10.0.18362.997, time stamp: 0xd5511be4
Exception code: 0xe0434352
Fault offset: 0x001140b2
Faulting process id: 0x73d4
Faulting application start time: 0x01d68ac284d7cc95
Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\2017\SQL\Common7\IDE\devenv.exe
Faulting module path: C:\windows\System32\KERNELBASE.dll
Report Id: 13d4e226-4630-4215-aab4-e8d382080996
Faulting package full name: 
Faulting package-relative application ID: 

我使用的唯一扩展是 Visual SVN。我已经尝试过将其删除,但我仍然会崩溃。

标签: visual-studio-2017

解决方案


永远无法弄清楚它为什么会崩溃,但我至少似乎通过运行 VS 2019 并安装了 MS SSRS 扩展解决了我的问题。我能够加载我预先存在的解决方案,虽然我不得不手动重新加载我的项目,但到目前为止它运行良好。希望这对其他人有帮助。


推荐阅读