Login  Register

Error mapping GL4bc

Posted by gst0098 on Oct 05, 2017; 4:26pm
URL: https://forum.jogamp.org/Error-mapping-GL4bc-tp4038221.html

Hello, an appa that works correctly con nvidia grpahics card (under archlinux) does not with an Amd RX580, it dies with the following error dump (the final part of it):

AWT-EventQueue-0-SharedResourceRunner: EGLSurface         : EGLSurface[ displayHandle 0x7fc644db81b0
, surfaceHandle 0x0
, size 64x64
, UOB[ OWNS_SURFACE | WINDOW_INVISIBLE | SURFACELESS ]
, EGLGraphicsConfiguration[DefaultGraphicsScreen[EGLGraphicsDevice[type .egl, v1.5.0, connection :0, unitID 0, handle 0x7fc644db81b0, owner true, ResourceToolkitLock[obj 0x5a005e17, isOwner true, <28a3c8e9, 7b0b8ea7>[count 2, qsz 0, owner <AWT-EventQueue-0-SharedResourceRunner>]]], idx 0],
        eglConfigHandle 0x7fc6280a8900, eglConfigID 0x12,
        requested GLCaps[rgba 5/5/5/0, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/0, one, mono  , hw, GLProfile[GLES2/GLES2.sw], on-scr[.]],
        chosen    GLCaps[egl cfg 0x12, vid 0x21: rgba 8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/0, dbl, mono  , hw, GLProfile[GLES2/GLES2.sw], on-scr[.], [0x4d: GL, GLES1, GLES2, GLES3, VG]]]
, surfaceLock <3ce2d8ee, 6fd17473>[count 0, qsz 0, owner <NULL>]
, GenericUpstreamSurfacelessHook[pixel 64x64]
, upstreamSurface false ]
    [2]: jogamp.opengl.egl.EGLDrawable.destroyHandle(EGLDrawable.java:89)
    [3]: jogamp.opengl.GLDrawableImpl.setRealized(GLDrawableImpl.java:196)
    [4]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.mapAvailableEGLESConfig(EGLDrawableFactory.java:752)
    [5]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createEGLSharedResourceImpl(EGLDrawableFactory.java:613)
    [6]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createSharedResource(EGLDrawableFactory.java:516)
    [7]: jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353)
    [8]: java.lang.Thread.run(Thread.java:748)
AWT-EventQueue-0-SharedResourceRunner: EGLDrawable.setRealized(false): NOP - EGLSurface[ displayHandle 0x7fc644db81b0
, surfaceHandle 0x0
, size 64x64
, UOB[ OWNS_SURFACE | WINDOW_INVISIBLE | SURFACELESS ]
, EGLGraphicsConfiguration[DefaultGraphicsScreen[EGLGraphicsDevice[type .egl, v1.5.0, connection :0, unitID 0, handle 0x7fc644db81b0, owner true, ResourceToolkitLock[obj 0x5a005e17, isOwner true, <28a3c8e9, 7b0b8ea7>[count 2, qsz 0, owner <AWT-EventQueue-0-SharedResourceRunner>]]], idx 0],
        eglConfigHandle 0x7fc6280a8900, eglConfigID 0x12,
        requested GLCaps[rgba 5/5/5/0, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/0, one, mono  , hw, GLProfile[GLES2/GLES2.sw], on-scr[.]],
        chosen    GLCaps[egl cfg 0x12, vid 0x21: rgba 8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/0, dbl, mono  , hw, GLProfile[GLES2/GLES2.sw], on-scr[.], [0x4d: GL, GLES1, GLES2, GLES3, VG]]]
, surfaceLock <3ce2d8ee, 6fd17473>[count 0, qsz 0, owner <NULL>]
, GenericUpstreamSurfacelessHook[pixel 64x64]
, upstreamSurface false ]
EGLDrawableFactory.MapGLVersions: mapSuccess true, mappedToDefaultDevice false
EGLDrawableFactory.MapGLVersions: defDevice  : EGLGraphicsDevice[type .egl, v1.5.0, connection :0, unitID 0, handle 0x7fc644db81b0, owner true, ResourceToolkitLock[obj 0x5a005e17, isOwner true, <28a3c8e9, 7b0b8ea7>[count 1, qsz 0, owner <AWT-EventQueue-0-SharedResourceRunner>]]]
EGLDrawableFactory.MapGLVersions: adevice    : EGLGraphicsDevice[type .egl, v1.5.0, connection :0, unitID 0, handle 0x7fc644db81b0, owner true, ResourceToolkitLock[obj 0x5a005e17, isOwner true, <28a3c8e9, 7b0b8ea7>[count 1, qsz 0, owner <AWT-EventQueue-0-SharedResourceRunner>]]]
EGLDrawableFactory.MapGLVersions: eglDevice  : EGLGraphicsDevice[type .egl, v1.5.0, connection :0, unitID 0, handle 0x7fc644db81b0, owner true, ResourceToolkitLock[obj 0x5a005e17, isOwner true, <28a3c8e9, 7b0b8ea7>[count 1, qsz 0, owner <AWT-EventQueue-0-SharedResourceRunner>]]]
EGLDrawableFactory.MapGLVersions: context ES1: true, quirks []
EGLDrawableFactory.MapGLVersions: context ES2: true, quirks []
EGLDrawableFactory.MapGLVersions: context ES3: true, quirks []
EGLDrawableFactory.MapGLVersions: context GLn: true, quirks []
EGLDrawableFactory.MapGLVersion.map 0
SharedResourceRunner.run(): READY - AWT-EventQueue-0-SharedResourceRunner
SharedResourceRunner.doAndWait() END init: EGLGraphicsDevice[type .egl, v1.5.0, connection :0, unitID 0, handle 0x7fc644db81b0, owner true, ResourceToolkitLock[obj 0x5a005e17, isOwner false, <28a3c8e9, 7b0b8ea7>[count 0, qsz 0, owner <NULL>]]], release: null - AWT-EventQueue-0
SharedResourceRunner.getOrCreateShared() EGLGraphicsDevice[type .egl, v1.5.0, connection :0, unitID 0, handle 0x7fc644db81b0, owner true, ResourceToolkitLock[obj 0x5a005e17, isOwner false, <28a3c8e9, 7b0b8ea7>[count 0, qsz 0, owner <NULL>]]]: success - AWT-EventQueue-0
GLProfile.init map .egl_:0_0, desktopCtxUndef false, esCtxUndef false
GLProfile.init map *** no mapping for GL4bc on device .egl_:0_0
Exception in thread "AWT-EventQueue-0" java.lang.InternalError: XXX0 profile[1]: GL3bc -> profileImpl GL4bc !!! not mapped
        at com.jogamp.opengl.GLProfile.computeProfileMap(GLProfile.java:2071)
        at com.jogamp.opengl.GLProfile.initProfilesForDeviceCritical(GLProfile.java:1954)
        at com.jogamp.opengl.GLProfile.initProfilesForDevice(GLProfile.java:1875)
        at com.jogamp.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1842)
        at com.jogamp.opengl.GLProfile.access$000(GLProfile.java:80)
        at com.jogamp.opengl.GLProfile$1.run(GLProfile.java:230)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.jogamp.opengl.GLProfile.initSingleton(GLProfile.java:216)
        at com.jogamp.opengl.GLProfile.getDefaultDevice(GLProfile.java:2027)
        at com.jogamp.opengl.awt.GLJPanel.<init>(GLJPanel.java:363)
        at com.jogamp.opengl.awt.GLJPanel.<init>(GLJPanel.java:337)
        at com.jogamp.opengl.awt.GLJPanel.<init>(GLJPanel.java:325)
        at muvisetup.SceneOGLMag.<init>(SceneOGLMag.java:50)
        at muvisetup.MUVISetup.initOGLComponents(MUVISetup.java:250)
        at muvisetup.MUVISetup.<init>(MUVISetup.java:215)
        at muvisetup.MUVISetup$33.run(MUVISetup.java:2575)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
        at java.awt.EventQueue.access$500(EventQueue.java:97)
        at java.awt.EventQueue$3.run(EventQueue.java:709)
        at java.awt.EventQueue$3.run(EventQueue.java:703)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)


Any clue on how to fix this ?
All others app that use opengl are working correctly using the accelerated driver.

Thanks in advance,
Giuseppe