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 252555 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Libraries (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Jan Stola
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-23 01:48 UTC by pdt_dev
Modified: 2015-06-16 02:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 217480


Attachments
stacktrace (1.02 KB, text/plain)
2015-05-23 01:49 UTC, pdt_dev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pdt_dev 2015-05-23 01:48:59 UTC
Build: NetBeans IDE Dev (Build 201505220001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.25-b02, Java(TM) SE Runtime Environment, 1.8.0_25-b17
OS: Linux

User Comments:
pdt_dev: JavaScript Library > CDNJS




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.util.Arrays.copyOf(Arrays.java:3332)
   at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:137)
   at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:121)
   at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:569)
   at java.lang.StringBuffer.append(StringBuffer.java:369)
   at java.io.BufferedReader.readLine(BufferedReader.java:370)
Comment 1 pdt_dev 2015-05-23 01:49:01 UTC
Created attachment 153825 [details]
stacktrace
Comment 2 Jan Stola 2015-06-15 13:33:26 UTC
It can be reproduced by trying to search for an empty string. The search result is the whole CDNJS repository which may result in OutOfMemoryError. I have modified the dialog not to allow the search for an empty string.

Modified files: https://hg.netbeans.org/web-main/rev/575fd2d70f3a
Comment 3 Quality Engineering 2015-06-16 02:18:07 UTC
Integrated into 'main-silver', will be available in build *201506160001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/575fd2d70f3a
User: Jan Stola <jstola@netbeans.org>
Log: #252555: Do not allow to use an empty string as a search term - the search result is too large and may result in OutOfMemoryError.