Visual Studio不断崩溃:应用程序错误 [英] Visual Studio keeps crashing: Application Error

本文介绍了Visual Studio不断崩溃:应用程序错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

VS经常崩溃,通常是当我想单击一些我要编辑的文本时. 当我查看事件日志时,我会得到;

VS keeps crashing, usually when I want to click on some text I want to edit. When I look in the event log I get;

Log Name:      Application
Source:        Application Error
Date:          26/03/2013 15:18:30
Event ID:      1000
Task Category: (100)
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      (removed)
Description:
Faulting application name: devenv.exe, version: 10.0.40219.1, time stamp: 0x4d5f2a73
Faulting module name: clr.dll, version: 4.0.30319.269, time stamp: 0x4ee9ae83
Exception code: 0xc00000fd
Fault offset: 0x00194a5d
Faulting process id: 0x47c
Faulting application start time: 0x01ce2a3396f0faf2
Faulting application path: c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe
Faulting module path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Report Id: 69d0daee-9628-11e2-aeba-005056c00008
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Application Error" />
    <EventID Qualifiers="0">1000</EventID>
    <Level>2</Level>
    <Task>100</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2013-03-26T15:18:30.000000000Z" />
    <EventRecordID>23553</EventRecordID>
    <Channel>Application</Channel>
    <Computer>(removed)</Computer>
    <Security />
  </System>
  <EventData>
    <Data>devenv.exe</Data>
    <Data>10.0.40219.1</Data>
    <Data>4d5f2a73</Data>
    <Data>clr.dll</Data>
    <Data>4.0.30319.269</Data>
    <Data>4ee9ae83</Data>
    <Data>c00000fd</Data>
    <Data>00194a5d</Data>
    <Data>47c</Data>
    <Data>01ce2a3396f0faf2</Data>
    <Data>c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe</Data>
    <Data>C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll</Data>
    <Data>69d0daee-9628-11e2-aeba-005056c00008</Data>
  </EventData>
</Event>

我也明白了

Log Name:      Application
Source:        Windows Error Reporting
Date:          26/03/2013 15:21:01
Event ID:      1001
Task Category: None
Level:         Information
Keywords:      Classic
User:          N/A
Computer:      (removed)
Description:
Fault bucket 2985755835, type 1
Event Name: APPCRASH
Response: Not available
Cab Id: -721041670

Problem signature:
P1: devenv.exe
P2: 10.0.40219.1
P3: 4d5f2a73
P4: clr.dll
P5: 4.0.30319.269
P6: 4ee9ae83
P7: c00000fd
P8: 00194a5d
P9: 
P10: 

Attached files:
C:\Users\xxx\AppData\Local\Temp\WERE350.tmp.WERInternalMetadata.xml
C:\Users\xxx\AppData\Local\Temp\WERF0C9.tmp.appcompat.txt
C:\Users\xxx\AppData\Local\Temp\WERF108.tmp.mdmp

These files may be available here:
C:\Users\xxx\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_devenv.exe_3f453f47c0d86c534010e7cf6788bb8f42fbcd_cab_144e2fda

Analysis symbol: 
Rechecking for solution: 0
Report Id: 69d0daee-9628-11e2-aeba-005056c00008
Report Status: 8
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Windows Error Reporting" />
    <EventID Qualifiers="0">1001</EventID>
    <Level>4</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2013-03-26T15:21:01.000000000Z" />
    <EventRecordID>23554</EventRecordID>
    <Channel>Application</Channel>
    <Computer>(removed)</Computer>
    <Security />
  </System>
  <EventData>
    <Data>2985755835</Data>
    <Data>1</Data>
    <Data>APPCRASH</Data>
    <Data>Not available</Data>
    <Data>-721041670</Data>
    <Data>devenv.exe</Data>
    <Data>10.0.40219.1</Data>
    <Data>4d5f2a73</Data>
    <Data>clr.dll</Data>
    <Data>4.0.30319.269</Data>
    <Data>4ee9ae83</Data>
    <Data>c00000fd</Data>
    <Data>00194a5d</Data>
    <Data>
    </Data>
    <Data>
    </Data>
    <Data>
C:\Users\xxx\AppData\Local\Temp\WERE350.tmp.WERInternalMetadata.xml
C:\Users\xxx\AppData\Local\Temp\WERF0C9.tmp.appcompat.txt
C:\Users\xxx\AppData\Local\Temp\WERF108.tmp.mdmp</Data>
    <Data>C:\Users\xxx\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_devenv.exe_3f453f47c0d86c534010e7cf6788bb8f42fbcd_cab_144e2fda</Data>
    <Data>
    </Data>
    <Data>0</Data>
    <Data>69d0daee-9628-11e2-aeba-005056c00008</Data>
    <Data>8</Data>
  </EventData>
</Event>

推荐答案

标准检查以解决以下类型的错误:

Standard checks to resolve these types of errors:

  • 卸载Visual Studio的所有beta/ctp版本.
  • 在Windows事件查看器中查看并在应用程序日志中检查以下两项:它将包含一个堆栈跟踪,可以帮助您找到罪魁祸首.
  • 删除所有*.*user文件和解决方案用户选项文件(.suo)
  • 在启用活动日志记录的情况下运行Visual Studio 以查看是否日志包含导致崩溃的提示. (devenv /log)
  • 以安全模式(devenv /safemode)运行Visual Studio
  • 清除ComponentModelCache 文件夹
  • 检查是否有任何扩展程序/附加组件/插件需要更新,并先进行更新以查看是否可以解决您的问题.
  • 禁用所有加载项和扩展名(VS命令,WebEssentials等)
  • 卸载所有插件(resharper,coderush,reflector等)
  • 安装最新的修补程序和Service Pack,如果您已经安装了SQL Server或安装了基于Visual Studio Shell的功能的其他产品,则可能需要重新应用这些Service Pack:

  • uninstall any beta/ctp releases for Visual Studio.
  • look in the Windows Event Viewer and check for the following two items in the Application log: it will contain a stacktrace which may help you find the culprit.
  • delete any *.*user files and the solution user options file (.suo)
  • Run visual studio with activity logging turned on to see if the logs contain a hint to what's causing the crash. (devenv /log)
  • Run Visual Studio in Safe mode (devenv /safemode)
  • Clear the ComponentModelCache folder
  • Check to see if any extensions/add-ons/plugins need updates and update them first to see if that fixes your problem.
  • disable all add-ins and extensions (VS Commands, WebEssentials etc)
  • uninstall all plugins (resharper, coderush, reflector etc)
  • install the latest patches and service packs, you may need to re-apply these servicepacks if you've installed SQL Server or another product that installs a feature which is based on Visual Studio Shell:

  • 2005: SP 1 & TFS 2010 Forward Compatibiltiy Patch & Visual Studio update for Windows Vista
  • 2008: SP 1 & TFS 2012/VSO Forward Compatibiltiy Patch
  • 2010: SP 1 & TFS 2012/VSO Forward Compatibility Patch & Visual Studio update for Windows 8 and TFS 2012.
  • 2012: Update 5
  • 2013: Update 5
  • 2015: Update 3 & KB3165756
  • 2017: Update to the latest version

重置与设置(devenv /resetsetting /resetaddin /resetskippkgs /setup)

尝试重现它.如果仍然发生,请修复Visual Studio并按顺序重新应用最新的Service Pack和修补程序.如果仍然发生,请提交 Microsoft的支持票证,或连接上的项目.

Try to reproduce it. If it still occurs, repair Visual Studio and reapply the latest service packs and hotfixes in order. If it then still occurs, submit a support ticket to Microsoft, or an item on connect.

如果没有发生,请逐个打开/安装/恢复项目,直到找到罪魁祸首.我知道这需要很多工作,但是由于您的错误发生在CLR内部的某个深处(您会看到StackOverflow异常),因此很难轻松地找出问题所在.找到有问题的项目后,请查看是否有更新或要求其支持(或更新您的问题).

If it doesn't occur turn-on/install/restore the items one by one until you can find the culprit. I know it's a lot of work, but since your error happens somewhere deep inside the CLR (you're seeing a StackOverflow Exception), it's hard to pinpoint the problem easily. When you've found the problematic item, see if there is an update for it or request their support (or update your question).

在最坏的情况下,您可以使用vs_setup /uninstall /force强制执行Visual Studio的强制卸载,该操作应在2012年及更高版本的安装程序上起作用.

In the worst case you can perform a force-uninstall of Visual Studio using vs_setup /uninstall /force, that should work on the 2012 and newer installers.

如果您仍在使用旧版本的Visual Studio(2010或更早版本),则可以.真正考虑升级.这些版本已超过其支持生命周期,并且是为不再受支持的Windows版本构建的.我知道这些升级可能会在短期内带来痛苦,但是从长远来看,真正的解决方案是摆脱旧版本.

If you're still on an old version of Visual Studio (2010 or older), really, really. really consider upgrading. These versions are past their support lifetime and were built for versions of Windows that are not even supported anymore. I know the pain these upgrades can cause in the short term, but the long-term solution is really to move away from the old versions.

这篇关于Visual Studio不断崩溃:应用程序错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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