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 8.0 (Build 201403101706) VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13 OS: Windows 7 User Comments: GUEST: ? GUEST: Same as last time GUEST: Working for 4 hours - must be memory leak GUEST: Editing JPanel Source GUEST: writing code, this appears to happen when the IDE draws the red line around the suggested variable when auto completing a method by using the tab key. GUEST: Netbeans became unresponsive (froze) for several minutes after typing code in the editor; this happened after more than an hour coding; did not happen again after restarting the ide and continued editing. GUEST: Selecting and copying text with keyboard causes heap to run out of space - happens every time. GUEST: Copying text GUEST: attempting to select line to copy GUEST: Se bloquea y se ve que el uso de CPU es excesivo. stayprime: Running out of memory.. GUEST: copying GUEST: Editing files Stacktrace: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2367) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:130) at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:114) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:415) at java.lang.StringBuffer.append(StringBuffer.java:237) at java.io.StringWriter.write(StringWriter.java:112)
Created attachment 148901 [details] stacktrace
Evaluating http://statistics.netbeans.org/exceptions/exception.do?id=735709 as it has a funny description: When i have copying this string "\" to java app, app goes slow and uses 90% of CPU all the time. 5.5M of stacktraces occupies 243M of memory - this is probably caused by uihandler and also core.startup.logging.NbFormatter trying to dump all the errors that are happening in AWT event thread. There is a really deep stack trace in AWT thread. Looks like an infinite recursion in org.jdesktop.application.ApplicationAction.actionPerformed(:698) org.jdesktop.application.TextActions.invokeTextAction(TextActions.java:172) org.jdesktop.application.TextActions.paste(TextActions.java:211) sun.reflect.GeneratedMethodAccessor316.invoke(<unknown string>) org.jdesktop.application.ApplicationAction.noProxyActionPerformed(:662) who's using org.jdesktop inside of NetBeans!? It should be gone for a long time! I've managed to find an instance of QuiteEditorPane (on stack) that is source for ~1000 ActionEvents. Passing to editor guys to investigate why that happens. I've also modified the NbFormatter to limit its recursion to 10 nested exceptions: https://hg.netbeans.org/ergonomics/rev/3a91904c59f4 Possibly Martin wants to do something similar in uihandler.
One idea for the reporter: Does your problem occur also when you remove net.java.dev.nbmodules.copypastehistory/3 module? If it does, please close this bug and report it to the module owner.
Thanks Jarda for notifying me about long nested recursions in uihandler. I've already fixed that few days ago in issue #246731.
Integrated into 'main-silver', will be available in build *201410290913* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/3a91904c59f4 User: Jaroslav Tulach <jtulach@netbeans.org> Log: In response to #246702 limit the number of nested exception by ten