GLXBadFBConfig

I’ve been working on some SDL2/OpenGL code, and I’ve unexpectedly started running into a GLX error:

Code:

X Error of failed request: GLXBadFBConfig
Major opcode of failed request: 154 (GLX)
Minor opcode of failed request: 34 ()
Serial number of failed request: 168
Current serial number in output stream: 167

This appears to be almost identical to bug 1749, which was fixed back in March. However, on my machine, the error occurs even with the latest SDL snapshot.

The error only seems to occur when I request an OpenGL 3.x context, but my card has support for OpenGL 3.2, and I’m pretty sure that my drivers also support that version.

What operating system and computer type/model are you using?
I’ve gotten that error a few times on my new intel/nvidia laptop, which
bumblebee was able to resolve.On Wed, Jun 26, 2013 at 8:05 PM, blm768 wrote:

**
I’ve been working on some SDL2/OpenGL code, and I’ve unexpectedly started
running into a GLX error:

Code:

X Error of failed request: GLXBadFBConfig
Major opcode of failed request: 154 (GLX)
Minor opcode of failed request: 34 ()
Serial number of failed request: 168
Current serial number in output stream: 167

This appears to be almost identical to bug 1749, which was fixed back in
March. However, on my machine, the error occurs even with the latest SDL
snapshot.

The error only seems to occur when I request an OpenGL 3.x context, but my
card has support for OpenGL 3.2, and I’m pretty sure that my drivers also
support that version.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

MrOzBarry wrote:

What operating system and computer type/model are you using?I’ve gotten that error a few times on my new intel/nvidia laptop, which bumblebee was able to resolve.

I’m running Linux Mint on an AMD-based laptop with ATI graphics.

Could you please post the output from glxinfo and the ATI driver version
you have installed? Thanks.On 27 June 2013 12:45, blm768 wrote:

**

MrOzBarry wrote:

What operating system and computer type/model are you using?I’ve gotten
that error a few times on my new intel/nvidia laptop, which bumblebee was
able to resolve.

I’m running Linux Mint on an AMD-based laptop with ATI graphics.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Scott Percival wrote:

Could you please post the output from glxinfo and the ATI driver version you have installed? Thanks.

Code:

name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
GLX_ARB_create_context, GLX_ARB_create_context_profile,
GLX_ARB_multisample, GLX_EXT_create_context_es2_profile,
GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info,
GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer, GLX_OML_swap_method,
GLX_SGI_swap_control, GLX_SGIS_multisample, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group, GLX_INTEL_swap_event
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
client glx extensions:
GLX_ARB_create_context, GLX_ARB_create_context_profile,
GLX_ARB_create_context_robustness, GLX_ARB_get_proc_address,
GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_visual_info,
GLX_EXT_visual_rating, GLX_EXT_framebuffer_sRGB,
GLX_EXT_create_context_es2_profile, GLX_MESA_copy_sub_buffer,
GLX_MESA_multithread_makecurrent, GLX_MESA_swap_control,
GLX_OML_swap_method, GLX_OML_sync_control, GLX_SGI_make_current_read,
GLX_SGI_swap_control, GLX_SGI_video_sync, GLX_SGIS_multisample,
GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group,
GLX_EXT_texture_from_pixmap, GLX_INTEL_swap_event
GLX version: 1.4
GLX extensions:
GLX_ARB_create_context, GLX_ARB_create_context_profile,
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
GLX_EXT_visual_info, GLX_EXT_visual_rating,
GLX_EXT_create_context_es2_profile, GLX_MESA_copy_sub_buffer,
GLX_MESA_multithread_makecurrent, GLX_MESA_swap_control,
GLX_OML_swap_method, GLX_OML_sync_control, GLX_SGI_make_current_read,
GLX_SGI_swap_control, GLX_SGI_video_sync, GLX_SGIS_multisample,
GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group,
GLX_EXT_texture_from_pixmap, GLX_INTEL_swap_event
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD RS880
OpenGL version string: 2.1 Mesa 9.0.3
OpenGL shading language version string: 1.30
OpenGL extensions:
(long list of extensions)
(etc, etc.)

I wish I’d known about glxinfo before this; it does look like I’ve got a driver issue.

Yep, that’s the open source ATI driver, which is capped at GL 2.1. You
probably want to install fglrx to get the best from your hardware, either
from the Mint repository or the installer from AMD (which can generate
.debs). Also you might want to consider checking if GL 3.2 is supported
(dead easy using GLEW) and failing gracefully if it can’t get a context.On 28 June 2013 01:47, blm768 wrote:

**

Scott Percival wrote:

Could you please post the output from glxinfo and the ATI driver version
you have installed? Thanks.

Code:

name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
GLX_ARB_create_context, GLX_ARB_create_context_profile,
GLX_ARB_multisample, GLX_EXT_create_context_es2_profile,
GLX_EXT_import_context, GLX_EXT_texture_from_pixmap,
GLX_EXT_visual_info,
GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer, GLX_OML_swap_method,
GLX_SGI_swap_control, GLX_SGIS_multisample, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group, GLX_INTEL_swap_event
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
client glx extensions:
GLX_ARB_create_context, GLX_ARB_create_context_profile,
GLX_ARB_create_context_robustness, GLX_ARB_get_proc_address,
GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_visual_info,
GLX_EXT_visual_rating, GLX_EXT_framebuffer_sRGB,
GLX_EXT_create_context_es2_profile, GLX_MESA_copy_sub_buffer,
GLX_MESA_multithread_makecurrent, GLX_MESA_swap_control,
GLX_OML_swap_method, GLX_OML_sync_control, GLX_SGI_make_current_read,
GLX_SGI_swap_control, GLX_SGI_video_sync, GLX_SGIS_multisample,
GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group,
GLX_EXT_texture_from_pixmap, GLX_INTEL_swap_event
GLX version: 1.4
GLX extensions:
GLX_ARB_create_context, GLX_ARB_create_context_profile,
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
GLX_EXT_visual_info, GLX_EXT_visual_rating,
GLX_EXT_create_context_es2_profile, GLX_MESA_copy_sub_buffer,
GLX_MESA_multithread_makecurrent, GLX_MESA_swap_control,
GLX_OML_swap_method, GLX_OML_sync_control, GLX_SGI_make_current_read,
GLX_SGI_swap_control, GLX_SGI_video_sync, GLX_SGIS_multisample,
GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group,
GLX_EXT_texture_from_pixmap, GLX_INTEL_swap_event
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD RS880
OpenGL version string: 2.1 Mesa 9.0.3
OpenGL shading language version string: 1.30
OpenGL extensions:
(long list of extensions)
(etc, etc.)

I wish I’d known about glxinfo before this; it does look like I’ve got a
driver issue.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org