1

デバッグが停止した後にソースコードを編集しようとしたときに、Visual Studio 2015(update3あり)がクラッシュしました。 (これはC#WinForm、WPF、Consoleプロジェクトでも発生します)
1ヶ月前には大丈夫でした......デバッグ後にdevenv.exeがクラッシュする

クラッシュに対してSystem.AccessViolationExceptionが発生しました。
そしてデバッグするとき、私は奇妙な何かを見つけた:

  • でも即時ウィンドウ
  • しかし、私はまだ他の情報を取得することができます(スレッドのように、スタック...)
  • に、私のプログラム内の任意の変数を取得できません
  • 診断ツールは、私はすでに担当者を持っている

<のProgramName > .vshost.exeはまだ生きている、停止デバッグ後

  • が動作していませんVisual Studioを放映しましたが、エラーはまだ発生しました。


    オペレーティングシステム:のWindows7のx64
    System.AccessViolationException未処理 メッセージ:タイプ 'System.AccessViolationException' 未処理の例外がスローされた例外System.AccessViolationExceptionでMicrosoft.VisualStudio.LanguageServices.dll

    で発生しました:Microsoft.VisualStudio.LanguageServices.dll odeAnalysis.DocumentId documentId、Microsoft.CodeAnalysis.EditAndContinue.SessionReadOnlyReason sessionReason、Microsoft.CodeAnalysis.EditAndContinue.ProjectReadOnlyReason projectReason)不明 Microsoft.VisualStudio.LanguageServices.dll! Microsoft.VisualStudio.LanguageServices.Implementation.EditAndContinue.VsENCRebuildableProjectImpl.OnEdit(Microsoft.CodeAnalysis.DocumentId documentId)不明 Microsoft.VisualStudio.LanguageServices.dll!プロパティ。 Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.OnDisabledEditingCommand(ref System.Guid pguidCmdGuid、uint dwCmdId)不明 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.InnerExec(参照System.Guid pguidCmdGroup、uint nCmdID、uint nCmdexecopt、System.IntPtr pvaIn、System.IntPtr pvaOut)不明 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(参照System.Guid pguidCmdGroup、uint nCmdID、uint nCmdexecopt、System.IntPtr pvaIn、System.IntPtr pvaOut)不明 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.Undo.UndoManagerCommandFilter.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(参照System.Guid pguidCmdGroup、uint nCmdID、uint nCmdexecopt、System.IntPtr pvaIn、System.IntPtr pvaOut)不明 マイクロソフト。 VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(参照System.Guid pguidCmdGroup、uint nCmdID、uint nCmdexecopt、System.IntPtr pvaIn、System.IntPtr pvaOut)不明 Microsoft.VisualStudio.Editor.Implementation.dll!プロパティ。IntPtr pvaOut)Unknown Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.VerticalDetail.VerticalContentCommandFilter.Exec(参照System.Guid pguidCmdGroup、uint nCmdID、uint nCmdexecopt、System.IntPtr pvaIn、System.IntPtr pvaOut)不明 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(参照System.Guid pguidCmdGroup、uint nCmdID、uint nCmdexecopt、System.IntPtr pvaIn、System.IntPtr pvaOut)不明 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(参照System.Guid pguidCmdGroup、uint nCmdID、uint nCmdexecopt、System.IntPtr pvaIn、System.IntPtr pvaOut)不明 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.Find.FindCommandFilter.Exec(参照System.Guid pguidCmdGroup、uint nCmdID、uint nCmdexecopt、System.IntPtr pvaIn、System.IntPtr pvaOut)不明 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(参照System.Guid pguidCmdGroup、uint nCmdID、uint nCmdexecopt、System.IntPtr pvaIn、System.IntPtr pvaOut)不明 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(参照System.Guid pguidCmdGroup、uint nCmdID、uint nCmdexecopt、System.IntPtr pvaIn、System.IntPtr pvaOut)不明 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.IntellisenseCommandFilter.Exec(参照System.Guid pguidCmdGroup、uint nCmdID、uint nCmdexecopt、System.IntPtr pvaIn、System.IntPtr pvaOut)不明 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(参照System.Guid pguidCmdGroup、uint nCmdID、uint nCmdexecopt、System.IntPtr pvaIn、System.IntPtr pvaOut)不明 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(参照System.Guid pguidCmdGroup、uint nCmdID、uint nCmdexecopt、System.IntPtr pvaIn、System.IntPtr pvaOut)不明 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.BraceCompletionCommandFilter.Exec(参照System.Guid pguidCmdGroup、uint nCmdID、uint nCmdexecopt、System.IntPtr pvaIn、System.IntPtr pvaOut)不明 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(参照System.Guid pguidCmdGroup、uint nCmdID、uint nCmdexecopt、System.IntPtr pvaIn、System.IntPtr pvaOut)不明 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(参照System.Guid pguidCmdGroup、uint nCmdID、uint nCmdexecopt、System.IntPtr pvaIn、System.IntPtr pvaOut)不明 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandFilterWrapper.Exec(参照System.Guid pguidCmdGroup、uint nCmdID、uint nCmdexecopt、System.IntPtr pvaIn、System.IntPtr pvaOut)不明 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(参照System.Guid pguidCmdGroup、uint nCmdID、uint nCmdexecopt、System.IntPtr pvaIn、System.IntPtr pvaOut)不明 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(参照System.Guid pguidCmdGroup、uint nCmdID、uint nCmdexecopt、System.IntPtr pvaIn、System.IntPtr pvaOut)不明 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandFilterWrapper.Exec(参照System.Guid pguidCmdGroup、uint nCmdID、uint nCmdexecopt、System.IntPtr pvaIn、System.IntPtr pvaOut)不明 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(参照System.Guid pguidCmdGroup、uint nCmdID、uint nCmdexecopt、System.IntPtr pvaIn、System.IntPtr pvaOut)不明 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(参照System.Guid pguidCmdGroup、uint nCmdID、uint nCmdexecopt、System.IntPtr pvaIn、System.IntPtr pvaOut)不明 Microsoft.VisualStudio.LanguageServices.dll! Microsoft.VisualStudio.LanguageServices.Implementation。AbstractOleCommandTarget.ExecuteVisualStudio2000.AnonymousMethod__0()Unknown Microsoft.CodeAnalysis.CSharp.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.CSharp.EventHookup.EventHookupCommandHandler.ExecuteCommand(Microsoft.CodeAnalysis.Editor.Commands.TypeCharCommandArgs args、System.Action nextHandler)不明 Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.Implementation.Commands.CommandHandlerService.ExecuteHandlers.AnonymousMethod__1()Unknown Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.Implementation.DocumentationComments.AbstractDocumentationCommentCommandHandler .ExecuteCommand(Microsoft.CodeAnalysis.Editor.Commands .TypeCharCommandArgs args、System.Action nextHandler)不明 Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.Implementation.Commands.CommandHandlerService.ExecuteHandlers.AnonymousMethod__1()Unknown Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.Completion.Controller.Microsoft.CodeAnalysis.Editor.ICommandHandler .ExecuteCommand(Microsoft.CodeAnalysis.Editor.Commands .TypeCharCommandArgs args、System.Action nextHandler)不明 Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.CommandHandlers.AbstractCompletionCommandHandler.ExecuteCommandWorker(Microsoft.CodeAnalysis.Editor.Commands.TypeCharCommandArgs args、System.Action nextHandler)不明 Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.CommandHandlers.AbstractCompletionCommandHandler.Microsoft.CodeAnalysis.Editor.ICommandHandler .ExecuteCommand(Microsoft.CodeAnalysis.Editor.Commands.TypeCharCommandArgs args、System.Action nextHandler)不明 Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.Implementation.Commands.CommandHandlerService.ExecuteHandlers.AnonymousMethod__1()Unknown Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.SignatureHelp.Controller.Microsoft.CodeAnalysis.Editor.ICommandHandler .ExecuteCommand(Microsoft.CodeAnalysis.Editor.Commands .TypeCharCommandArgs args、System.Action nextHandler)不明 Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.CommandHandlers.SignatureHelpCommandHandler.ExecuteCommandWorker(Microsoft.CodeAnalysis.Editor.Commands.TypeCharCommandArgs args、System.Action nextHandler)不明 Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.CommandHandlers.SignatureHelpCommandHandler.Microsoft.CodeAnalysis.Editor.ICommandHandler .ExecuteCommand(Microsoft.CodeAnalysis.Editor.Commands.TypeCharCommandArgs args、System.Action nextHandler)不明 Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.Implementation.Commands.CommandHandlerService.ExecuteHandlers.AnonymousMethod__1()Unknown Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.Implementation.Formatting.FormatCommandHandler.ExecuteReturnOrTypeCommand(Microsoft.CodeAnalysis.Editor.CommandArgs args、System.Action nextHandler、System.Threading.CancellationToken cancellationToken)不明 Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.Implementation.Formatting.FormatCommandHandler.ExecuteCommand(Microsoft.CodeAnalysis.Editor.Commands.TypeCharCommandArgs args、System.Action nextHandler)不明 Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.Implementation.Commands.CommandHandlerService.ExecuteHandlers.AnonymousMethod__1()Unknown Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.Implementation.DocumentationComments.AbstractXmlTagCompletionCommandHandler.ExecuteCommand(Microsoft.CodeAnalysis.Editor.Commands.TypeCharCommandArgs args、System.Action nextHandler)不明 Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.Implementation.Commands.CommandHandlerService.ExecuteHandlers.AnonymousMethod__1()Unknown Microsoft.CodeAnalysis.EditorFeatures.dll!メソッド。プロパティ。RenameCommandHandler.ExecuteCommand(Microsoft.CodeAnalysis.Editor.Commands.TypeCharCommandArgs args、System.Action nextHandler)不明 Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.Implementation.Commands.CommandHandlerService.ExecuteHandlers(System.Collections.Generic.IList> commandHandlers、Microsoft.CodeAnalysis.Editor.Commands.TypeCharCommandArgs args、System.Action lastHandler)不明 Microsoft.CodeAnalysis.EditorFeatures.dll! Microsoft.CodeAnalysis.Editor.Implementation.Commands.CommandHandlerService.Execute(Microsoft.VisualStudio.Utilities.IContentType contentType、Microsoft.CodeAnalysis.Editor.Commands。TypeCharCommandArgs args、System.Action lastHandler)不明 Microsoft.VisualStudio.LanguageServices.dll! Microsoft.VisualStudio.LanguageServices.Implementation.AbstractOleCommandTarget.ExecuteTypeCharacter(System.IntPtr pvaIn、Microsoft.VisualStudio.Text.ITextBuffer、subjectBuffer、Microsoft.VisualStudio.Utilities.IContentType contentType、System.Action executeNextCommandTarget)不明 Microsoft.VisualStudio.LanguageServices.dll! Microsoft.VisualStudio.LanguageServices.Implementation.AbstractOleCommandTarget.ExecuteVisualStudio2000(System.IntPtr、Microsoft.VisualStudio.Text.ITextBuffer、Microsoft.VisualStudio.Utilities.IContentType、System.IntPtr、System.IntPtr、System.Guid pguidCmdGroup、uint commandId、 contentType)unknown Microsoft.VisualStudio.LanguageServices.dll! Microsoft.VisualStudio.LanguageServices.Implementation.AbstractOleCommandTarget.Exec(System.Guid pguidCmdGroup、uintコマンドID、uint executeInformation、System.IntPtr pvaIn、System.IntPtr pvaOut)Unknown Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(参照System.Guid pguidCmdGroup、uint nCmdID、uint nCmdexecopt、System.IntPtr pvaIn、System.IntPtr pvaOut)不明 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.SimpleTextViewWindow.Exec(参照System.Guid pguidCmdGroup、uint nCmdID、uint nCmdexecopt、System.IntPtr pvaIn、System.IntPtr pvaOut)不明 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.VsKeyboardFilter.SendCommand(System.Guid cmdGroup、uint cmdID、オブジェクトinParam)不明 Microsoft.VisualStudio.Editor.Implementation.dll! Microsoft.VisualStudio.Editor.Implementation.VsKeyboardFilter.TextInput(System.Windows.Input.TextCompositionEventArgs args)不明 Microsoft.VisualStudio.Platform.VSEditor.dll! Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.DispatchTextInputEvents.AnonymousMethod__6_0(Microsoft.VisualStudio.Text.Editor.KeyProcessor p、System.Windows.Input.TextCompositionEventArgs args)不明 Microsoft.VisualStudio.Platform.VSEditor.dll!プロパティ。 Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(オブジェクトerrorSource、System.Action呼び出し)不明 Microsoft.VisualStudio.Platform.VSEditor.dll! Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.Dispatch(System.Actionアクション、System.Windows.Input.TextCompositionEventArgs args)不明 Microsoft.VisualStudio.Platform.VSEditor.dll! Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.MakeHandler.AnonymousMethod__0(オブジェクト送信者、System.Windows.Input.TextCompositionEventArgs引数)不明 PresentationCore.dll! System.Windows.Input.TextCompositionEventArgs.InvokeEventHandler(System.Delegate genericHandler、object genericTarget)不明 PresentationCore.dll! System.Windows.RoutedEventArgs.InvokeHandler(System.Delegateハンドラー、オブジェクトターゲット)不明 PresentationCore.dll! System.Windows.RoutedEventHandlerInfo.InvokeHandler(オブジェクトターゲット、System.Windows.RoutedEventArgs routedEventArgs)不明 PresentationCore.dll! System.Windows.EventRoute.InvokeHandlersImpl(オブジェクトソース、System.Windows.RoutedEventArgs args、bool reRaised)不明 PresentationCore.dll! System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject sender、System.Windows.RoutedEventArgs args)Unknown PresentationCore.dll! System.Windows.UIElement.RaiseTrustedEvent(System。Windows.RoutedEventArgs引数)不明 PresentationCore.dll! System.Windows.Input.InputManager.ProcessStagingArea()不明 PresentationCore.dll! System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs input)不明 PresentationCore.dll! System.Windows.Input.TextCompositionManager.UnsafeCompleteComposition(System.Windows.Input.TextComposition composition)不明 PresentationCore.dll!コンストラクタ。コンストラクタ(System.Windows.Input.ProcessInputEventHandler) System.Windows.Input.InputManager.ProcessStagingArea()不明 PresentationCore.dll! System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs input)不明 PresentationCore.dll! System.Windows.Input.TextCompositionManager.UnsafeStartComposition(System.Windows.Input.TextComposition composition)不明 PresentationCore.dll!コンストラクタ。コンストラクタ(System.Windows.Input.ProcessInputEventHandler) System.Windows.Input.InputManager.ProcessStagingArea()不明 PresentationCore.dll! System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs input)不明 PresentationCore.dll! System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport inputReport)不明 PresentationCore.dll! System.Windows.Interop.HwndKeyboardInputProvider.ProcessTextInputAction(System.IntPtr hwnd、MS.Internal.Interop.WindowMessage msg、System.IntPtr wParam、System.IntPtr lParam、ref bool processed)不明 PresentationCore.dll! System.Windows.Interop.HwndSource.OnPreprocessMessage(オブジェクトパラメーター)不明 WindowsBase.dll! System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegateコールバック、オブジェクトargs、int numArgs)不明 WindowsBase.dll! System.Windows.Threading.ExceptionWrapper.TryCatchWhen(オブジェクトソース、System.Delegateコールバック、オブジェクトargs、int numArgs、System.Delegate catchHandler)不明 WindowsBase.dll! System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority priority、System.TimeSpanタイムアウト、System.Delegateメソッド、オブジェクトargs、int numArgs)不明 WindowsBase.dll! System.Windows.Threading.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority priority、System.Delegateメソッド、オブジェクトarg)不明 PresentationCore.dll! System.Windows.Interop.HwndSource.OnPreprocessMessageThunk(ref System.Windows.Interop.MSG msg、ref boolが処理された)Unknown PresentationCore.dll! System.Windows.Interop.HwndSource.WeakEventPreprocessMessage.OnPreprocessMessage(ref System.Windows.Interop.MSG msg、ref boolが処理された)Unknown WindowsBase.dll! System.Windows.Interop.ComponentDispatcherThread.RaiseThreadMessage(ref System.Windows.Interop.MSG msg)不明 Microsoft.VisualStudio.Platform.WindowManagement.dll! Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService.PreTranslateInput(REF Microsoft.VisualStudio.OLE.Interop.MSG oleMsgは、取り扱いBOOL)不明

  • +1

    プロジェクトの編集と継続機能が壊れています。 「うんざりする」カテゴリーの滝は、非常に畳み込まれた機能です。このバグが撃たれないように、E + Cを無効にする以外にはほとんどできません。または、クラッシュしない以前のバージョンにソースコントロールを使用します。たぶん32ビットモードでコードを実行して、x64コードのE + Cはかなり新しいです。あなたはそれなしで暮らすことができない場合は、Microsoftサポートに電話する必要があります。 –

    +0

    Visual Studioは一ヶ月前であるので、%AppData%\ Microsoft \ VisualStudio \ 14.0のパスにあるActiveLog.xmlを確認してください。このファイルは、Visual Studioを操作するときにすべての操作を記録します。このファイルにエラーメッセージがない場合は、 "C:\ Users \ [user] \ AppData \ Local \ Microsoft \ VisualStudio \ 14.0 \"にあるVisual Studioキャッシュをクリアして、この問題がVisual Studioのキャッシュかどうか。 –

    +0

    私はキャッシュをクリアしましたが、それは役に立たないです。しかし、E + C関数を無効にするとVSのクラッシュを避けることができますが、私はまだローカル変数を見ることができません。デバッグ機能が壊れている可能性があります。 –

    答えて

    1

    ようハンスアンパッサンの提案、少なくとも、あなたはVSは、後​​に問題を解決した墜落TOOLS-> Options-> Debuggingの "Edit and Continue"機能を無効にします。

    さらに、ローカル変数を見ることができない場合は、デバッグオプション "管理互換モードの使用"と "ネイティブ互換モードの使用"に関連しているかどうかを確認してください。

    enter image description here

    +0

    2つのオプションを確認した後、ローカル変数が再び機能します! –

    関連する問題