Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

SDL: Couldn't find matching GLX visual

Paulo Bowie
Registered User
Join date: 30 Sep 2006
Posts: 9
10-05-2006 15:41
hi, i'm trying to run Second Life here

my DefaultDepth is 24, but it is still asking for 32-bit color
and i got this another error, "SDL: Couldn't find matching GLX visual"

here is the log
2006-10-05T22:20:35Z INFO: Initializing window...
2006-10-05T22:20:35Z INFO: createContext, fullscreen=0 size=800x600
2006-10-05T22:20:35Z INFO: createContext: creating window 800x600x32
2006-10-05T22:20:35Z INFO: createContext: window creation failure. SDL: Couldn't find matching GLX visual
2006-10-05T22:20:35Z INFO: destroyContext begins
2006-10-05T22:20:35Z INFO: shutdownGL begins
2006-10-05T22:20:35Z INFO: SDL_QuitSS/VID begins
2006-10-05T22:20:35Z WARNING: OSMessageBox: Window creation error
2006-10-05T22:20:35Z INFO: Skipping quitCursors: mWindow already gone.
2006-10-05T22:20:35Z INFO: destroyContext begins
2006-10-05T22:20:35Z INFO: shutdownGL begins
2006-10-05T22:20:35Z INFO: SDL_QuitSS/VID begins
2006-10-05T22:20:35Z WARNING: LLWindowManager::create() : Error creating window.2006-10-05T22:20:35Z WARNING: Unable to create window, be sure screen is set at 32-bit color in Control Panels->Display->Settings
2006-10-05T22:20:35Z INFO: remove_marker_file()
Theora Aquitaine
Registered User
Join date: 12 Feb 2006
Posts: 266
10-05-2006 15:47
You need accelerated (proprietary) nvidia/ati drivers installed.
Paulo Bowie
Registered User
Join date: 30 Sep 2006
Posts: 9
10-05-2006 16:42
i'm using an Intel VGA, it has opengl, i can run glxgears without problems
i only can run Second Life with nvidia or ATI?
Paulo Bowie
Registered User
Join date: 30 Sep 2006
Posts: 9
10-05-2006 16:43
paulo@foo:~$ lspci |grep VGA
0000:00:02.0 VGA compatible controller: Intel Corporation 82865G Integrated Graphics Controller (rev 02)

i'm using the i810 driver
Theora Aquitaine
Registered User
Join date: 12 Feb 2006
Posts: 266
10-05-2006 23:35
It may work. Make sure you have glx/dri activated:

output from glxinfo | grep direct

also output from glxgears would help.

http://mandrivausers.org/index.php?showtopic=28903&mode=linear
Paulo Bowie
Registered User
Join date: 30 Sep 2006
Posts: 9
10-10-2006 14:23
From: Theora Aquitaine
It may work. Make sure you have glx/dri activated:

output from glxinfo | grep direct

also output from glxgears would help.

http://mandrivausers.org/index.php?showtopic=28903&mode=linear


yes, it is
i'm getting some weird warning messages, but glxgears works without problems, Scorched 3D, etc.


paulo@foo:~$ glxinfo |grep rendering
libGL warning: 3D driver claims to not support visual 0x23
libGL warning: 3D driver claims to not support visual 0x24
libGL warning: 3D driver claims to not support visual 0x25
libGL warning: 3D driver claims to not support visual 0x26
libGL warning: 3D driver claims to not support visual 0x27
libGL warning: 3D driver claims to not support visual 0x28
libGL warning: 3D driver claims to not support visual 0x29
libGL warning: 3D driver claims to not support visual 0x2a
libGL warning: 3D driver claims to not support visual 0x2b
libGL warning: 3D driver claims to not support visual 0x2c
libGL warning: 3D driver claims to not support visual 0x2d
libGL warning: 3D driver claims to not support visual 0x2e
libGL warning: 3D driver claims to not support visual 0x2f
libGL warning: 3D driver claims to not support visual 0x30
libGL warning: 3D driver claims to not support visual 0x31
libGL warning: 3D driver claims to not support visual 0x32
direct rendering: Yes
Paulo Bowie
Registered User
Join date: 30 Sep 2006
Posts: 9
maybe SL problem
10-10-2006 15:34
i think this could be a Second Life problem
http://www.penguin-soft.com/penguin/man/3/SDL_GL_SetAttribute.html

here i found some pieces of code, about using GL attributes
as it seems, Second Life tries to start with 800x600x24, doesn't?

i've configured my xorg to run with 24bpp, but isn't working
maybe trying with 800x600x16, just doing some checks during the start

if ( (screen=SDL_SetVideoMode( 800, 600, 24, SDL_OPENGL )) == NULL ) {
fprintf(stderr, "Couldn't set GL mode: %s, trying with 16bpp", SDL_GetError());
} elseif( (screen=SDL_SetVideoMode( 800, 600, 16, SDL_OPENGL )) == NULL ) {
fprintf(stderr, "Couldn't set GL mode: %s, exiting", SDL_GetError());
}

other solution, maybe an better one:
screen = SDL_SetVideoMode(800,600,0,SDL_OPENGL) (which will inherit whatever bit depth the X server's running at.)
from: http://www.libsdl.org/pipermail/sdl/2003-May/054501.html

ps: i didn't tested this code, it's just an idea
Tofu Linden
Linden Lab Employee
Join date: 29 Aug 2006
Posts: 471
10-11-2006 04:51
Please post the full output of glxinfo. I suspect that the card may not support 24-bit depth-buffer and 8-bit destination alpha, which are currently required. We'll see...
Paulo Bowie
Registered User
Join date: 30 Sep 2006
Posts: 9
glxinfo
10-11-2006 07:13
paulo@foo:~$ glxinfo
name of display: :0.0
libGL warning: 3D driver claims to not support visual 0x23
libGL warning: 3D driver claims to not support visual 0x24
libGL warning: 3D driver claims to not support visual 0x25
libGL warning: 3D driver claims to not support visual 0x26
libGL warning: 3D driver claims to not support visual 0x27
libGL warning: 3D driver claims to not support visual 0x28
libGL warning: 3D driver claims to not support visual 0x29
libGL warning: 3D driver claims to not support visual 0x2a
libGL warning: 3D driver claims to not support visual 0x2b
libGL warning: 3D driver claims to not support visual 0x2c
libGL warning: 3D driver claims to not support visual 0x2d
libGL warning: 3D driver claims to not support visual 0x2e
libGL warning: 3D driver claims to not support visual 0x2f
libGL warning: 3D driver claims to not support visual 0x30
libGL warning: 3D driver claims to not support visual 0x31
libGL warning: 3D driver claims to not support visual 0x32
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
GLX_EXT_import_context, GLX_OML_swap_method, GLX_SGI_make_current_read,
GLX_SGIS_multisample, GLX_SGIX_hyperpipe, GLX_SGIX_swap_barrier,
GLX_SGIX_fbconfig
client glx vendor string: SGI
client glx version string: 1.4
client glx extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory,
GLX_MESA_swap_control, GLX_MESA_swap_frame_usage, 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 version: 1.2
GLX extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory,
GLX_OML_swap_method, GLX_SGI_make_current_read, GLX_SGIS_multisample,
GLX_SGIX_fbconfig
OpenGL vendor string: Tungsten Graphics, Inc
OpenGL renderer string: Mesa DRI Intel(R) 865G 20050225
OpenGL version string: 1.3 Mesa 6.4.1
OpenGL extensions:
GL_ARB_imaging, GL_ARB_multisample, GL_ARB_multitexture,
GL_ARB_point_parameters, GL_ARB_texture_border_clamp,
GL_ARB_texture_compression, GL_ARB_texture_cube_map,
GL_ARB_texture_env_add, GL_ARB_texture_env_combine,
GL_ARB_texture_env_crossbar, GL_ARB_texture_env_dot3,
GL_ARB_texture_mirrored_repeat, GL_ARB_texture_rectangle,
GL_ARB_transpose_matrix, GL_ARB_vertex_buffer_object,
GL_ARB_vertex_program, GL_ARB_window_pos, GL_EXT_abgr, GL_EXT_bgra,
GL_EXT_blend_color, GL_EXT_blend_equation_separate,
GL_EXT_blend_func_separate, GL_EXT_blend_minmax, GL_EXT_blend_subtract,
GL_EXT_clip_volume_hint, GL_EXT_cull_vertex, GL_EXT_compiled_vertex_array,
GL_EXT_convolution, GL_EXT_copy_texture, GL_EXT_draw_range_elements,
GL_EXT_fog_coord, GL_EXT_histogram, GL_EXT_multi_draw_arrays,
GL_EXT_packed_pixels, GL_EXT_point_parameters, GL_EXT_polygon_offset,
GL_EXT_rescale_normal, GL_EXT_secondary_color,
GL_EXT_separate_specular_color, GL_EXT_stencil_wrap, GL_EXT_subtexture,
GL_EXT_texture, GL_EXT_texture3D, GL_EXT_texture_edge_clamp,
GL_EXT_texture_env_add, GL_EXT_texture_env_combine,
GL_EXT_texture_env_dot3, GL_EXT_texture_filter_anisotropic,
GL_EXT_texture_lod_bias, GL_EXT_texture_object, GL_EXT_texture_rectangle,
GL_EXT_vertex_array, GL_3DFX_texture_compression_FXT1,
GL_APPLE_client_storage, GL_APPLE_packed_pixels,
GL_ATI_blend_equation_separate, GL_IBM_rasterpos_clip,
GL_IBM_texture_mirrored_repeat, GL_INGR_blend_func_separate,
GL_MESA_pack_invert, GL_MESA_ycbcr_texture, GL_MESA_window_pos,
GL_NV_blend_square, GL_NV_light_max_exponent, GL_NV_texture_rectangle,
GL_NV_texgen_reflection, GL_NV_vertex_program, GL_NV_vertex_program1_1,
GL_OES_read_format, GL_SGI_color_matrix, GL_SGI_color_table,
GL_SGIS_generate_mipmap, GL_SGIS_texture_border_clamp,
GL_SGIS_texture_edge_clamp, GL_SGIS_texture_lod, GL_SUN_multi_draw_arrays
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
0x23 24 tc 0 32 0 r y . 8 8 8 0 0 0 0 0 0 0 0 0 0 None
0x24 24 tc 0 32 0 r . . 8 8 8 0 0 0 0 0 0 0 0 0 0 None
0x25 24 tc 0 32 0 r y . 8 8 8 0 0 24 8 0 0 0 0 0 0 None
0x26 24 tc 0 32 0 r . . 8 8 8 0 0 24 8 0 0 0 0 0 0 None
0x27 24 tc 0 32 0 r y . 8 8 8 0 0 0 0 16 16 16 16 0 0 Slow
0x28 24 tc 0 32 0 r . . 8 8 8 0 0 0 0 16 16 16 16 0 0 Slow
0x29 24 tc 0 32 0 r y . 8 8 8 0 0 24 8 16 16 16 16 0 0 Slow
0x2a 24 tc 0 32 0 r . . 8 8 8 0 0 24 8 16 16 16 16 0 0 Slow
0x2b 24 dc 0 32 0 r y . 8 8 8 0 0 0 0 0 0 0 0 0 0 None
0x2c 24 dc 0 32 0 r . . 8 8 8 0 0 0 0 0 0 0 0 0 0 None
0x2d 24 dc 0 32 0 r y . 8 8 8 0 0 24 8 0 0 0 0 0 0 None
0x2e 24 dc 0 32 0 r . . 8 8 8 0 0 24 8 0 0 0 0 0 0 None
0x2f 24 dc 0 32 0 r y . 8 8 8 0 0 0 0 16 16 16 16 0 0 Slow
0x30 24 dc 0 32 0 r . . 8 8 8 0 0 0 0 16 16 16 16 0 0 Slow
0x31 24 dc 0 32 0 r y . 8 8 8 0 0 24 8 16 16 16 16 0 0 Slow
0x32 24 dc 0 32 0 r . . 8 8 8 0 0 24 8 16 16 16 16 0 0 Slow
Paulo Bowie
Registered User
Join date: 30 Sep 2006
Posts: 9
10-11-2006 07:23
i was looking into scorched3d source, witch runs without problems here:

// Try to create suface
surface = SDL_SetVideoMode( width, height, bpp, flags);

// If this fails
// Hack, to check if 16bit depth will work instead if 24 bits specified
if (!surface &&
depthBufferBits == 24)
{
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 16);
surface = SDL_SetVideoMode( width, height, bpp, flags);
}

from: http://www.google.com/codesearch?q=+package:scorched3d+SDL_SetVideoMode+show:VuaQZUfyPoI:U_PRcd4-4Ng:sm-0hGs0FyQ&sa=N&cd=3&ct=rc&cs_p=http://ftp.sh.cvut.cz/MIRRORS/rock/ROCK-2.1/S/Scorched3D-39.1-src.tar.bz2&cs_f=scorched/src/common/Display.cpp#a0

i think libgl could have a support bug to my VGA, i bought my computer a few weeks ago, i don't think that new VGA models cannot support 24bpp
Tofu Linden
Linden Lab Employee
Join date: 29 Aug 2006
Posts: 471
10-11-2006 08:06
Hi again Paulo!
This driver/card combination does not appear to support Destination Alpha, so is not usable in Second Life at this time. A future release may relax this restriction a little (but some things will not work correctly for you, such as clothing adjustment).
Paulo Bowie
Registered User
Join date: 30 Sep 2006
Posts: 9
10-11-2006 08:21
From: Tofu Linden
Hi again Paulo!
This driver/card combination does not appear to support Destination Alpha, so is not usable in Second Life at this time. A future release may relax this restriction a little (but some things will not work correctly for you, such as clothing adjustment).


i don't know much about graphics programming, opengl, etc
but i hope my suggestions may be helpful in some way, displaying warning messages instead of just exiting could fix problems like this (libgl issues)

i'm upgrading now to Edgy beta release of ubuntu, witch comes with xorg 7.1, i'll try to run second life again, and post my feedback here
Drake Bacon
Linux is Furry
Join date: 13 Jul 2005
Posts: 443
10-11-2006 09:47
To answer an earlier question directly, yes, you need an NVidia or ATI card to run Second Life. Intel's accellerated graphics do not have the right features that SL requires.
Raphael Josten
Registered User
Join date: 13 Oct 2006
Posts: 1
10-13-2006 15:22
I seem to have the same problem with my graphic card which is a:
S3 Inc. VT8375 [ProSavage8 KM266/KL266]
, on a packard bell easynote e1245.
This is really too bad !!!
:-(
Ken Irvine
Registered User
Join date: 7 Aug 2006
Posts: 2
10-15-2006 10:58
I bought an ATI Radeon 9600 and upgraded my OS (to Mepis 6.0) just to use the SL Linux client, but I'm getting the same error - SDL: Couldn't find matching GLX visual - although all my other 3D programs seem to work. Don't know if i'm using ATI propretary drivers or not, but i assume I am, how could I tell? And if that's not the problem, where do I start?
Drake Bacon
Linux is Furry
Join date: 13 Jul 2005
Posts: 443
10-15-2006 20:51
From: Raphael Josten
I seem to have the same problem with my graphic card which is a:
S3 Inc. VT8375 [ProSavage8 KM266/KL266]
, on a packard bell easynote e1245.
This is really too bad !!!
:-(


Ugh. I know about the S3's and Savages. There is no binary driver OpenGL support, so you're using whatever openGL drivers X11 has. Plus, Via bought S3, so you're out of luck on support. If you were thinking about upgrading to a new laptop, now is the time.
Drake Bacon
Linux is Furry
Join date: 13 Jul 2005
Posts: 443
10-15-2006 20:54
From: Ken Irvine
I bought an ATI Radeon 9600 and upgraded my OS (to Mepis 6.0) just to use the SL Linux client, but I'm getting the same error - SDL: Couldn't find matching GLX visual - although all my other 3D programs seem to work. Don't know if i'm using ATI propretary drivers or not, but i assume I am, how could I tell? And if that's not the problem, where do I start?


I doubt you are. Open up a terminal window or shell, and type 'less /etc/X11/xorg.conf'. This will get you the Xorg configuration file for the graphics display. Page down (pagedown key works) until you see a Driver line inside a graphics card section. It's not exactly cryptic, so you will have some clues and can say "Keyboard? Mouse? Nah.... Monitor? More more... card! Wait a minute, this is using the radeon driver and not the binary fglrx driver..."
Ken Irvine
Registered User
Join date: 7 Aug 2006
Posts: 2
10-16-2006 09:28
yes, you're right, so how do I install and then use the driver?
Theora Aquitaine
Registered User
Join date: 12 Feb 2006
Posts: 266
10-16-2006 11:27
http://www.mepis.org/node/5142

or possibly

http://wiki.cchtml.com/index.php/Ubuntu_Dapper_Installation_Guide

Should help... ;)
Paulo Bowie
Registered User
Join date: 30 Sep 2006
Posts: 9
10-26-2006 23:28
i've updated my ubuntu system from dapper to edgy. now second life works fine with my Intel VGA

thanks ppl =)