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 246898 - NegativeArraySizeException at java.lang.AbstractStringBuilder.<init>
Summary: NegativeArraySizeException at java.lang.AbstractStringBuilder.<init>
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: issues@profiler
URL:
Keywords: VISUALVM
Depends on:
Blocks:
 
Reported: 2014-09-05 14:08 UTC by Tomas Hurka
Modified: 2016-09-21 12:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 211605


Attachments
stacktrace (4.70 KB, text/plain)
2014-09-05 14:08 UTC, Tomas Hurka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Hurka 2014-09-05 14:08:19 UTC
Build: NetBeans IDE Dev (Build 20140903-c18b0c00b87d)
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:
thurka: Steps:
1) open OOME heap dump from issue #246796. 
2) select byte[]#95436 instance in instances view.




Stacktrace: 
java.lang.NegativeArraySizeException
   at java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:64)
   at java.lang.StringBuilder.<init>(StringBuilder.java:97)
   at org.netbeans.modules.profiler.heapwalk.details.basic.ArrayValueView.getString(ArrayValueView.java:245)
   at org.netbeans.modules.profiler.heapwalk.details.basic.ArrayValueView.computeView(ArrayValueView.java:145)
   at org.netbeans.modules.profiler.heapwalk.details.spi.DetailsProvider$View$2.run(DetailsProvider.java:133)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
Comment 1 Tomas Hurka 2014-09-05 14:08:20 UTC
Created attachment 149054 [details]
stacktrace
Comment 2 Tomas Hurka 2014-09-05 15:22:58 UTC
Fixed in profiler-main

changeset:   277520:88aad9eb9ff3
user:        Tomas Hurka <thurka@netbeans.org>
date:        Fri Sep 05 17:21:54 2014 +0200
summary:     bugfix #246898, 'valuesCount*(2+separatorLength)' can be bigger than Integer.MAX_VALUE
Comment 3 Quality Engineering 2014-09-06 04:54:37 UTC
Integrated into 'main-silver', will be available in build *201409060001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/88aad9eb9ff3
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #246898, 'valuesCount*(2+separatorLength)' can be bigger than Integer.MAX_VALUE