Startup crash (mod: EnemyWithinPart2) [Solved]

Problems with the Linux version of Darwinia

Moderators: jelco, bert_the_turtle, Chris, andy, John

Nightruler
level1
level1
Posts: 12
Joined: Fri Jun 03, 2005 8:49 am

Startup crash (mod: EnemyWithinPart2) [Solved]

Postby Nightruler » Mon Jun 06, 2005 3:59 am

EDIT: Man what a pain in the butt. 1 little shap file, with the wrong Triangles. Can the Linux dev's maybe toss into the next patch a bit of a better error for when something like this happens? None of the error messages helped at all other then 'something blew up'. None of the files being loaded showed up in the strace I ran, or even in the blackbox.txt. This could make debuging MODs very difficult, not to mention this problem doesn't even show up in Windows. :( o-well, done with my rant.. back to kicking virus ass. :)

I've been working with the developer of this mod in the mod fourms but we are not really sure what the problem is, and this isn't happening in Windows... so maybe another Linux guy could give this alook? Once you click to load the mod, the game crashes, and then anytime you try to reload the mod, the game will crash right back to the prompt after a black screen.

Code: Select all

./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 none

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

XINERAMA offset guess: 0, 0
Loading profile Part2

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

Saving profile Part2

Saved global data for profile Part2

Loading profile none

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

Loading profile none

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

Vertex3fv: 1
TexCoord2f: 1
./darwinia: line 39: 16513 Segmentation fault      $here/lib/darwinia.bin.x86


And here is the blackbox.txt:

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 = 800
ScreenHeight = 600
ScreenWindowed = 0
ScreenZDepth = 24
ScreenColourDepth = 16
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
BootLoader = random
UserProfile = none
ModSystemEnabled = 1
Mod = EnemyWithin2

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

retAddress = 0xb7c9d810
retAddress = 0xb7c9b1b1
retAddress = 0x809da45
retAddress = 0x809cbf7
retAddress = 0x809f83c
retAddress = 0x809f618
retAddress = 0x80997f5
retAddress = 0x809972e
retAddress = 0x8144255
retAddress = 0x8145017
retAddress = 0x8085d25
retAddress = 0x8085848
retAddress = 0x8087740
retAddress = 0x806297c
retAddress = 0x804dddb
retAddress = 0x8078fe5
retAddress = 0x815d3c4
retAddress = 0x80ddff5
retAddress = 0x80de08a
retAddress = 0x80b9e24
retAddress = 0x80ba5a9
retAddress = 0x80a646c
retAddress = 0xb7c8715d
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 "i686-pc-linux-gnu".
(gdb) Reading symbols from /home/user/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: /home/user/darwinia/lib/darwinia.bin.x86, process 16513
(no debugging symbols found)
`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
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/lib/opengl/xorg-x11/lib/libGL.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/opengl/xorg-x11/lib/libGL.so.1
Reading symbols from /usr/lib/libGLU.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/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/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/libstdc++.so.5...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/libstdc++.so.5
Reading symbols from /lib/tls/libm.so.6...
(no debugging symbols found)...done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/libgcc_s.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/libgcc_s.so.1
Reading symbols from /lib/tls/libc.so.6...(no debugging symbols found)...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 -1213327680 (LWP 16513)]
[New Thread -1318589520 (LWP 16514)]
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/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/libvga.so.1...done.
Loaded symbols for /usr/lib/libvga.so.1
Reading symbols from /usr/lib/libXxf86vm.so.1...done.
Loaded symbols for /usr/lib/libXxf86vm.so.1
Reading symbols from /usr/lib/libvorbis.so.0...done.
Loaded symbols for /usr/lib/libvorbis.so.0
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/libogg.so.0...done.
Loaded symbols for /usr/lib/libogg.so.0
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
Reading symbols from /usr/lib/modules/dri/radeon_dri.so...done.
Loaded symbols for /usr/lib/modules/dri/radeon_dri.so
Reading symbols from /usr/lib/libexpat.so.0...done.
Loaded symbols for /usr/lib/libexpat.so.0
0xffffe410 in __kernel_vsyscall ()
(gdb)   2 Thread -1318589520 (LWP 16514)  0xffffe410 in __kernel_vsyscall ()
  1 Thread -1213327680 (LWP 16513)  0xffffe410 in __kernel_vsyscall ()
(gdb)
Thread 2 (Thread -1318589520 (LWP 16514)):
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7d1717b in write () from /lib/tls/libc.so.6
#2  0xb7f68a4c in SDL_MixAudio_MMX_S8 () from /usr/lib/libSDL-1.2.so.0
#3  0x0986d328 in ?? ()
#4  0x00000800 in ?? ()
#5  0xb7fa223c in SDL_mutexV () from /usr/lib/libSDL-1.2.so.0
#6  0x098329f0 in ?? ()
#7  0xb7faa684 in ?? () from /usr/lib/libSDL-1.2.so.0
#8  0x098352d0 in ?? ()
#9  0xb7f6440d in SDL_RunAudio () from /usr/lib/libSDL-1.2.so.0
#10 0x00000000 in ?? ()
#11 0x080cb93c in ?? ()
#12 0x00000000 in ?? ()
#13 0xb7faa684 in ?? () from /usr/lib/libSDL-1.2.so.0
#14 0x09832a10 in ?? ()
#15 0x098352d0 in ?? ()
#16 0xb7f64318 in SDL_UnloadObject () from /usr/lib/libSDL-1.2.so.0
#17 0xb7fa1ba9 in SDL_RunThread () from /usr/lib/libSDL-1.2.so.0
#18 0x098352d0 in ?? ()
#19 0xb7ff6250 in _dl_rtld_di_serinfo () from /lib/ld-linux.so.2
#20 0xb7fa20cf in SDL_SYS_KillThread () from /usr/lib/libSDL-1.2.so.0
#21 0x09832a10 in ?? ()
#22 0xb7c99b00 in setjmp () from /lib/tls/libc.so.6
#23 0xb7c6eff4 in ?? () from /lib/tls/libpthread.so.0
#24 0xb7c65a41 in start_thread () from /lib/tls/libpthread.so.0
#0  0xffffe410 in __kernel_vsyscall ()
(gdb) Detaching from program: /home/user/darwinia/lib/darwinia.bin.x86, process 16513
Last edited by Nightruler on Mon Jun 06, 2005 6:47 am, edited 1 time in total.
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:58 am

Could you post a link to the mod please? (Or email a link to john@introversion.co.uk if you don't want to post it publicly just yet). I have a hunch that what's going on here is that Darwinia is expecting the names of the shape files to be lower case and that they're coming out upper- or mixed-case when installing the mod in the filesystem.
User avatar
trickfred
level5
level5
Posts: 1691
Joined: Sat Jul 24, 2004 5:01 am
Location: The Great White North, Eh?
Contact:

Postby trickfred » Mon Jun 06, 2005 5:04 am

http://www.freewebtown.com/darwiniaew/

Chapter 2 is the one he's having issues with. I'm baffled. He got an error message about Triffids in sandbox, but I don't have a sandbox level; only one level had triffids in the map file, and sending him a new map file for that level (decompiler) didn't fix his crash problem.

In its current state it plays from start to finish here on my Win box. I'm going to play it through again now to make sure I didn't miss something.

Edit: I had him try this stripped down version of the mod with only the first few levels, and it still crashes:

http://www.freewebtown.com/darwiniaew/trythis/EWPart2Mini.rar

He says he's getting this, and there's no sounds in this minimod:

Code: Select all

./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 temp

XINERAMA offset guess: 0, 0
Loading profile none

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

Vertex3fv: 1
TexCoord2f: 1
./darwinia: line 39: 17732 Segmentation fault      $here/lib/darwinia.bin.x86


Edit2: All my shape files were named with lowercase letters when I .rar'ed them, if that helps any.
Last edited by trickfred on Mon Jun 06, 2005 5:15 am, edited 1 time in total.
Nightruler
level1
level1
Posts: 12
Joined: Fri Jun 03, 2005 8:49 am

Postby Nightruler » Mon Jun 06, 2005 5:14 am

Just a side note on upper/lowercase. In the docs I found it says to put mods in your Mods directory, under linux this is in .darwinia/mods not .darwinia/Mods and wasn't created for me. :P

As for this mod... I found something really... strange.

First, when I click on the mod and I'm crashed out, after I try to load again my profile is set to 'none'.

So seeing this, I started a new game, created a new profile and exited.

Then I went in and changed preferences.txt to change the mod = line to the mod I wanted.

When I went back in, it did load, but it was kinda funny. The picture of the Dr. was a big pink Darwinia guy, name of the level was Garden, and the pink dude is giving me the same intro as the Dr in the first level of the game about 'who the hell are you, etc...' Funny shit. :P lol
User avatar
trickfred
level5
level5
Posts: 1691
Joined: Sat Jul 24, 2004 5:01 am
Location: The Great White North, Eh?
Contact:

Postby trickfred » Mon Jun 06, 2005 5:16 am

The *purple* dude is from the mod - so your game is retaining part of the stuff loaded from the mod when you play the garden level.
Nightruler
level1
level1
Posts: 12
Joined: Fri Jun 03, 2005 8:49 am

Postby Nightruler » Mon Jun 06, 2005 5:19 am

trickfred wrote:The *purple* dude is from the mod - so your game is retaining part of the stuff loaded from the mod when you play the garden level.


Oh.. ok.. fine... *purple* dude..... looked pink to me... lol :lol:

EDIT: I looked around the mod, doing some greps for any bmp and shp files, everything is in lowercase and all the files are lowercase also.
User avatar
trickfred
level5
level5
Posts: 1691
Joined: Sat Jul 24, 2004 5:01 am
Location: The Great White North, Eh?
Contact:

Postby trickfred » Mon Jun 06, 2005 6:37 am

False alarm.

It was a .shp file with 'Triangles: 4' when there were only really 2 triangles listed. That caused the game toi not even load, btu we narrowed it down. I didn't even think to look at those since it ran fine on Windows, and I assume Macs since this was the first I had heard of it causing problems.

:oops:

Sorry 'bout the mess.

Return to “Linux Issues”

Who is online

Users browsing this forum: No registered users and 20 guests