Seg fault on demo

Problems with the Linux version of Darwinia

Moderators: jelco, bert_the_turtle, Chris, andy, John

Lapin
level0
Posts: 2
Joined: Sun Jul 24, 2005 12:37 am

Seg fault on demo

Postby Lapin » Sun Jul 24, 2005 12:50 am

Hi all,
I'm trying to run the demo.
I'm under Mandrake 10.1 official. I'm using nvidia driver 1-6629.

I got a segmentation fault running darwinia demo :

here is the mesages I get :

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 none

CLIENT : Attempting connection...



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
./darwinia: line 39: 10897 Segmentation fault $here/lib/darwinia.bin.x86


$ cat blackbox.txt
=========================
DARWINIA BLACK BOX REPORT
=========================

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

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

ServerAddress = 127.0.0.1
BypassNetwork = 1
IAmAServer = 1
TextLanguage = english
TextSpeed = 15
HelpEnabled = 0
SoundLibrary = software
SoundMixFreq = 22050
SoundMasterVolume = 255
SoundChannels = 32
SoundHW3D = 0
SoundSwapStereo = 1
SoundMemoryUsage = 1
SoundBufferSize = 512
SoundDSP = 0
ScreenWidth = 1280
ScreenHeight = 1024
ScreenWindowed = 0
ScreenZDepth = 24
ScreenColourDepth = 32
ScreenRefresh = 60
RenderLandscapeDetail = 1
RenderWaterDetail = 1
RenderBuildingDetail = 1
RenderEntityDetail = 1
RenderCloudDetail = 1
RenderPixelShader = 0
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
StartMap = mine
UserProfile = none

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

retAddress = 0x807c3b9
retAddress = 0x8079b6e
retAddress = 0x8079d20
retAddress = 0x80a8c63
retAddress = 0x80a89c4
retAddress = 0x80aff28
retAddress = 0x809ec7c
retAddress = 0x402efea0
retAddress = 0x804cdc1


gdb stack trace:

GNU gdb 6.2-2mdk (Mandrakelinux)
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 "i586-mandrake-linux-gnu".
(gdb) Reading symbols from /home/lapin/darwinia-demo/lib/darwinia.bin.x86...(no debugging symbols found)...done.
Using host libthread_db library "/lib/tls/libthread_db.so.1".
(gdb) Attaching to program: /home/lapin/darwinia-demo/lib/darwinia.bin.x86, process 10897
Reading symbols from /home/lapin/darwinia-demo/lib/libSDL-1.2.so.0...done.
Loaded symbols for /home/lapin/darwinia-demo/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 /home/lapin/darwinia-demo/lib/libvorbisfile.so.3...done.
Loaded symbols for /home/lapin/darwinia-demo/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 /home/lapin/darwinia-demo/lib/libgcc_s.so.1...done.
Loaded symbols for /home/lapin/darwinia-demo/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 1079957056 (LWP 10897)]
[New Thread 1095891888 (LWP 10898)]
[Thread debugging using libthread_db enabled]
[New Thread 1079957056 (LWP 10897)]
[New Thread 1095891888 (LWP 10898)]
[Thread debugging using libthread_db enabled]
[New Thread 1079957056 (LWP 10897)]
[New Thread 1095891888 (LWP 10898)]
Loaded symbols for /lib/tls/libpthread.so.0
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/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/lib/libstdc++.so.6...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /home/lapin/darwinia-demo/lib/libvorbis.so.0...done.
Loaded symbols for /home/lapin/darwinia-demo/lib/../lib/libvorbis.so.0
Reading symbols from /home/lapin/darwinia-demo/lib/libogg.so.0...done.
Loaded symbols for /home/lapin/darwinia-demo/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/X11R6/lib/libXcursor.so.1...done.
Loaded symbols for /usr/X11R6/lib/libXcursor.so.1
Reading symbols from /usr/X11R6/lib/libXrender.so.1...done.
Loaded symbols for /usr/X11R6/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
0xffffe410 in ?? ()
(gdb) 2 Thread 1095891888 (LWP 10898) 0xffffe410 in ?? ()
1 Thread 1079957056 (LWP 10897) 0xffffe410 in ?? ()
(gdb)
Thread 2 (Thread 1095891888 (LWP 10898)):
#0 0xffffe410 in ?? ()
#1 0x4151fa48 in ?? ()
#2 0x00000800 in ?? ()
#3 0x08f54b98 in ?? ()
#4 0x4038c94b in write () from /lib/tls/libc.so.6
#5 0x40027878 in DSP_PlayAudio (this=0x8f25620) at SDL_dspaudio.c:140
#6 0x40023137 in SDL_RunAudio (audiop=0x8f25620) at SDL_audio.c:232
#7 0x4006e10b in SDL_RunThread (data=0x8f46c20) at SDL_thread.c:218
#8 0x4006e31f in RunThread (data=0xfffffe00) at SDL_systhread.c:82
#9 0x403ffb3c in start_thread () from /lib/tls/libpthread.so.0
#10 0x4039a92a in clone () from /lib/tls/libc.so.6

Thread 1 (Thread 1079957056 (LWP 10897)):
#0 0xffffe410 in ?? ()
#1 0xbfffe794 in ?? ()
#2 0x00000000 in ?? ()
#3 0x00000000 in ?? ()
#4 0x40364a20 in fork () from /lib/tls/libc.so.6
#5 0x4030f55e in strtold_l () from /lib/tls/libc.so.6
#6 0x4030f932 in system () from /lib/tls/libc.so.6
#7 0x08084f28 in ?? ()
#8 0x08085222 in ?? ()
#9 0x08085040 in ?? ()
#10 <signal handler called>
#11 0x00000ef1 in ?? ()
#12 0x0807c51f in ?? ()
#13 0x0807c3b9 in ?? ()
#14 0x08079b6e in ?? ()
#15 0x08079d20 in ?? ()
#16 0x080a8c63 in ?? ()
#17 0x080a89c4 in ?? ()
#18 0x080aff28 in ?? ()
#19 0x0809ec7c in ?? ()
#20 0x402efea0 in __libc_start_main () from /lib/tls/libc.so.6
#21 0x0804cdc1 in ?? ()
#0 0xffffe410 in ?? ()
(gdb) Detaching from program: /home/lapin/darwinia-demo/lib/darwinia.bin.x86, process 10897
And the blackbox.txt



I tried different thnigs in "preferences" (windowed mode, depth, etc...),
no success..

Thanks a lot
User avatar
John
Introversion Staff
Introversion Staff
Posts: 511
Joined: Sun Dec 10, 2000 6:22 pm
Location: London, UK

Postby John » Mon Jul 25, 2005 5:56 pm

Try setting

RenderLandscapeMode = 1

(or 0) in ~/.darwinia/demo/preferences.txt

Some graphics cards / drivers can't do the fastest landscape mode which is 2.
Lapin
level0
Posts: 2
Joined: Sun Jul 24, 2005 12:37 am

Postby Lapin » Tue Jul 26, 2005 11:21 pm

That's fine now. I've approx 35 fps at 1280 x 1024, all options high.

Thank's a lot !! :P

Return to “Linux Issues”

Who is online

Users browsing this forum: No registered users and 8 guests