i have several unit tests (about 800) that cause the error "Error while dumping coverage data (code 5013)" when i run code coverage with Eclemma. With Eclemma 2.3.4 (from http://download.eclipselab.org/eclemma/trunk/update) this is the stack trace:
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.DataInputStream.readByte(Unknown Source)
at org.jacoco.core.data.ExecutionDataReader.read(ExecutionDataReader.java:85)
at com.mountainminds.eclemma.internal.core.MemoryExecutionDataSource.readFrom(MemoryExecutionDataSource.java:68)
at com.mountainminds.eclemma.internal.core.launching.AgentServer.run(AgentServer.java:114)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
If i run code coverage on each package seperately, everything works fine. I also tried Eclemma 3.0.0 from the Eclipse marketplace. But i got the same error (with different line numbers in stack trace). I use the Eclipse built-in launcher. It seems that Eclemma has a problem, when it has to examine a larger number of tests.
Regards
i have several unit tests (about 800) that cause the error "Error while dumping coverage data (code 5013)" when i run code coverage with Eclemma.
this is the stack trace:
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.DataInputStream.readByte(Unknown Source)
at org.jacoco.core.data.ExecutionDataReader.read(ExecutionDataReader.java:85)
at com.mountainminds.eclemma.internal.core.MemoryExecutionDataSource.readFrom(MemoryExecutionDataSource.java:68)
at com.mountainminds.eclemma.internal.core.launching.AgentServer.run(AgentServer.java:114)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
If i run code coverage on each package seperately, everything works fine. I also tried Eclemma 3.0.0 from the Eclipse marketplace. But i got the same error (with different line numbers in stack trace). I use the Eclipse built-in launcher. It seems that Eclemma has a problem, when it has to examine a larger number of tests.
Thank you for investigating, the tests take about 30 seconds to run.
I'm on Windows 7. I don't know if there any difference from Win 7 to Win 10 in that matter.
At work we have 2 networks 1 with domain and one 1 without so less security.
I tried to switch network, deactivated my Windows firewall, restarted Eclipse Oxygen in order to have the least thing interfering but still getting the error.
Thank you for investigating, the tests take about 30 seconds to run.
I'm on Windows 7. I don't know if there any difference from Win 7 to Win 10 in that matter.
At work we have 2 networks 1 with domain and one 1 without so less security.
I tried to switch network, deactivated my Windows firewall, restarted Eclipse Oxygen in order to have the least thing interfering but still getting the error.
Hi,
what I can add here is that at a project we run > 100'000 tests with EclEmma on Windows. The tests run for about 10min. No issues like this so far.
I'm pretty sure this is related to a JVM shutdown problem like the issue Evgeny mentioned.
As a workaround you might block execution in your "last" test and request coverage data from the coverage view manually while the JVM is still running.
Regards,
-marc
--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/d476de3e-e265-448a-8cee-3899d0a52735%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
you may be right about the JDK bug.
I updated my JDK just to make sure it wasn't it, still had the problem.
I managed to get the coverage by doing either of those 2 options :
-- Pressing stop button in eclipse near the end of the run
-- Addin a Thread.sleep(100000) in one test which gets interrupted ending up with 1 failing test but allowing me to get the coverage.
so it's probably the racing condition of https://bugs.openjdk.java.net/browse/JDK-8154017 that happenned
I updated my JDK just to make sure it wasn't it, still had the problem.
Thank you very much for your time
thank you for all your investigation. I just want to inform you, that we solved the problem more or less by accident by using the OpenJDK platform instead of the Oracle JDK.