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 160209 - java.lang.OutOfMemoryError when opening just one single file.
Summary: java.lang.OutOfMemoryError when opening just one single file.
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Max Sauer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-12 19:55 UTC by ayermolayev
Modified: 2009-04-17 13:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ayermolayev 2009-03-12 19:55:29 UTC
IDE hangs up after opening a first java file with the error log:

An error occurred during parsing of 'xxxxxxxxx'. Please report a bug against java/source and attach dump 
file 'xxxxxxx'.
Caused by: java.lang.OutOfMemoryError: Java heap space
	at com.sun.tools.javac.util.Position$LineMapImpl.build(Position.java:153)
	at com.sun.tools.javac.util.Position.makeLineMap(Position.java:77)
	at com.sun.tools.javac.parser.DocCommentScanner.getLineMap(DocCommentScanner.java:452)
	at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:540)
	at com.sun.tools.javac.main.JavaCompiler.complete(JavaCompiler.java:677)
	at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:1933)
	at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:1840)
	at com.sun.tools.javac.code.Symbol.complete(Symbol.java:401)
	at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:784)
	at com.sun.tools.javac.jvm.ClassReader.loadClass(ClassReader.java:2015)
	at com.sun.tools.javac.comp.Resolve.loadClass(Resolve.java:858)
	at com.sun.tools.javac.comp.Resolve.findGlobalType(Resolve.java:922)
	at com.sun.tools.javac.comp.Resolve.findType(Resolve.java:974)
	at com.sun.tools.javac.comp.Resolve.findIdent(Resolve.java:1003)
	at com.sun.tools.javac.comp.Resolve.resolveIdent(Resolve.java:1196)
	at com.sun.tools.javac.comp.Attr.visitIdent(Attr.java:1804)
	at com.sun.tools.javac.tree.JCTree$JCIdent.accept(JCTree.java:1683)
	at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:391)
	at com.sun.tools.javac.comp.Attr.attribType(Attr.java:421)
	at com.sun.tools.javac.comp.MemberEnter.visitVarDef(MemberEnter.java:710)
	at com.sun.tools.javadoc.JavadocMemberEnter.visitVarDef(JavadocMemberEnter.java:79)
	at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:713)
	at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:422)
	at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:434)
	at com.sun.tools.javac.comp.MemberEnter.finishClass(MemberEnter.java:446)
	at com.sun.tools.javac.comp.MemberEnter.finish(MemberEnter.java:1124)
	at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:1091)
	at com.sun.tools.javac.code.Symbol.complete(Symbol.java:401)
	at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:784)
	at com.sun.tools.javac.comp.Enter.complete(Enter.java:637)
	at org.netbeans.api.java.source.JavaSource$ErrorHandlingJavadocEnter.main(JavaSource.java:1276)
	at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:853)
Comment 1 ayermolayev 2009-03-12 20:21:07 UTC
The workaround to the problem is: kill NB, go to .netbeans\6.5\var\cache and remove everything, then open NB.
 
Comment 2 Dusan Balek 2009-03-13 09:27:33 UTC
Are you able to reproduce the issue on your sources?
Also, could you please attach the messages.log file? Thanks.
Comment 3 pribyl 2009-04-17 13:59:43 UTC
Cannot reproduce. No additional info provided for more than a month -> closing as WORKSFORME.

ayermolayev, please reopen if you are experiencing this problem in later builds. Add as much info as possible (steps to
reproduce, messages.log, etc.)

Thanks a lot

Note: similar stacktrace in issue 161893