Early crash..

Problems with the Linux version of Darwinia

Moderators: jelco, bert_the_turtle, Chris, andy, John

deadfee7
level0
Posts: 7
Joined: Sun Apr 10, 2005 3:30 pm

Early crash..

Postby deadfee7 » Wed May 25, 2005 10:00 pm

Hello I've got a problem, darwinia crashes immediatly after reading everything from disk.. It's the same problem if I use the libraries supplied with darwinia (in the libs directory) or my own.

The demo runs fine on the laptop.

Here's the info I have.

System: Ubuntu Hoary and Warty
Laptop: Thinkpad X40


commandline:

Code: Select all

$ ./darwinia.bin.x86
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

Segmenteringsfel



blackbox.txt

Code: Select all

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

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

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

retAddress = 0x808f860
retAddress = 0x808f18e
retAddress = 0x807872f
retAddress = 0x815d7ba
retAddress = 0x80bfc74
retAddress = 0x804d851
retAddress = 0x80ba03b
retAddress = 0x80ba1c9
retAddress = 0x80a6466
retAddress = 0x402b47b6
retAddress = 0xbffffa3b


gdb stack trace:

GNU gdb 6.1-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 /mnt/extra/tmp/darwinia2/darwinia.bin.x86...(no debugging symbols found)...done.
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(gdb) Attaching to program: /mnt/extra/tmp/darwinia2/darwinia.bin.x86, process 27332
Reading symbols from /usr/lib/libSDL-1.2.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libSDL-1.2.so.0
Reading symbols from /usr/X11R6/lib/libGL.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/X11R6/lib/libGL.so.1
Reading symbols from /usr/X11R6/lib/libGLU.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/X11R6/lib/libGLU.so.1
Reading symbols from /usr/lib/libvorbisfile.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libvorbisfile.so.3
Reading symbols from /usr/lib/libstdc++.so.5...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libstdc++.so.5
Reading symbols from /lib/tls/i686/cmov/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libm.so.6
Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/tls/i686/cmov/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libc.so.6
Reading symbols from /lib/tls/i686/cmov/libpthread.so.0...(no debugging symbols found)...done.
[Thread debugging using libthread_db enabled]
[New Thread 1078856800 (LWP 27332)]
Loaded symbols for /lib/tls/i686/cmov/libpthread.so.0
Reading symbols from /lib/tls/i686/cmov/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libdl.so.2
Reading symbols from /usr/X11R6/lib/libX11.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.6
Reading symbols from /usr/X11R6/lib/libXext.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/X11R6/lib/libXext.so.6
Reading symbols from /usr/lib/libvorbis.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libvorbis.so.0
Reading symbols from /usr/lib/libogg.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libogg.so.0
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/libXcursor.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXcursor.so.1
Reading symbols from /usr/lib/libXrender.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXrender.so.1
Reading symbols from /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2
Loaded symbols for /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2
(no debugging symbols found)...0xffffe410 in __kernel_vsyscall ()
(gdb)   1 Thread 1078856800 (LWP 27332)  0xffffe410 in __kernel_vsyscall ()
(gdb)
Thread 1 (Thread 1078856800 (LWP 27332)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0x40347e43 in waitpid () from /lib/tls/i686/cmov/libc.so.6
#2  0x402dec36 in system () from /lib/tls/i686/cmov/libc.so.6
#3  0x0808c648 in ?? ()
#4  0x0808c942 in ?? ()
#5  0x0808c760 in ?? ()
#6  0xffffe440 in __kernel_sigreturn ()
#7  0x0808f47a in ?? ()
#8  0x00000000 in ?? ()
#9  0x0817dbf8 in std::basic_streambuf<wchar_t, std::char_traits<wchar_t> >::_S_pback_size ()
#10 0x082127f0 in ?? ()
#11 0xbffff4fc in ?? ()
#12 0x0808f860 in ?? ()
#13 0x00000008 in ?? ()
#14 0x0817dbf8 in std::basic_streambuf<wchar_t, std::char_traits<wchar_t> >::_S_pback_size ()
#15 0xbffff514 in ?? ()
#16 0x0808f18e in ?? ()
#0  0xffffe410 in __kernel_vsyscall ()
(gdb) Detaching from program: /darwinia.bin.x86, process 27332
Last edited by deadfee7 on Wed May 25, 2005 11:29 pm, edited 1 time in total.
deadfee7
level0
Posts: 7
Joined: Sun Apr 10, 2005 3:30 pm

Postby deadfee7 » Wed May 25, 2005 10:25 pm

the thread by zx64 seems to be the same, I tried ading ScreenWindowed=1 and got the same traceback as he did...

http://forums.introversion.co.uk/darwinia/viewtopic.php?t=2245
deadfee7
level0
Posts: 7
Joined: Sun Apr 10, 2005 3:30 pm

Postby deadfee7 » Wed May 25, 2005 11:01 pm

I found the tips on using SETUP_CDROM=/mnt/whatever to install darwinia without CD worked great. But it still crashes, I wonder why. Is it my graphiccard/X server or is it something else?

It also runs wonderfully on a nvidia machine, very nice game. But that's not my computer soo...

More info:
It crashes rigth after loading language.dat. I'm kind of out of ideas now, I think I will try to install Fedora or something similar to see if it works,,

Code: Select all

6014  stat64("language.dat", {st_mode=S_IFREG|0644, st_size=21984, ...}) = 0
6014  open("language.dat", O_RDONLY)    = 5
6
.....
.....
.....
6014  close(5)                          = 0
6014  munmap(0x408fd000, 4096)          = 0
6014  stat64("language.dat", {st_mode=S_IFREG|0644, st_size=21984, ...}) = 0
6014  munmap(0x404fc000, 4198400)       = 0
6014  munmap(0x4233e000, 26218496)      = 0
6014  gettimeofday({1117058063, 684327}, NULL) = 0
6014  --- SIGSEGV (Segmentation fault) @ 0 (0) ---
6014  open("/mnt/extra/tmp/darwinia2/blackbox.txt", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 5
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Thu May 26, 2005 2:42 am

6014 open("/mnt/extra/tmp/darwinia2/blackbox.txt", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 5 ???

:shock: :shock: :shock: It is the crash of the beast! Hurry, get some holy water!!

xander
deadfee7
level0
Posts: 7
Joined: Sun Apr 10, 2005 3:30 pm

Postby deadfee7 » Thu May 26, 2005 12:14 pm

I confirmed that the darwinia-demo-1.2.1 works..

Can I get the old linux installer from somewhere?
deadfee7
level0
Posts: 7
Joined: Sun Apr 10, 2005 3:30 pm

Postby deadfee7 » Thu May 26, 2005 4:23 pm

ok I found the problem. The new version of the game can't handle when I use multiple monitors, now the demo will always work whether I use more than one screen or not.

I had recently added a Monitor section in my /etc/X11/xorg.conf which contained the option Screen "0" (and another monitor with Screen "1"). When I reverted to the old config with only one monitor everything was fine.

I checked now and saw that there were a couple of things different:
1. Color depth
2. multiple monitors

I'm going to single out what soon, until then it's intereting to see that the demo always works.


regards faa7
User avatar
John
Introversion Staff
Introversion Staff
Posts: 509
Joined: Sun Dec 10, 2000 6:22 pm
Location: London, UK

Postby John » Sat May 28, 2005 12:15 pm

Getting there! Make sure that preferences.txt includes TextLanguage = english
deadfee7
level0
Posts: 7
Joined: Sun Apr 10, 2005 3:30 pm

Postby deadfee7 » Mon May 30, 2005 12:39 pm

Yes the preferences.txt has 'TextLanguage = english'

I'm now almost certain that is was the screen depth that made the game crash, It crashed when I had it on 16bpp but it worked flawlessly on 24bpp, even though it says "ScreenColourDepth = 32" in preferences.

I've tested this on Ubuntu Warty using XF86 and Ubunut Hoary using Xorg. With the same results. The demo works in 16bpp and the full game crashes.

I've not done much testing since I've been enjoying the game so much.

Return to “Linux Issues”

Who is online

Users browsing this forum: No registered users and 1 guest