AWT GLCanvas freezes after screen change with stencil buffer enabled - v2.3.2 only

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

AWT GLCanvas freezes after screen change with stencil buffer enabled - v2.3.2 only

markaubin
I'm experimenting with the AWT sample app here:
    https://jogamp.org/wiki/index.php/Using_JOGL_in_AWT_SWT_and_Swing

When I build OneTriangleAWT exactly as provided, I can drag the app between my two screens and it continues to resize and redraw properly.

However, if I enable the stencil buffer, it freezes after dragging to another screen.

I'm enabling the stencil buffer by adding this single line before creating the GLCanvas:
    glcapabilities.setStencilBits(8);

Setting the system property "jogl.screenchange.action" to true or false doesn't change the behavior.

This is only happening with v2.3.2

If I revert back to v2.3.1 the problem goes away.

This bugfix looks like it might have caused this regression:
    http://jogamp.org/git/?p=jogl.git;a=commitdiff;h=6ae08be1742e6d805b316c0d440364854a49e68f

I searched the open bugs and found this old one which looks similar, but the fact that it goes away for me by reverting the jogl version makes me think this is a different issue. Plus that bug doesn't mention AWT.
    https://jogamp.org/bugzilla/show_bug.cgi?id=995

NOTE: I began experimenting with this sample app because I am observing the exact issue with a very large legacy application which actually uses the stencil buffer. Reverting the library version to v2.3.1 also fixes the issue with my legacy app.
Reply | Threaded
Open this post in threaded view
|

Re: AWT GLCanvas freezes after screen change with stencil buffer enabled - v2.3.2 only

gouessej
Administrator
Hi

Thank you very much with your accurate investigation, you mention both the "buggy" version and the latest working version, it will be very helpful to fix this regression.

Actually, the bug 995 mentions AWT GLCanvas but please fill a bug report if your bug is different.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: AWT GLCanvas freezes after screen change with stencil buffer enabled - v2.3.2 only

markaubin
Thanks for looking at this issue. Bug filed as requested:
https://jogamp.org/bugzilla/show_bug.cgi?id=1285
Reply | Threaded
Open this post in threaded view
|

Re: AWT GLCanvas freezes after screen change with stencil buffer enabled - v2.3.2 only

gouessej
Administrator
You have to add some information into your bug report:
http://jogamp.org/wiki/index.php/Jogl_FAQ#Bugreports_.26_Testing
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: AWT GLCanvas freezes after screen change with stencil buffer enabled - v2.3.2 only

markaubin
OK, I just added the test.log file. And my original bug report includes the steps to reproduce. Please confirm if this is enough to proceed. The detailed debug log will be more complicated because I will need to run it by my employer's security team to sanitize it as it contains company specific details.
Reply | Threaded
Open this post in threaded view
|

Re: AWT GLCanvas freezes after screen change with stencil buffer enabled - v2.3.2 only

gouessej
Administrator
I understand your position. Thank you for the log file.
Julien Gouesse | Personal blog | Website