質問: プロジェクトを開くとvisualstudioがクラッシュする 完全開示、私は4時間答えを探してそれを見つけることができなかったので、私は自分でこの質問に答えています、そして最終的にそれを自分で理解しました。したがって、他の誰かがこの問題を抱えている場合、これが彼らを助けることができることを願っています。visual studioがプロジェクトを開くと、エラーメッセージなしで閉じます。イベントビューアを開くと、.netランタイムのソースを含む単一のエラーイベントが表示されます。エラーイベントは次のようになります。application: devenv.exe framework version: v4.0.30319 description: the application requested process termination through system.environment.failfast(string message). message: system.invalidoperationexception: controller terminated before accepting connections. exit code: 9 (nodeinvalidargument). at microsoft.servicehub.client.nodehubcontroller.<startasync>d__2.movenext() --- end of stack trace from previous location where exception was thrown --- at system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) at system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) at microsoft.servicehub.client.hubclient.<launchorfindcontrollerasync>d__37.movenext() --- end of stack trace from previous location where exception was thrown --- at system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) at system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) at microsoft.servicehub.client.hubclient.<getlocationservicerpcasync>d__38.movenext() --- end of stack trace from previous location where exception was thrown --- at system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) at system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) at microsoft.visualstudio.threading.threadingtools.<withcancellationslow>d__11`1.movenext() --- end of stack trace from previous location where exception was thrown --- at system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) at system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) at microsoft.servicehub.client.hubclient.<locateserviceasync>d__40.movenext() --- end of stack trace from previous location where exception was thrown --- at system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) at system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) at microsoft.servicehub.client.hubclient.<requestservicechannelnameasync>d__26.movenext() --- end of stack trace from previous location where exception was thrown --- at system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) at system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) at microsoft.servicehub.client.hubclient.<requestserviceasync>d__29.movenext() --- end of stack trace from previous location where exception was thrown --- at system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) at system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) at microsoft.visualstudio.languageservices.remote.servicehubremotehostclient.connections.<retryremotecallasync>d__0`2.movenext() --- end of stack trace from previous location where exception was thrown --- at system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) at system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) at microsoft.visualstudio.languageservices.remote.servicehubremotehostclient.connections.<requestserviceasync>d__1.movenext() --- end of stack trace from previous location where exception was thrown --- at system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) at system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) at microsoft.visualstudio.languageservices.remote.servicehubremotehostclient.<createworkerasync>d__11.movenext() --- end of stack trace from previous location where exception was thrown --- at microsoft.visualstudio.languageservices.remote.servicehubremotehostclient.<createworkerasync>d__11.movenext() --- end of stack trace from previous location where exception was thrown --- at system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) at system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) at microsoft.visualstudio.languageservices.remote.servicehubremotehostclient.connections.<retryremotecallasync>d__0`2.movenext() --- end of stack trace from previous location where exception was thrown --- at system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) at system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) at microsoft.visualstudio.languageservices.remote.servicehubremotehostclient.<createasync>d__10.movenext() --- end of stack trace from previous location where exception was thrown --- at system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) at system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) at microsoft.visualstudio.languageservices.remote.remotehostclientfactory.<createasync>d__0.movenext() --- end of stack trace from previous location where exception was thrown --- at system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) at system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) at microsoft.visualstudio.languageservices.remote.remotehostclientservicefactory.remotehostclientservice.<enableasync>d__17.movenext() --- end of stack trace from previous location where exception was thrown --- at system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) at system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) at microsoft.codeanalysis.remote.remotehostclientextensions.<trycreatecodeanalysissessionasync>d__26.movenext() --- end of stack trace from previous location where exception was thrown --- at system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) at system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) at microsoft.codeanalysis.remote.remotehostclientextensions.<tryruncodeanalysisremoteasync>d__30`1.movenext() --- end of stack trace from previous location where exception was thrown --- at system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) at system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) at microsoft.codeanalysis.documenthighlighting.abstractdocumenthighlightsservice.<getdocumenthighlightsinremoteprocessasync>d__1.movenext() --- end of stack trace from previous location where exception was thrown --- at system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) at system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) at microsoft.codeanalysis.documenthighlighting.abstractdocumenthighlightsservice.<getdocumenthighlightsasync>d__0.movenext() --- end of stack trace from previous location where exception was thrown --- at system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) at system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) at microsoft.codeanalysis.editor.referencehighlighting.referencehighlightingviewtaggerprovider.<producetagsasync>d__12.movenext() --- end of stack trace from previous location where exception was thrown --- at system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) at system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) at microsoft.codeanalysis.editor.tagging.abstractasynchronoustaggerprovider`1.tagsource.<recomputetagsasync>d__70.movenext() stack: at system.environment.failfast(system.string, system.exception) at microsoft.codeanalysis.failfast.onfatalexception(system.exception) at microsoft.codeanalysis.errorreporting.fatalerror.report(system.exception, system.action`1<system.exception>) at microsoft.codeanalysis.errorreporting.fatalerror.report(system.exception) at roslyn.utilities.taskextensions.reportfatalerrorworker(system.threading.tasks.task, system.object) at system.threading.tasks.continuationtaskfromtask.innerinvoke() at system.threading.tasks.task.execute() at system.threading.tasks.task.executioncontextcallback(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.tasks.task.executewiththreadlocal(system.threading.tasks.task byref) at system.threading.tasks.task.executeentry(boolean) at system.threading.tasks.threadpooltaskscheduler.tryexecutetaskinline(system.threading.tasks.task, boolean) at system.threading.tasks.taskscheduler.tryruninline(system.threading.tasks.task, boolean) at system.threading.tasks.taskcontinuation.inlineifpossibleorelsequeue(system.threading.tasks.task, boolean) at system.threading.tasks.standardtaskcontinuation.run(system.threading.tasks.task, boolean) at system.threading.tasks.task.finishcontinuations() at system.threading.tasks.task.finishstagethree() at system.threading.tasks.task.finishstagetwo() at system.threading.tasks.task.finish(boolean) at system.threading.tasks.task`1[[system.threading.tasks.taskextensions+voidresult, system.core, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089]].trysetexception(system.object) at system.threading.tasks.unwrappromise`1[[system.threading.tasks.taskextensions+voidresult, system.core, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089]].trysetfromtask(system.threading.tasks.task, boolean) at system.threading.tasks.unwrappromise`1[[system.threading.tasks.taskextensions+voidresult, system.core, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089]].processinnertask(system.threading.tasks.task) at system.threading.tasks.unwrappromise`1[[system.threading.tasks.taskextensions+voidresult, system.core, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089]].processcompletedoutertask(system.threading.tasks.task) at system.threading.tasks.unwrappromise`1[[system.threading.tasks.taskextensions+voidresult, system.core, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089]].invokecore(system.threading.tasks.task) at system.threading.tasks.unwrappromise`1[[system.threading.tasks.taskextensions+voidresult, system.core, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089]].invoke(system.threading.tasks.task) at system.threading.tasks.task.finishcontinuations() at system.threading.tasks.task.finishstagethree() at system.threading.tasks.task.finishstagetwo() at system.threading.tasks.task.finish(boolean) at system.threading.tasks.task.executewiththreadlocal(system.threading.tasks.task byref) at system.threading.tasks.task.executeentry(boolean) at system.threading.tasks.task.system.threading.ithreadpoolworkitem.executeworkitem() at system.threading.threadpoolworkqueue.dispatch() at system.threading._threadpoolwaitcallback.performwaitcallback()
回答: 4時間以上のトラブルシューティングの後、システム環境変数にnode_options環境変数を--max-http-header-size=32767の値で設定したことがエラーの原因であることがわかりました。この環境変数を削除すると、vs2017および2019のクラッシュに関する問題が完全に修正されました。