Re: OneTriangleAWT crashes with "glGetString" message.
Posted by iNik on Aug 03, 2015; 11:02am
URL: https://forum.jogamp.org/OneTriangleAWT-crashes-with-glGetString-message-tp4035015p4035018.html
Hi Sven!
I tried latest build (gluegen b880 and jogl b1418, v2.3, linux-armv6hf, 02 aug 2015) and it is not work for me.
I did a little investigation with "IdeaIC remote debug" and OneTriangle example and found that crush appears at the
this.wait(); : 191 line at the SharedResourceRunner.class.
Here the StackTrace:
"main@1" prio=5 tid=0x1 nid=NA runnable
java.lang.Thread.State: RUNNABLE
at jogamp.opengl.SharedResourceRunner.doAndWait(SharedResourceRunner.java:247)
- locked <0x558> (a jogamp.opengl.SharedResourceRunner)
at jogamp.opengl.SharedResourceRunner.getOrCreateShared(SharedResourceRunner.java:191)
at jogamp.opengl.egl.EGLDrawableFactory.getOrCreateSharedResourceImpl(EGLDrawableFactory.java:871)
at jogamp.opengl.egl.EGLDrawableFactory.getOrCreateSharedResourceImpl(EGLDrawableFactory.java:89)
at jogamp.opengl.GLDrawableFactoryImpl.getOrCreateSharedResource(GLDrawableFactoryImpl.java:187)
at jogamp.opengl.GLDrawableFactoryImpl.createSharedResourceImpl(GLDrawableFactoryImpl.java:216)
at com.jogamp.opengl.GLDrawableFactory.createSharedResource(GLDrawableFactory.java:375)
at com.jogamp.opengl.GLProfile.initProfilesForDeviceCritical(GLProfile.java:1933)
at com.jogamp.opengl.GLProfile.initProfilesForDevice(GLProfile.java:1866)
at com.jogamp.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1834)
at com.jogamp.opengl.GLProfile.access$000(GLProfile.java:79)
at com.jogamp.opengl.GLProfile$1.run(GLProfile.java:229)
at java.security.AccessController.doPrivileged(AccessController.java:-1)
at com.jogamp.opengl.GLProfile.initSingleton(GLProfile.java:215)
at com.jogamp.opengl.GLProfile.getProfileMap(GLProfile.java:2272)
at com.jogamp.opengl.GLProfile.get(GLProfile.java:987)
at com.jogamp.opengl.GLProfile.getDefault(GLProfile.java:721)
at com.jogamp.opengl.GLProfile.getDefault(GLProfile.java:732)
at OneTriangleAWT.main(OneTriangleAWT.java:19)
I put a brakepoint (- locked <0x558> ) at this line (191), and when I do the step, application at the target board crushes with "glGetString..." message.
As I understand, at this moment control reaches to the "dead" thread.
P.S. At the HOST machine with Linux Mint 17 everything works fine.
I am ready to provide any required information.