deadlock with jogl

i’m currently doing a multithreaded applications in java with jogl.
After doing a lot of test, the point is that the jogl thread seems to be in a deadlock.

Please can someone help me !!!

Make sure you release the context on each thread that you’re rendering on as soon as you’ve finished needing it. Don’t hold it open and then attempt to make it current on another thread. We’ve been finding lots of issues with this on both X11 (well known from the C programming world) and with nVidia cards on MS Windows.

Also, another thing that I’ve been playing a little bit with, but not 100% on yet, is that calling a single JOGL GLContext from multiple threads may be causing problems. Try creating a set of GLContext instances setup with sharing, and see if that fixes things. I’ve noticed some oddities in having multiple threads call a single context to make them current, but don’t have anything specific nailed down yet. I notice that when I do have multiple shared GLContext instances that those oddities don’t happen, but I have nothing to definitely put a finger on yet.