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 116672 - AIOOBE on opening stored snapshot
Summary: AIOOBE on opening stored snapshot
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: J Bachorik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-25 13:42 UTC by Alexander Kouznetsov
Modified: 2007-10-31 18:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception (3.21 KB, text/plain)
2007-09-25 13:42 UTC, Alexander Kouznetsov
Details
Snapshot (2.13 KB, application/octet-stream)
2007-09-25 13:43 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-09-25 13:42:13 UTC
Product Version: NetBeans IDE Dev (Build 200709200000) 
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b06 
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)

Performed steps according to description of issue 107486, generated 6 hits.
Opened report and tried to click through all the snapshots
RESULT: Got AIOOBE for some of the snapshots:
java.lang.ArrayIndexOutOfBoundsException: 0
	at com.sun.tools.profiler.ui.memory.MemoryResultsPanel.sortResultsByClassName(MemoryResultsPanel.java:526)
	at com.sun.tools.profiler.ui.memory.LivenessResultsPanel.getResultsSortedByClassName(LivenessResultsPanel.java:445)
        ...
Comment 1 Alexander Kouznetsov 2007-09-25 13:42:47 UTC
Created attachment 49455 [details]
Exception
Comment 2 Alexander Kouznetsov 2007-09-25 13:43:23 UTC
Created attachment 49456 [details]
Snapshot
Comment 3 Alexander Kouznetsov 2007-09-25 13:44:39 UTC
The same result when snapshot is opened from Saved Snapshots list.
Comment 4 J Bachorik 2007-09-26 10:33:23 UTC
the main reason is that a completely empty snapshot was taken - the fix should correct the way such a snapshot is
handled and also prevent the triggered PP to generate a completely empty snapshot
Comment 5 J Bachorik 2007-10-01 12:30:16 UTC
there were also additional problems with inconsistency between the number of instrumented classes and the number of
class names stored in the snapshot
this is resolved, hopefully, by improving thread safety while taking snapshot
Comment 6 Alexander Kouznetsov 2007-10-31 18:50:40 UTC
Filed another issue 120696 about the unavailability of data for Triggered PP Snapshot. 

Verified this issue with
Product Version: NetBeans IDE Dev (Build 200710301200)
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b06
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)