Page 1 of 1

segfault on load at 'creaating ground shading'

Posted: 14 Jul 2009, 23:16
by ali0sha
I'm using Ubuntu 9.04 with KDE installed - so effectively Kubuntu. I used PPA to get spring, then downloaded the OTA content as detailed on the download page, then installed CA with the packaged installer.

I started out with this problem, and applied the fix refered to in this thread: http://springrts.com/phpbb/viewtopic.php?f=11&t=19328

Having changed the following in ~/.springrc:

Code: Select all

Shadow=0

to

Shadow=-1
I get a segfault as follows (terminal dump follows)

Code: Select all

LogOutput initialized.
Spring 0.79.1.1       
Available log subsystems: mapinfo, CollisionVolume, unit, ArchiveScanner, VFS-detail, VFS, Sound
Enabled log subsystems: Sound                                                                   
Enable or disable log subsystems using the LogSubsystems configuration key                      
  or the SPRING_LOG_SUBSYSTEMS environment variable (both comma separated).                     
[CMyMath::Init] CPU SSE mask: 120, flags:                                                       
        SSE 1.0:  1,  SSE 2.0:  1                                                               
        SSE 3.0:  1, SSSE 3.0:  0                                                               
        SSE 4.1:  0,  SSE 4.2:  0                                                               
        SSE 4.0A: 0,  SSE 5.0A: 0                                                               
        using streflop SSE FP-math mode, CPU supports SSE instructions                          
using configuration source "/home/alex/.springrc"                                               
OS: Linux                                                                                       
Using read-only  data directory: /usr/games/                                                    
Using read-write data directory: /home/alex/.spring/                                            
Using read-only  data directory: /usr/lib/spring/                                               
Using read-only  data directory: /usr/share/games/spring/                                       
Scanning: /usr/share/games/spring/maps                                                          
Scanning: /usr/share/games/spring/base                                                          
Scanning: /usr/share/games/spring/mods                                                          
Scanning: /usr/share/games/spring/packages                                                      
Scanning: /usr/lib/spring/maps                                                                  
Scanning: /usr/lib/spring/base                                                                  
Scanning: /usr/lib/spring/mods                                                                  
Scanning: /usr/lib/spring/packages                                                              
Scanning: /home/alex/.spring/maps                                                               
Scanning: /home/alex/.spring/base                                                               
Scanning: /home/alex/.spring/mods                                                               
Scanning: /home/alex/.spring/packages                                                           
Scanning: /usr/games/maps                                                                       
Scanning: /usr/games/base                                                                       
Scanning: /usr/games/mods                                                                       
Scanning: /usr/games/packages                                                                   
get fences failed: -1                                                                           
param: 6, val: 0                                                                                
Video mode set to  1024 x 768 / 32 bit                                                          
SDL:  1.2.13                                                                                    
GL:   1.4 Mesa 7.4
GL:   Tungsten Graphics, Inc
GL:   Mesa DRI Intel(R) 945GM GEM 20090326 2009Q1 RC2 x86/MMX/SSE2
GLEW: 1.5.0
Video mode set to  1024 x 697 / 32 bit
Testing mode enabled; game over disabled.
Connecting to local server
Starting demo recording
Using map Tropical.smf
Recording demo demos/local_20090714_220601_Tropical_0.79.1.sdf
Using script Random enemies
Using mod Complete Annihilation stable-5122
Using mod archive ca-r5122.sdz
Became player 0 (team 0, allyteam 0)
Sound: OpenAL info:
Sound:   Vendor:     OpenAL Community
Sound:   Version:    1.1
Sound:   Renderer:   OpenAL Soft
Sound:   AL Extensions: AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_OFFSET AL_LOKI_quadriphonic
Sound:   ALC Extensions: ALC_ENUMERATE_ALL_EXT ALC_ENUMERATION_EXT ALC_EXT_CAPTURE ALC_EXT_EFX
Sound:   Device:     ALSA Software on default
Sound:   Available Devices:
Sound:                       ALSA Software on default
Sound:                       ALSA Software on HDA Intel
Sound:                       OSS Software
Sound:                       Wave File Writer
Sound: CSound(): Sucessfully parsed 4 SoundItems from gamedata/sounds.lua
Parsing unit icons
Parsing definitions
could not load buildOption data: missing file
Loading all definitions:  1.428000
shadows disabled or required OpenGL extension missing
Loading map informations
Opening map file
Loading Map
Loading detail textures
Creating overhead texture
Creating ground shading
Segmentation fault
Have I done something obvious wrong, and is there enough information here to help please? Also, can I spoiler that code?

Re: segfault on load at 'creaating ground shading'

Posted: 14 Jul 2009, 23:51
by hoijui
strange, it should show a stack trace, not jsut write segmentation fault. Also, the latest version of spring is 0.79.1.2, you seem to have 0.79.1.1. i dont know which repo you use, and who maintains it, but it shoudl be updated, if you use the latest version from that.

Re: segfault on load at 'creaating ground shading'

Posted: 14 Jul 2009, 23:53
by Auswaschbar
hoijui wrote:strange, it should show a stack trace, not jsut write segmentation fault.
Nope, I implemented stacktrace for linux in post-0.79 master

Re: segfault on load at 'creaating ground shading'

Posted: 15 Jul 2009, 12:00
by hoijui
omg! i knew that!
a week ago or so :/