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.
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)
Created attachment 153825 [details] stacktrace
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
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.