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 146992 - EmptyStackException
Summary: EmptyStackException
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: J Bachorik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-11 19:47 UTC by Jiri Sedlacek
Modified: 2009-01-13 15:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Full exception (14.40 KB, text/plain)
2008-09-11 19:48 UTC, Jiri Sedlacek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Sedlacek 2008-09-11 19:47:27 UTC
Product Version: NetBeans IDE Dev (Build 080911)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b15
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)

I've got this exception several times. Profiling performance of Java2Demo application with default settings, having Live
Results window opened and just changing the selection using keyboard (holding up/down arrow) when DrillDown window is
not open.

java.util.EmptyStackException
	at java.util.Stack.peek(Stack.java:85)
	at java.util.Stack.pop(Stack.java:67)
	at
org.netbeans.modules.profiler.ui.stats.ForwardCategoryDistributionPanel$Model.visitPost(ForwardCategoryDistributionPanel.java:220)
	at org.netbeans.lib.profiler.results.cpu.cct.CompositeCPUCCTWalker.visit(CompositeCPUCCTWalker.java:181)
	at org.netbeans.lib.profiler.results.cpu.cct.nodes.MarkedCPUCCTNode.accept(MarkedCPUCCTNode.java:113)
	at org.netbeans.lib.profiler.results.cpu.cct.nodes.BaseCPUCCTNode$ArrayChildren.accept(BaseCPUCCTNode.java:71)
	at org.netbeans.lib.profiler.results.cpu.cct.CPUCCTWalker.walkTree(CPUCCTWalker.java:91)
	at org.netbeans.lib.profiler.results.cpu.cct.CPUCCTWalker.visit(CPUCCTWalker.java:62)
	at org.netbeans.lib.profiler.results.cpu.cct.CompositeCPUCCTWalker.visit(CompositeCPUCCTWalker.java:94)
	at org.netbeans.lib.profiler.results.cpu.cct.nodes.MethodCPUCCTNode.accept(MethodCPUCCTNode.java:110)
Comment 1 Jiri Sedlacek 2008-09-11 19:48:12 UTC
Created attachment 69682 [details]
Full exception
Comment 2 J Bachorik 2008-09-12 09:55:34 UTC
This was caused by the lack of synchronization on the method performing the update of aggregated data per selected
method. If the selected method was changed in the middle of the running calculation it caused the mentioned exception to
happen.

Fixed

http://hg.netbeans.org/profiler-main/rev/cfdcbfe07e25
Comment 3 Quality Engineering 2008-09-15 17:35:58 UTC
Integrated into 'main-golden', will be available in build *200809151401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/cfdcbfe07e25
User: Jaroslav Bachorik <yardus@netbeans.org>
Log: #146992 - tightening up synchronization in part of drilldown panel
Comment 4 mariadavydova 2009-01-13 15:53:15 UTC
verified in Build 200812170242