VS 2017 аварийно завершает работу при запуске.
я пробовал:
Деинсталляция GitExtensions
Деинсталляция VS Professional, повторная установка VS EnterpriseUninstall, на этот раз поиск для каждого папку с именем VisualStudio и удаление всех совпадений строк VisualStudio в реестре (regedit) и повторную установку
Форматирование моего диска C. VS запускался нормально, как только я его установил, но как только я начал добавлять дополнительные программы (Steam, Notepad ++, Office и т. Д.), Он снова начал падать.
вышеупомянутое исправило проблему. Я использую Win 10 Enterprise, процессор Intel Core i7-5960X @ 3GHz, 32 ГБ ОЗУ, 64-разрядную ОС
из средства просмотра событий:
Fault bucket , type 0
Event Name: APPCRASH
Response: Not available
Cab Id: 0Problem 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: 0Problem 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
ОБНОВЛЕНИЕ 2: ОБНОВЛЕНО, НЕ УДАЛЕНО Microsoft Office был виновником. По пути C: \ Program Files \ Microsoft Office \ root \ Office16 переименовал файл MLCFG32.CPL в MLCFG32.CPL.old, вышел из Windows, снова вошел в систему и успешно открыл Visual Studio. Спасибо, Джойс, на форуме MSDN.
ОБНОВЛЕНИЕ 31.12.17 (также добавлено в ответ). Это не постоянное исправление. VS 2017 начинает падать после выполнения еще не определенного процесса. Я должен повторно переименовать файл MLCFG32.CPL в .old и обратно, а затем VS запускается нормально. Затем на следующий день он снова начнет ломаться.