Login  Register

Re: OneTriangleAWT crashes with "glGetString" message.

Posted by Sven Gothel on Aug 04, 2015; 1:22pm
URL: https://forum.jogamp.org/OneTriangleAWT-crashes-with-glGetString-message-tp4035015p4035029.html

On 08/04/2015 09:33 AM, iNik [via jogamp] wrote:

> Hi!
>
> gdb backtrace:
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to LWP 764]
> 0x62852694 in glGetString (name=7936) at g_api_entry.c:1395
> 1395    g_api_entry.c: No such file or directory.
> (gdb) where
> #0  0x62852694 in glGetString (name=7936) at g_api_entry.c:1395
> #1  0x621a5768 in Java_jogamp_opengl_GLContextImpl_glGetStringInt ()
>    from
> /var/volatile/tmp/jogamp_0000/file_cache/jln3949628399896259070/jln3685028594061545856/libjogl_desktop.so
>
> #2  0x741ed3fc in ?? ()
> Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Crash happens in:
  0x627b0694: glGetString+0xc in /usr/lib/libGL.so.1

Coming from our initialization thread, where the context is current:
j  jogamp.opengl.GLContextImpl.glGetStringInt(IJ)Ljava/lang/String;+0
j  jogamp.opengl.GLContextImpl.initGLRendererAndGLVersionStrings()Z+107
j  jogamp.opengl.GLContextImpl.setGLFunctionAvailability(ZIIIZZ)Z+117
j  jogamp.opengl.egl.EGLContext.createImpl(J)Z+596
j  jogamp.opengl.GLContextImpl.makeCurrentWithinLock(I)I+224
j  jogamp.opengl.GLContextImpl.makeCurrent(Z)I+488
j  jogamp.opengl.GLContextImpl.makeCurrent()I+2
j  jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.mapAvailableEGLESConfig(Lcom/jogamp/nativewindow/AbstractGraphicsDevice;[I[I[I[Lcom/jogamp/opengl/GLRendererQuirks;)Z+865
j  jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createEGLSharedResourceImpl(Lcom/jogamp/nativewindow/AbstractGraphicsDevice;)Ljogamp/opengl/egl/EGLDrawableFactory$SharedResource;+201
j  jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createSharedResource(Lcom/jogamp/nativewindow/AbstractGraphicsDevice;)Ljogamp/opengl/SharedResourceRunner$Resource;+8

Looks similar to (?):
  <https://jogamp.org/bugzilla/show_bug.cgi?id=1062>

  ^^ discusses same crash and _why_ the symbols/function
     enters libGL's glGetString().

Interesting ..

~Sven



signature.asc (828 bytes) Download Attachment