SegFault when setting ColourDepth to 24

Problems with the Linux version of Darwinia

Moderators: jelco, bert_the_turtle, Chris, andy, John

Heimdall
level0
Posts: 6
Joined: Fri Mar 18, 2005 6:58 pm

SegFault when setting ColourDepth to 24

Postby Heimdall » Sun Jun 05, 2005 4:32 pm

Hi,

when I set ColourDepth to 24 (instead of 32), the game crashes at startup with the message :

/usr/local/games/darwinia
SDL Version: Compiled against 1.2.8, running with 1.2.8
Previous frame inner to this frame (corrupt stack?)


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


Setting it back to 32 in preferences.txt makes it work perfectly.

Here comes blacbox.txt :

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

VERSION : linux-full-1.2.1
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 = 0
ScreenZDepth = 24
ScreenColourDepth = 24
ScreenRefresh = 60
RenderLandscapeDetail = 1
RenderWaterDetail = 2
RenderBuildingDetail = 2
RenderEntityDetail = 1
RenderCloudDetail = 1
RenderPixelShader = 0
ControlUp = key A
ControlDown = key E
ControlLeft = key Q
ControlBackwards = key S
ControlRight = key D
ControlForwards = key Z
ControlChatLog = key TAB
ControlZoom = key R
ControlDeselect = key SPACE
ControlMouseButtons = 3
RenderLandscapeMode = 2
ManuallyScaleTextures = 0
BootLoader = random
UserProfile = Nattfodd

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

retAddress = 0x808f860
retAddress = 0x808f18e
retAddress = 0x807872f
retAddress = 0x815d7ba
retAddress = 0x80bfc74
retAddress = 0x804d851
retAddress = 0x80ba03b
retAddress = 0x80ba1c9
retAddress = 0x80a6466
retAddress = 0xb7bd65b0
retAddress = 0x804cdc1


gdb stack trace:

GNU gdb 6.3
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-pc-linux-gnu".
(gdb) Reading symbols from /usr/local/games/darwinia/lib/darwinia.bin.x86...(no debugging symbols found)...done.
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) Attaching to program: /usr/local/games/darwinia/lib/darwinia.bin.x86, process 11107
(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/lib/opengl/xorg-x11/lib/libGL.so.1...done.
Loaded symbols for /usr/lib/opengl/xorg-x11/lib/libGL.so.1
Reading symbols from /usr/lib/libGLU.so.1...done.
Loaded symbols for /usr/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/gcc-lib/i386-pc-linux-gnu/3.3.5-20050130/libstdc++.so.5...done.
Loaded symbols for /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5-20050130/libstdc++.so.5
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/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/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/libpthread.so.0...done.
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 11107)]
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /usr/lib/libX11.so.6...done.
Loaded symbols for /usr/lib/libX11.so.6
Reading symbols from /usr/lib/libXext.so.6...done.
Loaded symbols for /usr/lib/libXext.so.6
Reading symbols from /usr/lib/libXxf86vm.so.1...done.
Loaded symbols for /usr/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.0.2...done.
Loaded symbols for /usr/lib/libXcursor.so.1.0.2
Reading symbols from /usr/lib/libXrender.so.1...done.
Loaded symbols for /usr/lib/libXrender.so.1
Reading symbols from /usr/lib/X11/locale/lib/common/xlcDef.so.2...done.
Loaded symbols for /usr/lib/X11/locale/lib/common/xlcDef.so.2
0xb7c47948 in waitpid () from /lib/libc.so.6
(gdb) 1 Thread 16384 (LWP 11107) 0xb7c47948 in waitpid () from /lib/libc.so.6
(gdb)
Thread 1 (Thread 16384 (LWP 11107)):
#0 0xb7c47948 in waitpid () from /lib/libc.so.6
#1 0xb7cd4ff4 in ?? () from /lib/libc.so.6
#2 0xb7bf6512 in strtold_l () from /lib/libc.so.6
#3 0x0808c648 in ?? ()
#4 0x0808c942 in ?? ()
#5 0x0808c760 in ?? ()
#6 0xb7b7a9d7 in __pthread_sighandler_rt () from /lib/libpthread.so.0
#7 <signal handler called>
#8 0x0808f47a in ?? ()
#9 0x00000000 in ?? ()
#10 0x0817dbf8 in std::basic_streambuf<wchar_t, std::char_traits<wchar_t> >::_S_pback_size ()
#11 0x084a6ce8 in ?? ()
#12 0xbfa9292c in ?? ()
#13 0x0808f860 in ?? ()
#14 0x00000008 in ?? ()
#15 0x0817dbf8 in std::basic_streambuf<wchar_t, std::char_traits<wchar_t> >::_S_pback_size ()
#16 0xbfa92944 in ?? ()
#17 0x0808f18e in ?? ()
#0 0xb7c47948 in waitpid () from /lib/libc.so.6
(gdb) Detaching from program: /usr/local/games/darwinia/lib/darwinia.bin.x86, process 11107
User avatar
John
Introversion Staff
Introversion Staff
Posts: 511
Joined: Sun Dec 10, 2000 6:22 pm
Location: London, UK

Postby John » Mon Jun 06, 2005 4:49 am

Please can you try this if you're running the demo or this if you're running the full game, and let me know how it goes, thanks.
Heimdall
level0
Posts: 6
Joined: Fri Mar 18, 2005 6:58 pm

Postby Heimdall » Tue Jun 07, 2005 10:13 am

Hi,
I tried the new installer (full game). When setting ColourDepth to 24, it does not segfault anymore but says "failed to start required mode" or something like that (sorry, the game isn't on this computer so I can't give you the exact message).

It then starts in 800x600, windowed mode. As usual, back to 32 bits it works flawlessly.

I don't know if this is related in any way, but I was in the middle of Pattern Buffer when I tried the new installer and the two triffids on the second island, that I had killed a long time ago were alive again...

Return to “Linux Issues”

Who is online

Users browsing this forum: No registered users and 13 guests