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 168419

Summary: OutOfMemoryError: Java heap space
Product: java Reporter: ranbato <ranbato>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=153596
Issue Type: DEFECT Exception Reporter: 153596
Attachments: stacktrace
Heap Dump

Description ranbato 2009-07-10 21:37:40 UTC
Build: NetBeans IDE 6.7 (Build 200906241340)
VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08
OS: Windows XP, 5.1, x86

User Comments:
ranbato: Removing compile errors from a large file



Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
        at java.lang.String.toCharArray(String.java:2725)
        at com.sun.tools.javac.file.JavacFileManager.toArray(JavacFileManager.java:94)
        at com.sun.tools.javac.util.DiagnosticSource.initBuf(DiagnosticSource.java:182)
        at com.sun.tools.javac.util.DiagnosticSource.findLine(DiagnosticSource.java:147)
        at com.sun.tools.javac.util.DiagnosticSource.getLineNumber(DiagnosticSource.java:71)
        at com.sun.tools.javac.util.JCDiagnostic.<init>(JCDiagnostic.java:295)
Comment 1 ranbato 2009-07-10 21:37:44 UTC
Created attachment 84617 [details]
stacktrace
Comment 2 Jiri Prox 2009-07-13 10:09:07 UTC
Can you please attach heapdump?
Thanks
Comment 3 ranbato 2009-07-13 13:37:30 UTC
Created attachment 84655 [details]
Heap Dump
Comment 4 Jiri Prox 2009-07-13 13:59:59 UTC
thanks
Comment 5 Dusan Balek 2009-07-17 14:25:09 UTC
Should be fixed in the current dev build.

*** This issue has been marked as a duplicate of 167881 ***