Bug 69 - Error on window resize
Summary: Error on window resize
Alias: None
Product: Jogl
Classification: JogAmp
Component: core (show other bugs)
Version: 1
Hardware: All windows
: P3 normal
Assignee: Sven Gothel
Depends on:
Reported: 2004-04-04 12:56 CEST by Sven Gothel
Modified: 2010-03-24 07:46 CET (History)
0 users

See Also:
SCM Refs:
Workaround: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Sven Gothel 2010-03-24 07:46:23 CET

---- Reported by nuntius 2004-04-04 12:56:31 ----

Frequently, maximizing/minimizing a jogl window causes a partial or total loss
of rendering on my computer.  For instance, this causes half the surfaces of the
jogl-demos:gears program to disappear; for many other programs, the entire scene
becomes black.

When running xith3d programs, here's the normal exception message.

Exception in thread "main" net.java.games.jogl.GLException: Error swapping buffe
        at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.swapBuffers
        at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:236)
        at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:182)
        at net.java.games.jogl.GLCanvas.display(GLCanvas.java:82)
        at com.xith3d.render.jogl.CanvasPeerImpl.render(CanvasPeerImpl.java:1010
        at com.xith3d.scenegraph.View.renderOnce(View.java:732)
        at com.xith3d.scenegraph.View.renderOnce(View.java:665)
        at org.xith3d.gsg.SwingDemo.<init>(SwingDemo.java:89)
        at org.xith3d.gsg.SwingDemo.main(SwingDemo.java:30)

This is a real show-stopper preventing me from adopting xith3d/jogl for anything
serious.  I was hoping to switch over from Java3D, but all my apps are windowed
and I can't tell my users to not adjust the window size.

Thanks for your help,

P.S.  I'm using an ATI 9000 series video card with the latest drivers.

---- Additional Comments From kbr 2005-01-28 19:23:20 ----

The so-called "ATI_WORKAROUND" (enabled with the system property
-DATI_WORKAROUND=true) was added to JOGL several releases back to try to work
around this issue. At the time, it appeared to work around the stability
problems on ATI cards, but this bug was left open because it was not clear that
the fix worked completely. Issue 97 turned out to be a bug in this support; a
new system property JOGL_SINGLE_THREADED_WORKAROUND was added to replace the old
ATI_WORKAROUND flag. I've tested the JOGL demos on a Radeon 9800 Pro and they
run solidly -- no issues during resizing. I'm (finally) closing this bug as fixed.

--- Bug imported by sgothel@jausoft.com 2010-03-24 07:46 EDT  ---

This bug was previously known as _bug_ 69 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=69