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 239445 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Output Window (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
: 243189 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-12-13 07:16 UTC by nicolas.tappret
Modified: 2014-07-18 07:38 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 205987


Attachments
stacktrace (2.52 KB, text/plain)
2013-12-13 07:16 UTC, nicolas.tappret
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nicolas.tappret 2013-12-13 07:16:07 UTC
Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Windows 7

User Comments:
nicolas.tappret: i have a big log file out of java processe. In System.out or System.err




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.nio.DirectCharBufferRS.toString(DirectCharBufferRS.java:410)
   at java.nio.CharBuffer.toString(CharBuffer.java:1201)
   at org.netbeans.core.output2.AbstractLines.getText(AbstractLines.java:202)
   at org.netbeans.core.output2.OutputDocument.getText(OutputDocument.java:173)
   at javax.swing.text.JTextComponent.getSelectedText(JTextComponent.java:1770)
   at javax.swing.plaf.basic.BasicTextUI$TextTransferHandler$TextTransferable.<init>(BasicTextUI.java:2559)
Comment 1 nicolas.tappret 2013-12-13 07:16:10 UTC
Created attachment 143128 [details]
stacktrace
Comment 2 Jaroslav Havlin 2013-12-13 13:50:00 UTC
There's a lot of LineInfo objects, probably most of the output came from STDERR, so each line needed a LineInfo (color, possibly a link).

We could impose a limit on number of LineInfo objects in AbstractLines#checkLimits.

Thank you for reporting.
Comment 3 Jaroslav Havlin 2013-12-16 15:35:17 UTC
http://hg.netbeans.org/core-main/rev/0b4f06c49d7b
Fixed. Thank you for reporting.
Comment 4 Jaroslav Havlin 2014-07-18 07:38:52 UTC
*** Bug 243189 has been marked as a duplicate of this bug. ***