Bug 427

Summary: GLException with GLJpanel on Win64 JRE
Product: [JogAmp] Jogl Reporter: Owen Dimond <odimond>
Component: windowsAssignee: Sven Gothel <sgothel>
Status: VERIFIED FIXED    
Severity: major CC: barcsikattila, michaelyeung2
Priority: P3    
Version: 2   
Hardware: All   
OS: windows   
Type: DEFECT SCM Refs:
7262641429b542929efc699e392f410f1dee2187 8df12ca151dfc577c90b485d4ebfe491b88e55aa c8807f6847e34d599b8bc9a476c84785e1925c8a e15344bfaf4df4ceb710b304b164bd03005dc132 96a0e0706258824c1dd524d4cbd7682a904b84f4 2ddefbe9d2d99960042e9c2b3327952af112560b 1c2a11a54949188d6704558f7fa38ecf8e811118
Workaround: ---
Attachments: Simple JOGL application demonstrating the issue
Runtime version check
stdout/stderr with JOGL debug properties set
Runtime version check (run local)
stdout/stderr with JOGL debug properties set (run local)
Runtime version check (run local)
stdout/stderr with JOGL debug properties set (run local)
Runtime version check (remote desktop)
stdout/stderr with JOGL debug properties set (remote desktop)
Runtime version check (remote desktop)
stdout/stderr with JOGL debug properties set (remote desktop)
Runtime version check (remote desktop)
stdout/stderr with JOGL debug properties set (remote desktop)

Description Owen Dimond 2010-11-10 15:26:53 CET
Created attachment 156 [details]
Simple JOGL application demonstrating the issue

We receive the following GLException when running a simple JOGL application using a GLJPanel on JRE 1.6.0_22 Windows 64-bit.

Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: Error creating offscreen bitmap of width 592, height 573
        at com.sun.opengl.impl.windows.WindowsOffscreenGLDrawable.create(WindowsOffscreenGLDrawable.java:108)
        at com.sun.opengl.impl.windows.WindowsOffscreenGLDrawable.setSize(WindowsOffscreenGLDrawable.java:67)
        at javax.media.opengl.GLJPanel.initialize(GLJPanel.java:929)
        at javax.media.opengl.GLJPanel.paintComponent(GLJPanel.java:488)
etc.

The same application using a GLCanvas does not produce the exception.
Comment 1 Owen Dimond 2010-11-11 06:16:14 CET
Created attachment 157 [details]
Runtime version check
Comment 2 Owen Dimond 2010-11-11 06:17:28 CET
Created attachment 158 [details]
stdout/stderr with JOGL debug properties set
Comment 3 Owen Dimond 2010-11-11 09:40:44 CET
Created attachment 159 [details]
Runtime version check (run local)
Comment 4 Owen Dimond 2010-11-11 09:42:22 CET
Created attachment 160 [details]
stdout/stderr with JOGL debug properties set (run local)

Running locally requires a few redraws to cause the exception. Over remote desktop, the first draw always causes the exception.
Comment 5 Sven Gothel 2010-11-22 21:14:35 CET
works now, seemed to be another duplicate of #397

*** This bug has been marked as a duplicate of bug 397 ***
Comment 6 Owen Dimond 2010-11-23 09:28:33 CET
Reopening, problem still occurs with build 2.0-b1-20101123. Will attach runtime test & debug output using this version.
Comment 7 Owen Dimond 2010-11-23 09:30:36 CET
Created attachment 169 [details]
Runtime version check (run local)
Comment 8 Owen Dimond 2010-11-23 09:31:25 CET
Created attachment 170 [details]
stdout/stderr with JOGL debug properties set (run local)
Comment 9 Owen Dimond 2010-11-23 09:31:50 CET
Created attachment 171 [details]
Runtime version check (remote desktop)
Comment 10 Owen Dimond 2010-11-23 09:32:18 CET
Created attachment 172 [details]
stdout/stderr with JOGL debug properties set (remote desktop)
Comment 11 Owen Dimond 2010-12-08 14:57:53 CET
Hi,

Is there any more information required for this bug? We are hoping for a solution soon.

Also, is it worth reporting a similar bug with GLJPanel in JOGL 1, or has all development ceased on this version?

Thanks.
Comment 12 Sven Gothel 2010-12-12 00:24:51 CET
Manually verified with JOGL 8df12ca151dfc577c90b485d4ebfe491b88e55aa,
works on Win7 and Linux/X11.

This bug (on windows) seems to be just another side effect of the 
passing dummy window, which was fixed here:
  c8807f6847e34d599b8bc9a476c84785e1925c8a
Comment 13 Sven Gothel 2010-12-12 01:22:23 CET
JOGL e15344bfaf4df4ceb710b304b164bd03005dc132
fixes double destroy on GLpbuffer impl ..
Comment 14 Sven Gothel 2010-12-12 01:52:00 CET
*** Bug 442 has been marked as a duplicate of this bug. ***
Comment 15 Owen Dimond 2010-12-13 09:58:44 CET
Problem is fixed running locally with autobuild b253, but the "Error creating offscreen bitmap" GLException still occurs over remote desktop.
Comment 16 Owen Dimond 2010-12-13 10:00:18 CET
Created attachment 196 [details]
Runtime version check (remote desktop)
Comment 17 Owen Dimond 2010-12-13 10:01:07 CET
Created attachment 197 [details]
stdout/stderr with JOGL debug properties set (remote desktop)
Comment 19 Owen Dimond 2010-12-16 09:29:33 CET
Thank you for continuing to work on this problem. The GLException "Error
creating offscreen bitmap" is now fixed, but we are still seeing a GLException when resizing the frame (remote desktop). Attaching runtime version & debug output with autobuild b259.
Comment 20 Owen Dimond 2010-12-16 09:30:49 CET
Created attachment 200 [details]
Runtime version check (remote desktop)
Comment 21 Owen Dimond 2010-12-16 09:31:32 CET
Created attachment 201 [details]
stdout/stderr with JOGL debug properties set (remote desktop)
Comment 22 Owen Dimond 2010-12-20 08:22:02 CET
There is an additional regression with build b259. When viewed over remote desktop, the image is "flipped". Negative bitmap height? When viewed locally, the image is not flipped.
Comment 23 Sven Gothel 2010-12-23 09:26:08 CET
2ddefbe9d2d99960042e9c2b3327952af112560b
1c2a11a54949188d6704558f7fa38ecf8e811118

fixed 

thank you for your persistence / tests
Comment 24 Michael Yeung 2011-04-13 21:07:25 CEST
(In reply to comment #23)
> 2ddefbe9d2d99960042e9c2b3327952af112560b
> 1c2a11a54949188d6704558f7fa38ecf8e811118
> 
> fixed 
> 
> thank you for your persistence / tests

How can I get the latest JOGL distribution with this bug fixed?
Comment 25 Owen Dimond 2011-04-13 21:18:09 CEST
autobuild b266 or later will have this fix. Best to use the latest build, or rc2 if you need a signed release.