Visual Studio 2015 社区在启动时崩溃 [英] Visual Studio 2015 Community Crashes on Startup

查看:17
本文介绍了Visual Studio 2015 社区在启动时崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在过去的 2 个月里,我一直在使用 VS 2015 社区版,没有任何问题.然后有一天它决定崩溃(崩溃时我什么也没做).在我尝试再次启动它后,它只进入主页屏幕然后崩溃.没有打开任何项目,它会自行崩溃.

我尝试过的事情没有成功:

  1. 修复安装.

  2. 卸载然后重新安装.

  3. 在/safemode 下运行(在安全模式下仍然崩溃!)

我没有任何自定义安装(尤其是在全新安装之后).

此时我唯一的希望是重新安装 Windows(运行 Windows 7),然后希望问题消失.有什么其他的想法,我可以尝试一下吗?

这是在安全模式下启动 VS2015 的日志转储(我想在此处发布内容,但它们超出了允许的帖子大小):

编辑 2:

我查看了事件查看器,发现以下与崩溃相关的错误.看起来异常是由 Microsoft.VisualStudio.Services.Experimentation.FlightsClient 引起的:

应用程序:devenv.exe 框架版本:v4.0.30319 描述:进程因未处理的异常而终止.异常信息:Microsoft.VisualStudio.Services.Experimentation.FlightsClient+<ReadStreamFromRemoteAsync>d__20`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] 的 System.NullReferenceException) 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task) 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) 在 Microsoft.VisualStudio.Services.Experimentation.ShippedFlightsClient+<SetRemoteFlightsAsync>d__4.MoveNext() 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task) 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) 在 Microsoft.VisualStudio.Services.Experimentation.VSExperimentationService+<<FlightDataCallback>b__33_0>d.MoveNext() 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task) 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) 在 Microsoft.VisualStudio.Services.Experimentation.VSExperimentationService+<FlightDataCallback>d__33.MoveNext() 在 System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_1(System.Object) at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) 在 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) 在 System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() 在 System.Threading.ThreadPoolWorkQueue.Dispatch() 在 System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

编辑 3:

在搜索与 TestFlight 相关的帖子时,我发现了以下来自 Microsoft 的帖子(选择退出体验改善计划).看起来很有希望,但遗憾的是没有解决我的问题:

https://connect.microsoft.com/VisualStudio/feedback/details/2082049/crash-on-startup

解决方案

我通过安装 Visual Studio 2015 Update 2 RC(我正在运行 Update 1)解决了这个问题,并取消选中每个可选安装功能(我只需要 C#/WPF).很可能,只需安装 Update 2 RC 即可解决问题,但我已经在这上面浪费了太多时间,无法一遍又一遍地尝试.

这里是更新 2 RC 的链接:https://www.visualstudio.com/en-us/news/vs2015-update2-vs.aspx

I've been using VS 2015 Community Edition without any issues for the past 2 months. Then one day it decided to crash (I wasn't doing anything when it crashed). After I tried starting it up again, it only gets to the home-page screen then crashes. No project is being opened, it crashes on its own.

Things I tried with no success:

  1. Repairing the install.

  2. Uninstalling then Reinstalling.

  3. Running in /safemode (still crashes in safemode!)

I don't have anything custom installed (especially after the clean install).

At this point my only hope is re-installing windows (running Windows 7), and hoping the problem goes away then. Any other ideas, things I can try?

Here's the log dump from starting VS2015 in safemode (I wanted to post the contents here, but they exceed the allowed post size): http://wikisend.com/download/447654/vs_log.txt

I did search through the log for error tags, and found the following instances:

  <entry>
    <record>2196</record>
    <time>2016/03/16 19:49:43.330</time>
    <type>Error</type>
    <source>UserConnection</source>
    <description>Failed to get IAccountManager from service provider.</description>
  </entry>
  <entry>
    <record>2416</record>
    <time>2016/03/16 19:49:44.273</time>
    <type>Error</type>
    <source>Extension Manager</source>
    <description>Extension will not be loaded because an extension with the same ID &apos;Microsoft.Dev14.VsixTemplatesPackage.V2.443cca91-ec20-41e5-a165-f28e56b89650&apos; is already loaded at C:PROGRAM FILES (X86)MICROSOFT VISUAL STUDIO 14.0COMMON7IDEEXTENSIONSOZPNHXDR.G5H...</description>
    <path>C:PROGRAM FILES (X86)MICROSOFT VISUAL STUDIO 14.0COMMON7IDEEXTENSIONSNUGETIFIEDEXTENSIBILITYTEMPLATES</path>
  </entry>
  <entry>
    <record>2417</record>
    <time>2016/03/16 19:49:44.274</time>
    <type>Error</type>
    <source>Extension Manager</source>
    <description>Extension will not be loaded because an extension with the same ID &apos;Microsoft.VisualStudio.TeamFoundation.TeamExplorer.Extensions&apos; is already loaded at C:PROGRAM FILES (X86)MICROSOFT VISUAL STUDIO 14.0COMMON7IDEEXTENSIONSMKTRGVMI.4Y3...</description>
    <path>C:PROGRAM FILES (X86)MICROSOFT VISUAL STUDIO 14.0COMMON7IDECOMMONEXTENSIONSMICROSOFTTEAMFOUNDATIONTEAM EXPLORER</path>
  </entry>

EDIT 1:

Following magicandre1981's advice I ran procdump, but the resulting file is 0.5 GB, so it's too much to upload. Here's a screenshot from the dump file. The exception seems to be 0xE0434352.

EDIT 2:

I looked at Event Viewer, and found the following Error related to the crash. Looks like the exception is caused by Microsoft.VisualStudio.Services.Experimentation.FlightsClient:

Application: devenv.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.NullReferenceException at Microsoft.VisualStudio.Services.Experimentation.FlightsClient+<ReadStreamFromRemoteAsync>d__20`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) at Microsoft.VisualStudio.Services.Experimentation.ShippedFlightsClient+<SetRemoteFlightsAsync>d__4.MoveNext() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) at Microsoft.VisualStudio.Services.Experimentation.VSExperimentationService+<<FlightDataCallback>b__33_0>d.MoveNext() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) at Microsoft.VisualStudio.Services.Experimentation.VSExperimentationService+<FlightDataCallback>d__33.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_1(System.Object) at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback() 

EDIT 3:

Searching for TestFlight related posts, I found the following from Microsoft (opting out of Experience Improvement Program). Looked very promising, but sadly didn't resolve my issue:

https://connect.microsoft.com/VisualStudio/feedback/details/2082049/crash-on-startup

解决方案

I fixed the problem by installing Visual Studio 2015 Update 2 RC (I was running Update 1), and unchecking every single optional install feature (I just need C#/WPF). Chances are, simply installing Update 2 RC would fix the issue, but I've wasted too much time on it already to keep trying over and over again.

Here's a link to Update 2 RC: https://www.visualstudio.com/en-us/news/vs2015-update2-vs.aspx

这篇关于Visual Studio 2015 社区在启动时崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆