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 250463 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Search (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-17 14:01 UTC by resu
Modified: 2015-03-05 04:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 214549


Attachments
stacktrace (2.27 KB, text/plain)
2015-02-17 14:01 UTC, resu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description resu 2015-02-17 14:01:00 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.31-b07, Java(TM) SE Runtime Environment, 1.8.0_31-b15
OS: Mac OS X

User Comments:
resu: Out of Memory

GUEST: I suppose I left the console running whilst it was printing a never ending string array loop




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.awt.image.DataBufferInt.<init>(DataBufferInt.java:75)
   at java.awt.image.Raster.createPackedRaster(Raster.java:467)
   at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1032)
   at java.awt.image.BufferedImage.<init>(BufferedImage.java:359)
   at com.apple.laf.AquaPainter$AquaSingleImagePainter.createImage(AquaPainter.java:197)
   at com.apple.laf.AquaPainter$AquaSingleImagePainter.lambda$paintFromSingleCachedImage$250(AquaPainter.java:182)
Comment 1 resu 2015-02-17 14:01:07 UTC
Created attachment 152031 [details]
stacktrace
Comment 2 Tomas Hurka 2015-02-18 08:54:51 UTC
Instance variable textPattern of org.netbeans.modules.search.BasicSearchCriteria#1 contains huge (350K) string. See String#412972. Reassigning to utilities/search.
Comment 3 Jaroslav Havlin 2015-03-03 15:57:34 UTC
http://hg.netbeans.org/core-main/rev/13bef6b50bb8
Fixed.

Thank you for reporting. And for for evaluation, Tomas.
Comment 4 Quality Engineering 2015-03-05 04:08:47 UTC
Integrated into 'main-silver', will be available in build *201503050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/13bef6b50bb8
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #250463: OOME: Rendered huge text field for search pattern