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.
This bug was originally marked as duplicate of bug 243645, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE 8.0.1 (Build 201408251540) VM: Java HotSpot(TM) 64-Bit Server VM, 25.20-b23, Java(TM) SE Runtime Environment, 1.8.0_20-b26 OS: Linux User Comments: GUEST: was using netbeans connecting to pgsql database in web application. was running a data driven web application using struts 1.3.10. 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.paintToolTipBackground(GTKPainter.java:1160) at javax.swing.plaf.synth.SynthToolTipUI.update(SynthToolTipUI.java:139) at javax.swing.JComponent.paintComponent(JComponent.java:777)
Created attachment 149394 [details] stacktrace
OOMe is caused by displaying really really long (148K) tooltip over org.netbeans.modules.db.dataview.output.DataViewTableUI. See javax.swing.JToolTip#2.tipText and javax.swing.JToolTip#2.component Reassigning to db module - please make sure that the tooltips have reasonable size.
A fix was pushed as: http://hg.netbeans.org/core-main/rev/4810ed2f4d86 The problem boils down to the fact, that some DBs return strings longer than 255 chars as text - like the postgresql TEXT type. I did not manage to reproduce the reported problem, but I got a tooltip, that filled both of my screens. This is unhelpful and as it turns out dangerous. The fix limits the displayed text string to 255 characters. This is enough to get an insight into the column contents and not bust memory limits. If someone can reproduce the original problem, it would be good, if he/she could test with the next nightly build, that contains this fix and verify it.
Integrated into 'main-silver', will be available in build *201503170951* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/4810ed2f4d86 User: Matthias Blaesing <matthias42@netbeans.org> Log: #247335: Limit text length for tooltips to 255 chars, to limit physical tooltip size