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 185063 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: RESOLVED INCOMPLETE
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
: 184921 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-04-27 09:07 UTC by Exceptions Reporter
Modified: 2010-07-08 10:45 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 164515


Attachments
stacktrace (2.93 KB, text/plain)
2010-04-27 09:07 UTC, Exceptions Reporter
Details
stacktrace (2.78 KB, text/plain)
2010-04-27 10:50 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2010-04-27 09:07:10 UTC
Build: NetBeans IDE Dev (Build 201004270201)
VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: Linux

User Comments:
GUEST: This happend durring method suggestion at Zend_Form

GUEST: I'm closin a red bottom

altosch: PHP code. Tried to use one option from the offered code completion menu. Then whole program freezed for about 10sec and the exception appeared.




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.util.Arrays.copyOf(Arrays.java:2760)
   at java.util.Arrays.copyOf(Arrays.java:2734)
   at java.util.ArrayList.ensureCapacity(ArrayList.java:167)
   at java.util.ArrayList.add(ArrayList.java:351)
   at org.netbeans.modules.php.editor.indent.FormatVisitor.addFormatToken(FormatVisitor.java:915)
   at org.netbeans.modules.php.editor.indent.FormatVisitor.visit(FormatVisitor.java:772)
Comment 1 Exceptions Reporter 2010-04-27 09:07:17 UTC
Created attachment 98100 [details]
stacktrace
Comment 2 Exceptions Reporter 2010-04-27 10:50:12 UTC
Created attachment 98115 [details]
stacktrace
Comment 3 Exceptions Reporter 2010-04-27 14:29:07 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=164515
Comment 4 Exceptions Reporter 2010-04-28 11:08:17 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=164515
Comment 5 Petr Pisl 2010-05-06 11:55:15 UTC
I don't know what is the problem. According the stacktraces is not possible find out the root of the problem. It would be great, if someone could attach heapdump.
Comment 6 Jindrich Sedek 2010-05-06 12:02:17 UTC
Unfortunatelly it's not possible to attach heapdumps into bugzilla. Go to exceptions reporter side, open one of the set of duplicates and get heapdumps. It should be attached to all reports after 6.8. Also note that duplicates are not recognized based on heapdump. Just evaluate, fix if possible and close the bug - new one will be generated automatically for the rest of problems in few days.
Comment 7 Petr Pisl 2010-05-06 14:54:09 UTC
Could please someone attached a file, when it happened? It would be very helpful. Thanks
Comment 8 Petr Pisl 2010-05-11 12:22:20 UTC
I committed an assertion that should help to find out the root of the problem.
Comment 9 Quality Engineering 2010-05-13 05:04:41 UTC
Integrated into 'main-golden', will be available in build *201005122200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/
User: 
Log:
Comment 10 Petr Pisl 2010-05-13 12:58:48 UTC
Thaks to Darthx for the file. Unfortunately it works for me and I'm not able to reproduce it. Are you able to reproduce this issue with this file?
Comment 11 Petr Pisl 2010-05-18 13:27:37 UTC
*** Bug 184921 has been marked as a duplicate of this bug. ***
Comment 12 Petr Pisl 2010-05-19 12:33:07 UTC
The latest reports are from NetBeans 6.8 o NetBeans 6.9 Beta. We are not able to reproduce it in the latest builds. Also according user report in  issue #184921, the user is not able to reproduce the issue in latest builds. 

I'm marking this issue as incomplete until there will not be a reproducible case or new exception report from the latest NB 6.9 builds.
Comment 13 sthing 2010-07-08 10:45:11 UTC
I think I have the same problem with build 100708.

Submitted the issue to the Exception Reporter, id #408298, classified as a duplicate of report #168815, ie bug 187330.

But from the symptoms and the stack trace it looks more like this bug. I hope this can reopen the case.

From my original error report:
  In a PHP project I typed "fore" and pressed TAB co autocomplete into foreach.
  I encountered the problem on 6.9, then downloaded a nightly build from http://bits.netbeans.org/dev/nightly/2010-07-08_00-01-15/
  Did not import settings from the old installation.
  The PHP project was used with 6.9 previously.