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.0Common7IDEdevenv.exe
Faulting module path: C:WindowsMicrosoft.NETFrameworkv4.0.30319clr.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.0Common7IDEdevenv.exe</Data>
    <Data>C:WindowsMicrosoft.NETFrameworkv4.0.30319clr.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:UsersxxxAppDataLocalTempWERE350.tmp.WERInternalMetadata.xml
C:UsersxxxAppDataLocalTempWERF0C9.tmp.appcompat.txt
C:UsersxxxAppDataLocalTempWERF108.tmp.mdmp

These files may be available here:
C:UsersxxxAppDataLocalMicrosoftWindowsWERReportArchiveAppCrash_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:UsersxxxAppDataLocalTempWERE350.tmp.WERInternalMetadata.xml
C:UsersxxxAppDataLocalTempWERF0C9.tmp.appcompat.txt
C:UsersxxxAppDataLocalTempWERF108.tmp.mdmp</Data>
    <Data>C:UsersxxxAppDataLocalMicrosoftWindowsWERReportArchiveAppCrash_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)
  • 在安全模式下运行 Visual Studio (devenv/safemode)
  • 清除 ComponentModelCache 文件夹
  • 检查是否有任何扩展/附加组件/插件需要更新并先更新它们,看看是否能解决您的问题.
  • 禁用所有加载项和扩展(VS 命令、WebEssentials 等)
  • 卸载所有插件(resharper、coderush、reflector 等)
  • 安装最新的补丁和服务包,如果你已经安装了 SQL Server 或其他安装了基于 Visual Studio Shell 的功能的产品,你可能需要重新应用这些服务包:

  • 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

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

reset vs settings (devenv /resetsetting /resetaddin /resetskippkgs /setup)

尝试重现它.如果仍然出现,请修复 Visual Studio 并按顺序重新应用最新的服务包和修补程序.如果仍然出现,请提交 Microsoft 支持票,或 connect 上的项目.

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天全站免登陆