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 95329 - ArrayIndexOutOfBoundsException from Alloc memory snapshots comparision
Summary: ArrayIndexOutOfBoundsException from Alloc memory snapshots comparision
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Jiri Sedlacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-12 23:18 UTC by Alexander Kouznetsov
Modified: 2007-02-26 11:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Snapshot 1 (18.42 KB, application/octet-stream)
2007-02-12 23:19 UTC, Alexander Kouznetsov
Details
Snapshot 2 (9.51 KB, application/octet-stream)
2007-02-12 23:19 UTC, Alexander Kouznetsov
Details
Exception (2.32 KB, text/plain)
2007-02-12 23:20 UTC, Alexander Kouznetsov
Details
Snapshot A (18.42 KB, application/octet-stream)
2007-02-15 17:28 UTC, Alexander Kouznetsov
Details
Snapshot B (9.51 KB, application/octet-stream)
2007-02-15 17:28 UTC, Alexander Kouznetsov
Details
Snapshot A (correct one) (51.10 KB, application/octet-stream)
2007-02-15 17:33 UTC, Alexander Kouznetsov
Details
Snapshot B (correct one) (51.10 KB, application/octet-stream)
2007-02-15 17:33 UTC, Alexander Kouznetsov
Details
Exception (2.29 KB, text/plain)
2007-02-15 17:33 UTC, Alexander Kouznetsov
Details
One more exception (2.38 KB, text/plain)
2007-02-15 17:36 UTC, Alexander Kouznetsov
Details
Another exception (2.29 KB, text/plain)
2007-02-15 17:47 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-02-12 23:18:37 UTC
Profiler 070212

Steps to reproduce:
- Try to compare attached memory snapshots.
- RESULT:

java.lang.ArrayIndexOutOfBoundsException: 1975
	at
com.sun.tools.profiler.results.memory.AllocMemoryResultsDiff.computeDiff(AllocMemoryResultsDiff.java:55)
	at
com.sun.tools.profiler.results.memory.AllocMemoryResultsDiff.<init>(AllocMemoryResultsDiff.java:34)
Comment 1 Alexander Kouznetsov 2007-02-12 23:19:19 UTC
Created attachment 38399 [details]
Snapshot 1
Comment 2 Alexander Kouznetsov 2007-02-12 23:19:50 UTC
Created attachment 38400 [details]
Snapshot 2
Comment 3 Alexander Kouznetsov 2007-02-12 23:20:23 UTC
Created attachment 38401 [details]
Exception
Comment 4 Jiri Sedlacek 2007-02-13 07:55:42 UTC
Fixed for M7.
Comment 5 Alexander Kouznetsov 2007-02-15 17:26:11 UTC
Profiler 070215
NetBeans IDE Dev (Build 200702141900)
1.5.0_11; Java HotSpot(TM) Server VM 1.5.0_11-b03
SunOS version 5.10 running on x86
en (nb); ISO646-US

Reproduced again but with different snapshots (attached). Reopening.
Comment 6 Alexander Kouznetsov 2007-02-15 17:28:01 UTC
Created attachment 38562 [details]
Snapshot A
Comment 7 Alexander Kouznetsov 2007-02-15 17:28:35 UTC
Created attachment 38564 [details]
Snapshot B
Comment 8 Alexander Kouznetsov 2007-02-15 17:30:05 UTC
It looks like there is a problem with snapshots that were saved to projects.
When both snapshots are loaded from disk it seems that all is okay. If user
tries to compare snapshot with the one stored to project - Exception is thrown.
Comment 9 Alexander Kouznetsov 2007-02-15 17:33:10 UTC
Created attachment 38565 [details]
Snapshot A (correct one)
Comment 10 Alexander Kouznetsov 2007-02-15 17:33:29 UTC
Created attachment 38566 [details]
Snapshot B (correct one)
Comment 11 Alexander Kouznetsov 2007-02-15 17:33:52 UTC
Created attachment 38567 [details]
Exception
Comment 12 Alexander Kouznetsov 2007-02-15 17:36:04 UTC
Created attachment 38568 [details]
One more exception
Comment 13 Alexander Kouznetsov 2007-02-15 17:47:32 UTC
Created attachment 38569 [details]
Another exception
Comment 14 Jiri Sedlacek 2007-02-16 14:28:42 UTC
Hopefuly correctly fixed. The problem was also present for Liveness diffs, 
please verify also for that snapshots.

Fixed for M7.
Comment 15 Alexander Kouznetsov 2007-02-26 11:50:28 UTC
Seems to be fixed. Verified with both memory allocation and liveliness snapshots.

Profiler 070226
NetBeans IDE Dev (Build 200702251900)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Windows XP version 5.1 running on x86
ru_RU (nb); Cp1251