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.
Build: NetBeans IDE Dev (Build 201007210001) VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02 OS: Linux User Comments: GUEST: in a php file, type 'if' followed by tab. GUEST: IT HAPPENS EVERYTIME I RUN THIS APPLICATION AUTOCOMPLETE FEATURES ARE SCREWED BECAUSE OF THIS karel_barel: trying to expand template Stacktrace: java.lang.OutOfMemoryError: Java heap space at java.lang.String.substring(String.java:1939) at org.netbeans.modules.php.editor.indent.FormatVisitor.addFormatToken(FormatVisitor.java:1060) at org.netbeans.modules.php.editor.indent.FormatVisitor.visit(FormatVisitor.java:919) at org.netbeans.modules.php.editor.parser.astnodes.Program.accept(Program.java:92) at org.netbeans.modules.php.editor.indent.TokenFormatter$1.run(TokenFormatter.java:354) at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:314)
Created attachment 100945 [details] stacktrace
P2
I have eliminate all possible known situation, when can this happen. Also I have add an assertion, that should help to find out the rest of cases.
Integrated into 'main-golden', will be available in build *201009040000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/e4b07cf0e6ea User: Petr Pisl <ppisl@netbeans.org> Log: #188809 - OutOfMemoryError: Java heap space This is not the fix. It's trying aliminating the possibility to add more format text tokens for one lexer token. Also adds new assertion that will throwed when one lexer token is added processed two times.
*** Bug 191502 has been marked as a duplicate of this bug. ***
Verified, issue described by karel_barel is not reproducible Product Version: NetBeans IDE 7.0.1 (Build 201107211357) Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17 System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)