Knuckle Cracker

Creeper World 3 => Steam Version => Topic started by: exostum on March 20, 2014, 08:47:55 PM

Title: Crash on start for both linux steam and linux standalone 32 bits version
Post by: exostum on March 20, 2014, 08:47:55 PM
Symptom : Creeper world 3 linux steam version crash on mission view

Solution :

Locate CW3Launch (Default location : /home/$username$/.local/share/Steam/SteamApps/common/Creeper World 3/)

Open with your favorite linux file editor

You will have something like this :

Quote
#!/usr/bin/env bash

GAMENAME="CW3"
ARCH="x86"

export LD_LIBRARY_PATH="./libs/"$ARCH"/:$LD_LIBRARY_PATH"

exec "./"$GAMENAME"."$ARCH "$@"


Replace the line ARCH="X86" with ARCH="x86_64"

only if you are using a X64 linux distribution.

Enjoy your linux creeper world 3

Title: Re: Steam Linux version : Crash on start workaround.
Post by: Karsten75 on March 20, 2014, 08:52:00 PM
Nice! Thank you.
Title: Re: Steam Linux version : Crash on start workaround.
Post by: knucracker on March 21, 2014, 03:28:35 PM
So the 32 bit version crashes for you, but the 64 bit works?
At what point do you get a crash in the 32 bit version?  Is it as soon as you attempt to start the game, or at some point later?
Title: Re: Steam Linux version : Crash on start workaround.
Post by: exostum on March 23, 2014, 01:50:09 PM
it crashes on planet system view.
Title: Re: Steam Linux version : Crash on start workaround.
Post by: knucracker on March 23, 2014, 02:13:58 PM
Just to clarify, the main menu comes up fine.  But when you enter "Arc Eternal", that is when you get a crash in the 32 bit version?
Title: Re: Steam Linux version : Crash on start workaround.
Post by: exostum on March 23, 2014, 09:42:33 PM
Yes this is exactly that.

please find following the Player.log from ~/.config/unity3d/Knuckle Cracker LLC/Creeper World 3/ (I finally found it)


PS : i tried to upload it but the extension .log is not allowed so i renamed it to player.txt
Title: Re: Crash on start for both linux steam and linux standalone 32 bits version
Post by: exostum on March 24, 2014, 10:05:51 PM
ERRATTA : The crash concern both the linux steam 32 bits version and the linux standalone 32 bits version. The 64 bits version works.

I am curruntly testing some things.
Title: Re: Crash on start for both linux steam and linux standalone 32 bits version
Post by: exostum on March 24, 2014, 10:11:27 PM
trying to start the 32 standalone version get this result :

Quote
[exostum_sp@localhost CreeperWorld3]$ ./CW3.x86
./CW3.x86: error while loading shared libraries: libGLU.so.1: cannot open shared object file: No such file or directory

The 64 standalone version and the 64 steam version works fine.
Title: Re: Crash on start for both linux steam and linux standalone 32 bits version
Post by: exostum on March 24, 2014, 10:21:18 PM
After installing libmesaglu i got the crash at the same location than the steam version

Here comes the player.log of the 32 bits linux standalone version
Title: Re: Crash on start for both linux steam and linux standalone 32 bits version
Post by: nakira on March 31, 2014, 03:32:05 PM
Thanks! closing my support post i jsut created ;-)
Title: Re: Crash on start for both linux steam and linux standalone 32 bits version
Post by: roquentin on April 12, 2014, 04:59:15 AM
Having the same (or very similar) issue here.
Using 64bit Version wont work at all.

System: Ubuntu 12.04 LTS 32bit, ATI Mobility Radeon HD 4330 with fglrx driver 13.1
Stacktraces: see Attachment (player.log renamed to player.txt)
Title: Re: Crash on start for both linux steam and linux standalone 32 bits version
Post by: knucracker on April 12, 2014, 10:21:06 AM
Try disabling the steam overlay and see if that helps.
Right click the game in steam, and select properties.  There is a checkbox on the General tab to disable the overlay.  The crash seems to be coming from the overlay, so this is worth a shot.

If that doesn't work, then you could try the 32 bit version by editing the CW3Launch file.
Title: Re: Crash on start for both linux steam and linux standalone 32 bits version
Post by: roquentin on April 12, 2014, 01:04:34 PM
disabling steam overlay wont help. I've disabled it and tried to start 32bit (my system) and 64bit (as suggested). 64bit wont even bring up the game. I again attached the 32bit player.log - looks like the issue is the same. It seems like its trying to load some 64 bit library, even though I try running the gamer in 32 bit mode. This is the message which suggests that some 64bit component should be used:

Fallback handler could not load library /home/patrick/.local/share/Steam/SteamApps/common/Creeper World 3/CW3_Data/Mono/x86_64/./lib/System/Library/Frameworks/Security.framework/Security.so
Title: Re: Crash on start for both linux steam and linux standalone 32 bits version
Post by: knucracker on April 12, 2014, 02:02:17 PM
Run "uname -a" and lets see your results.  I'm confused on whether you are running a 64 or 32bit version of ubuntu.  Ubuntu 12.04 32bit is the exact same system I test one (but I don't have an ATI graphics card).  If you are on 32bit, then nothing 64bit should work.  The confusing part is this "/home/patrick/.local/share/Steam/SteamApps/common/Creeper World 3/CW3_Data/Mono/x86_64/".
Title: Re: Crash on start for both linux steam and linux standalone 32 bits version
Post by: roquentin on April 12, 2014, 02:15:28 PM
uname -a:
Linux foobar 3.2.0-60-generic-pae #91-Ubuntu SMP Wed Feb 19 04:14:56 UTC 2014 i686 i686 i386 GNU/Linux
Title: Re: Crash on start for both linux steam and linux standalone 32 bits version
Post by: knucracker on April 12, 2014, 02:58:51 PM
I'm running a different kernel than you, but I doubt that has anything to do with it.
"Linux ubuntu 3.8.0-29-generic #42~precise1-Ubuntu SMP Wed Aug 14 15:31:16 UTC 2013 i686 i686 i386 GNU/Linux"

Other things to check:
1: Make sure you are running with adequate permissions to modify things in ~/.config and ~/Documents
2: Look for these dirs ~/.config/CreeperWorld3 and ~/Documents/creeperworld3.  If they don't exit create them.  The game tries to create them when it starts.  Note the case of each directory (it matters).
3: Try downloading and running the linux demo version (non steam).  See if that works or crashes.
4: ~/.local/share/Steam/SteamApps/common/Creeper World 3/CW3Launch  is the script steam runs to try to start the game.  Make sure steam is running, then go to that dir and and run ./CW3.x86, or edit the script file to play with the library path and architectire.
5: Review your graphic drivers to make sure they are current or that the version you are running doesn't have issues with steam games, or games written in Unity.
Title: Re: Crash on start for both linux steam and linux standalone 32 bits version
Post by: roquentin on April 24, 2014, 12:39:37 PM
didnt help.

Quote1: Make sure you are running with adequate permissions to modify things in ~/.config and ~/Documents
I did, both have the right permissions

Quote2: Look for these dirs ~/.config/CreeperWorld3 and ~/Documents/creeperworld3.  If they don't exit create them.  The game tries to create them when it starts.  Note the case of each directory (it matters).
I found  the following : ~/.config/creeperworld3 and ~/Documents/creeperworld3, doing this mv ~/.config/creeperworld3 ~/.config/CreeperWorld3 and tring to start the game didnt help.

Quote3: Try downloading and running the linux demo version (non steam).  See if that works or crashes.
I did, result is the same as 4.

Quote4: ~/.local/share/Steam/SteamApps/common/Creeper World 3/CW3Launch  is the script steam runs to try to start the game.  Make sure steam is running, then go to that dir and and run ./CW3.x86, or edit the script file to play with the library path and architectire.
I did, running ./CW3.x86 directly outputs the following, opens a small window for about one seconds, then exits:
Found path: /home/x/.local/share/Steam/SteamApps/common/Creeper World 3/CW3.x86
Mono path[0] = '/home/x/.local/share/Steam/SteamApps/common/Creeper World 3/CW3_Data/Managed'
Mono path[1] = '/home/x/.local/share/Steam/SteamApps/common/Creeper World 3/CW3_Data/Mono'
Mono config path = '/home/x/.local/share/Steam/SteamApps/common/Creeper World 3/CW3_Data/Mono/etc'


Quote5: Review your graphic drivers to make sure they are current or that the version you are running doesn't have issues with steam games, or games written in Unity.
Using fglrx graphic drivers. They're not the latest, but stable, other steam games work. Though steam will from time to time insist to get the latest drivers (which will cause not a single game to work)
Title: Re: Crash on start for both linux steam and linux standalone 32 bits version
Post by: Couchmonster on June 24, 2014, 10:20:14 AM
With all libaries present for x86 and x86_64 I got the same output (only difference the x84_64 ofc):

Found path: /home/x/.local/share/Steam/SteamApps/common/Creeper World 3/CW3.x86
Mono path[0] = '/home/x/.local/share/Steam/SteamApps/common/Creeper World 3/CW3_Data/Managed'
Mono path[1] = '/home/x/.local/share/Steam/SteamApps/common/Creeper World 3/CW3_Data/Mono'
Mono config path = '/home/x/.local/share/Steam/SteamApps/common/Creeper World 3/CW3_Data/Mono/etc'


A small window appears and immediately closes on both versions.
I tried:
./CW3.x84
./CW3.x84_64
./CW3Launch
and modified CW3Launch
Title: Re: Crash on start for both linux steam and linux standalone 32 bits version
Post by: knucracker on June 24, 2014, 10:32:42 AM
Turn off the steam overlay in the steam settings for the game and see if that helps.  If not, look for any other permissions issues or errors in the output log ( http://knucklecracker.com/forums/index.php?topic=16476.0 )
Title: Re: Crash on start for both linux steam and linux standalone 32 bits version
Post by: Couchmonster on June 24, 2014, 10:52:58 AM
The overlay is turned off.

Edit:

I started ./CW3Launch and got this output in player.log:

Thread 1 (Thread 0x7f4259cc9740 (LWP 1856)):
#0  0x00007f425858703d in read () from /lib64/libpthread.so.0
#1  0x00007f42598da7ca in read () from /home/hem39212/.steam/bin64/gameoverlayrenderer.so
#2  0x00007f425538f0fb in ?? () from /home/hem39212/.steam/steam/SteamApps/common/Creeper World 3/CW3_Data/Mono/x86_64/libmono.so
#3  0x00007f42553cc92d in ?? () from /home/hem39212/.steam/steam/SteamApps/common/Creeper World 3/CW3_Data/Mono/x86_64/libmono.so
#4  <signal handler called>
#5  0x00007f42444dd58d in ISteamUser_GetSteamID () from /home/hem39212/.steam/steam/SteamApps/common/Creeper World 3/CW3_Data/Plugins/x86_64/libCSteamworks.so
#6  0x0000000041a715af in ?? ()
#7  0x0000000001c5eeb0 in ?? ()
#8  0x0000000001c5ed98 in ?? ()
#9  0x00007fff74faa3d8 in ?? ()
#10 0x00000000400e2780 in ?? ()
#11 0x00000000028e9890 in ?? ()
#12 0x00007fff74faa140 in ?? ()
#13 0x00007fff74faa050 in ?? ()
#14 0x00007f42301c0110 in ?? ()
#15 0x00007fff74faa3d8 in ?? ()
#16 0x00000000400e2780 in ?? ()
#17 0x00007f4255200d48 in ?? ()
#18 0x0000000041a7151c in ?? ()
#19 0x0000000041a70db3 in ?? ()
#20 0x0000000041a71510 in ?? ()
#21 0x00007fff74faa140 in ?? ()
#22 0x0000000041a70c94 in ?? ()
#23 0x00007f425523bf50 in ?? ()
#24 0x0000000000000000 in ?? ()

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Title: Re: Crash on start for both linux steam and linux standalone 32 bits version
Post by: knucracker on June 24, 2014, 03:41:07 PM
Do you have the steam client running at the same time you try to start the game?  That exception is coming from the ISteamUser_GetSteamID call, which will fail if the steam client isn't running or can't be communicated with.  It should just fail and not crash, but....

You can also try to non steam version if you have that.  Email me at support@knucklecracker if you don't have the non-steam version.