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 262470

Summary: OutOfMemoryError: Java heap space
Product: utilities Reporter: Exceptions Reporter <exceptions_reporter>
Component: SearchAssignee: Jaroslav Havlin <jhavlin>
Status: NEW ---    
Severity: normal CC: anhuibl, thurka
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 224625
Attachments: stacktrace

Description Exceptions Reporter 2016-06-17 15:35:44 UTC
This issue was reported manually by thurka.
It already has 3 duplicates 

Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-b27
OS: Mac OS X

User Comments:
GUEST: <Please provide a description of the problem or the steps to reproduce>
OutOfMemoryError: Java heap space

GUEST: help to solve this issue

GUEST: Ummm, used it for a few days?

java.lang.OutOfMemoryError: Java heap space
   at java.awt.image.DataBufferInt.<init>(
   at java.awt.image.Raster.createPackedRaster(
   at java.awt.image.DirectColorModel.createCompatibleWritableRaster(
   at java.awt.image.BufferedImage.<init>(
Comment 1 Exceptions Reporter 2016-06-17 15:35:47 UTC
Created attachment 160086 [details]
Comment 2 Tomas Hurka 2016-06-17 15:40:15 UTC
OOME is caused by 'Find in Project' dialog. If you put large multi-line text into search dialog, it will subsequently tried to create UI component, which is very large. The problem is also in the title of the output window tab - which contains this long text merged to one line. 
'Find in Project' dialog should have some meaningful limit on the size of search text or the search text should be truncated when displayed in combobox or output window tab.