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.
Build: NetBeans IDE Dev (Build 20140218-327ae9d967a5) VM: Java HotSpot(TM) Client VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18 OS: SunOS User Comments: alexvsimon: IDE debugger cannot work with StackOverflowError exeption due to ErrStackOverflowError in debugger ;-) Stacktrace: java.lang.StackOverflowError at com.sun.tools.jdi.ReferenceTypeImpl.methods(ReferenceTypeImpl.java:454) at com.sun.tools.jdi.InterfaceTypeImpl.addVisibleMethods(InterfaceTypeImpl.java:94) at com.sun.tools.jdi.ClassTypeImpl.addVisibleMethods(ClassTypeImpl.java:395) at com.sun.tools.jdi.ClassTypeImpl.addVisibleMethods(ClassTypeImpl.java:400) at com.sun.tools.jdi.ClassTypeImpl.addVisibleMethods(ClassTypeImpl.java:400) at com.sun.tools.jdi.ClassTypeImpl.addVisibleMethods(ClassTypeImpl.java:400)
Created attachment 145359 [details] stacktrace
My steps were: - set exception "java.lang.StackOverflowError" breakpoint. - start application which has an infinite recursion. - IDE stops on java.lang.StackOverflowError Result: - some IDE views hung: debugging view, variables view - cannot stop debugging
P2 because IDE cannot debug StackOverflowError
*** Bug 242192 has been marked as a duplicate of this bug. ***
Created attachment 145469 [details] stacktrace cannot debug
Fixed by changeset: 272594:0f9031d1f5ae http://hg.netbeans.org/core-main/rev/0f9031d1f5ae
Worth to fix into 8.0, IMHO.
> Worth to fix into 8.0, IMHO. I agree. The commit looks fine to me.
The behavior is better with the fix than without it. IDE is usable. Debugging session is finishable. However, both "Variables" and "Debugging" views refresh themselves after 1/2 a minute with the example below. I approve the fix for integration into the release80 branch though. Thanks! public static void main(String[] args) { new JavaApplication().start(0); } private void start(int i) { if (i < 0) return; start(i + 1); }
Verified in NetBeans IDE Dev (Build Trunk-Build-792-on-20140224).
Thanks for the review and verification, the fix is pushed into release80 branch: changeset: 281372:c209f8ad6136 http://hg.netbeans.org/releases/rev/c209f8ad6136
Integrated into 'releases/release80', will be available in build *201402242200* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/c209f8ad6136 User: mentlicher@netbeans.org Log: #242054: Prevent from looping when invocation exception is thrown from methods on an exception. Also, handle frequent refreshes of debugging view (that happen on long stack traces) more efficiently. (transplanted from 0f9031d1f5aee0fc579d6a56624b5eacde1f23b1)
Integrated into 'main-silver', will be available in build *201402260001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/0f9031d1f5ae User: mentlicher@netbeans.org Log: #242054: Prevent from looping when invocation exception is thrown from methods on an exception. Also, handle frequent refreshes of debugging view (that happen on long stack traces) more efficiently.