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 109423 - AIOOBE on obtaining Memory Snapshot after Test finished
Summary: AIOOBE on obtaining Memory Snapshot after Test finished
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: PC Solaris
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2007-07-11 20:52 UTC by Alexander Kouznetsov
Modified: 2013-10-16 07:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception (985 bytes, text/plain)
2007-07-11 20:52 UTC, Alexander Kouznetsov
Details
Exception (1.19 KB, text/plain)
2007-07-12 14:28 UTC, Alexander Kouznetsov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kouznetsov 2007-07-11 20:52:02 UTC
Profiler 1.2 070710
Product Version: NetBeans IDE Dev (Build 200707110000) 
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05 
System: SunOS version 5.10 running on x86; ISO646-US; en (nb)

Unfortunately, I was not able to reproduce this issue after I restarted IDE, but I run into the situation when each time
after I performed Memory Liveness Profiling for AnagramGame Test I got the following exception and snapshot was not
opened. The same time profiling and test states were shown as Running. The exception was thrown right after I confirmed
"Profiled Application finished. Would you like to obtain snapshot" dialog.

Exception in thread "Thread-52" java.lang.ArrayIndexOutOfBoundsException: 1431
        at com.sun.tools.profiler.results.memory.MemoryCCTProvider$ObjectNumbersContainer.<init>(MemoryCCTProvider.java:87)
        at
com.sun.tools.profiler.results.memory.MemoryCallGraphBuilder.getLivenessObjectNumbers(MemoryCallGraphBuilder.java:203)
        ...
Comment 1 Alexander Kouznetsov 2007-07-11 20:52:22 UTC
Created attachment 44979 [details]
Exception
Comment 2 Alexander Kouznetsov 2007-07-11 20:53:17 UTC
P4 until it is reproduced again.
Comment 3 Alexander Kouznetsov 2007-07-12 14:27:52 UTC
Reproduced with the following steps:
- Started Analyze Memory Liveness: track each 1 object, record allocation stack traces for Web Application
- Opened Live Results as soon as button got enabled
- RESULT: Exception is thrown:
java.lang.ArrayIndexOutOfBoundsException: 1288
        at com.sun.tools.profiler.results.memory.MemoryCCTProvider$ObjectNumbersContainer.<init>(MemoryCCTProvider.java:87)
        ...
Comment 4 Alexander Kouznetsov 2007-07-12 14:28:29 UTC
Created attachment 45013 [details]
Exception
Comment 5 Alexander Kouznetsov 2007-08-22 13:02:16 UTC
Reproduced again on Solaris SPARC, Live Results were opened when I started new profiling session and got this AIOOBE.
Comment 6 Alexander Kouznetsov 2007-08-22 13:07:18 UTC
Live Results window is empty once this exception was thrown. User needs to restart or modify profiling session to obtain
Live Results.
Comment 7 Alexander Kouznetsov 2007-08-22 13:56:21 UTC
This issue is highly reproducible with
Product Version: NetBeans IDE Dev (Build 200708150158) 
Java: 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06 
System: SunOS version 5.10 running on sparc; ISO8859-1; en_US (nb)
Comment 8 Alexander Kouznetsov 2007-08-22 17:36:19 UTC
It seems that the most reproducible scenario is on the second run of Liveness Memory Profiling when Live results window
is already opened.
Comment 9 J Bachorik 2007-09-07 11:46:33 UTC
this had the same root cause as the issue #114751
it is fixed in trunk now