This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
[ JDK VERSION : 1.5.0_03 ] This could be a duplicate of 59125 I have only hit this so far however when doing a watch variable so I'll file it also. I added a watch on a local variable of type string. criteria.substring(2); When stepping through this variable, it takes several seconds to evaluate then it does evaluate correctly, but then throws an InvalidStackFrameException. I did not receieve the error when creating the watch initially. I seems to occur as you step through and the variable comes into scope. com.sun.jdi.InvalidStackFrameException: Thread has been resumed at com.sun.tools.jdi.StackFrameImpl.validateStackFrame(StackFrameImpl.java:61) at com.sun.tools.jdi.StackFrameImpl.location(StackFrameImpl.java:70) at org.netbeans.modules.debugger.jpda.SourcePath.getURL(SourcePath.java:101) at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.evaluateIn(JPDADebuggerImpl.java:511) at org.netbeans.modules.debugger.jpda.breakpoints.BreakpointImpl.evaluateConditionIn(BreakpointImpl.java:303) at org.netbeans.modules.debugger.jpda.breakpoints.BreakpointImpl.evaluateCondition(BreakpointImpl.java:224) at org.netbeans.modules.debugger.jpda.breakpoints.BreakpointImpl.perform(BreakpointImpl.java:197) at org.netbeans.modules.debugger.jpda.breakpoints.LineBreakpointImpl.exec(LineBreakpointImpl.java:145) at org.netbeans.modules.debugger.jpda.util.Operator$1.run(Operator.java:142) [catch] at java.lang.Thread.run(Thread.java:595)
Is this reproducible? Can you provide a test-case? Thanks!
This is an insufficient synchronization IMHO. The debugger.LOCK needs to be acquired as soon as we get the StackFrame instance so that the debugger can not be resumed before the evaluation starts.
Changing summary, the problem is not in watches, but in conditional breakpoints.
Hopefully fixed: /cvs/debuggerjpda/src/org/netbeans/modules/debugger/jpda/breakpoints/BreakpointImpl.java,v <-- BreakpointImpl.java new revision: 1.22; previous revision: 1.21
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.