Login  Register

Re: GLCanvas/GLJPanel problems

Posted by Sven Gothel on Nov 14, 2012; 1:12am
URL: https://forum.jogamp.org/GLCanvas-GLJPanel-problems-tp4026923p4026933.html

On 11/13/2012 04:41 PM, mikaelhc [via jogamp] wrote:> Hi,

>
> I'm working on porting some OpenGL/C++ code to JOGL.
>
> First, I started out using the GLCanvas, and things worked fine - until
> V2.0-rc11.
>
> Now, my GLCanvas is part of JSplitPane, and when I change the split, I get a:
>
> javax.media.opengl.GLException: Unable to create temp OpenGL context for
> device context 0x4e0138c3
>         at jogamp.common.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:58)
>        
> This happens shortly after dispose(...) is called. This used to work on
> V2.0-rc10. The crash only happens on Windows, not on Mac.
A longer trace would have helped more ..
Also you could enable the debug flags -Djogl.debug=all, .. etc see Wiki/FAQ/Debug.

I fixed a regression already, thanks to AC: d0f91a8ed17fbb1a7b56511c4e53a29e576f01af
Also commit c002e04f848116922a1ed7bd96ead54961649bbd etc .. may help in case
you need to remove a GLEventListener incl. it's disposal.
 
Also - pls provide a unit test, so we have a chance to fix it.

Best: Open new bug (Regression w/ _something_smart_here_),
      add all this text to it and attach your unit test (maybe a git email patch?).

If you are unsure how to write a unit test, you can look at the many
we have in jogl/src/test/**.
Maybe you can copy and rename TestJScrollPaneMixHwLw01AWT
and make it suitable to your needs.

Otherwise, simply create a very small application which reproduces the failure.

On 11/14/2012 01:54 AM, gouessej [via jogamp] wrote:
> Hi
>
> I get this exception under Windows only when I try to manipulate contexts on
> the wrong thread. Can you try to find in which version the regression occurs
> (more precisely than RC11)?

Yes that would be great of course.

~Sven



signature.asc (907 bytes) Download Attachment