Author Topic: [Solved][Linux] Crash on Launch -- FGLRX=BAD, Mesa and Kernel upgrade required  (Read 5796 times)

Offline Radiant Phoenix

  • Sr. Member Mark II
  • ****
  • Posts: 362
I just switched to another computer, and now AI War won't start at all

Code: [Select]
~/.AI-War$ ./AIWarLinux.x86_64
Set current directory to ~/.AI-War
Found path: ~/.AI-War/AIWarLinux.x86_64
Mono path[0] = '~/.AI-War/AIWarLinux_Data/Managed'
Mono path[1] = '~/.AI-War/AIWarLinux_Data/Mono'
Mono config path = '~/.AI-War/AIWarLinux_Data/Mono/etc'
Aborted (core dumped)

Mantis report

I'm not sure how to get more debugging information.

What I did:
  • Download zip files from arcengames.com
  • Extract files to ~/.AI-War/
  • Try to run the executable
What I expected:
  • AI-War
What I got:
  • CLI output, no other indication that anything happened
EDIT: This seems resolved:
  • Completely remove FGLRX
  • Upgrade Mesa with a PPA
  • Upgrade Kernel to "linux-generic-lts-trusty"
« Last Edit: June 01, 2015, 11:32:52 am by Radiant Phoenix »

Offline Tolc

  • Full Member Mark II
  • ***
  • Posts: 161
Re: [Linux] Crash on Launch
« Reply #1 on: May 18, 2015, 07:41:54 pm »
Did you get any screen flicker or loading screen at all or just the CLI output? I don't know where the game's logs are (not on my Linux system atm), but maybe they hold a clue. But what just occured to me: Do you not have a "start" shell script next to the binaries? I have the GOG version so there may be a difference, but I always start it via the shell script "./start.sh" (IIRC)

What I expected:
  • AI-War
Sorry, but I had to laugh about the way you wrote that :)

Offline Radiant Phoenix

  • Sr. Member Mark II
  • ****
  • Posts: 362
Re: [Linux] Crash on Launch
« Reply #2 on: May 18, 2015, 07:48:50 pm »
Not even a flicker

Code: [Select]
~/.AI-War$ ls
AIWar.app
AIWar_Data
AIWar.exe
AIWarLicense.txt
AIWarLinux_Data
AIWarLinux.x86
AIWarLinux.x86_64
__MACOSX
RuntimeData
UDA
Code: [Select]
$ md5sum AIWar8000WinMacLin_RequiresKey.zip
44b161069d02e534ebf686e3ea93de13  AIWar8000WinMacLin_RequiresKey.zip

Offline Tolc

  • Full Member Mark II
  • ***
  • Posts: 161
Re: [Linux] Crash on Launch
« Reply #3 on: May 18, 2015, 08:07:04 pm »
Well, then I'm out of ideas for the moment. I'll have a look at my AI war folder tomorrow in order to locate the log files, if no ones faster than me (2am here, so I'm heading to bed)

Offline Radiant Phoenix

  • Sr. Member Mark II
  • ****
  • Posts: 362
Re: [Linux] Crash on Launch
« Reply #4 on: May 18, 2015, 08:14:59 pm »
Code: [Select]
~/.AI-War$ ls RuntimeData/
AIWarCredits.doc
AIWarImportSettings.exe
altplanetnames.txt
Data
disabledaitypes.txt
Expansions
Images
Language
Logic
Music
sysrequirements.txt
ThirdPartyCopyrightNotices.txt
I think it isn't even getting far enough to generate logs.

Offline Radiant Phoenix

  • Sr. Member Mark II
  • ****
  • Posts: 362
Re: [Linux] Crash on Launch
« Reply #5 on: May 19, 2015, 02:07:32 pm »
Code: [Select]
$ md5sum AIWar8000WinMacLin_RequiresKey.zip
44b161069d02e534ebf686e3ea93de13  AIWar8000WinMacLin_RequiresKey.zip
And now, from my other computer, where it works:
Code: [Select]
$ md5sum AIWar8000WinMacLin_RequiresKey.zip
44b161069d02e534ebf686e3ea93de13  AIWar8000WinMacLin_RequiresKey.zip

Offline Tolc

  • Full Member Mark II
  • ***
  • Posts: 161
Re: [Linux] Crash on Launch
« Reply #6 on: May 19, 2015, 07:35:39 pm »
I have found a log that looks like a startup log under "/home/<username>/.config/unity3d/Arcen Games, LLC/AI War/" called Player.log. Maybe there are some glaring error messages or warnings in there?

Offline Radiant Phoenix

  • Sr. Member Mark II
  • ****
  • Posts: 362
Re: [Linux] Crash on Launch
« Reply #7 on: May 20, 2015, 12:52:36 pm »
Code: [Select]
Stacktrace:


Native stacktrace:

~/.AI-War/AIWarLinux_Data/Mono/x86_64/libmono.so(+0x92db2) [0x7f2205d7bdb2]
~/.AI-War/AIWarLinux_Data/Mono/x86_64/libmono.so(+0xd0735) [0x7f2205db9735]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xfcb0) [0x7f2207c22cb0]
~/.AI-War/AIWarLinux.x86_64() [0xba7f02]
~/.AI-War/AIWarLinux.x86_64() [0xb8a55d]
~/.AI-War/AIWarLinux.x86_64() [0xb8da5b]
~/.AI-War/AIWarLinux.x86_64() [0xbab1eb]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7f220715c76d]
~/.AI-War/AIWarLinux.x86_64() [0x44b9b9]

Debug info from gdb:

Could not attach to process.  If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
No threads.

=================================================================
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.
=================================================================
So... what libraries should I check, besides libmono?

Offline Tolc

  • Full Member Mark II
  • ***
  • Posts: 161
Re: [Linux] Crash on Launch
« Reply #8 on: May 20, 2015, 08:32:19 pm »
Well, I don't know what other libraries AI War uses, so... I dunno, check synaptic for something missing from your mono installation? I'm just guessing here, though.

Offline Radiant Phoenix

  • Sr. Member Mark II
  • ****
  • Posts: 362
Re: [Linux] Crash on Launch
« Reply #9 on: May 20, 2015, 10:46:54 pm »
Attempted to install mono-complete:
Code: [Select]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/g/gtk-sharp2/libglade2.0-cil_2.12.10-2ubuntu4_amd64.deb
  Something wicked happened resolving 'us.archive.ubuntu.com:http' (-5 - No address associated with hostname)

 :o

EDIT: Realization: AI War provides its own libmono. I got nothing.
« Last Edit: May 20, 2015, 11:44:04 pm by Radiant Phoenix »

Offline Tolc

  • Full Member Mark II
  • ***
  • Posts: 161
Re: [Linux] Crash on Launch
« Reply #10 on: May 21, 2015, 01:32:22 pm »
Huh? That doesn't look good. Do you get that when updating or reloading the repositories as well?

Another thing would be to compare the installed packages between your laptop and your computer, if they both run xubuntu 12.04. There should be a command combination to print you a handy list (can't help you there, it's been a while since I made large-scale package management on a *buntu system). If there are no differences we can probably outrule missing packages.

Offline Radiant Phoenix

  • Sr. Member Mark II
  • ****
  • Posts: 362
Re: [Linux] Crash on Launch
« Reply #11 on: May 25, 2015, 03:43:47 pm »
Update: the problem might be FGLRX

Offline Radiant Phoenix

  • Sr. Member Mark II
  • ****
  • Posts: 362
Re: [Linux] Crash on Launch
« Reply #12 on: May 25, 2015, 04:00:20 pm »
Complete removal of FGLRX and AMDCCCLE, followed by a restart, solved the problem.

Offline Aklyon

  • Core Member
  • *****
  • Posts: 2,089
What do those do?

Offline Radiant Phoenix

  • Sr. Member Mark II
  • ****
  • Posts: 362
FGLRX is a driver for some (all?) ATI graphics cards (on Linux?). I am using my computer's Intel graphics chip instead right now, but even having the FGLRX driver installed was causing the problem.

AMDCCCLE is the Catalyst Control Center, which is the program for managing said graphics card's settings.

I thought I wasn't using them because I had turned off the ATI graphics card, but apparently that was not the case, as evidenced by my problems going away when they were purged.