Bug 69

Summary: Error on window resize
Product: [JogAmp] Jogl Reporter: Sven Gothel <sgothel>
Component: coreAssignee: Sven Gothel <sgothel>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P3    
Version: 1   
Hardware: All   
OS: windows   
Type: DEFECT SCM Refs:
Workaround: ---

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
rs
        at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.swapBuffers
(WindowsOnscreenGLContext.java:140)
        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,
Daniel

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