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 247335 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: matthias42
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-21 05:46 UTC by Exceptions Reporter
Modified: 2015-03-17 12:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 212073


Attachments
stacktrace (2.24 KB, text/plain)
2014-09-21 05:46 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2014-09-21 05:46:26 UTC
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)
Comment 1 Exceptions Reporter 2014-09-21 05:46:28 UTC
Created attachment 149394 [details]
stacktrace
Comment 2 Tomas Hurka 2014-09-26 08:40:30 UTC
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.
Comment 3 matthias42 2015-03-16 20:28:03 UTC
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.
Comment 4 Quality Engineering 2015-03-17 12:13:41 UTC
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