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.

Bug 168116 - StackOverflowError at org.netbeans.lib.profiler.results.cpu.CPUCCTContainer.addChild
Summary: StackOverflowError at org.netbeans.lib.profiler.results.cpu.CPUCCTContainer.a...
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Hurka
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-04 10:16 UTC by synchro
Modified: 2010-08-25 03:20 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 153331


Attachments
stacktrace (100.09 KB, text/plain)
2009-07-04 10:17 UTC, synchro
Details
messages.log - lots of 'too much time' and out of memory errors (68.34 KB, text/plain)
2009-07-07 09:50 UTC, synchro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description synchro 2009-07-04 10:16:24 UTC
This issue was originally marked as duplicate of issue 161853, that is already resolved. This issue is still valid, so this seems to be another issue, but it might be related.

Build: NetBeans IDE Dev (Build 200907040200)
VM: Java HotSpot(TM) Client VM, 1.5.0_19-137, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_19-b02-304
OS: Mac OS X, 10.5.7, i386

User Comments:
synchro: Trying to edit text



Stacktrace: 
java.lang.StackOverflowError
        at org.netbeans.lib.profiler.results.cpu.cct.nodes.TimedCPUCCTNode.<init>(TimedCPUCCTNode.java:186)
        at org.netbeans.lib.profiler.results.cpu.cct.nodes.MethodCPUCCTNode.<init>(MethodCPUCCTNode.java:95)
        at org.netbeans.lib.profiler.results.cpu.cct.CPUCCTNodeFactory.createMethodNode(CPUCCTNodeFactory.java:73)
        at org.netbeans.lib.profiler.results.cpu.cct.nodes.MethodCPUCCTNode.createSelfInstance(MethodCPUCCTNode.java:116)
        at org.netbeans.lib.profiler.results.cpu.cct.nodes.TimedCPUCCTNode.clone(TimedCPUCCTNode.java:315)
        at org.netbeans.lib.profiler.results.cpu.CPUCCTContainer.addChild(CPUCCTContainer.java:604)
Comment 1 synchro 2009-07-04 10:17:02 UTC
Created attachment 84355 [details]
stacktrace
Comment 2 Tomas Hurka 2009-07-07 07:53:23 UTC
Can you please provide steps how to reproduce it. If would be also great if you can attach message.log file. Thanks.
Comment 3 synchro 2009-07-07 09:48:44 UTC
Well, it's easy for me to reproduce - launch IDE, type something and it usually (but not always) grinds to a halt within a few seconds, after ~10 minutes it 
displays an error of one kind or another, then the process repeats.
I've been having real trouble with recent builds, and they seem to be getting worse, to the point where the IDE is no longer usable at all. Any time I try to edit 
(or even select) text, the whole IDE hangs up for a long time, usually resulting in one of these errors. I have installed the java profiler to try and grab this, but 
it's very hard to get a meaningful grab with it (as the whole IDE is unresponsive, I can't click the profiler button). Sometimes I see the "system slowness 
detected" notification, but when I click the link for the profiler report it complains it's not a valid profiler report. It's unlikely that it's a real system resource 
shortage - I have 8 CPUs and 10Gb RAM! The memory display in the IDE doesn't look like it's leaking - it's been sitting at about 400Mb for the last few days.
messages.log to follow.
Comment 4 synchro 2009-07-07 09:50:35 UTC
Created attachment 84431 [details]
messages.log - lots of 'too much time' and out of memory errors
Comment 5 matusdekanek 2009-09-18 12:56:13 UTC
removing incomplete keyword (requested information was provided)
If it has something to do with the profiler, but the user actually did not profile anything, I would guess that it has 
to do something with the slowness reporter/self profiler - and specifically on the mac. Or there might be problem with 
thread synchronization (8 CPUs).
Comment 6 Exceptions Reporter 2009-11-20 19:12:07 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=153331
Comment 7 Tomas Hurka 2010-08-21 14:50:50 UTC
It should be fixed in profiler-main.

changeset:   175977:cdfdfaf13834
Comment 8 Quality Engineering 2010-08-25 03:20:41 UTC
Integrated into 'main-golden', will be available in build *201008250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/cdfdfaf13834
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #168116 and #168324, do not use local variables to increase number of recursive calls in generateMirrorNode() and addChild()