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 252495 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-19 21:25 UTC by andrereis
Modified: 2016-07-07 07:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 209133


Attachments
stacktrace (2.29 KB, text/plain)
2015-05-19 21:25 UTC, andrereis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description andrereis 2015-05-19 21:25:46 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b14
OS: Linux

User Comments:
GUEST: Just encapsultaing a field after 1 hour of regular use developing an EE aplication with glassfish,

GUEST: Ubuntu 12.04
Dell Inspiron 1525 default factory setting

One Maven app project opened.
Java 1.7 Oracle JDK
Tess4J
PdfBox
TestNG

Created Java class, created 6 fields, choose Refactor from context menu and pressed Encapsulate Fields. System stuck. Hard restart needed.

GUEST: Using CDT, I did try to encapsulate fields and Netbeans hang. I had to do a poweroff (holding power button) to recover system.

andrereis: when i tried to encapsulate a field using ctrl+shift+E the whole Ubuntu OS crashed and i had to restart my machine.

GUEST: just running a web app that's under development




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.awt.image.DataBufferInt.<init>(DataBufferInt.java:75)
   at com.sun.java.swing.plaf.gtk.GTKEngine.finishPainting(GTKEngine.java:589)
   at com.sun.java.swing.plaf.gtk.GTKEngine.finishPainting(GTKEngine.java:580)
   at com.sun.java.swing.plaf.gtk.GTKPainter.paintViewportBorder(GTKPainter.java:630)
   at javax.swing.plaf.synth.SynthScrollPaneUI$ViewportBorder.paintBorder(SynthScrollPaneUI.java:255)
   at javax.swing.border.CompoundBorder.paintBorder(CompoundBorder.java:117)
Comment 1 andrereis 2015-05-19 21:25:48 UTC
Created attachment 153759 [details]
stacktrace
Comment 2 Tomas Hurka 2015-05-20 07:12:32 UTC
It looks like encapsulate fields refactoring is causing this OOME. 
com.sun.java.swing.plaf.gtk.GTKEngine.finishPainting() is trying to allocate really _huge_ image and this is causing OOME.
Comment 3 Martin Balin 2016-07-07 07:16:42 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss