Login  Register

Re: jogl crashes video card driver

Posted by Sven Gothel on Dec 31, 2012; 4:06pm
URL: https://forum.jogamp.org/jogl-crashes-video-card-driver-tp4026980p4027668.html

On 12/31/2012 02:06 PM, gouessej [via jogamp] wrote:

> Hi
>
>
> I will make a pull request in a few days. I plan to call invokeAndWait() to
> drive the canvas visible if and only if JoglAwtCanvas.init() is not called
> from the AWT EDT.
>
>     Sven Gothel wrote
>     Yeah, all this is due to calling 'setVisible(true)' on the GLCanvas
>     _not_ from the AWT-EDT.
>
>     So JOGL detects this and skips the realize call in such cases,
>     since it can freeze the Intel GPU on Windows - and is not proper anyways.
>      
>     <http://jogamp.org/git/?p=jogl.git;a=commit;h=d93c5d23e304ea20e868595748f92a5bef4f5703>
>     <http://jogamp.org/git/?p=jogl.git;a=commit;h=d93c5d23e304ea20e868595748f92a5bef4f5703%3E>
>
>     @Julien: A similar approach should be done in Ardor3D, IMHO. Please see
>     the commit above.
>
> Would my suggestion fix this problem?
You fix looks good, thank you!

> Does it concern NewtAWTCanvas too?

Nope, only AWT is problematic here due to sharing the surface resources.

~Sven



signature.asc (909 bytes) Download Attachment