Project
IntelliJ IDEA
Priority
Major
Type
Bug
Fix versions
No Fix versions
State
Fixed
Assignee
Eugene Zhuravlev
Subsystem
No subsystem
Affected versions
No Affected versions
Fixed in build
108.65  
  • Created by   Roman Elizarov
    5 years ago (03 Oct 2006 08:01)
  • Updated by   root
    2 years ago (17 Jan 2010 20:35)
  • Jira: IDEADEV-11650
    (history, comments)
 
IDEA-34578 Code coverage does not work with debugger (Unexpected JDWP Error)
6
Issue is visible to: All Users
  The issue is visible to the selected user group only
2 Attachments
bugtest.zip   (11 KB) screenshot-1.jpg   (56 KB)
When you attempt to set break-point into a code-coverage augmented code IDEA gives the following message when the code reaches break-point:

Problem processing VM event:
Breakpoint: ...
Error: com.sun.jdi.InternalException : Unexpected JDWP Error : 35


Issue was resolved
Comments (22)
 
History
 
Linked Issues (?)
 
Eugene Vigdorchik
  Eugene Vigdorchik
03 Oct 2006 17:58
5 years ago
Do you use NotNull instrumentation?
Roman Elizarov
  Roman Elizarov
03 Oct 2006 20:06
5 years ago
I am using defaults and did not know that by default @NotNull assertion checking is turned on. So, yes, I use NotNull instrumentation, because it is ON by default.
Eugene Zhuravlev
  Eugene Zhuravlev
03 Oct 2006 20:31
5 years ago
Does turning them off help?
Antony Stubbs
  Antony Stubbs
05 Oct 2006 02:56
5 years ago
I have the same issue. Turning off NotNull assertions while keeping code coverage reporting on doesn't help.
Turning off code coverage gets rid of the issue.
Eugene Zhuravlev
  Eugene Zhuravlev
21 Oct 2006 20:54
5 years ago
This must be emma tool issue (IDEA uses it as a code coverage tool). Recently we've applied some fixes to it. The updated emma version is used in IDEA 6.0.2 (currendly EAP version is available). I was not able to reproduce the problem with it.
Please try IDEA 6.0.2 to check whether the problem still exist.
C. Benson Manica
  C. Benson Manica
06 Nov 2006 16:12
5 years ago
I've upgraded to 6.02 and I am encountering the same behavior. I can provide further details if need be.
Eugene Zhuravlev
  Eugene Zhuravlev
06 Nov 2006 16:51
5 years ago
A small project that illustrates the behaviour would be great.
C. Benson Manica
  C. Benson Manica
06 Nov 2006 18:01
5 years ago
Complete project demonstrating this problem - simply run in debug mode, enabling code coverage for CoverageClass if necessary.
C. Benson Manica
  C. Benson Manica
06 Nov 2006 18:15
5 years ago
I've also added a screenshot illustrating this bug in action. Let me know if you can't duplicate it.
Eugene Zhuravlev
  Eugene Zhuravlev
06 Nov 2006 22:21
5 years ago
Thanks a lot, repeatable. Looks like indeed emma issue (Error 35 is in fact "Invalid Slot" JDWP error). Will investigate whether it will be possible to patch it.
Gibson
  Gibson
12 Feb 2007 19:14
5 years ago
I have this error even when I don't have code coverage enabled, is it a known issue?
Eugene Zhuravlev
  Eugene Zhuravlev
12 Feb 2007 21:59
5 years ago
This may also occur when you have @NotNull assertions generation turned on.
Dave Cherry
  Dave Cherry
01 Mar 2007 16:09
4 years ago
I am using version 6.0.4 and having the same issue. The only way to stop it is to turn off code coverage. Will this be fixed in a future 6.0 version patch?
Colin Fleming
  Colin Fleming
11 Apr 2007 00:43
4 years ago
I'm still seeing this in 6.0.5.
Eugene Zhuravlev
  Eugene Zhuravlev
11 Apr 2007 16:57
4 years ago
The problem has been fixed completely for @NotNull compiler.
As for the code coverage, we had to disable the feature if coverage-enabled configuration is launched by debugger. The problem is that Emma coverage tool used by IDEA leaves "LocalVariableTable" attribute unchanged for instrumented methods. Thus the essential part of debug information gets screwed up, so that debugger simply does not get on well with the instrumented code.
Colin Fleming
  Colin Fleming
11 Apr 2007 17:21
4 years ago
Will this fix make it into a v6 point release?
Eugene Zhuravlev
  Eugene Zhuravlev
11 Apr 2007 18:00
4 years ago
yep, I'll backport the changes, though can't give you an estimate now when 6.0.6 is going to be available.
Gibson
  Gibson
30 Jul 2007 15:15
4 years ago
It looks like this is fixed in build 6189 (6.0.6 RC2), Eugene can you confirm that it has been back-ported, and maybe set the correct "Fix Version" flag so that it shows up in the 6.0.6 release notes?
Eugene Zhuravlev
  Eugene Zhuravlev
30 Jul 2007 15:30
4 years ago
Yes, I indeed backported this one recently :-)
Gibson
  Gibson
30 Jul 2007 21:34
4 years ago
Thanks!
Eugene Zhuravlev
  Eugene Zhuravlev
30 Jul 2007 22:22
4 years ago
Note, however, my comment above:
"As for the code coverage, we had to disable the feature if coverage-enabled configuration is launched by debugger"
Vitali
  Vitali
15 Oct 2007 14:37
4 years ago
I have IDEA 6.0.6 and bug is still reproduced :(

I've tried to check/uncheck "Add @NotNull assertions" but it doesn't help. More information is in the Declined Issue
http://www.jetbrains.net/jira/browse/IDEA-10670