我正在使用 Eclipse Mars 4.5.2。为我的应用程序运行覆盖测试时,到目前为止,它有 317 个测试方法,当它即将完成时(运行大约 274 个方法),我遇到错误,我找不到解决方案。
首先是一个弹出窗口说:
No Coverage Data
No coverage data has been collected during this coverage session.
Please do not terminate the Java process manually from Eclipse.
第二个弹出窗口:
'com.mountainminds.eclemma.internal.core.launching.AgentServer' has encountered a problem. Error while dumping coverage date (code 5013).
[Details:] Error while dumping coverage data (code 5013). Connection reset
然后是以下控制台日志:
A fatal error has been detected by the Java Runtime Environment:
EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000005f9b96af, pid=2024, tid=3772
JRE version: Java(TM) SE Runtime Environment (8.0_66-b18) (build 1.8.0_66-b18) Java VM: Java HotSpot(TM) 64-Bit Server VM (25.66-b18 mixed mode windows-amd64 compressed oops) Problematic frame: V [jvm.dll+0x4b96af]
Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
An error report file with more information is saved as: X:\xxxxx\hs_err_pid2024.log
Compiler replay data is saved as: X:\xxxxx\replay_pid2024.log
If you would like to submit a bug report, please visit: http://bugreport.java.com/bugreport/crash.jsp
我已经为这个问题困扰了几个星期,而且正如我所说,我找不到任何解决方案,只有四五年前 EclEmma 网站上的类似错误报告。
我尝试为 JUnit 设置以下 JVM 参数:-Xms2g -Xmx2g
。
我的测试没有任何数据库连接、服务器连接或网络连接。他们也不发出任何 HTTP 请求。
我已经尝试重新安装 EclEmma 插件以及重新安装 Eclipse。问题仍然存在。
最佳答案
更新覆盖配置。转到 Arguments 部分并在 VM arguments 部分添加以下 perm size 参数: -XX:MaxPermSize=1225m
关于java - 覆盖 fatal error (EclEmma),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37212214/