Author Topic: [SOLVED] Crash on Linux, but not as root  (Read 1838 times)

0 Members and 1 Guest are viewing this topic.

[SOLVED] Crash on Linux, but not as root
I've got Archlinux installed on my 13" Macbook Pro Retina.  FSO installed fine, but when I run it, I get "ERROR: Unable to initialize display device!" in the fs2_open.log.  I'm sure everything is installed fine, because on a whim I launched it as root, and it plays just fine.  I'm sure it's something simple, but I can't figure it out.

Here's the full fs2_open.log:
Code: [Select]
==========================================================================
DEBUG SPEW: No debug_filter.cfg found, so only general, error, and warning
categories can be shown and no debug_filter.cfg info will be saved.
==========================================================================
Opened log '/home/user/.fs2_open/data/fs2_open.log', Thu Jun 12 08:31:18 2014 ...
FreeSpace 2 Open version: 3.7.2.10723
Passed cmdline options:
  -spec_exp 15
  -ogl_spec 50
  -spec_static 1.7
  -spec_point 1.2
  -spec_tube 1.5
  -ambient_factor 5
  -mod MediaVPs_2014
Building file index...
Found root pack '/home/user/FreeSpace2/MediaVPs_2014/MV_A-Glows.vp' with a checksum of 0xd8f529e2
Found root pack '/home/user/FreeSpace2/MediaVPs_2014/MV_Advanced.vp' with a checksum of 0x337ffc37
Found root pack '/home/user/FreeSpace2/MediaVPs_2014/MV_Assets.vp' with a checksum of 0x23b7997e
Found root pack '/home/user/FreeSpace2/MediaVPs_2014/MV_CB_ANI_1.vp' with a checksum of 0xa69eade8
Found root pack '/home/user/FreeSpace2/MediaVPs_2014/MV_CB_ANI_2.vp' with a checksum of 0x070ae320
Found root pack '/home/user/FreeSpace2/MediaVPs_2014/MV_Effects.vp' with a checksum of 0x6fbd3357
Found root pack '/home/user/FreeSpace2/MediaVPs_2014/MV_Music.vp' with a checksum of 0x6c8f665e
Found root pack '/home/user/FreeSpace2/MediaVPs_2014/MV_RadarIcons.vp' with a checksum of 0x00000000
Found root pack '/home/user/FreeSpace2/MediaVPs_2014/MV_Root.vp' with a checksum of 0x107a739e
Found root pack '/home/user/FreeSpace2/multi-mission-pack.vp' with a checksum of 0x377695e0
Found root pack '/home/user/FreeSpace2/multi-voice-pack.vp' with a checksum of 0xd50e7442
Found root pack '/home/user/FreeSpace2/root_fs2.vp' with a checksum of 0xce10d76c
Found root pack '/home/user/FreeSpace2/smarty_fs2.vp' with a checksum of 0xddeb3b1e
Found root pack '/home/user/FreeSpace2/sparky_fs2.vp' with a checksum of 0x164fe65a
Found root pack '/home/user/FreeSpace2/sparky_hi_fs2.vp' with a checksum of 0xa11d56f1
Found root pack '/home/user/FreeSpace2/stu_fs2.vp' with a checksum of 0xd77da83a
Found root pack '/home/user/FreeSpace2/tango1_fs2.vp' with a checksum of 0x4c25221e
Found root pack '/home/user/FreeSpace2/tango2_fs2.vp' with a checksum of 0x86920b82
Found root pack '/home/user/FreeSpace2/tango3_fs2.vp' with a checksum of 0x705e8d71
Found root pack '/home/user/FreeSpace2/warble_fs2.vp' with a checksum of 0xd85c305d
Searching root '/home/user/.fs2_open/MediaVPs_2014/' ... 0 files
Searching root '/home/user/.fs2_open/' ... 1 files
Searching root '/home/user/FreeSpace2/MediaVPs_2014/' ... 0 files
Searching root pack '/home/user/FreeSpace2/MediaVPs_2014/MV_A-Glows.vp' ... 1735 files
Searching root pack '/home/user/FreeSpace2/MediaVPs_2014/MV_Advanced.vp' ... 1654 files
Searching root pack '/home/user/FreeSpace2/MediaVPs_2014/MV_Assets.vp' ... 2015 files
Searching root pack '/home/user/FreeSpace2/MediaVPs_2014/MV_CB_ANI_1.vp' ... 32 files
Searching root pack '/home/user/FreeSpace2/MediaVPs_2014/MV_CB_ANI_2.vp' ... 57 files
Searching root pack '/home/user/FreeSpace2/MediaVPs_2014/MV_Effects.vp' ... 2063 files
Searching root pack '/home/user/FreeSpace2/MediaVPs_2014/MV_Music.vp' ... 32 files
Searching root pack '/home/user/FreeSpace2/MediaVPs_2014/MV_RadarIcons.vp' ... 0 files
Searching root pack '/home/user/FreeSpace2/MediaVPs_2014/MV_Root.vp' ... 848 files
Searching root '/home/user/FreeSpace2/' ... 24 files
Searching root pack '/home/user/FreeSpace2/multi-mission-pack.vp' ... 110 files
Searching root pack '/home/user/FreeSpace2/multi-voice-pack.vp' ... 307 files
Searching root pack '/home/user/FreeSpace2/root_fs2.vp' ... 157 files
Searching root pack '/home/user/FreeSpace2/smarty_fs2.vp' ... 10 files
Searching root pack '/home/user/FreeSpace2/sparky_fs2.vp' ... 3027 files
Searching root pack '/home/user/FreeSpace2/sparky_hi_fs2.vp' ... 1337 files
Searching root pack '/home/user/FreeSpace2/stu_fs2.vp' ... 2355 files
Searching root pack '/home/user/FreeSpace2/tango1_fs2.vp' ... 32 files
Searching root pack '/home/user/FreeSpace2/tango2_fs2.vp' ... 15 files
Searching root pack '/home/user/FreeSpace2/tango3_fs2.vp' ... 10 files
Searching root pack '/home/user/FreeSpace2/warble_fs2.vp' ... 52 files
Found 24 roots and 15873 files.
ERROR: Unknown Language Checksum: 589986744
Using default language settings...
TBM  =>  Starting parse of 'mv_root-lcl.tbm' ...
Setting language to English
TBM  =>  Starting parse of 'mv_root-lcl.tbm' ...
Game Settings Table: Using Standard Loops For SEXP Arguments
Game Settings Table: Using standard event chaining behavior
Game Settings Table: External shaders are DISABLED
Initializing OpenAL...
  OpenAL Vendor     : OpenAL Community
  OpenAL Renderer   : OpenAL Soft
  OpenAL Version    : 1.1 ALSOFT 1.15.1

  Found extension "AL_EXT_float32".
  Found extension "ALC_EXT_EFX".

  Sample rate: 44100 (44100)
  EFX enabled: NO
  Playback device: Built-in Audio Analog Stereo
  Capture device: Monitor of Built-in Audio Analog Stereo
... OpenAL successfully initialized!
Failed to init speech
Initializing OpenGL graphics device at 2560x1600 with 32-bit color...
  Initializing SDL...
  Requested SDL Video values = R: 8, G: 8, B: 8, depth: 24, stencil: 8, double-buffer: 1, FSAA: 16
ERROR: Unable to initialize display device!

File: graphics/gropengl.cpp
Line: 1944

I appreciate any help.
« Last Edit: June 12, 2014, 09:32:48 am by mrhanman »

 

Offline The E

  • He's Ebeneezer Goode
  • Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Crash on Linux, but not as root
Can you generate another log with the game running as root?

I have no idea how these things work on Linux, but it seems to me that there's some weirdness going on with the GPU driver.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 
Re: Crash on Linux, but not as root
Sure, here it is running as root:

Code: [Select]
==========================================================================
DEBUG SPEW: No debug_filter.cfg found, so only general, error, and warning
categories can be shown and no debug_filter.cfg info will be saved.
==========================================================================
Opened log '/root/.fs2_open/data/fs2_open.log', Thu Jun 12 09:16:53 2014 ...
FreeSpace 2 Open version: 3.7.2.10723
Passed cmdline options:
  <none>
Building file index...
Found root pack '/home/user/FreeSpace2/multi-mission-pack.vp' with a checksum of 0x377695e0
Found root pack '/home/user/FreeSpace2/multi-voice-pack.vp' with a checksum of 0xd50e7442
Found root pack '/home/user/FreeSpace2/root_fs2.vp' with a checksum of 0xce10d76c
Found root pack '/home/user/FreeSpace2/smarty_fs2.vp' with a checksum of 0xddeb3b1e
Found root pack '/home/user/FreeSpace2/sparky_fs2.vp' with a checksum of 0x164fe65a
Found root pack '/home/user/FreeSpace2/sparky_hi_fs2.vp' with a checksum of 0xa11d56f1
Found root pack '/home/user/FreeSpace2/stu_fs2.vp' with a checksum of 0xd77da83a
Found root pack '/home/user/FreeSpace2/tango1_fs2.vp' with a checksum of 0x4c25221e
Found root pack '/home/user/FreeSpace2/tango2_fs2.vp' with a checksum of 0x86920b82
Found root pack '/home/user/FreeSpace2/tango3_fs2.vp' with a checksum of 0x705e8d71
Found root pack '/home/user/FreeSpace2/warble_fs2.vp' with a checksum of 0xd85c305d
Searching root '/root/.fs2_open/' ... 0 files
Searching root '/home/user/FreeSpace2/' ... 24 files
Searching root pack '/home/user/FreeSpace2/multi-mission-pack.vp' ... 110 files
Searching root pack '/home/user/FreeSpace2/multi-voice-pack.vp' ... 307 files
Searching root pack '/home/user/FreeSpace2/root_fs2.vp' ... 157 files
Searching root pack '/home/user/FreeSpace2/smarty_fs2.vp' ... 10 files
Searching root pack '/home/user/FreeSpace2/sparky_fs2.vp' ... 3027 files
Searching root pack '/home/user/FreeSpace2/sparky_hi_fs2.vp' ... 1337 files
Searching root pack '/home/user/FreeSpace2/stu_fs2.vp' ... 2355 files
Searching root pack '/home/user/FreeSpace2/tango1_fs2.vp' ... 32 files
Searching root pack '/home/user/FreeSpace2/tango2_fs2.vp' ... 15 files
Searching root pack '/home/user/FreeSpace2/tango3_fs2.vp' ... 10 files
Searching root pack '/home/user/FreeSpace2/warble_fs2.vp' ... 52 files
Found 13 roots and 7436 files.
ERROR: Unknown Language Checksum: 589986744
Using default language settings...
Setting language to English
Game Settings Table: Using Standard Loops For SEXP Arguments
Game Settings Table: Using standard event chaining behavior
Game Settings Table: External shaders are DISABLED
Initializing OpenAL...
  OpenAL Vendor     : OpenAL Community
  OpenAL Renderer   : OpenAL Soft
  OpenAL Version    : 1.1 ALSOFT 1.15.1

  Found extension "AL_EXT_float32".
  Found extension "ALC_EXT_EFX".

  Sample rate: 44100 (44100)
  EFX enabled: NO
  Playback device: Built-in Audio Analog Stereo
  Capture device: Built-in Audio Analog Stereo
... OpenAL successfully initialized!
Failed to init speech
Initializing OpenGL graphics device at 640x480 with 16-bit color...
  Initializing SDL...
  Requested SDL Video values = R: 5, G: 6, B: 5, depth: 16, stencil: 1, double-buffer: 1, FSAA: 0
  Actual SDL Video values    = R: 8, G: 8, B: 8, depth: 24, stencil: 8, double-buffer: 1, FSAA: 0
  OpenGL Vendor    : Intel Open Source Technology Center
  OpenGL Renderer  : Mesa DRI Intel(R) Haswell x86/MMX/SSE2
  OpenGL Version   : 3.0 Mesa 10.2.1

  Using extension "GL_EXT_fog_coord".
  Using extension "GL_ARB_multitexture".
  Using extension "GL_ARB_texture_env_add".
  Using extension "GL_ARB_texture_compression".
  Using extension "GL_EXT_texture_compression_s3tc".
  Using extension "GL_EXT_texture_filter_anisotropic".
  Using extension "GL_ARB_texture_env_combine".
  Using extension "GL_EXT_compiled_vertex_array".
  Using extension "GL_EXT_draw_range_elements".
  Using extension "GL_ARB_texture_mirrored_repeat".
  Using extension "GL_ARB_texture_non_power_of_two".
  Using extension "GL_ARB_vertex_buffer_object".
  Using extension "GL_ARB_pixel_buffer_object".
  Using extension "GL_SGIS_generate_mipmap".
  Using extension "GL_EXT_framebuffer_object".
  Using extension "GL_ARB_texture_rectangle".
  Using extension "GL_EXT_bgra".
  Using extension "GL_ARB_texture_cube_map".
  Using extension "GL_EXT_texture_lod_bias".
  Using extension "GL_ARB_point_sprite".
  Using extension "GL_ARB_shading_language_100".
  Using extension "GL_ARB_shader_objects".
  Using extension "GL_ARB_vertex_shader".
  Using extension "GL_ARB_fragment_shader".
  Using extension "GL_ARB_shader_texture_lod".
  Using extension "GL_ARB_texture_float".
  Using extension "GL_ARB_draw_elements_base_vertex".
  Found special extension function "glXSwapIntervalSGI".

Compiling new shader:
   Loading built-in default shader for: soft-v.sdr
   Loading built-in default shader for: soft-f.sdr
Shader features:
   Depth-blended Particles
Compiling new shader:
   Loading built-in default shader for: soft-v.sdr
   Loading built-in default shader for: soft-f.sdr
Shader features:
   Distorted Particles

  Max texture units: 8 (32)
  Max elements vertices: 3000
  Max elements indices: 3000
  Max texture size: 8192x8192
  Max render buffer size: 8192x8192
  Can use compressed textures: YES
  Texture compression available: YES
  Post-processing enabled: NO
  Using trilinear texture filter.
  OpenGL Shader Version: 1.30
... OpenGL init is complete!
Size of bitmap info = 742 KB
Size of bitmap extra info = 48 bytes
ANI cursorweb with size 24x24 (25.0% wasted)
GRAPHICS: Initializing default colors...
SCRIPTING: Beginning initialization sequence...
SCRIPTING: Beginning Lua initialization...
LUA: Opening LUA state...
LUA: Initializing base Lua libraries...
LUA: Beginning ADE initialization
ADE: Initializing enumeration constants...
ADE: Assigning Lua session...
SCRIPTING: Beginning main hook parse sequence....
Wokka!  Error opening file (scripting.tbl)!
TABLES: Unable to parse 'scripting.tbl'!  Error code = 5.
SCRIPTING: Inititialization complete.
SCRIPTING: Splash screen overrides checked
SCRIPTING: Splash hook has been run
SCRIPTING: Splash screen conditional hook has been run
Using high memory settings...
Wokka!  Error opening file (interface.tbl)!
WMCGUI: Unable to parse 'interface.tbl'!  Error code = 5.
Dutifully ignoring the extra sound values for retail sound 36, 'l_hit.wav'...
Dutifully ignoring the extra sound values for retail sound 37, 'm_hit.wav'...
No joysticks found
Current soundtrack set to -1 in event_music_reset_choices
TABLES => Unable to find 'colors.tbl'. Initialising colors with default values.
Wokka!  Error opening file (armor.tbl)!
TABLES: Unable to parse 'armor.tbl'!  Error code = 5.
ANI support1 with size 108x24 (25.0% wasted)
ANI damage1 with size 148x25 (21.9% wasted)
ANI wingman1 with size 71x53 (17.2% wasted)
ANI wingman2 with size 35x53 (17.2% wasted)
ANI wingman3 with size 14x53 (17.2% wasted)
ANI toggle1 with size 57x20 (37.5% wasted)
ANI head1 with size 164x132 (48.4% wasted)
ANI weapons1 with size 126x20 (37.5% wasted)
ANI objective1 with size 149x21 (34.4% wasted)
ANI netlag1 with size 29x30 (6.2% wasted)
ANI targhit1 with size 31x21 (34.4% wasted)
ANI time1 with size 47x23 (28.1% wasted)
ANI targetview1 with size 137x156 (39.1% wasted)
ANI targetview2 with size 4x96 (25.0% wasted)
ANI targetview3 with size 7x20 (37.5% wasted)
ANI energy2 with size 54x60 (6.2% wasted)
ANI leftarc with size 64x157 (38.7% wasted)
ANI rightarc1 with size 64x156 (39.1% wasted)
ANI toparc3 with size 25x18 (43.8% wasted)
ANI lock1 with size 35x33 (48.4% wasted)
ANI lockspin with size 63x63 (1.6% wasted)
ANI energy1 with size 12x41 (35.9% wasted)
ANI radar1 with size 130x106 (17.2% wasted)
loading animated cursor "cursor"
ANI cursor with size 24x24 (25.0% wasted)
Ships.tbl is : VALID
Weapons.tbl is : VALID
cfile_init() took 177
Compiling video-processing shader ...
   Loading built-in default shader for: video-v.sdr
   Loading built-in default shader for: video-f.sdr
Got event GS_EVENT_GAME_INIT (49) in state NOT A VALID STATE (0)
ANI cursor.ani with size 24x24 (25.0% wasted)
Got event GS_EVENT_QUIT_GAME (5) in state GS_STATE_INITIAL_PLAYER_SELECT (37)
Freeing all existing models...
... Log closed, Thu Jun 12 09:17:00 2014

One thing I just realized, is that as root I had never run wxLauncher to configure any options.  So, I ran wxLauncher as root, set resolution, etc., and it now does the same thing as a user.  After I deleted root's .fs2_open folder, I could relaunch it as normal.  Evedently, there's an option somewhere it doesn't like.

 

Offline The E

  • He's Ebeneezer Goode
  • Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Crash on Linux, but not as root
There is only one option at that point during initialization that is of interest to us here, and that's the resolution setting.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 
Re: Crash on Linux, but not as root
OK, trying various resolutions didn't change anything, so I tried the Anisotropy and AA settings.  It starts to crash once AA is set to 16x.  It launches fine at 8x.  Problem solved!  Thanks so much for your help.  I'm not sure I would have fixed it without it.

 

Offline The E

  • He's Ebeneezer Goode
  • Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: [SOLVED] Crash on Linux, but not as root
Huh, strange.

In any case, I am not entirely certain that that setting can be relied upon to work correctly, I would recommend using the -post_process and -fxaa flags to turn on the postprocess antialiasing.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

  
Re: [SOLVED] Crash on Linux, but not as root
Thanks for the tip! I'll do that.