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 180564 - NullPointerException at org.netbeans.lib.profiler.results.memory.PresoObjAllocCCTNode.setFullClassAndMethodInfo
Summary: NullPointerException at org.netbeans.lib.profiler.results.memory.PresoObjAllo...
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: issues@profiler
URL:
Keywords:
: 187537 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-02-10 09:08 UTC by scanti
Modified: 2013-10-16 07:15 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 165106


Attachments
stacktrace (3.50 KB, text/plain)
2010-02-10 09:08 UTC, scanti
Details
stacktrace (3.50 KB, text/plain)
2010-04-13 13:55 UTC, Oleg Khokhlov
Details
stacktrace (3.50 KB, text/plain)
2010-05-15 09:13 UTC, Exceptions Reporter
Details
stacktrace (3.49 KB, text/plain)
2010-07-20 10:24 UTC, Alexandr Scherbatiy
Details
stacktrace (3.52 KB, text/plain)
2010-07-20 12:30 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description scanti 2010-02-10 09:08:06 UTC
Build: NetBeans IDE 6.8 (Build 200912041610)
VM: Java HotSpot(TM) 64-Bit Server VM, 16.0-b13, Java(TM) SE Runtime Environment, 1.6.0_18-b07
OS: Linux

User Comments:
scanti: viewing stack strace of a memory profile




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.lib.profiler.results.memory.PresoObjAllocCCTNode.setFullClassAndMethodInfo(PresoObjAllocCCTNode.java:262)
   at org.netbeans.lib.profiler.results.memory.PresoObjAllocCCTNode.setFullClassAndMethodInfo(PresoObjAllocCCTNode.java:281)
   at org.netbeans.lib.profiler.results.memory.PresoObjAllocCCTNode.assignNamesToNodesFromSnapshot(PresoObjAllocCCTNode.java:214)
   at org.netbeans.lib.profiler.results.memory.PresoObjLivenessCCTNode.createPresentationCCTFromSnapshot(PresoObjLivenessCCTNode.java:95)
   at org.netbeans.lib.profiler.results.memory.LivenessMemoryResultsSnapshot.createPresentationCCT(LivenessMemoryResultsSnapshot.java:339)
   at org.netbeans.lib.profiler.results.memory.MemoryResultsSnapshot.createPresentationCCT(MemoryResultsSnapshot.java:200)
Comment 1 scanti 2010-02-10 09:08:11 UTC
Created attachment 94049 [details]
stacktrace
Comment 2 Oleg Khokhlov 2010-04-13 13:55:39 UTC
Created attachment 97201 [details]
stacktrace

show allocation stack traces from profiler memory snapshot
Comment 3 Tomas Hurka 2010-05-07 14:42:09 UTC
Can you, please, provide steps how to reproduce it? Thanks.
Comment 4 Oleg Khokhlov 2010-05-14 15:30:13 UTC
- create Anagram sample project;
- start memory profiling (Record both object ... + Record stack trace ...);
- stop profiling and go to snapshot;
- right click on com.toy.anagrams.ui.Anagrams and Show Allocation stack traces;
->NPE 

http://statistics.netbeans.org/exceptions/exception.do?id=387304
Comment 5 Exceptions Reporter 2010-05-15 09:13:42 UTC
Created attachment 99039 [details]
stacktrace

Applikation im Profiler (memory) gestartet
Applikation ist normal beendet worden 
Erstellung eines Speicherprofil
Erstellung des Aufrufstapel
=> Absturz
Comment 6 Tomas Hurka 2010-05-16 08:31:00 UTC
I am sorry, but the steps are still not clear to me. What do you mean by 
> - stop profiling and go to snapshot

Does it mean to quit Anagram sample via 'File -> Exit' in Anagram and than take the snapshot in 'Application Finished' dialog displayed by profiler or
take snapshot first and that invoke 'Profiler -> Stop profiling session'?
I tried the first variant and I was not able to reproduce it. :-(
Comment 7 Tomas Hurka 2010-06-14 12:40:01 UTC
*** Bug 187537 has been marked as a duplicate of this bug. ***
Comment 8 scanti 2010-06-14 13:15:28 UTC
I do a memory profile
I do a right click on the byte[] node 
I chose show Allocation stack trace
I got NPE

I cannot save the results either
Comment 9 Tomas Hurka 2010-06-14 13:34:32 UTC
This works for me. Can you be more specific about (In reply to comment #8)
> I do a memory profile
> I do a right click on the byte[] node 
> I chose show Allocation stack trace
> I got NPE
> 
> I cannot save the results either

This works for me. Can you be more specific? Can you provide sample application, which can be used to reproduce it?
Comment 10 scanti 2010-06-14 14:41:38 UTC
It happens always
this is my netbeans.conf

# ${HOME} will be replaced by JVM user.home system property
netbeans_default_userdir="${HOME}/.netbeans/6.8"

# Options used by NetBeans launcher by default, can be overridden by explicit
# command line switches:
netbeans_default_options="-J-client -J-Xverify:none -J-Xss2m -J-Xms32m -J-XX:PermSize=48m -J-XX:MaxPermSize=3000m -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true -Xmx1g --laf javax.swing.plaf.metal.MetalTheme -J-Xmx1024m -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSClassUnloadingEnabled"
# Note that a default -Xmx is selected for you automatically.
# You can find this value in var/log/messages.log file in your userdir.
# The automatically selected value can be overridden by specifying -J-Xmx here
# or on the command line.

# If you specify the heap size (-Xmx) explicitely, you may also want to enable
# Concurrent Mark & Sweep garbage collector. In such case add the following
# options to the netbeans_default_options:
# -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled
# (see http://wiki.netbeans.org/wiki/view/FaqGCPauses)

# Default location of JDK, can be overridden by using --jdkhome <dir>:
netbeans_jdkhome="/usr/java/latest"

# Additional module clusters, using ${path.separator} (';' on Windows or ':' on Unix):
#netbeans_extraclusters="/absolute/path/to/cluster1:/absolute/path/to/cluster2"

# If you have some problems with detect of proxy settings, you may want to enable
# detect the proxy settings provided by JDK5 or higher.
# In such case add -J-Djava.net.useSystemProxies=true to the netbeans_default_options.
Comment 11 Oleg Khokhlov 2010-06-15 12:13:38 UTC
maybe it's jdk-specific
For me it's not reproducible on jdk 1.6.0_16 but reproducible on 1.6.0_18
Comment 12 scanti 2010-06-15 21:37:30 UTC
I switched back from 1.6.0_20 to 1.6.0_16 and the problem disappeared
Comment 13 Tomas Hurka 2010-06-16 07:20:52 UTC
Maybe it is somehow related to issue #183107.
Comment 14 Alexandr Scherbatiy 2010-07-20 10:24:49 UTC
Created attachment 100927 [details]
stacktrace
Comment 15 Exceptions Reporter 2010-07-20 10:25:02 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=165106
Comment 16 Alexandr Scherbatiy 2010-07-20 12:30:50 UTC
Created attachment 100932 [details]
stacktrace
Comment 17 Tomas Hurka 2010-10-29 15:10:01 UTC
This looks like duplicate of issue #183107. Reopen if you are able to reproduce it with JDK 1.6.0_21.