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.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)
Created attachment 153759 [details] stacktrace
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.
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