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 230063 - OOME when showing DB query results with wide columns
Summary: OOME when showing DB query results with wide columns
Status: RESOLVED INCOMPLETE
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.4
Hardware: PC Mac OS X
: P1 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-21 19:45 UTC by athompson
Modified: 2013-05-31 07:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description athompson 2013-05-21 19:45:59 UTC
Related to or a duplicate of bug #215397, but that was allegedly fixed in JDK 1.7 update 12. I'm using JDK 8.

1. Execute a database query where the result set has a very wide column (like a long string of a few thousand characters).
2! Double-click the vertical line separating column headers to widen the column. The below exception is generated endlessly and you have to restart.


java.lang.OutOfMemoryError: can't create offscreen surface
	at sun.java2d.opengl.OGLSurfaceData.initSurfaceNow(OGLSurfaceData.java:298)
	at sun.java2d.opengl.OGLSurfaceData.access$000(OGLSurfaceData.java:98)
	at sun.java2d.opengl.OGLSurfaceData$1.run(OGLSurfaceData.java:324)
	at sun.java2d.opengl.OGLRenderQueue$QueueFlusher.run(OGLRenderQueue.java:234)



Product Version: NetBeans IDE Dev (Build 201305202300)
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b30
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b88
System: Mac OS X version 10.8.4 running on x86_64; UTF-8; en_US (nb)
User directory: /Users/alvin/Library/Application Support/NetBeans/dev
Cache directory: /Users/alvin/Library/Caches/NetBeans/dev
Comment 1 matthias42 2013-05-23 21:52:04 UTC
From reading the bug report and some more material on this it looks like a bug in the JDK. Could you please run this:

public class HugeWindow {
    public static void main(String[] args) {
        JFrame f = new JFrame("Huge");
        f.setBounds(10, 10, 300, 500000);
        f.setVisible(true);
    }
}

with JDK8 and see if this is correctly displayed? Or better: Displayed at all?

The code above was referenced in the oracle bug as a reproducer.
Comment 2 Jaroslav Havlin 2013-05-31 07:18:46 UTC
Thank you, Matthias, for evaluation.

Closing as incomplete for now. Please try running the code sample from comment 1 and reopen. Thank you in advance.