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 245065 - ArrayIndexOutOfBoundsException: -2
Summary: ArrayIndexOutOfBoundsException: -2
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Engine (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords: VISUALVM
Depends on:
Blocks:
 
Reported: 2014-06-15 09:08 UTC by Exceptions Reporter
Modified: 2014-07-11 08:57 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 210277


Attachments
stacktrace (1.06 KB, text/plain)
2014-06-15 09:08 UTC, Exceptions Reporter
Details
Heap dump to reproduce the issue (2.58 MB, application/zip)
2014-06-15 09:10 UTC, Tomas Hurka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2014-06-15 09:08:07 UTC
This issue was reported manually by thurka.
It already has 1 duplicates 


Build: NetBeans IDE Dev (Build 20140519-2ae4914fdb8c)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.60-b09, Java(TM) SE Runtime Environment, 1.7.0_60-b19
OS: Mac OS X

User Comments:
GUEST: special heap dump




Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: -2
   at org.netbeans.lib.profiler.heap.HprofLongMappedByteBuffer.get(HprofLongMappedByteBuffer.java:115)
   at org.netbeans.lib.profiler.heap.HprofHeap.readDumpTag(HprofHeap.java:667)
   at org.netbeans.lib.profiler.heap.HprofHeap.fillHeapTagBounds(HprofHeap.java:1013)
   at org.netbeans.lib.profiler.heap.HprofHeap.<init>(HprofHeap.java:137)
   at org.netbeans.lib.profiler.heap.HeapFactory.createHeap(HeapFactory.java:87)
   at org.netbeans.lib.profiler.heap.HeapFactory.createHeap(HeapFactory.java:69)
Comment 1 Exceptions Reporter 2014-06-15 09:08:09 UTC
Created attachment 147682 [details]
stacktrace
Comment 2 Tomas Hurka 2014-06-15 09:10:54 UTC
Created attachment 147683 [details]
Heap dump to reproduce the issue

Open attached heap dump to reproduce this issue.
Comment 3 Tomas Hurka 2014-06-15 09:12:07 UTC
This exception is caused by extraordinary long int[] array. Its length is 550 millions and its size exceeds Integer.MAX_VALUE.
Comment 4 Tomas Hurka 2014-06-17 14:28:08 UTC
Fixed in profiler-main
changeset:   274427:32b67262c923
user:        Tomas Hurka <thurka@netbeans.org>
date:        Tue Jun 17 16:24:07 2014 +0200
summary:     bugfix #245065, Instance.getSize() now returns long instead of int
Comment 5 Quality Engineering 2014-06-19 02:35:15 UTC
Integrated into 'main-silver', will be available in build *201406190001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/32b67262c923
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #245065, Instance.getSize() now returns long instead of int