Re: Incomplete shutdown (Eclipse)
Posted by
raptor on
URL: https://forum.jogamp.org/Incomplete-shutdown-Eclipse-tp4025154p4032509.html
I did some more digging and it seams the issues is when the function below in the JOGL API is called (seams some racing issue) :
jogamp.opengl.GLDrawableFactoryImpl.getOrCreateSharedResource
protected final SharedResourceRunner.Resource getOrCreateSharedResource(AbstractGraphicsDevice device) {
try {
device = validateDevice(device);
if( null != device) {
return getOrCreateSharedResourceImpl( device ); }
} catch (GLException gle) {
if(DEBUG) {
System.err.println("Catched Exception on thread "+getThreadName());
gle.printStackTrace();
}
}
return null;
}
If I replace the bold section with null, it will shutdown OK.
It also could be the the manner in which the Thread is executed in the GLProfile.initSingleton withing the "AcessController.doPrivileged" clause.
___