Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

SL won't start for me in Gentoo AMD64

Mogigoma Naumova
Registered User
Join date: 7 May 2006
Posts: 4
05-12-2006 19:22
I've been trying to get the native Linux version of SL to work for a few days now. I can't seem to manage anything. I have an Nvidia card with the official drivers, and OpenGL works in other programs. I've also installed several of the x86 emulation packages that I've seen suggested.

Any help would be appreciated.

Here's what I get when I attempt starting SL:
% ./secondlife
2006-05-13T02:19:17Z WARNING: LLDir_Linux not fully implemented!
2006-05-13T02:19:17Z INFO: Checking marker file for lock...
2006-05-13T02:19:17Z INFO: Marker file isn't locked.
2006-05-13T02:19:17Z INFO: Checking marker file for lock...
2006-05-13T02:19:17Z INFO: Marker file created.
2006-05-13T02:19:17Z INFO: Removing message.log
2006-05-13T02:19:17Z INFO: Exiting init_marker_file().
2006-05-13T02:19:17Z INFO: Opening debug file /home/mak/tmp/SecondLife_1_9_0_21/SecondLife/logs/debug_info.log
2006-05-13T02:19:17Z INFO: Second Life version 1.9.0
2006-05-13T02:19:17Z INFO: Local time: 2006-05-12T21:19:17 CDT
2006-05-13T02:19:17Z INFO: CPU info:
2006-05-13T02:19:17Z processor : 0 vendor_id : AuthenticAMD cpu family : 15 model : 35 model name : Dual Core AMD Opteron(tm) Processor 165 stepping : 2 cpu MHz : 1809.306 cache size : 1024 KB physical id : 0 siblings: 2 core id : 0 cpu cores : 2 fpu : yes fpu_exception : yes cpuid level : 1 wp : yes flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow pni lahf_lm cmp_legacy bogomips : 3622.38 TLB size : 1024 4K pages clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: ts fid vid ttp processor : 1 vendor_id : AuthenticAMD cpu family : 15 model : 35 model name : Dual Core AMD Opteron(tm) Processor 165 stepping : 2 cpu MHz : 1809.306 cache size : 1024 KB physical id : 0 siblings : 2 core id : 1 cpu cores : 2 fpu : yes fpu_exception : yes cpuid level : 1 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow pni lahf_lm cmp_legacy bogomips : 3618.03 TLB size : 1024 4K pages clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: ts fid vid ttp
2006-05-13T02:19:17Z INFO: Memory info:
2006-05-13T02:19:17Z MemTotal: 1028208 kB MemFree: 486392 kB Buffers: 29920 kB Cached: 324952 kB SwapCached: 88 kB Active: 274672 kB Inactive: 187232 kB HighTotal: 0 kB HighFree: 0 kB LowTotal: 1028208 kB LowFree: 486392 kB SwapTotal: 987988 kB SwapFree: 987684 kB Dirty: 28 kB Writeback: 0 kB Mapped: 165384 kB Slab: 59548 kB CommitLimit: 1502092 kB Committed_AS: 235432 kB PageTables: 2556 kB VmallocTotal: 34359738367 kB VmallocUsed: 297624 kB VmallocChunk: 34359440379 kB
2006-05-13T02:19:17Z INFO: OS info: Linux 2.6.16-gentoo-r7-brisbane-stable #1 SMP Wed May 10 17:58:30 CDT 2006 x86_64
2006-05-13T02:19:17Z INFO: Loading feature tables.
2006-05-13T02:19:17Z INFO: QUEUED THREAD STARTING
2006-05-13T02:19:17Z INFO: QUEUED THREAD STARTING
2006-05-13T02:19:17Z INFO: QUEUED THREAD STARTING
2006-05-13T02:19:17Z INFO: Using configuration file /home/mak/tmp/SecondLife_1_9_0_21/SecondLife/user_settings/settings.ini
2006-05-13T02:19:17Z INFO: LLControlGroup::loadFromFile unable to open.
2006-05-13T02:19:17Z INFO: LLControlGroup::loadFromFile unable to open.
2006-05-13T02:19:17Z INFO: Loading art table from viewerart.ini
2006-05-13T02:19:17Z INFO: Loading base colors from colors_base.ini
2006-05-13T02:19:17Z INFO: Loading user colors from colors.ini
2006-05-13T02:19:17Z INFO: Default vfs data file not present, found /home/mak/tmp/SecondLife_1_9_0_21/SecondLife/cache/.
2006-05-13T02:19:17Z INFO: Old salt: 1
2006-05-13T02:19:17Z WARNING: Bad or missing vfx index file /home/mak/tmp/SecondLife_1_9_0_21/SecondLife/cache/index.db2.x.1
2006-05-13T02:19:17Z WARNING: Removing old vfs data file /home/mak/tmp/SecondLife_1_9_0_21/SecondLife/cache/.
2006-05-13T02:19:17Z INFO: Renaming /home/mak/tmp/SecondLife_1_9_0_21/SecondLife/cache/. to /home/mak/tmp/SecondLife_1_9_0_21/SecondLife/cache/data.db2.x.1016088245
2006-05-13T02:19:17Z INFO: Renaming /home/mak/tmp/SecondLife_1_9_0_21/SecondLife/cache/index.db2.x.1 to /home/mak/tmp/SecondLife_1_9_0_21/SecondLife/cache/index.db2.x.1016088245
2006-05-13T02:19:17Z INFO: Pre-sized VFS data file to 524288000 bytes
2006-05-13T02:19:17Z INFO: VFS: Using index file /home/mak/tmp/SecondLife_1_9_0_21/SecondLife/cache/index.db2.x.1016088245 and data file /home/mak/tmp/SecondLife_1_9_0_21/SecondLife/cache/data.db2.x.1016088245
2006-05-13T02:19:17Z INFO: VFS: Using index file /home/mak/tmp/SecondLife_1_9_0_21/app_settings/static_index.db2 and data file /home/mak/tmp/SecondLife_1_9_0_21/app_settings/static_data.db2
2006-05-13T02:19:17Z INFO: Initializing window...
2006-05-13T02:19:17Z INFO: createContext: creating window 800x600x32
2006-05-13T02:19:17Z INFO: createContext: window creation failure. SDL: Couldn't find matching GLX visual
2006-05-13T02:19:17Z INFO: Unloading all GL symbols...
2006-05-13T02:19:17Z WARNING: OSMessageBox: Window creation error
2006-05-13T02:19:17Z INFO: Unloading all GL symbols...
2006-05-13T02:19:17Z WARNING: LLWindowManager::create() : Error creating window.
2006-05-13T02:19:17Z WARNING: Unable to create window, be sure screen is set at 32-bit color in Control Panels->Display->Settings
2006-05-13T02:19:17Z INFO: remove_marker_file()
Darkside Eldrich
Registered User
Join date: 10 Feb 2006
Posts: 200
05-13-2006 20:05
Have you tried the usual "check that DefaultDepth in xorg.conf is set to 24"? You didn't mention in your post if you'd done that...
Mogigoma Naumova
Registered User
Join date: 7 May 2006
Posts: 4
05-13-2006 23:45
Yes, my DefaultDepth is 24. Forgot to mention that.
Darkside Eldrich
Registered User
Join date: 10 Feb 2006
Posts: 200
05-14-2006 11:44
From: someone
2006-05-13T02:19:17Z INFO: createContext: window creation failure. SDL: Couldn't find matching GLX visual
2006-05-13T02:19:17Z INFO: Unloading all GL symbols...

Is this a modern video card (read, something from Nvidia or ATI)? On my old Rage Mobility P/M, I get a similar problem where even if I set DefaultDepth 24, it doesn't really give me 24 bit depth (ostensibly because the card only supports 16 bit colour).

All that output at the end of glxinfo is the key. Each of those lines represents a "visual": one of the modes X can display in with the current configuration. One of the columns is labelled "dpth" (split over two lines). If there are no "24"s in that column, then X thinks that your graphics card can't handle 24 bit.

Edit for posterity: This is relevant because other openGL games might only be using 16 bit colour and not notice that anything is "wrong".
Mogigoma Naumova
Registered User
Join date: 7 May 2006
Posts: 4
System Information
05-14-2006 12:42
The card is a new NVidia PCI Express GeForce 6600LE.
The drivers I'm using are =media-video/nvidia-glx-1.0.8756

I figure it's probably easier if I post some of my system information here...

##########
% lspci
00:00.0 Memory controller: nVidia Corporation CK804 Memory Controller (rev a3)
00:01.0 ISA bridge: nVidia Corporation CK804 ISA Bridge (rev a3)
00:01.1 SMBus: nVidia Corporation CK804 SMBus (rev a2)
00:02.0 USB Controller: nVidia Corporation CK804 USB Controller (rev a2)
00:02.1 USB Controller: nVidia Corporation CK804 USB Controller (rev a3)
00:04.0 Multimedia audio controller: nVidia Corporation CK804 AC'97 Audio Controller (rev a2)
00:06.0 IDE interface: nVidia Corporation CK804 IDE (rev f2)
00:07.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3)
00:08.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3)
00:09.0 PCI bridge: nVidia Corporation CK804 PCI Bridge (rev a2)
00:0a.0 Bridge: nVidia Corporation CK804 Ethernet Controller (rev a3)
00:0b.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0c.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0d.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0e.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
05:00.0 VGA compatible controller: nVidia Corporation NV43 [GeForce 6600 PCIe] (rev a2)
##########

##########
% cat /etc/X11/xorg.conf
Section "Files"
RgbPath "/usr/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/TTF/"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/CID/"
FontPath "/usr/share/fonts/75dpi/"
FontPath "/usr/share/fonts/100dpi/"
EndSection

Section "Module"
Load "bitmap"
Load "dbe"
Load "ddc"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "record"
Load "type1"
Load "vbe"
EndSection

Section "InputDevice"
Identifier "keyboard"
Driver "kbd"

Option "CoreKeyboard"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "mouse"
Driver "mouse"

Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection

Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "5:0:0"

Option "NoLogo" "false"
# Option "NvAGP" "0"
Option "RenderAccel" "true"
Option "HWcursor" "true"
Option "CursorShadow" "true"
Option "CursorShadowAlpha" "32"
Option "CursorShadowXOffset" "3"
Option "CursorShadowYOffset" "3"
Option "AllowGLXWithComposite" "true"

# Option "TwinView" "true"
# Option "SecondMonitorHorizSync" "30-50"
# Option "SecondMonitorVertRefresh" "60"
# Option "TwinViewOrientation" "Clone"
# Option "MetaModes" "1024x768,1024x768"

# Screen 0
EndSection

Section "Monitor"
Identifier "crt"
HorizSync 30-70
VertRefresh 50-120
EndSection

Section "Screen"
Identifier "default"
Device "nvidia"
Monitor "crt"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1024x768"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "default"
Screen "default"
InputDevice "keyboard" "CoreKeyboard"
InputDevice "mouse" "CorePointer"
EndSection

Section "ServerFlags"
Option "DontZoom" "false"
Option "DontZap" "false"
Option "DefaultServerLayout" "default"
EndSection

Section "DRI"
Mode 0666
EndSection
##########

##########
% glxinfo
name of display: :0.0
display: :0 screen: 0
direct rendering: No
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_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 extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_OML_swap_method,
GLX_SGI_make_current_read, GLX_SGIS_multisample, GLX_SGIX_fbconfig
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.2 (1.5 Mesa 6.2.1)
OpenGL extensions:
GL_ARB_depth_texture, GL_ARB_imaging, GL_ARB_multitexture,
GL_ARB_point_parameters, GL_ARB_point_sprite, GL_ARB_shadow,
GL_ARB_shadow_ambient, GL_ARB_texture_border_clamp,
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_transpose_matrix, GL_ARB_window_pos, GL_EXT_abgr, GL_EXT_bgra,
GL_EXT_blend_color, GL_EXT_blend_func_separate, GL_EXT_blend_logic_op,
GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_clip_volume_hint,
GL_EXT_copy_texture, GL_EXT_draw_range_elements, GL_EXT_fog_coord,
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_shadow_funcs,
GL_EXT_stencil_two_side, 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_lod_bias, GL_EXT_texture_object,
GL_EXT_texture_rectangle, GL_EXT_vertex_array, GL_APPLE_packed_pixels,
GL_ATI_texture_env_combine3, GL_ATI_texture_mirror_once,
GL_ATIX_texture_env_combine3, GL_IBM_texture_mirrored_repeat,
GL_INGR_blend_func_separate, GL_MESA_pack_invert, GL_MESA_ycbcr_texture,
GL_NV_blend_square, GL_NV_point_sprite, GL_NV_texgen_reflection,
GL_NV_texture_rectangle, GL_SGIS_generate_mipmap,
GL_SGIS_texture_border_clamp, GL_SGIS_texture_edge_clamp,
GL_SGIS_texture_lod, GL_SGIX_depth_texture, GL_SGIX_shadow,
GL_SGIX_shadow_ambient, 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 24 0 r y . 8 8 8 0 0 16 0 0 0 0 0 0 0 None
0x24 24 tc 0 24 0 r y . 8 8 8 0 0 16 8 16 16 16 0 0 0 None
0x25 24 tc 0 32 0 r y . 8 8 8 8 0 16 8 16 16 16 16 0 0 None
0x26 24 tc 0 32 0 r . . 8 8 8 8 0 16 8 16 16 16 16 0 0 None
0x27 24 dc 0 24 0 r y . 8 8 8 0 0 16 0 0 0 0 0 0 0 None
0x28 24 dc 0 24 0 r y . 8 8 8 0 0 16 8 16 16 16 0 0 0 None
0x29 24 dc 0 32 0 r y . 8 8 8 8 0 16 8 16 16 16 16 0 0 None
0x2a 24 dc 0 32 0 r . . 8 8 8 8 0 16 8 16 16 16 16 0 0 None
##########
Darkside Eldrich
Registered User
Join date: 10 Feb 2006
Posts: 200
05-14-2006 20:08
From: Mogigoma Naumova

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 24 0 r y . 8 8 8 0 0 16 0 0 0 0 0 0 0 None
0x24 24 tc 0 24 0 r y . 8 8 8 0 0 16 8 16 16 16 0 0 0 None
0x25 24 tc 0 32 0 r y . 8 8 8 8 0 16 8 16 16 16 16 0 0 None
0x26 24 tc 0 32 0 r . . 8 8 8 8 0 16 8 16 16 16 16 0 0 None
0x27 24 dc 0 24 0 r y . 8 8 8 0 0 16 0 0 0 0 0 0 0 None
0x28 24 dc 0 24 0 r y . 8 8 8 0 0 16 8 16 16 16 0 0 0 None
0x29 24 dc 0 32 0 r y . 8 8 8 8 0 16 8 16 16 16 16 0 0 None
0x2a 24 dc 0 32 0 r . . 8 8 8 8 0 16 8 16 16 16 16 0 0 None

Is that the end of glxinfo's output? It looks like you don't have any 24-bit visuals, which would explain the problem. Now, *why* you don't have any 24-bit visuals is another question.

Ahh, here:

From: someone
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.2 (1.5 Mesa 6.2.1)

You aren't using the nvidia drivers to render OpenGL! Make sure you have emerged nvidia-glx as well as nvidia-kernel.

If you've done that and still no success, then try (as root):
$ eselect opengl nvidia
Mogigoma Naumova
Registered User
Join date: 7 May 2006
Posts: 4
05-14-2006 21:38
Thanks! I had forgotten to run eselect when I installed everything. Once I had done that the game started and works splendidly!