Seg fault.

Problems with the Linux version of Darwinia

Moderators: jelco, bert_the_turtle, Chris, andy, John

kabads
level1
level1
Posts: 18
Joined: Wed Jul 20, 2005 1:13 pm

Seg fault.

Postby kabads » Wed Jul 20, 2005 2:07 pm

Ok- some preamble - debian sid, with 2.6.11.11 kernel, Nvidia 5200fx pci card (ouch) and other DRI apps working fine. Running Xfree86 with Nvidia driver 7167. Downloaded 121b version of the Linux patch which installed with no problems. Mounted CDrom to /cdrom.

I'm getting this after choosing the "garden":

Code: Select all

adam@debian:~$ /usr/local/games/darwinia/darwinia
/usr/local/games/darwinia
SDL Version: Compiled against 1.2.8, running with 1.2.8
Initialising SDL Audio
Frequency: 22050
Format: 32784
Channels: 2
Samples: 512
Size of Stereo Sample: 4
Loading profile NewUser

Triffid found on level sandbox should be dynamic (otherwise save games wont work
)

XINERAMA offset guess: 0, 0
CLIENT : Attempting connection...

Water lightmap generation took 7ms

Tree generated in 21ms

Tree generated in 136ms

Tree generated in 37ms

EntityGrid max neighbours set to 100 (time taken 0.02ms)

ObstructionGrid took 0ms to generate

CLIENT : Requesting Team...

CLIENT : Requesting Team...

CLIENT : Requesting Team...



Darwinia has unexpectedly encountered a fatal error.
A full description of the error can be found in the file
blackbox.txt in the current working directory

/usr/local/games/darwinia/darwinia: line 39: 10233 Segmentation fault      $here
/lib/darwinia.bin.x86


I have to run this from / as it complains about not finding ./lib shared libraries.

My blackbox.txt is:

Code: Select all

=========================
DARWINIA BLACK BOX REPORT
=========================

VERSION : linux-full-1.2.1b
ERROR   : 'Got a fatal signal: 11
'

=========================
====== PREFERENCES ======
=========================

ServerAddress = 127.0.0.1
BypassNetwork = 1
IAmAServer = 1
TextLanguage = english
TextSpeed = 15
HelpEnabled = 1
SoundLibrary = software
SoundMixFreq = 22050
SoundMasterVolume = 255
SoundChannels = 32
SoundHW3D = 0
SoundSwapStereo = 1
SoundMemoryUsage = 1
SoundBufferSize = 512
SoundDSP = 1
ScreenWidth = 1024
ScreenHeight = 768
ScreenWindowed = 1
ScreenZDepth = 16
ScreenColourDepth = 32
ScreenRefresh = 60
RenderLandscapeDetail = 1
RenderWaterDetail = 1
RenderBuildingDetail = 1
RenderEntityDetail = 1
RenderCloudDetail = 1
RenderPixelShader = 1
ControlUp = key E
ControlDown = key Q
ControlLeft = key A
ControlBackwards = key S
ControlRight = key D
ControlForwards = key W
ControlChatLog = key TAB
ControlZoom = key Z
ControlDeselect = key SPACE
ControlMouseButtons = 3
RenderLandscapeMode = 2
ManuallyScaleTextures = 0
BootLoader = random
UserProfile = NewUser

=========================
====== STACKTRACE =======
=========================

retAddress = 0xb7f07b7c
retAddress = 0xb7f085cd
retAddress = 0x8084623
retAddress = 0x8084b62
retAddress = 0x80b1cab
retAddress = 0x80c0aba
retAddress = 0x80c0615
retAddress = 0x80b99d8
retAddress = 0x80ba55f
retAddress = 0x80a646c
retAddress = 0xb7c38974
retAddress = 0x804cdc1


gdb stack trace:

GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux".
(gdb) Reading symbols from /usr/local/games/darwinia/lib/darwinia.bin.x86...(no debugging symbols found)...done.
Using host libthread_db library "/lib/tls/libthread_db.so.1".
(gdb) Attaching to program: /usr/local/games/darwinia/lib/darwinia.bin.x86, process 10233
(no debugging symbols found)
`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
Reading symbols from /usr/local/games/darwinia/lib/libSDL-1.2.so.0...done.
Loaded symbols for /usr/local/games/darwinia/lib/libSDL-1.2.so.0
Reading symbols from /usr/X11R6/lib/libGL.so.1...done.
Loaded symbols for /usr/X11R6/lib/libGL.so.1
Reading symbols from /usr/X11R6/lib/libGLU.so.1...done.
Loaded symbols for /usr/X11R6/lib/libGLU.so.1
Reading symbols from /usr/local/games/darwinia/lib/libvorbisfile.so.3...done.
Loaded symbols for /usr/local/games/darwinia/lib/libvorbisfile.so.3
Reading symbols from /usr/lib/libstdc++.so.5...done.
Loaded symbols for /usr/lib/libstdc++.so.5
Reading symbols from /lib/tls/libm.so.6...done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /usr/local/games/darwinia/lib/libgcc_s.so.1...done.
Loaded symbols for /usr/local/games/darwinia/lib/libgcc_s.so.1
Reading symbols from /lib/tls/libc.so.6...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/tls/libpthread.so.0...done.
[Thread debugging using libthread_db enabled]
[New Thread -1213183648 (LWP 10233)]
[New Thread -1231221840 (LWP 10239)]
Loaded symbols for /lib/tls/libpthread.so.0
Reading symbols from /lib/tls/libdl.so.2...done.
Loaded symbols for /lib/tls/libdl.so.2
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.6
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXext.so.6
Reading symbols from /usr/X11R6/lib/libXxf86vm.so.1...done.
Loaded symbols for /usr/X11R6/lib/libXxf86vm.so.1
Reading symbols from /usr/local/games/darwinia/lib/libvorbis.so.0...done.
Loaded symbols for /usr/local/games/darwinia/lib/../lib/libvorbis.so.0
Reading symbols from /usr/local/games/darwinia/lib/libogg.so.0...done.
Loaded symbols for /usr/local/games/darwinia/lib/../lib/libogg.so.0
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/libXcursor.so.1...done.
Loaded symbols for /usr/lib/libXcursor.so.1
Reading symbols from /usr/lib/libXrender.so.1...done.
Loaded symbols for /usr/lib/libXrender.so.1
Reading symbols from /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2...done.
Loaded symbols for /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2
0xb7ccc3d1 in waitpid () from /lib/tls/libc.so.6
(gdb)   2 Thread -1231221840 (LWP 10239)  0xb7ced981 in write ()
   from /lib/tls/libc.so.6
  1 Thread -1213183648 (LWP 10233)  0xb7ccc3d1 in waitpid ()
   from /lib/tls/libc.so.6
(gdb)
Thread 2 (Thread -1231221840 (LWP 10239)):
#0  0xb7ced981 in write () from /lib/tls/libc.so.6
#1  0xb7f4a878 in DSP_PlayAudio (this=0x95c13e0) at SDL_dspaudio.c:140
#2  0xb7f46137 in SDL_RunAudio (audiop=0x95c13e0) at SDL_audio.c:232
#3  0xb7f9110b in SDL_RunThread (data=0x95e2a70) at SDL_thread.c:218
#4  0xb7f9131f in RunThread (data=0x10) at SDL_systhread.c:82
#5  0xb7c18b63 in start_thread () from /lib/tls/libpthread.so.0
#6  0xb7cfb18a in clone () from /lib/tls/libc.so.6

Thread 1 (Thread -1213183648 (LWP 10233)):
#0  0xb7ccc3d1 in waitpid () from /lib/tls/libc.so.6
#1  0xb7c61d12 in system () from /lib/tls/libc.so.6
#2  0xb7c61a9f in system () from /lib/tls/libc.so.6
#3  0x0808c648 in ?? ()
#4  0x0808c942 in ?? ()
#5  0x0808c760 in ?? ()
#6  <signal handler called>
#7  0xb7c9d07f in memcpy () from /lib/tls/libc.so.6
#8  0xb7f07b7c in __indirect_glArrayElement () from /usr/X11R6/lib/libGL.so.1
#9  0xb7f085cd in __indirect_glDrawArrays () from /usr/X11R6/lib/libGL.so.1
#10 0x08084623 in ?? ()
#11 0x08084b62 in ?? ()
#12 0x080b1cab in ?? ()
#13 0x080c0aba in ?? ()
#14 0x080c0615 in ?? ()
#15 0x080b99d8 in ?? ()
#16 0x080ba55f in ?? ()
#17 0x080a646c in ?? ()
#18 0xb7c38974 in __libc_start_main () from /lib/tls/libc.so.6
#19 0x0804cdc1 in ?? ()
#0  0xb7ccc3d1 in waitpid () from /lib/tls/libc.so.6
(gdb) Detaching from program: /usr/local/games/darwinia/lib/darwinia.bin.x86, process 10233


Any idea of what is causing this?

TIA.
Adam
kabads
level1
level1
Posts: 18
Joined: Wed Jul 20, 2005 1:13 pm

forgot to say...

Postby kabads » Wed Jul 20, 2005 2:08 pm

demo ran fine a couple of weeks ago.
User avatar
John
Introversion Staff
Introversion Staff
Posts: 511
Joined: Sun Dec 10, 2000 6:22 pm
Location: London, UK

Postby John » Wed Jul 20, 2005 6:06 pm

Hi, try changing the RenderLandscapeMode in your preferences file (~/.darwinia/full/preferences.txt) to 1 (or 0).
kabads
level1
level1
Posts: 18
Joined: Wed Jul 20, 2005 1:13 pm

thanks John

Postby kabads » Wed Jul 20, 2005 8:48 pm

Thanks John - It now works, but with only 10 fps. Any tips for a speed increase?
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Re: thanks John

Postby xander » Wed Jul 20, 2005 8:57 pm

kabads wrote:Thanks John - It now works, but with only 10 fps. Any tips for a speed increase?


decrease the screen resolution
set various detail levels to lower quality
turn off the pixel effect

That might help a bit. I am sorry, I don't know video cards that well (me being a Mac person and all), but the 'ouch' by your video card implies that it is not all that great? Graphics cards have been a major bottleneck for framerates on most systems. However, if it is the card, lower settings should help.

xander
kabads
level1
level1
Posts: 18
Joined: Wed Jul 20, 2005 1:13 pm

Postby kabads » Wed Jul 20, 2005 10:13 pm

When I installed the demo it worked with a considerably higher framerate than that of the full version. I'm not sure what the settings were for the demo, but the quality of gameplay and speed were far better than that of the full version. If I remember correctly, they were the highest settings for the demo. The ouch mentioned earlier was referring to my pci - I really would like an agp card now, but hey ho, my salary doesn't allow for everything I want.

Anyway, even with the lowest settings throughout, I'm still getting 10fps, which is much worse than when i played the demo.

Return to “Linux Issues”

Who is online

Users browsing this forum: No registered users and 8 guests