Re: Core dump on Solaris x86 with GLJPanel
Posted by Attila Barcsik on Apr 13, 2011; 12:17pm
URL: https://forum.jogamp.org/Core-dump-on-Solaris-x86-with-GLJPanel-tp2810533p2815767.html
I've implemented this fail-safe solution with the always on animator + flag ( + an additional flag for dispose only to be executed once + manual call to GLProfile.shutdown() before exit ) and it works like a charm ( solaris/linux ).
Just need to be careful with the life cycle! All OpenGL windows must go through these steps:
When starting the mother application call GLProfile.initSingleton() before anything!
for ( any OpenGL window which is started by the mother application ) {
1. create drawable/animator etc.
2. start animator
3. render render... all flags are true ( if render data is the same renderFlag can be set to false to spare CPU time until something changes in the data )
4. just before closing this OpenGL window: stop animator & renderFlag=false immediately!
5. when it goes through dispose(), it must set disposedFlag=true so dispose() cannot be executed twice.
}
Before closing the mother application call GLProfile.shutdown() manually!
JVM obviously does not works the same way on different platforms, so do not trust it ;).
Still, it's unclear to me how can everything work without these hacks on linux and don't on solaris. // nevermind