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.
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)
Created attachment 38399 [details] Snapshot 1
Created attachment 38400 [details] Snapshot 2
Created attachment 38401 [details] Exception
Fixed for M7.
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.
Created attachment 38562 [details] Snapshot A
Created attachment 38564 [details] Snapshot B
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.
Created attachment 38565 [details] Snapshot A (correct one)
Created attachment 38566 [details] Snapshot B (correct one)
Created attachment 38567 [details] Exception
Created attachment 38568 [details] One more exception
Created attachment 38569 [details] Another exception
Hopefuly correctly fixed. The problem was also present for Liveness diffs, please verify also for that snapshots. Fixed for M7.
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