Posted by
Tzargoth on
May 13, 2019; 6:08pm
URL: https://forum.jogamp.org/JOGL-demo-and-other-apps-show-only-black-canvas-window-tp4039768p4039772.html
Yes, I use mesa and set the appropriate environment variable to force the version:
#!/bin/sh
export MESA_GL_VERSION_OVERRIDE=3.1
export CLASSPATH=/home/some_user/dev/jogl/demo/*
java demos.gears.Gears
There are no errors generated/shown (other than not working as intended). Here is the console output:
$ ./gears.sh
Gears: Init: AWT-GLCanvas[Realized true,
jogamp.opengl.x11.glx.X11OnscreenGLXDrawable,
Factory jogamp.opengl.x11.glx.X11GLXDrawableFactory@35bd081e,
handle 0x4c00021,
Drawable size 298x273 surface[298x273],
AWT[pos 1/26, size 298x273,
visible true, displayable true, showing true,
AWTGraphicsConfiguration[AWTGraphicsScreen[AWTGraphicsDevice[type .awt, connection :0.0, unitID 0, awtDevice X11GraphicsDevice[screen=0], handle 0x0], idx 0],
chosen GLCaps[glx vid 0x30f, fbc 0xb9: rgba 8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms 24/0/0, dbl, mono , hw, GLProfile[GL3bc/GL3bc.hw], on-scr[.]],
requested GLCaps[rgba 8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/0, dbl, mono , hw, GLProfile[GL3bc/GL3bc.hw], on-scr[.]],
X11GraphicsConfig[dev=X11GraphicsDevice[screen=0],vis=0x30f],
encapsulated X11GLXGraphicsConfiguration[X11GraphicsScreen[X11GraphicsDevice[type .x11, connection :0.0, unitID 0, handle 0x7feeb865bd80, owner true, JAWTToolkitLock[obj 0x2f7d1bea, isOwner true, <21479515, 6c53d966>[count 1, qsz 0, owner <AWT-EventQueue-0>]]], idx 0], visualID 0x30f, fbConfigID 0xb9,
requested GLCaps[rgba 8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/0, dbl, mono , hw, GLProfile[GL3bc/GL3bc.hw], on-scr[.]],
chosen GLCaps[glx vid 0x30f, fbc 0xb9: rgba 8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms 24/0/0, dbl, mono , hw, GLProfile[GL3bc/GL3bc.hw], on-scr[.]]]]]]
Chosen GLCapabilities: GLCaps[glx vid 0x30f, fbc 0xb9: rgba 8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms 24/0/0, dbl, mono , hw, GLProfile[GL3bc/GL3bc.hw], on-scr[.]]
INIT GL IS: jogamp.opengl.gl4.GL4bcImpl
GL_VENDOR: X.Org
GL_RENDERER: AMD TURKS (DRM 2.43.0 / 4.4.0-145-generic, LLVM 6.0.0)
GL_VERSION: 3.1 (Core Profile) Mesa 18.0.5
gear1 list created: 0
gear2 list created: 0
gear3 list created: 0
Gears: Reshape 0/0 298x273
... <resized the window many times> ...
Gears: Reshape 0/0 294x273
X11Util.Display: Shutdown (JVM shutdown: true, open (no close attempt): 1/1, reusable (open, marked uncloseable): 0, pending (open in creation order): 1)
X11Util: Open X11 Display Connections: 1
X11Util: Open[0]: NamedX11Display[:0.0, 0x7feeb865bd80, refCount 1, unCloseable false]
I will try the nightly build and let you know.