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 243189

Summary: OutOfMemoryError: Huge LinesImpl object
Product: platform Reporter: s_fuhrm
Component: Output WindowAssignee: Jaroslav Havlin <jhavlin>
Status: RESOLVED DUPLICATE    
Severity: normal CC: gbouzas
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 205621
Attachments: stacktrace
stacktrace

Description s_fuhrm 2014-03-23 13:57:52 UTC
Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) Client VM, 25.0-b70, Java(TM) SE Runtime Environment, 1.8.0-b132
OS: Linux

User Comments:
GUEST: Opening the IDE.

GUEST: Estava utilizando o NetBeans, fui fazer outra coisa e ao voltar ao NetBeans (Alt+TAB), ficou uma tela preta, ao ver que havia travado, reiniciei o computador.

GUEST: I was doing projects and afterwards inishing them the program didnt let me run it. The main problem  was compilation

GUEST: it hung

GUEST: I was running a trivial application which created many big Java String objects.

s_fuhrm: Another OOME after starting with JDK 8.




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at org.netbeans.core.output2.IntListSimple.growArray(IntListSimple.java:98)
   at org.netbeans.core.output2.IntListSimple.add(IntListSimple.java:63)
   at org.netbeans.core.output2.AbstractLines.updateFolds(AbstractLines.java:819)
   at org.netbeans.core.output2.AbstractLines.lineUpdated(AbstractLines.java:797)
   at org.netbeans.core.output2.OutWriter.write(OutWriter.java:221)
   at org.netbeans.core.output2.OutWriter.doWrite(OutWriter.java:477)
Comment 1 s_fuhrm 2014-03-23 13:57:55 UTC
Created attachment 146253 [details]
stacktrace
Comment 2 gbouzas 2014-04-02 08:58:15 UTC
Created attachment 146491 [details]
stacktrace

Running at load test scala program the whole night
Comment 3 Jaroslav Havlin 2014-05-12 12:08:28 UTC
The exception was thrown while growing the array for folding info.

Most of memory is consumed by a LinesImpl object, which contains a lot of LineInfo instances.
Comment 4 Jaroslav Havlin 2014-07-18 07:38:52 UTC
Some reports are duplicates of bug 232547, others are duplicates of bug 239445.
It should work correctly in NetBeans 8.0.
Thank you for reporting.

*** This bug has been marked as a duplicate of bug 239445 ***