Debian 64-bit Segmentation Fault

Problems with the Linux version of Darwinia

Moderators: jelco, bert_the_turtle, Chris, andy, John

BCable
level0
Posts: 8
Joined: Thu Oct 15, 2009 4:09 am

Debian 64-bit Segmentation Fault

Postby BCable » Thu Oct 15, 2009 4:20 am

I am running Debian 64-bit linux with an NVIDIA graphics card using the nvidia-glx_185.18.36-2_amd64 graphics driver. I have ia32-libs installed and also ia32-* installed, just to be safe.

Originally, Darwinia threw an error about my GCC version support which I fixed with the following: mv lib/libgcc_s.so.1 lib/libgcc_s.so.1.bak. This way it is using my libgcc instead of the one that came with it.

This allowed me to run the menu, and I can mess with the settings and stuff, but when I enter the actual level by clicking Garden, it turns to a black screen and errors out. Originally this was because of the libraries not being detected, so I edited the "darwinia" script and added the absolute path to my game directory (since $here wasn't picking up on it).

Now, it just says "Segmentation fault" and quits.

This is actually the 3rd time I've bought this game, and the first time that I've tried to play it. I bought it on Steam a long time ago, I bought the actual physical copy (which I still have here), and now I just bought the introversion pack for Linux just to give me something to do in Linux between coding sessions :). I'd really like to play this game, but I never had time before... now I can't get it to work!

Here's the output that it gives, and also the contents of the blackbox.txt file.

Thanks!
Brad

Code: Select all

.
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

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

Water lightmap generation took 2ms

Tree generated in 3ms

Tree generated in 5ms

Tree generated in 5ms

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

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

Segmentation fault


Code: Select all

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

VERSION : linux-full-1.3.0
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 = 0
SoundMemoryUsage = 1
SoundBufferSize = 512
SoundDSP = 1
ScreenWidth = 1024
ScreenHeight = 768
ScreenWindowed = 0
ScreenZDepth = 24
ScreenColourDepth = 32
ScreenRefresh = 60
RenderLandscapeDetail = 1
RenderWaterDetail = 1
RenderBuildingDetail = 1
RenderEntityDetail = 1
RenderCloudDetail = 1
RenderPixelShader = 1
ControlMouseButtons = 3
ControlMethod = 1
RenderLandscapeMode = 2
ManuallyScaleTextures = 0
BootLoader = random
UserProfile = NewUser
RenderSpecialLighting = 0

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

retAddress = 0xf7e7701d
retAddress = 0xf7e7664e
retAddress = 0x80876f7
retAddress = 0x8087c36
retAddress = 0x80b55e7
retAddress = 0x80c47ca
retAddress = 0x80c4321
retAddress = 0x80bd9bd
retAddress = 0x80be56d
retAddress = 0x80a9c88
retAddress = 0xf7b9277d
retAddress = 0x804cc91


gdb stack trace:

GNU gdb (GDB) 6.8.50.20090628-cvs-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(gdb) Reading symbols from /vault/games/darwinia/lib/darwinia.bin.x86...(no debugging symbols found)...done.
(gdb) Attaching to program: /vault/games/darwinia/lib/darwinia.bin.x86, process 29731
Reading symbols from /vault/games/darwinia/lib/libSDL-1.2.so.0...done.
Loaded symbols for /vault/games/darwinia/lib/libSDL-1.2.so.0
Reading symbols from /usr/lib32/libGL.so.1...done.
Loaded symbols for /usr/lib32/libGL.so.1
Reading symbols from /usr/lib32/libGLU.so.1...done.
Loaded symbols for /usr/lib32/libGLU.so.1
Reading symbols from /vault/games/darwinia/lib/libvorbisfile.so.3...done.
Loaded symbols for /vault/games/darwinia/lib/libvorbisfile.so.3
Reading symbols from /usr/lib32/libstdc++.so.5...done.
Loaded symbols for /usr/lib32/libstdc++.so.5
Reading symbols from /lib32/libm.so.6...done.
Loaded symbols for /lib32/libm.so.6
Reading symbols from /usr/lib32/libgcc_s.so.1...done.
Loaded symbols for /usr/lib32/libgcc_s.so.1
Reading symbols from /lib32/libc.so.6...done.
Loaded symbols for /lib32/libc.so.6
Reading symbols from /lib32/libpthread.so.0...done.
[Thread debugging using libthread_db enabled]
[New Thread 0xf6829b90 (LWP 29762)]
Loaded symbols for /lib32/libpthread.so.0
Reading symbols from /lib32/libdl.so.2...done.
Loaded symbols for /lib32/libdl.so.2
Reading symbols from /usr/lib32/libX11.so.6...done.
Loaded symbols for /usr/lib32/libX11.so.6
Reading symbols from /usr/lib32/libXext.so.6...done.
Loaded symbols for /usr/lib32/libXext.so.6
Reading symbols from /usr/lib32/libXxf86vm.so.1...done.
Loaded symbols for /usr/lib32/libXxf86vm.so.1
Reading symbols from /usr/lib32/libXdamage.so.1...done.
Loaded symbols for /usr/lib32/libXdamage.so.1
Reading symbols from /usr/lib32/libXfixes.so.3...done.
Loaded symbols for /usr/lib32/libXfixes.so.3
Reading symbols from /usr/lib32/libdrm.so.2...done.
Loaded symbols for /usr/lib32/libdrm.so.2
Reading symbols from /usr/lib32/libstdc++.so.6...done.
Loaded symbols for /usr/lib32/libstdc++.so.6
Reading symbols from /vault/games/darwinia/lib/../lib/libvorbis.so.0...done.
Loaded symbols for /vault/games/darwinia/lib/../lib/libvorbis.so.0
Reading symbols from /vault/games/darwinia/lib/../lib/libogg.so.0...done.
Loaded symbols for /vault/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/lib32/libxcb.so.1...done.
Loaded symbols for /usr/lib32/libxcb.so.1
Reading symbols from /usr/lib32/libXau.so.6...done.
Loaded symbols for /usr/lib32/libXau.so.6
Reading symbols from /lib32/librt.so.1...done.
Loaded symbols for /lib32/librt.so.1
Reading symbols from /usr/lib32/libXdmcp.so.6...done.
Loaded symbols for /usr/lib32/libXdmcp.so.6
Reading symbols from /usr/lib32/libXcursor.so.1...done.
Loaded symbols for /usr/lib32/libXcursor.so.1
Reading symbols from /usr/lib32/libXrender.so.1...done.
Loaded symbols for /usr/lib32/libXrender.so.1
0xf7f6f430 in __kernel_vsyscall ()
(gdb)   2 Thread 0xf6829b90 (LWP 29762)  0xf7f6f430 in __kernel_vsyscall ()
* 1 Thread 0xf78d36e0 (LWP 29731)  0xf7f6f430 in __kernel_vsyscall ()
(gdb)
Thread 2 (Thread 0xf6829b90 (LWP 29762)):
#0  0xf7f6f430 in __kernel_vsyscall ()
#1  0xf7c4b7cb in write () from /lib32/libc.so.6
#2  0xf7ed0878 in DSP_PlayAudio (this=0xb92d378) at SDL_dspaudio.c:140
#3  0xf7ecc137 in SDL_RunAudio (audiop=0xb92d378) at SDL_audio.c:232
#4  0xf7f1710b in SDL_RunThread (data=0xb953210) at SDL_thread.c:218
#5  0xf7f1731f in RunThread (data=0x800) at SDL_systhread.c:82
#6  0xf7b6a314 in start_thread () from /lib32/libpthread.so.0
#7  0xf7c5a73e in clone () from /lib32/libc.so.6

Thread 1 (Thread 0xf78d36e0 (LWP 29731)):
#0  0xf7f6f430 in __kernel_vsyscall ()
#1  0xf7c17e7b in waitpid () from /lib32/libc.so.6
#2  0xf7bb6776 in ?? () from /lib32/libc.so.6
#3  0xf7bb6ada in system () from /lib32/libc.so.6
#4  0x0808fd54 in ?? ()
#5  0x0809004e in ?? ()
#6  0x0808fe6c in ?? ()
#7  <signal handler called>
#8  0xf7bf2e26 in memcpy () from /lib32/libc.so.6
#9  0x00000001 in ?? ()
#10 0xf7e7701d in ?? () from /usr/lib32/libGL.so.1
#11 0xf7e7664e in ?? () from /usr/lib32/libGL.so.1
#12 0x080876f7 in ?? ()
#13 0x08087c36 in ?? ()
#14 0x080b55e7 in ?? ()
#15 0x080c47ca in ?? ()
#16 0x080c4321 in ?? ()
#17 0x080bd9bd in ?? ()
#18 0x080be56d in ?? ()
#19 0x080a9c88 in ?? ()
#20 0xf7b9277d in __libc_start_main () from /lib32/libc.so.6
#21 0x0804cc91 in ?? ()
(gdb) The program is running.  Quit anyway (and detach it)? (y or n) [answered Y; input not from terminal]
Detaching from program: /vault/games/darwinia/lib/darwinia.bin.x86, process 29731
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Thu Oct 15, 2009 4:06 pm

I am not exactly sure where the Linux version of Darwinia keeps its preferences file, but I believe it is in ~/.darwinia . If there is a file called preferences.txt in that directory, open it, and add the line "RenderLandscapeMode = 1". If preferences.txt is not there, I'm sure that one of the Linux gurus around here will correct me. ;)

xander
BCable
level0
Posts: 8
Joined: Thu Oct 15, 2009 4:09 am

Postby BCable » Fri Oct 16, 2009 4:01 am

THANK YOU!!! That allowed me to enter into the game!

The only issue is that the ground doesnt render at all... screenshot here:

http://bcable.net/darwinia_bug.png

Any ideas? I assume this is because you changed the landscape rendering mode :). I'll poke around in that file a bit more to see if I can get the thing to look right.
BCable
level0
Posts: 8
Joined: Thu Oct 15, 2009 4:09 am

Postby BCable » Fri Oct 16, 2009 4:21 am

I just installed 1.3.0 patch and it's the same thing.

I saw a link somewhere at some point to a 1.4.2 patch, but when I clicked it, it was a 1.3.0 download link... is there a 1.4.2 build for Darwinia or is it just 1.3.0?

I just tried the demo and it's doing the same thing (segfault vs. no land).
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Fri Oct 16, 2009 6:23 am

There is a 1.42 patch, but I think that it is Windows only (though I could be wrong). The landscape not rendering, on the other hand, is odd. Have you tried all three RenderLandscapeMode options (clearly, one is bad because it causes the game to crash, but does either of the other two get the landscape to render?)? Also, are your video card drivers up to date? If so, can you, perhaps, roll them back?

Unfortunately, at this point I am way out of my depth. Linux is not my OS.

xander
BCable
level0
Posts: 8
Joined: Thu Oct 15, 2009 4:09 am

Postby BCable » Fri Oct 16, 2009 2:45 pm

I found a few sources that mention version numbers, and it appears that the numbers are: 1.5.11 Windows, 1.4.2 Mac, 1.4.0 beta 9 Linux.

http://stellarmatter.net/darwikia/index ... ameUpdates

I tried out the beta and it's exactly the same. I also tried your other rendering modes. 1 = no land, 2 = segfault, 3 = no land.

I cannot revert my drivers back because the kernel I'm on (2.6.31) requires at least the drivers I'm on. I cannot revert my kernel because my wireless does not work on previous kernel versions.

I'm out of ideas :(
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Fri Oct 16, 2009 3:20 pm

BCable wrote:...1.4.0 beta 9 Linux...

Oi... I'd forgotten about that. Have you tried the beta?

xander
BCable
level0
Posts: 8
Joined: Thu Oct 15, 2009 4:09 am

Postby BCable » Fri Oct 16, 2009 3:53 pm

I tried out the beta and it's exactly the same.


:P

EDIT: I feel stupid for not reading the FAQ first... I'll go through that in a bit and see if that fixes my problem. If not, I'll report back.
BCable
level0
Posts: 8
Joined: Thu Oct 15, 2009 4:09 am

Postby BCable » Fri Oct 16, 2009 7:24 pm

Okay I've looked around and I can't find anything. I'm out of ideas.

Here are the MD5s of my data files, just to make sure they are not corrupted:

Code: Select all

ffad6b6072bcae93037c16d88739dd6c  darwinia.bin.x86
4542374e788333d08df18242c73cbe02  language.dat
7d8420ed1b9299e4939a0e81db96844e  main.dat
723b1b70cd0d3bb58f0ca90fd4b37f09  patch.dat
d63877dbe4a480f59fed01ae53486372  sounds.dat


Code: Select all

33c82c2dc17e0a13c9e5aa969c7a1c6d  darwinia-complete-1.2.1b.sh
ed5cbd41fbbffed431216a7a5e84e4fb  darwinia-demo2-1.3.0.sh
e8dbe3f3a2f58fd6890a022b66fc36ac  darwinia-full-1.3.0.sh
7528d6386ccc868e02471efd495ef0df  darwinia-full-1.4.0b9.sh
BCable
level0
Posts: 8
Joined: Thu Oct 15, 2009 4:09 am

Postby BCable » Sat Oct 17, 2009 4:53 pm

Okay so I managed to find an old Windows computer of mine and test the Windows version of that. It worked, but was really slow (yeah old computer).

I copied over the *.dat files from that machine to see if it was an issue with the Linux dat files. It gave an error saying certain files were missing, so I investigated some more. Apparently these .dat files are just RAR archives, so I extracted them both, compared the files, and copied over the missing files on the Windows dat files over from the Linux dat files (only main.dat had any differences).

This worked just fine, and I was able to start the game with this hybrid main.dat, and it still was not rendering the landscape.

So clearly this is a rendering issue, and not some sort of corrupt download or anything.

Anyone have any more ideas?
User avatar
NeatNit
level5
level5
Posts: 2929
Joined: Mon Jan 28, 2008 2:41 pm
Location: Israel
Contact:

Postby NeatNit » Sat Oct 17, 2009 7:34 pm

Umm... Try messing with some options? IIRC there are 4 or so settings for landscape quality, one of them is "I need to upgrade". Try that, see how it goes.
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Sat Oct 17, 2009 9:19 pm

NeatNit wrote:Umm... Try messing with some options? IIRC there are 4 or so settings for landscape quality, one of them is "I need to upgrade". Try that, see how it goes.

NeatNit, had you read the rest of the topic, and actually knew what you were talking about, you would already have discovered that your advice will almost certainly not help in the slightest. The problem is with the video card or the video drivers, and is associated with a well known problem---a problem that is generally solved by changing the RenderLandscapeMode setting. In fact, changing that setting did managed to partially fix the problem (though not entirely). At this point, the only people that are going to be of any use are going to be either Linux experts, or people who better understand what the RenderLandscapeMode setting does. Please, learn to recognize when you don't know what you are talking about, and refrain from commenting in those situations.

BCable: The problem almost certainly is a result of the bug that caused IV to implement the RenderLandscapeMode option. However, I don't entirely understand what the problem is (it had something to do with vertex arrays or something in OpenGL). You could try updating your OpenGL libraries, or swapping in a different video card, I suppose, and see if that helps. Honestly, I am completely out of my depth here, and was rather hoping that someone with a bit more knowledge might see this thread and reply.

You might try contacting IV through their support page. It may take a while for them to get back to you, but if you give them a link to this thread, they may be able to help.

xander
User avatar
NeatNit
level5
level5
Posts: 2929
Joined: Mon Jan 28, 2008 2:41 pm
Location: Israel
Contact:

Postby NeatNit » Sun Oct 18, 2009 3:40 pm

It can't hurt, you know. If it does fix the problem, you'd feel like an idiot for telling me off, no matter how slim the chances are.

I do know that I'm not exactly an expert about this, but I don't see how making this tiny suggestion with 0 chance of fucking up what's already there and 1/∞ chance of working, could possibly hurt anyone.


Learn to be human.
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Mon Oct 19, 2009 12:17 am

NeatNit wrote:It can't hurt, you know. If it does fix the problem, you'd feel like an idiot for telling me off, no matter how slim the chances are.

No, I wouldn't feel like an idiot because (1) that isn't going to fix the problem, because, as has already been noted, the issue is caused by a known bug whose symptoms do not include rendering at one detail level, and not at another and (2) even if the landscape did appear at a different detail level (which I am quite certain that it will not), that does not solve the problem, i.e. that the landscape is not being properly rendered at the currently selected detail level. So, no, I would not feel like an idiot.

NeatNit wrote:I do know that I'm not exactly an expert about this, but I don't see how making this tiny suggestion with 0 chance of fucking up what's already there and 1/∞ chance of working, could possibly hurt anyone.

You have a habit of posting advice that is irrelevant in all kinds of topics. You open your mouth when you have no idea what you are talking about, which has led to confusion in the past, and certainly muddies the water in terms of what other people are trying to do in order to solve problems. If you don't actually know that something that you are about to advise someone to do is going to help, then don't respond (or, if a topic is getting no response, unlike this one, make it clear that you don't actually have any idea what you are talking about before saying anything). If others are actively trying to solve a problem, and you don't actually have a clue (as in this instance), then shut the hell up.

NeatNit wrote:Learn to be human.

Grow up.

xander
BCable
level0
Posts: 8
Joined: Thu Oct 15, 2009 4:09 am

Postby BCable » Mon Oct 19, 2009 3:02 pm

I went on IRC and people referred me to John. John had a couple ideas that didn't work (he's pretty busy with Darwinia+), but he suggested trying it in Wine.

It works flawlessly in Wine, so I guess I don't really need the native version working anymore. Thanks for the help, though!

Return to “Linux Issues”

Who is online

Users browsing this forum: No registered users and 3 guests