crash - Visual Studio 2015 企业版在启动、卸载和修复时崩溃

标签 crash visual-studio-2015 typeinitializeexception

如何修复 Visual Studio 2015 企业版以正常安装和工作?

在安装过程中,安装 Java SE 时出现问题。它是可选的,所以我什么都没想。我重新启动了我的电脑。现在,每当我尝试打开 Visual Studio 2015、重新安装或卸载时,我都会短暂看到 Logo ,然后它就会消失。

我深入研究了事件查看器,从 Windows 错误报告中找到一条消息,该消息指向以下文件夹中的日志。

C:\users\{me}\AppData\Local\Temp\dd_vs_enterprise_20150720190843



似乎很难创建 View 。我复制了下面的部分日志。
[261C:12FC][2015-07-20T19:08:52]i000: MUX:  Detect Completed
[261C:12FC][2015-07-20T19:08:52]i000: MUX:  Wait for View to be loaded
[261C:1860][2015-07-20T19:08:52]i000: MUX:  Detect Completed, now create view
[261C:1860][2015-07-20T19:08:52]e000: MUX:  ERROR: The type initializer for 'System.Windows.Media.FontFamily' threw an exception.
[261C:1860][2015-07-20T19:08:52]e000: MUX:  Stack:    at System.Windows.Media.Typeface..ctor(FontFamily fontFamily, FontStyle style, FontWeight weight, FontStretch stretch)
   at MS.Internal.Text.DynamicPropertyReader.GetTypeface(DependencyObject element)
   at MS.Internal.Text.TextProperties.InitCommon(DependencyObject target)
   at MS.Internal.Text.TextProperties..ctor(FrameworkElement target, Boolean isTypographyDefaultValue)
   at System.Windows.Controls.TextBlock.GetLineProperties()
   at System.Windows.Controls.TextBlock.EnsureTextBlockCache()
   at System.Windows.Controls.TextBlock.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Control.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.StackPanel.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Border.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Border.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Decorator.MeasureOverride(Size constraint)
   at System.Windows.Documents.AdornerDecorator.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Border.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Window.MeasureOverrideHelper(Size constraint)
   at System.Windows.Window.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Interop.HwndSource.SetLayoutSize()
   at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
   at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)
   at System.Windows.Window.SetRootVisual()
   at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)
   at System.Windows.Window.CreateSourceWindowImpl()
   at System.Windows.Window.SafeCreateWindow()
   at System.Windows.Window.ShowHelper(Object booleanBox)
   at System.Windows.Window.Show()
   at Microsoft.Devdiv.Bootstrapper.ManagedUx.RunUI(ViewModelCommonUi viewModel)
   at Microsoft.Devdiv.Bootstrapper.ManagedUx.InternalRun()
   at Microsoft.Devdiv.Bootstrapper.ManagedUx.Run()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
[261C:1860][2015-07-20T19:08:52]e000: MUX:  Exception: Info: InnerException: Info:
[261C:1860][2015-07-20T19:08:52]e000: MUX:  ERROR: The type initializer for 'MS.Internal.FontCache.Util' threw an exception.
[261C:1860][2015-07-20T19:08:52]e000: MUX:  Stack:    at System.Windows.Media.FontFamily.PreCreateDefaultFamilyCollection()
   at System.Windows.Media.FontFamily..cctor()
[261C:1860][2015-07-20T19:08:52]i000: MUX:  Metrics: ShouldSendData=True
[261C:1860][2015-07-20T19:08:52]i000: MUX:  Permission to upload: Yes
[261C:1860][2015-07-20T19:08:52]i000: MUX:  Preparing to serialize data.
[261C:1860][2015-07-20T19:08:52]i000: MUX:  Data serialized.
[261C:1860][2015-07-20T19:08:52]i000: MUX:  Number of SQM File queued: 1
[261C:1860][2015-07-20T19:09:14]i000: MUX:  SQM sent: True
[261C:1860][2015-07-20T19:09:14]i000: Setting string variable 'CEIPConsent' to value ''
[261C:1860][2015-07-20T19:09:14]i000: Setting string variable 'SqmOption' to value ''
[261C:1860][2015-07-20T19:09:14]i000: MUX:  Metrics: Configuration State

最佳答案

我有类似的问题,并尝试了其他解决方案无济于事。我什至修复了安装,但没有任何效果。我能够通过重置所有用户设置来解决它。

导航到 devenv.exe文件;对我来说它在 C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\ .

然后在那里打开命令提示符并运行:
devenv.exe /ResetSettings

关于crash - Visual Studio 2015 企业版在启动、卸载和修复时崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31527902/

相关文章:

c# - 在 cshtml 编辑器中触发 IntelliSense 时,Visual Studio 2015(更新 1)崩溃

iphone - 没有崩溃的崩溃日志?

c++ - 错误 C4430 缺少类型说明符 - 假定为 int。注意 : C++ does not support default-int Generator

vb.net - 如何从列表框中删除选定的项目

c# - 'Quartz.Impl.StdSchedulerFactory' 的类型初始值设定项抛出异常

android - Android 如何知道去哪里取货?

c++ - 为什么 StackWalk64 总是返回 true?

c# - 如何在 Visual Studio 2015 中使用通过 dotnet migrate 创建的 csproj 文件?

c# - 带有 Parse 的类库抛出错误