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 240084 - NPE in CPUCallGraphBuilder
Summary: NPE in CPUCallGraphBuilder
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Engine (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-07 14:42 UTC by Jiri Sedlacek
Modified: 2015-03-20 03:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Sedlacek 2014-01-07 14:42:17 UTC
Steps (the same as for Bug 240063, might be related)

  1/ Win7 64b, 7u45 64b, Anagram Game
  2/ Custom CPU, advanced, all advanced settings selected
  3/ Start profiling, NPE shows immediately after displaying Locks window

In the corresponding bugdb, these exceptions are thrown:

  java.lang.NullPointerException at org.netbeans.lib.profiler.results.cpu.CPUCallGraphBuilder.markerMethodEntry (CPUCallGraphBuilder.java:1143)
  java.lang.NullPointerException at org.netbeans.lib.profiler.results.cpu.CPUCallGraphBuilder.plainMethodEntry (CPUCallGraphBuilder.java:1222)

See the bugdb for more details.
Comment 1 Jiri Sedlacek 2015-03-17 13:44:54 UTC
Another bugdb report, happens also for Methods/Sampling.
Comment 2 Tomas Hurka 2015-03-18 17:17:26 UTC
The case with CPU instrumentation is fixed in profiler-main

changeset:   284910:5de10ecc73a9
user:        Tomas Hurka <thurka@netbeans.org>
date:        Wed Mar 18 18:13:57 2015 +0100
summary:     bugfix #240084, initialize hasMonitorInfo using isLockContentionMonitoringEnabled() - NEW_MONITOR event can arrive after METHOD_ENTRY_MONITOR (due to thread-local data buffers) and in such case hasMonitorInfo is set incorrectly when METHOD_ENTRY_MONITOR is processed

Sampling case is different issue.
Comment 3 Quality Engineering 2015-03-20 03:25:55 UTC
Integrated into 'main-silver', will be available in build *201503200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/5de10ecc73a9
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #240084, initialize hasMonitorInfo using isLockContentionMonitoringEnabled() - NEW_MONITOR event can arrive after METHOD_ENTRY_MONITOR (due to thread-local data buffers) and in such case hasMonitorInfo is set incorrectly when METHOD_ENTRY_MONITOR is processed