gpt4 book ai didi

c# - 运行某些特定测试时 vstest 崩溃

转载 作者:太空宇宙 更新时间:2023-11-03 18:58:25 26 4
gpt4 key购买 nike

当我在我的解决方案中运行所有测试(大约 800 个测试)时,一段时间后会显示一个错误的弹出窗口,显示 vstest.executionengine.x86.exe 已停止工作。

一些问题细节的例子,我在这里得到:

Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: vstest.executionengine.x86.exe
Problem Signature 02: 14.0.23107.0
Problem Signature 03: 559b7b6c
Problem Signature 04: mscorlib
Problem Signature 05: 4.6.1076.0
Problem Signature 06: 56d79fa2
Problem Signature 07: 0
Problem Signature 08: ffffffff
Problem Signature 09: System.StackOverflowException
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 1051
Additional Information 1: 5cd2
Additional Information 2: 5cd2742c12da7dd4b1d5bf900186a452
Additional Information 3: 2fe2
Additional Information 4: 2fe276cacf1c00cd7a2aed7b27f5a5f9

Problem signature:
Problem Event Name: APPCRASH
Application Name: vstest.executionengine.x86.exe
Application Version: 14.0.23107.0
Application Timestamp: 559b7b6c
Fault Module Name: clr.dll
Fault Module Version: 4.6.1076.0
Fault Module Timestamp: 56d7a0ff
Exception Code: c00000fd
Exception Offset: 00003567
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 1051
Additional Information 1: 0127
Additional Information 2: 01273c850b3b6fc6378d3f666887788e
Additional Information 3: 0786
Additional Information 4: 07866ddaac895bff9a7fa791fcdaa4a7

在 VS 输出窗口中我得到:

------ Run test started ------
The active Test Run was aborted because the execution process exited unexpectedly. To investigate further, enable local crash dumps either at the machine level or for process vstest.executionengine.x86.exe. Go to more details: http://go.microsoft.com/fwlink/?linkid=232477
========== Run test finished: 0 run (0:03:55,0267906) ==========

当我尝试启用本地故障转储时,我发现没有这样的注册表项,所以我无法启用。

我找到了导致 vstest.----.exe 崩溃的所有测试(22 个测试),对它们进行了评论并再次运行所有测试,没有那些“错误”的测试。一切运行良好。

这些测试有什么问题?它们都是过去有效的旧测试。如何定位问题?

最佳答案

根据我的经验,StackoverFlowExeptions 通常是由一些永不终止的递归方法调用引起的。尝试调试这 22 个测试中的一个,以确定递归是否是问题所在。

关于c# - 运行某些特定测试时 vstest 崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40150167/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com