Cannot initialize JOGL on Mesa swrast after upgrade

classic Classic list List threaded Threaded
22 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Cannot initialize JOGL on Mesa swrast after upgrade

Dolda2000
Dear forum,

I'm trying to move a program that uses JOGL on Mesa's software renderer from a system running Debian 6.0 to Debian 7.0, and suddenly JOGL cannot initialize any longer. I cannot quite seem to figure out why, though, so any help would be helpful.

At the obvious level, I get this exception: GLException: javax.media.opengl.GLException: Profile GL_DEFAULT is not available on null, but: []

To try and get to the root with that problem, I ran the main function in com.jogamp.newt.opengl.GLWindow for its debug output, and it says the following:

javax.media.opengl.GLException: X11GLXDrawableFactory - Could not initialize shared resources for :6
        at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:313)
        at jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:295)
        at java.lang.Thread.run(Thread.java:679)
Caused by: javax.media.opengl.GLException: glXGetFBConfig(0x8010) failed: error code Unknown error code -1
        at jogamp.opengl.x11.glx.X11GLXGraphicsConfiguration.glXGetFBConfig(X11GLXGraphicsConfiguration.java:354)
        at jogamp.opengl.x11.glx.X11GLXGraphicsConfiguration.FBCfgDrawableTypeBits(X11GLXGraphicsConfiguration.java:255)
        at jogamp.opengl.x11.glx.X11GLXGraphicsConfiguration.GLXFBConfig2GLCapabilities(X11GLXGraphicsConfiguration.java:280)
        at jogamp.opengl.x11.glx.X11GLXGraphicsConfigurationFactory.chooseGraphicsConfigurationFBConfig(X11GLXGraphicsConfigurationFactory.java:333)
        at jogamp.opengl.x11.glx.X11GLXGraphicsConfigurationFactory.chooseGraphicsConfigurationStatic(X11GLXGraphicsConfigurationFactory.java:233)
        at jogamp.opengl.x11.glx.X11GLXDrawableFactory.createMutableSurfaceImpl(X11GLXDrawableFactory.java:508)
        at jogamp.opengl.x11.glx.X11GLXDrawableFactory.createDummySurfaceImpl(X11GLXDrawableFactory.java:519)
        at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:273)
        ... 2 more

This would seem to be the actual problem, but I don't see why glXGetFBConfig would start to fail just because I'm running a newer Debian version. The glxinfo program can list GLXFBConfigs properly:

6 GLXFBConfigs:
    visual  x   bf lv rg d st  colorbuffer  sr ax dp st accumbuffer  ms  cav
  id dep cl sp  sz l  ci b ro  r  g  b  a F gb bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------------
0x000  0 sg  1   0  0    . .   0  0  0  0 .  .  0  0  0  0  0  0  0  0 0 None
0x022  8 gs  0   8  0 r  y .   2  3  3  0 .  .  0 16  8 16 16 16 16  0 0 None
0x000  0 gs  1   0  0    . .   0  0  0  0 .  .  0  0  0  0  0  0  0  0 0 None
0x024  8 tc  0   8  0 r  y .   3  3  2  0 .  .  0 16  8 16 16 16 16  0 0 None
0x025  8 dc  0   8  0 r  y .   3  3  2  0 .  .  0 16  8 16 16 16 16  0 0 None
0x026  8 sg  0   8  0 r  y .   2  3  3  0 .  .  0 16  8 16 16 16 16  0 0 None

And I can only imagine it uses the same function to get them, no?
Reply | Threaded
Open this post in threaded view
|

Re: Cannot initialize JOGL on Mesa swrast after upgrade

Dolda2000
This post was updated on .
For the record, this is the full output from GLWindow:

/usr/bin/java
java version "1.6.0_27"
OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1~deb7u1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
LIBXCB_ALLOW_SLOPPY_LOCK:
LIBGL_DRIVERS_PATH:
LIBGL_DEBUG:
java
CLASSPATH: jar/gluegen-rt.jar:jar/jogl-all.jar

forceES2    false
forceES3    false
forceGL3    false
forceGL4ES3 false
-----------------------------------------------------------------------------------------------------
Platform: LINUX / Linux 3.13.0 (3.13.0), amd64 (arch), GENERIC_ABI, 8 cores
MachineDescription: runtimeValidated true, littleEndian true, 32Bit false, primitive size / alignment:
  int8    1 / 1, int16   2 / 2
  int     4 / 4, long    8 / 8
  int32   4 / 4, int64   8 / 8
  float   4 / 4, double  8 / 8, ldouble 16 / 16
  pointer 8 / 8, page    4096
Platform: Java Version: 1.6.0_27 (1.6.0u27), VM: OpenJDK 64-Bit Server VM, Runtime: OpenJDK Runtime Environment
Platform: Java Vendor: Sun Microsystems Inc., http://java.sun.com/, JavaSE: true, Java6: true, AWT enabled: true
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
Package: com.jogamp.common
Extension Name: com.jogamp.common
Specification Title: GlueGen Java Bindings Generator
Specification Vendor: JogAmp Community
Specification Version: 2.1
Implementation Title: GlueGen Run-Time
Implementation Vendor: JogAmp Community
Implementation Vendor ID: com.jogamp
Implementation URL: http://jogamp.org/
Implementation Version: 2.1.4
Implementation Build: 2.1-b771-20140130
Implementation Branch: origin/master
Implementation Commit: 4a70b7d3346341070fd78fa04428262fb6260a01
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
Package: javax.media.opengl
Extension Name: javax.media.opengl
Specification Title: Java Bindings for OpenGL API Specification
Specification Vendor: JogAmp Community
Specification Version: 2.1
Implementation Title: Java Bindings for OpenGL Runtime Environment
Implementation Vendor: JogAmp Community
Implementation Vendor ID: com.jogamp
Implementation URL: http://jogamp.org/
Implementation Version: 2.1.4
Implementation Build: 2.1-b1217-20140131
Implementation Branch: origin/master
Implementation Commit: c7ef2bf610ad3310aa9785820489f980c223cdb0
-----------------------------------------------------------------------------------------------------
javax.media.opengl.GLException: X11GLXDrawableFactory - Could not initialize shared resources for :6
        at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:316)
        at jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:295)
        at java.lang.Thread.run(Thread.java:679)
Caused by: javax.media.opengl.GLException: glXGetFBConfig(0x8010) failed: error code Unknown error code -1
        at jogamp.opengl.x11.glx.X11GLXGraphicsConfiguration.glXGetFBConfig(X11GLXGraphicsConfiguration.java:424)
        at jogamp.opengl.x11.glx.X11GLXGraphicsConfiguration.FBCfgDrawableTypeBits(X11GLXGraphicsConfiguration.java:257)
        at jogamp.opengl.x11.glx.X11GLXGraphicsConfiguration.GLXFBConfig2GLCapabilities(X11GLXGraphicsConfiguration.java:315)
        at jogamp.opengl.x11.glx.X11GLXGraphicsConfiguration.GLXFBConfig2GLCapabilities(X11GLXGraphicsConfiguration.java:301)
        at jogamp.opengl.x11.glx.X11GLXGraphicsConfigurationFactory.chooseGraphicsConfigurationFBConfig(X11GLXGraphicsConfigurationFactory.java:334)
        at jogamp.opengl.x11.glx.X11GLXGraphicsConfigurationFactory.chooseGraphicsConfigurationStatic(X11GLXGraphicsConfigurationFactory.java:233)
        at jogamp.opengl.x11.glx.X11GLXDrawableFactory.createMutableSurfaceImpl(X11GLXDrawableFactory.java:511)
        at jogamp.opengl.x11.glx.X11GLXDrawableFactory.createDummySurfaceImpl(X11GLXDrawableFactory.java:522)
        at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:276)
        ... 2 more
GLProfiles on device X11GraphicsDevice[type .x11, connection :6, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x4979935d, isOwner false, <4cb9e45a, 403ef810>[count 0, qsz 0, owner <NULL>]]]
        Natives
                GL4bc   false
                GL4     false
                GLES3   false
                GL3bc   false
                GL3     false
                GL2     false
                GLES2   false
                GLES1   false
                Count   0 / 8
        Common  
                GL4ES3  false
                GL2GL3  false
                GL2ES2  false
                GL2ES1  false
        Mappings
                default n/a
                Count   0 / 12


Desktop Capabilities:
        none

EGL Capabilities:
        none


Exception in thread "main" javax.media.opengl.GLException: Profile GL_DEFAULT is not available on X11GraphicsDevice[type .x11, connection :6, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x4979935d, isOwner false, <4cb9e45a, 403ef810>[count 0, qsz 0, owner <NULL>]]], but: []
        at javax.media.opengl.GLProfile.get(GLProfile.java:909)
        at javax.media.opengl.GLProfile.getDefault(GLProfile.java:640)
        at javax.media.opengl.GLProfile.getDefault(GLProfile.java:651)
        at com.jogamp.newt.opengl.GLWindow.main(GLWindow.java:937)
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[:6, 0x1dd1b20, refCount 1, unCloseable false]



And this is the full output from glxinfo:

name of display: :6
display: :6  screen: 0
direct rendering: Yes
server glx vendor string: Brian Paul
server glx version string: 1.4 Mesa 8.0.5
server glx extensions:
    GLX_MESA_copy_sub_buffer, GLX_MESA_pixmap_colormap,
    GLX_MESA_release_buffers, GLX_ARB_get_proc_address,
    GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating,
    GLX_SGIX_fbconfig, GLX_SGIX_pbuffer
client glx vendor string: Brian Paul
client glx version string: 1.4 Mesa 8.0.5
client glx extensions:
    GLX_MESA_copy_sub_buffer, GLX_MESA_pixmap_colormap,
    GLX_MESA_release_buffers, GLX_ARB_get_proc_address,
    GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating,
    GLX_SGIX_fbconfig, GLX_SGIX_pbuffer
GLX version: 1.4
GLX extensions:
    GLX_MESA_copy_sub_buffer, GLX_MESA_pixmap_colormap,
    GLX_MESA_release_buffers, GLX_ARB_get_proc_address,
    GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating,
    GLX_SGIX_fbconfig, GLX_SGIX_pbuffer
OpenGL vendor string: Brian Paul
OpenGL renderer string: Mesa X11
OpenGL version string: 2.1 Mesa 8.0.5
OpenGL shading language version string: 1.20
OpenGL extensions:
    GL_ARB_multisample, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color,
    GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_copy_texture,
    GL_EXT_polygon_offset, GL_EXT_subtexture, GL_EXT_texture_object,
    GL_EXT_vertex_array, GL_EXT_compiled_vertex_array, GL_EXT_texture,
    GL_EXT_texture3D, GL_IBM_rasterpos_clip, GL_ARB_point_parameters,
    GL_EXT_draw_range_elements, GL_EXT_packed_pixels, GL_EXT_point_parameters,
    GL_EXT_rescale_normal, GL_EXT_separate_specular_color,
    GL_EXT_texture_edge_clamp, GL_SGIS_generate_mipmap,
    GL_SGIS_texture_border_clamp, GL_SGIS_texture_edge_clamp,
    GL_SGIS_texture_lod, GL_ARB_multitexture, GL_IBM_multimode_draw_arrays,
    GL_IBM_texture_mirrored_repeat, GL_3DFX_texture_compression_FXT1,
    GL_ARB_texture_cube_map, GL_ARB_texture_env_add, GL_ARB_transpose_matrix,
    GL_EXT_blend_func_separate, GL_EXT_fog_coord, GL_EXT_multi_draw_arrays,
    GL_EXT_secondary_color, GL_EXT_texture_env_add,
    GL_EXT_texture_filter_anisotropic, GL_EXT_texture_lod_bias,
    GL_INGR_blend_func_separate, GL_MESA_resize_buffers, GL_NV_blend_square,
    GL_NV_light_max_exponent, GL_NV_texgen_reflection,
    GL_NV_texture_env_combine4, GL_SUN_multi_draw_arrays,
    GL_ARB_texture_border_clamp, GL_ARB_texture_compression,
    GL_EXT_framebuffer_object, GL_EXT_texture_env_combine,
    GL_EXT_texture_env_dot3, GL_MESA_window_pos, GL_NV_packed_depth_stencil,
    GL_NV_texture_rectangle, GL_NV_vertex_program, GL_ARB_depth_texture,
    GL_ARB_occlusion_query, GL_ARB_shadow, GL_ARB_shadow_ambient,
    GL_ARB_texture_env_combine, GL_ARB_texture_env_crossbar,
    GL_ARB_texture_env_dot3, GL_ARB_texture_mirrored_repeat,
    GL_ARB_window_pos, GL_ATI_envmap_bumpmap, GL_ATI_fragment_shader,
    GL_EXT_stencil_two_side, GL_EXT_texture_cube_map, GL_NV_depth_clamp,
    GL_NV_fragment_program, GL_NV_point_sprite, GL_NV_vertex_program1_1,
    GL_APPLE_packed_pixels, GL_APPLE_vertex_array_object, GL_ARB_draw_buffers,
    GL_ARB_fragment_program, GL_ARB_fragment_shader, GL_ARB_shader_objects,
    GL_ARB_vertex_program, GL_ARB_vertex_shader, GL_ATI_draw_buffers,
    GL_ATI_texture_env_combine3, GL_EXT_depth_bounds_test,
    GL_EXT_shadow_funcs, GL_EXT_stencil_wrap, GL_MESA_pack_invert,
    GL_MESA_ycbcr_texture, GL_ARB_depth_clamp, GL_ARB_fragment_program_shadow,
    GL_ARB_half_float_pixel, GL_ARB_occlusion_query2, GL_ARB_point_sprite,
    GL_ARB_shading_language_100, GL_ARB_sync, GL_ARB_texture_non_power_of_two,
    GL_ARB_vertex_buffer_object, GL_ATI_blend_equation_separate,
    GL_EXT_blend_equation_separate, GL_OES_read_format,
    GL_ARB_pixel_buffer_object, GL_ARB_texture_compression_rgtc,
    GL_ARB_texture_rectangle, GL_ATI_texture_compression_3dc,
    GL_EXT_pixel_buffer_object, GL_EXT_texture_compression_rgtc,
    GL_EXT_texture_mirror_clamp, GL_EXT_texture_rectangle,
    GL_EXT_texture_sRGB, GL_EXT_texture_shared_exponent,
    GL_ARB_framebuffer_object, GL_EXT_framebuffer_blit,
    GL_EXT_framebuffer_multisample, GL_EXT_packed_depth_stencil,
    GL_NV_fragment_program_option, GL_APPLE_object_purgeable,
    GL_ARB_vertex_array_object, GL_ATI_separate_stencil,
    GL_ATI_texture_mirror_once, GL_EXT_draw_buffers2, GL_EXT_draw_instanced,
    GL_EXT_gpu_program_parameters, GL_EXT_texture_array,
    GL_EXT_texture_compression_latc, GL_EXT_texture_sRGB_decode,
    GL_EXT_timer_query, GL_MESA_texture_array, GL_ARB_copy_buffer,
    GL_ARB_draw_instanced, GL_ARB_half_float_vertex, GL_ARB_map_buffer_range,
    GL_ARB_texture_rg, GL_ARB_texture_swizzle, GL_ARB_vertex_array_bgra,
    GL_EXT_separate_shader_objects, GL_EXT_texture_swizzle,
    GL_EXT_vertex_array_bgra, GL_NV_conditional_render,
    GL_ARB_draw_elements_base_vertex, GL_ARB_explicit_attrib_location,
    GL_ARB_fragment_coord_conventions, GL_ARB_provoking_vertex,
    GL_EXT_provoking_vertex, GL_ARB_robustness, GL_ARB_texture_storage

4 GLX Visuals
    visual  x   bf lv rg d st  colorbuffer  sr ax dp st accumbuffer  ms  cav
  id dep cl sp  sz l  ci b ro  r  g  b  a F gb bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------------
0x022  8 gs  0   8  0 r  y .   2  3  3  0 .  .  0 16  8 16 16 16 16  0 0 None
0x024  8 tc  0   8  0 r  y .   3  3  2  0 .  .  0 16  8 16 16 16  0  0 0 None
0x025  8 dc  0   8  0 r  y .   3  3  2  0 .  .  0 16  8 16 16 16 16  0 0 None
0x026  8 sg  0   8  0 r  y .   2  3  3  0 .  .  0 16  8 16 16 16 16  0 0 None

6 GLXFBConfigs:
    visual  x   bf lv rg d st  colorbuffer  sr ax dp st accumbuffer  ms  cav
  id dep cl sp  sz l  ci b ro  r  g  b  a F gb bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------------
0x000  0 sg  1   0  0    . .   0  0  0  0 .  .  0  0  0  0  0  0  0  0 0 None
0x022  8 gs  0   8  0 r  y .   2  3  3  0 .  .  0 16  8 16 16 16 16  0 0 None
0x000  0 gs  1   0  0    . .   0  0  0  0 .  .  0  0  0  0  0  0  0  0 0 None
0x024  8 tc  0   8  0 r  y .   3  3  2  0 .  .  0 16  8 16 16 16 16  0 0 None
0x025  8 dc  0   8  0 r  y .   3  3  2  0 .  .  0 16  8 16 16 16 16  0 0 None
0x026  8 sg  0   8  0 r  y .   2  3  3  0 .  .  0 16  8 16 16 16 16  0 0 None
Reply | Threaded
Open this post in threaded view
|

Re: Cannot initialize JOGL on Mesa swrast after upgrade

gouessej
Administrator
Hi

At first, please use JOGL 2.1.4. You're still using JOGL 2.1.2 :s
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Cannot initialize JOGL on Mesa swrast after upgrade

Dolda2000
Right, sorry. 2.1.4 gave the exact same error, though.

I have now edited the above post to reflect the output from test.sh in the 2.1.4 distribution.
Reply | Threaded
Open this post in threaded view
|

Re: Cannot initialize JOGL on Mesa swrast after upgrade

Sven Gothel
Administrator
In reply to this post by Dolda2000
On 02/06/2014 04:23 AM, Dolda2000 [via jogamp] wrote:
> Dear forum,
>
> I'm trying to move a program that uses JOGL on Mesa's software renderer from a
> system running Debian 6.0 to Debian 7.0, and suddenly JOGL cannot initialize
> any longer. I cannot quite seem to figure out why, though, so any help would
> be helpful.

Me testing on all sorts of Debian here, incl. 7.0.

Your issues is:

+++

Caused by: javax.media.opengl.GLException: glXGetFBConfig(0x8010) failed: error code Unknown error code -1
        at jogamp.opengl.x11.glx.X11GLXGraphicsConfiguration.glXGetFBConfig(X11GLXGraphicsConfiguration.java:354)
        at jogamp.opengl.x11.glx.X11GLXGraphicsConfiguration.FBCfgDrawableTypeBits(X11GLXGraphicsConfiguration.java:255)

+++

#define GLX_DRAWABLE_TYPE                 0x8010

> This would seem to be the actual problem, but I don't see why glXGetFBConfig
> would start to fail just because I'm running a newer Debian version. The
> glxinfo program can list GLXFBConfigs properly:
>
> 6 GLXFBConfigs:
>     visual  x   bf lv rg d st  colorbuffer  sr ax dp st accumbuffer  ms  cav
>   id dep cl sp  sz l  ci b ro  r  g  b  a F gb bf th cl  r  g  b  a ns b eat
> ----------------------------------------------------------------------------
> 0x000  0 sg  1   0  0    . .   0  0  0  0 .  .  0  0  0  0  0  0  0  0 0 None
> 0x022  8 gs  0   8  0 r  y .   2  3  3  0 .  .  0 16  8 16 16 16 16  0 0 None
> 0x000  0 gs  1   0  0    . .   0  0  0  0 .  .  0  0  0  0  0  0  0  0 0 None
> 0x024  8 tc  0   8  0 r  y .   3  3  2  0 .  .  0 16  8 16 16 16 16  0 0 None
> 0x025  8 dc  0   8  0 r  y .   3  3  2  0 .  .  0 16  8 16 16 16 16  0 0 None
> 0x026  8 sg  0   8  0 r  y .   2  3  3  0 .  .  0 16  8 16 16 16 16  0 0 None
>
> And I can only imagine it uses the same function to get them, no?
Interesting ..

Pls produce test_dbg.log as described on our wiki/jogl/faq/bugreport.

~Sven



signature.asc (894 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Cannot initialize JOGL on Mesa swrast after upgrade

Dolda2000
> Pls produce test_dbg.log as described on our wiki/jogl/faq/bugreport.

Sure thing. It's available here:
<http://www.dolda2000.com/~fredrik/tmp/test_dbg>
Reply | Threaded
Open this post in threaded view
|

Re: Cannot initialize JOGL on Mesa swrast after upgrade

gouessej
Administrator
Thanks. This is not encouraging:
Exception in thread "main" javax.media.opengl.GLException: Profile GL_DEFAULT is not available on X11GraphicsDevice
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Cannot initialize JOGL on Mesa swrast after upgrade

Dolda2000
Isn't the cause of that exception the glXGetFBConfig problem I mentioned in the original post, though?
Reply | Threaded
Open this post in threaded view
|

Re: Cannot initialize JOGL on Mesa swrast after upgrade

gouessej
Administrator
Yes but I'm not 100% sure.
This thing comes from a problem of display:
javax.media.opengl.GLException: X11GLXDrawableFactory - Could not initialize shared resources for :6
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Cannot initialize JOGL on Mesa swrast after upgrade

Dolda2000
In reply to this post by Dolda2000
I tried to run the GLWindow test in gdb, like this:

$ gdb java
(gdb) b glXGetFBConfigAttrib
Function "glXGetFBConfigAttrib" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (glXGetFBConfigAttrib) pending.
(gdb) handle SIGSEGV pass nostop noprint
Signal        Stop      Print   Pass to program Description
SIGSEGV       No        Yes     Yes             Segmentation fault
(gdb) run -cp jogl.jar:gluegen-rt.jar com.jogamp.newt.opengl.GLWindow
[snip output]
Breakpoint 1, 0x00007fffe6d804e0 in glXGetFBConfigAttrib () from /usr/lib/x86_64-linux-gnu/libGL.so.1
(gdb) info frame
Stack level 0, frame at 0x7fffe6a822f0:
 rip = 0x7fffe6d804e0 in glXGetFBConfigAttrib; saved rip 0x7fffe6b12a6e
 called by frame at 0x7fffe6a82350
 Arglist at 0x7fffe6a822e0, args:
 Locals at 0x7fffe6a822e0, Previous frame's sp is 0x7fffe6a822f0
 Saved registers:
  rip at 0x7fffe6a822e8
(gdb) p $rdi
$2 = 9983664
(gdb) p/x $rdi
$3 = 0x9856b0
(gdb) p/x $rsi
$4 = 0x0
(gdb) p/x $rdx
$5 = 0x8010
(gdb) p/x $rcx
$6 = 0x9a9000

Correct me if I'm wrong, but doesn't that mean that JOGL is calling glXGetFBConfigAttrib with a NULL GLXFBConfig pointer?
Reply | Threaded
Open this post in threaded view
|

Re: Cannot initialize JOGL on Mesa swrast after upgrade

Sven Gothel
Administrator
In reply to this post by Dolda2000
On 02/06/2014 11:28 AM, Dolda2000 [via jogamp] wrote:
>> Pls produce test_dbg.log as described on our wiki/jogl/faq/bugreport.
>
> Sure thing. It's available here:
> <http://www.dolda2000.com/~fredrik/tmp/test_dbg
> <http://www.dolda2000.com/%7Efredrik/tmp/test_dbg>>
>

Thank you, now we have all debug information.

Below shows that you have access to your DISPLAY :6

+++

X11Util.initSingleton(): OK true],
         X11 Display(NULL) <:6>,
         XSynchronize Enabled: false,
         X11_EXTENSION_ATIFGLRXDRI false,
         X11_EXTENSION_ATIFGLEXTENSION false,
         requiresToolkitLock true,
         hasThreadingIssues false,
         markAllDisplaysUnclosable false

+++

Below shows that 'libGL.so.1' has been loaded,
is it the system wide one, or is it a private copy of some build ?

+++

NativeLibrary.open(global true): Trying to load libGL.so.1
DynamicLinkerImpl.incrLibRefCount 0x1f305a0 -> LibRef[libGL.so.1, refCount 1], libs loaded 1
NativeLibrary.open(): Successfully loaded: NativeLibrary[libGL.so.1, 0x1f305a0, global true]
Loaded Tool library: NativeLibrary[libGL.so.1, 0x1f305a0, global true]
NativeLibrary.findLibrary(<jogl_desktop>) (TempJarCache): /tmp/jogamp_0001/file_cache/jln4840746670761498962/jln3547628473897872386/libjogl_desktop.so
JNILibLoaderBase: loadLibraryInternal(jogl_desktop), TempJarCache: /tmp/jogamp_0001/file_cache/jln4840746670761498962/jln3547628473897872386/libjogl_desktop.so
JNILibLoaderBase: System.load(/tmp/jogamp_0001/file_cache/jln4840746670761498962/jln3547628473897872386/libjogl_desktop.so) - mode 2
JNILibLoaderBase: loadLibraryInternal(jogl_desktop): OK - mode 2
JNILibLoaderBase: Loaded Native Library: jogl_desktop
JNILibLoaderBase: loaded jogl_desktop

+++

If libGL.so.1 is the system wide Mesa lib,
I don't know why it fails with JOGL.
A 'private copy' surely could cause some troubles.

Please specify how you launch the test:
  - Your default is Mesa software renderer ?
  - ???

You launched an AMD64 OpenJDK process ..

Please specify the exact Debian version you are using:
  - cat /etc/debian_version
  - 'dpkg -l | grep mesa'
  - On your DISPLAY :6 run 'glxgears -info >& glxgears-info.log'

Thank you!

~Sven

+++

#define GLX_DRAWABLE_TYPE                 0x8010

+++
SharedResourceRunner.run(): create Shared for: :6 - main-SharedResourceRunner
X11Util.Display: openDisplay [reuse false] NamedX11Display[:6, 0x201b1e0, refCount 1, unCloseable false]. Thread main-SharedResourceRunner
main-SharedResourceRunner - X11GraphicsDevice.getDefaultDisplay() of X11GraphicsDevice[type .x11, connection :6, unitID 0, handle 0x201b1e0, owner true, ResourceToolkitLock[obj 0x254e8cee, isOwner true, <4cb9e45a, 403ef810>[count 1, qsz 0, owner <main-SharedResourceRunner>]]]: 0, count 1
main-SharedResourceRunner - X11GraphicsDevice.getDefaultDisplay() of X11GraphicsDevice[type .x11, connection :6, unitID 0, handle 0x201b1e0, owner true, ResourceToolkitLock[obj 0x254e8cee, isOwner true, <4cb9e45a, 403ef810>[count 1, qsz 0, owner <main-SharedResourceRunner>]]]: 0, count 1
javax.media.opengl.GLException: X11GLXDrawableFactory - Could not initialize shared resources for :6
        at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:316)
        at jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:295)
        at java.lang.Thread.run(Thread.java:679)
Caused by: javax.media.opengl.GLException: glXGetFBConfig(0x8010) failed: error code Unknown error code -1
        at jogamp.opengl.x11.glx.X11GLXGraphicsConfiguration.glXGetFBConfig(X11GLXGraphicsConfiguration.java:424)
        at jogamp.opengl.x11.glx.X11GLXGraphicsConfiguration.FBCfgDrawableTypeBits(X11GLXGraphicsConfiguration.java:257)
        at jogamp.opengl.x11.glx.X11GLXGraphicsConfiguration.GLXFBConfig2GLCapabilities(X11GLXGraphicsConfiguration.java:315)
        at jogamp.opengl.x11.glx.X11GLXGraphicsConfiguration.GLXFBConfig2GLCapabilities(X11GLXGraphicsConfiguration.java:301)
        at jogamp.opengl.x11.glx.X11GLXGraphicsConfigurationFactory.chooseGraphicsConfigurationFBConfig(X11GLXGraphicsConfigurationFactory.java:334)
        at jogamp.opengl.x11.glx.X11GLXGraphicsConfigurationFactory.chooseGraphicsConfigurationStatic(X11GLXGraphicsConfigurationFactory.java:233)
        at jogamp.opengl.x11.glx.X11GLXDrawableFactory.createMutableSurfaceImpl(X11GLXDrawableFactory.java:511)
        at jogamp.opengl.x11.glx.X11GLXDrawableFactory.createDummySurfaceImpl(X11GLXDrawableFactory.java:522)
        at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:276)
        ... 2 more

+++

--
health & wealth
mailto:[hidden email] ; http://jausoft.com
land : +49 (471) 4707742 ; fax : +49 (471) 4707741
Timezone CET: PST+9, EST+6, UTC+1


signature.asc (894 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Cannot initialize JOGL on Mesa swrast after upgrade

Dolda2000
> Below shows that 'libGL.so.1' has been loaded,
> is it the system wide one, or is it a private copy of some build ?

It's the system-wide one, from the Debian package libgl1-mesa-swx11.

>Please specify how you launch the test:
>  - Your default is Mesa software renderer ?
>  - ???

Install xvfb and libgl1-mesa-swx11, start an Xvfb server at some display, and then just run Java on that display.

>Please specify the exact Debian version you are using:
>  - cat /etc/debian_version
7.3
>  - 'dpkg -l | grep mesa'
ii  libgl1-mesa-swx11:amd64             8.0.5-4+deb7u2                amd64        free implementation of the OpenGL API -- runtime
ii  libgl1-mesa-swx11-dbg:amd64         8.0.5-4+deb7u2                amd64        free implementation of the OpenGL API -- debugging symbols
ii  libgl1-mesa-swx11-dev               8.0.5-4+deb7u2                amd64        free implementation of the OpenGL API -- development files
ii  libglu1-mesa:amd64                  8.0.5-4+deb7u2                amd64        Mesa OpenGL utility library (GLU)
ii  libosmesa6:amd64                    8.0.5-4+deb7u2                amd64        Mesa Off-screen rendering extension
ii  mesa-common-dev                     8.0.5-4+deb7u2                amd64        Developer documentation for Mesa
ii  mesa-utils                          8.0.1-2+b3                    amd64        Miscellaneous Mesa GL utilities
>  - On your DISPLAY :6 run 'glxgears -info >& glxgears-info.log'
GL_RENDERER   = Mesa X11
GL_VERSION    = 2.1 Mesa 8.0.5
GL_VENDOR     = Brian Paul
GL_EXTENSIONS = GL_ARB_multisample GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_copy_texture GL_EXT_polygon_offset GL_EXT_subtexture GL_EXT_texture_object GL_EXT_vertex_array GL_EXT_compiled_vertex_array GL_EXT_texture GL_EXT_texture3D GL_IBM_rasterpos_clip GL_ARB_point_parameters GL_EXT_draw_range_elements GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_separate_specular_color GL_EXT_texture_edge_clamp GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_ARB_multitexture GL_IBM_multimode_draw_arrays GL_IBM_texture_mirrored_repeat GL_3DFX_texture_compression_FXT1 GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_transpose_matrix GL_EXT_blend_func_separate GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_secondary_color GL_EXT_texture_env_add GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_INGR_blend_func_separate GL_MESA_resize_buffers GL_NV_blend_square GL_NV_light_max_exponent GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_SUN_multi_draw_arrays GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_EXT_framebuffer_object GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_MESA_window_pos GL_NV_packed_depth_stencil GL_NV_texture_rectangle GL_NV_vertex_program GL_ARB_depth_texture GL_ARB_occlusion_query GL_ARB_shadow GL_ARB_shadow_ambient GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_window_pos GL_ATI_envmap_bumpmap GL_ATI_fragment_shader GL_EXT_stencil_two_side GL_EXT_texture_cube_map GL_NV_depth_clamp GL_NV_fragment_program GL_NV_point_sprite GL_NV_vertex_program1_1 GL_APPLE_packed_pixels GL_APPLE_vertex_array_object GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_shader GL_ARB_shader_objects GL_ARB_vertex_program GL_ARB_vertex_shader GL_ATI_draw_buffers GL_ATI_texture_env_combine3 GL_EXT_depth_bounds_test GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_MESA_pack_invert GL_MESA_ycbcr_texture GL_ARB_depth_clamp GL_ARB_fragment_program_shadow GL_ARB_half_float_pixel GL_ARB_occlusion_query2 GL_ARB_point_sprite GL_ARB_shading_language_100 GL_ARB_sync GL_ARB_texture_non_power_of_two GL_ARB_vertex_buffer_object GL_ATI_blend_equation_separate GL_EXT_blend_equation_separate GL_OES_read_format GL_ARB_pixel_buffer_object GL_ARB_texture_compression_rgtc GL_ARB_texture_rectangle GL_ATI_texture_compression_3dc GL_EXT_pixel_buffer_object GL_EXT_texture_compression_rgtc GL_EXT_texture_mirror_clamp GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_shared_exponent GL_ARB_framebuffer_object GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_packed_depth_stencil GL_NV_fragment_program_option GL_APPLE_object_purgeable GL_ARB_vertex_array_object GL_ATI_separate_stencil GL_ATI_texture_mirror_once GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_gpu_program_parameters GL_EXT_texture_array GL_EXT_texture_compression_latc GL_EXT_texture_sRGB_decode GL_EXT_timer_query GL_MESA_texture_array GL_ARB_copy_buffer GL_ARB_draw_instanced GL_ARB_half_float_vertex GL_ARB_map_buffer_range GL_ARB_texture_rg GL_ARB_texture_swizzle GL_ARB_vertex_array_bgra GL_EXT_separate_shader_objects GL_EXT_texture_swizzle GL_EXT_vertex_array_bgra GL_NV_conditional_render GL_ARB_draw_elements_base_vertex GL_ARB_explicit_attrib_location GL_ARB_fragment_coord_conventions GL_ARB_provoking_vertex GL_EXT_provoking_vertex GL_ARB_robustness GL_ARB_texture_storage



Also, to follow up on the above gdb attempt, I found the debug symbols lying in libgl1-mesa-swx11-dbg, and indeed, JOGL is calling glXGetFBConfigAttrib with a NULL GLXFBConfig parameter:

Breakpoint 1, glXGetFBConfigAttrib (dpy=0x8fa730, config=0x0, attribute=32784, value=0x924000) at glxapi.c:536
536     glxapi.c: No such file or directory.
(gdb) bt
#0  glXGetFBConfigAttrib (dpy=0x8fa730, config=0x0, attribute=32784, value=0x924000) at glxapi.c:536
#1  0x00007fffe6b12a9f in Java_jogamp_opengl_x11_glx_GLX_dispatch_1glXGetFBConfigAttrib0__JJILjava_lang_Object_2IJ () from /tmp/jogamp_0001/file_cache/jln2049501996060129270/jln1380790123089166719/libjogl_desktop.so
#2  0x00007ffff1e2ad68 in ?? ()
#3  0x0000000000000000 in ?? ()
Reply | Threaded
Open this post in threaded view
|

Re: Cannot initialize JOGL on Mesa swrast after upgrade

Dolda2000
In continuation on that gdb attempt, it seems that, in this case, glXGetConfigAttrib dispatches to "Fake_glXGetFBConfigAttrib" in src/mesa/drivers/x11/fakeglx.c, which indeed returns -1 on having a NULL config passed in:

   if (!dpy || !config || !value)
      return -1;

I just wanted to mention it, since it is congruent with the Exception message saying "Unknown error code -1".
Reply | Threaded
Open this post in threaded view
|

Re: Cannot initialize JOGL on Mesa swrast after upgrade

Dolda2000
Actually, I'm now inclined to ascribe this problem to some kind of bug in Mesa. I traced it back to glXChooseFBConfig, and Mesa actually seems to return a list with NULLs in it:

Breakpoint 1, glXChooseFBConfig (dpy=0x92a590, screen=0, attribList=0x0, nitems=0x93d000) at glxapi.c:440
440     in glxapi.c
(gdb) fin
Run till exit from #0  glXChooseFBConfig (dpy=0x92a590, screen=0, attribList=0x0, nitems=0x93d000) at glxapi.c:440
0x00007fffe6b121e9 in Java_jogamp_opengl_x11_glx_GLX_dispatch_1glXChooseFBConfig () from /tmp/jogamp_0001/file_cache/jln276503119532837898/jln5814539244293834592/libjogl_desktop.so
Value returned is $3 = (GLXFBConfig *) 0x9368e0
(gdb) p *(int *)0x93d000
$4 = 6
(gdb) p $3[0]
$5 = (GLXFBConfig) 0x0
(gdb) p $3[1]
$6 = (GLXFBConfig) 0x93d380
(gdb) p $3[2]
$7 = (GLXFBConfig) 0x0
(gdb) p $3[3]
$8 = (GLXFBConfig) 0x9407a0
(gdb) p $3[4]
$9 = (GLXFBConfig) 0x943bc0
(gdb) p $3[5]
$10 = (GLXFBConfig) 0x946fe0

Sorry for wasting your time with something that doesn't seem to have with JOGL to do at all. I just assumed JOGL did something weird, since glxinfo worked properly, but looking at it, those NULLs correspond to lines from glxinfo where all attributes are zeroes, so glxinfo probably just doesn't check the return code from glXGetFBConfigAttrib.

If anything, you guys may want to check for this condition and signal it specifically, but if you decide not to, I understand entirely, since it's clearly pathological. :)
Reply | Threaded
Open this post in threaded view
|

Re: Cannot initialize JOGL on Mesa swrast after upgrade

Sven Gothel
Administrator
On 02/06/2014 12:16 PM, Dolda2000 [via jogamp] wrote:> In continuation on that
gdb attempt, it seems that, in this case,

> glXGetConfigAttrib dispatches to "Fake_glXGetFBConfigAttrib" in
> src/mesa/drivers/x11/fakeglx.c, which indeed returns -1 on having a NULL
> config passed in:
>
>    if (!dpy || !config || !value)
>       return -1;
>
> I just wanted to mention it, since it is congruent with the Exception message
> saying "Unknown error code -1".
>
That would mean that the call to

  GLX.glXChooseFBConfig(display, screen, null, count);

[jogamp.opengl.x11.glx.X11GLXGraphicsConfigurationFactory.chooseGraphicsConfigurationFBConfig(..)
in line 327]

returns an array of PointerBuffer but one (1st and only one?) is a NULL ptr ?

On 02/06/2014 12:42 PM, Dolda2000 [via jogamp] wrote:

> Actually, I'm now inclined to ascribe this problem to some kind of bug in
> Mesa. I traced it back to glXChooseFBConfig, and Mesa actually seems to return
> a list with NULLs in it:
>
>
> Sorry for wasting your time with something that doesn't seem to have with JOGL
> to do at all. I just assumed JOGL did something weird, since glxinfo worked
> properly, but looking at it, those NULLs correspond to lines from glxinfo
> where all attributes are zeroes, so glxinfo probably just doesn't check the
> return code from glXGetFBConfigAttrib.
We came to the same conclusion - see above :)

Surely some issue with that Mesa release .. hmm,
and surely not wasting our time!

+++

However, we could attempt a workaround, i.e. handle it upstream.

Maybe you can test to catch the exception from glXGetFBConfig
and return zero at FBCfgDrawableTypeBits ?

It probably will result in zero found FBConfigs .. and using the XVisual instead.

Can you test this ?

> If anything, you guys may want to check for this condition and signal it
> specifically, but if you decide not to, I understand entirely, since it's
> clearly pathological. :)

We are used to driver bugs :)

+++

BTW, is 'libgl1-mesa-swx11' the right choice for software rendering in the
first place ?

I thought the gallium llvm provides software rendering .. hmm

~Sven




signature.asc (894 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Cannot initialize JOGL on Mesa swrast after upgrade

Dolda2000
>That would mean that the call to [glXChooseFBConfig] returns an array of PointerBuffer but one (1st and only one?) is a NULL ptr ?

No; as you can see from glxinfo, it returns 6 GLXFBConfigs, two of which are NULL.

> However, we could attempt a workaround, i.e. handle it upstream.

> Maybe you can test to catch the exception from glXGetFBConfig
> and return zero at FBCfgDrawableTypeBits ?

I find JOGL's build process a bit strange and weird, and must admit I am uninclined to try and understand it. :)

I did fix the bug in Mesa instead. It turns out that it maps XVisualInfos through a function that may return NULL for visuals that aren't usable for GL, so I simply made glXGetFBConfigs not include those NULL results in its list, and installed my fixed Mesa. The result is a list of usable GLXFBConfigs only, and that made JOGL continue properly. (I have also reported the bug to Debian now.)


However, having continued, it happened into a new problem:
javax.media.opengl.GLException: main-SharedResourceRunner: Error making temp context(1) current

I'm not sure if I should start a new thread for this, as it seems to be a separate problem. Either way, here's a new test_dbg.log which traces this problem: <http://www.dolda2000.com/~fredrik/tmp/test_dbg-2>
Reply | Threaded
Open this post in threaded view
|

Re: Cannot initialize JOGL on Mesa swrast after upgrade

Dolda2000
In reply to this post by Sven Gothel
> BTW, is 'libgl1-mesa-swx11' the right choice for software rendering in the
> first place ?

As far as I'm aware, for sure. :)

What makes you think it isn't?

> I thought the gallium llvm provides software rendering .. hmm

It does, indeed, through libgl1-mesa-swx11. It in turn uses Mesa's standard libosmesa, which is what implements the llvmpipe. I'm not sure if this is part of Mesa 8.0, however; it may be a later development.
Reply | Threaded
Open this post in threaded view
|

Re: Cannot initialize JOGL on Mesa swrast after upgrade

Sven Gothel
Administrator
In reply to this post by Dolda2000
On 02/06/2014 01:35 PM, Dolda2000 [via jogamp] wrote:

>>That would mean that the call to [glXChooseFBConfig] returns an array of
> PointerBuffer but one (1st and only one?) is a NULL ptr ?
>
> No; as you can see from glxinfo, it returns 6 GLXFBConfigs, two of which are
> NULL.
>
>> However, we could attempt a workaround, i.e. handle it upstream.
>
>> Maybe you can test to catch the exception from glXGetFBConfig
>> and return zero at FBCfgDrawableTypeBits ?
>
> I find JOGL's build process a bit strange and weird, and must admit I am
> uninclined to try and understand it. :)
>
Ah .. the little bit of ant shall not hurt :)

  <http://jogamp.org/jogl/doc/HowToBuild.html>

> I did fix the bug in Mesa instead. It turns out that it maps XVisualInfos
> through a function that may return NULL for visuals that aren't usable for GL,
> so I simply made glXGetFBConfigs not include those NULL results in its list,
> and installed my fixed Mesa. The result is a list of usable GLXFBConfigs only,
> and that made JOGL continue properly. (I have also reported the bug to Debian
> now.)

Great, I like to add this workaround as well ..

I will open a bug report for this one.

>
>
> However, having continued, it happened into a new problem:
> javax.media.opengl.GLException: main-SharedResourceRunner: Error making temp
> context(1) current
>
> I'm not sure if I should start a new thread for this, as it seems to be a
> separate problem. Either way, here's a new test_dbg.log which traces this
> problem: <http://www.dolda2000.com/~fredrik/tmp/test_dbg-2
> <http://www.dolda2000.com/%7Efredrik/tmp/test_dbg-2>>

We surely have a problem, the returned FBConfigs are not >= 15 bits-per-pixel.

I am surprised that it even went this far, sine we require an RGB[A] surface .. hmm.

+++

X11GLXGraphicsConfiguration.chooseGraphicsConfigurationFBConfig: got configs: 4
0: GLCaps[glx vid 0x22, fbc 0x22: rgba 2/3/3/0, opaque, accum-rgba 16/16/16/16, dp/st/ms 16/8/0, dbl, mono  , hw, GLProfile[GL2/GL2.sw], on-scr[.]]
1: GLCaps[glx vid 0x24, fbc 0x24: rgba 3/3/2/0, opaque, accum-rgba 16/16/16/16, dp/st/ms 16/8/0, dbl, mono  , hw, GLProfile[GL2/GL2.sw], on-scr[.]]
2: GLCaps[glx vid 0x25, fbc 0x25: rgba 3/3/2/0, opaque, accum-rgba 16/16/16/16, dp/st/ms 16/8/0, dbl, mono  , hw, GLProfile[GL2/GL2.sw], on-scr[.]]
3: GLCaps[glx vid 0x26, fbc 0x26: rgba 2/3/3/0, opaque, accum-rgba 16/16/16/16, dp/st/ms 16/8/0, dbl, mono  , hw, GLProfile[GL2/GL2.sw], on-scr[.]]
chooseCapabilities: Chosen idx 0
X11GLXGraphicsConfiguration.chooseGraphicsConfigurationStatic(visualID 0x0, X11GraphicsScreen[X11GraphicsDevice[type .x11, connection :6, unitID 0, handle 0x10454e0, owner true, ResourceToolkitLock[obj 0x1ebcda2d, isOwner true, <66100363, 254e8cee>[count 1, qsz 0, owner <main-SharedResourceRunner>]]], idx 0],GLCaps[rgba 8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/0, dbl, mono  , hw, GLProfile[GL2/GL2.sw], on-scr[.]]): X11GLXGraphicsConfiguration[X11GraphicsScreen[X11GraphicsDevice[type .x11, connection :6, unitID 0, handle 0x10454e0, owner true, ResourceToolkitLock[obj 0x1ebcda2d, isOwner true, <66100363, 254e8cee>[count 1, qsz 0, owner <main-SharedResourceRunner>]]], idx 0], visualID 0x22, fbConfigID 0x22,
        requested GLCaps[rgba 8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/0, dbl, mono  , hw, GLProfile[GL2/GL2.sw], on-scr[.]],
        chosen    GLCaps[glx vid 0x22, fbc 0x22: rgba 2/3/3/0, opaque, accum-rgba 16/16/16/16, dp/st/ms 16/8/0, dbl, mono  , hw, GLProfile[GL2/GL2.sw], on-scr[.]]]
main-SharedResourceRunner: setRealized: drawable X11OnscreenGLXDrawable, surface WrappedSurface, isProxySurface true: false -> true

+++

Context and FBConfig doesn't get along ..

There must be much more broken, i.e. GLX/Mesa-X11SW doesn't work together somewhat.

~Sven




signature.asc (894 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Cannot initialize JOGL on Mesa swrast after upgrade

Sven Gothel
Administrator
In reply to this post by Dolda2000
On 02/06/2014 01:47 PM, Dolda2000 [via jogamp] wrote:
>> BTW, is 'libgl1-mesa-swx11' the right choice for software rendering in the
>> first place ?
>
> As far as I'm aware, for sure. :)
>
> What makes you think it isn't?

Dunno .. just confused w/ the many diff mesa packages
and it's versions.

>
>> I thought the gallium llvm provides software rendering .. hmm
>
> It does, indeed, through libgl1-mesa-swx11. It in turn uses Mesa's standard
> libosmesa, which is what implements the llvmpipe. I'm not sure if this is part
> of Mesa 8.0, however; it may be a later development.

'libosmesa' .. for all offscreen rendering .. hmm, so fake GLX .. right.
Indeed .. never tested this configuration.

So it would be great to have it working indeed.

~Sven



signature.asc (894 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Cannot initialize JOGL on Mesa swrast after upgrade

Sven Gothel
Administrator
In reply to this post by Dolda2000
On 02/06/2014 02:13 PM, Sven Gothel wrote:
> Great, I like to add this workaround as well ..
>
> I will open a bug report for this one.

<https://jogamp.org/bugzilla/show_bug.cgi?id=961>

Let's cont. here .. thx!

>



signature.asc (894 bytes) Download Attachment
12