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 256203 - NullPointerException at org.netbeans.lib.profiler.results.cpu.CPUCCTContainer.addFlatProfTimeForNode
Summary: NullPointerException at org.netbeans.lib.profiler.results.cpu.CPUCCTContainer...
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Engine (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Jiri Sedlacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-27 13:44 UTC by Jiri Skrivanek
Modified: 2016-08-22 08:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 220799


Attachments
stacktrace (2.12 KB, text/plain)
2015-10-27 13:44 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2015-10-27 13:44:52 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.65-b01, Java(TM) SE Runtime Environment, 1.8.0_65-b17
OS: Windows 8.1

User Comments:
jskrivanek: Profiling AnagramGame project.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.lib.profiler.results.cpu.CPUCCTContainer.addFlatProfTimeForNode(CPUCCTContainer.java:424)
   at org.netbeans.lib.profiler.results.cpu.AllThreadsMergedCPUCCTContainer.generateFlatProfile(AllThreadsMergedCPUCCTContainer.java:122)
   at org.netbeans.lib.profiler.results.cpu.CPUCCTContainer.getFlatProfile(CPUCCTContainer.java:218)
   at org.netbeans.lib.profiler.results.cpu.CPUResultsSnapshot.getFlatProfile(CPUResultsSnapshot.java:235)
   at org.netbeans.lib.profiler.results.cpu.CPUResultsSnapshot.getFlatProfile(CPUResultsSnapshot.java:240)
   at org.netbeans.lib.profiler.ui.cpu.LiveCPUView.setData(LiveCPUView.java:214)
Comment 1 Jiri Skrivanek 2015-10-27 13:44:53 UTC
Created attachment 157001 [details]
stacktrace
Comment 2 Tomas Hurka 2016-08-12 13:24:54 UTC
CPUResultsSnapshot.getFlatProfile() is invoked from AWT.
It looks like CPUResultsSnapshot.getFlatProfile() is invoked from two different threads.
Why MethodsFeatureUI.resetData() invokes CPUResultsSnapshot.getFlatProfile()?
Comment 3 Jiri Sedlacek 2016-08-16 15:22:38 UTC
Fixed by http://hg.netbeans.org/profiler-main/rev/a108e1e2a747.
Comment 4 Quality Engineering 2016-08-20 02:16:10 UTC
Integrated into 'main-silver', will be available in build *201608200002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/a108e1e2a747
User: Jiri Sedlacek <jis@netbeans.org>
Log: Bugfix #256203 - fixed synchronization in CPU results, load moved off the EDT