Author Topic: [Solved] Linux: Game crashes on main menu  (Read 1021 times)

femtomatic

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
[Solved] Linux: Game crashes on main menu
« on: June 19, 2015, 10:30:40 PM »
Hi,

I just bought the game on GOG a few days ago and I'm unable to make it run on my system. I have tried many solutions found in this forum and on the Steam forum but didn't have any luck so far. When I launch the game, the main menu comes up and after a few seconds (and a few notes from the soundtrack) it crashes. Here is the message:

Code: [Select]
Initializing sound                                                     
Initializing window system
Loading engine settings
Initializing OpenGL Engine
Registering mods
Starting 9 threads on 8 processors.
Loading mod(s)
Loaded in 22.7 seconds

Caught Segfault at 0x7f4ff9e067f0

Stack trace:
 ./bin/lin64/StarRuler2.bin() [0x6b1b9a]
 ./bin/lin64/StarRuler2.bin() [0x6b1cb8]
 /usr/lib/libpthread.so.0(+0x10660) [0x7f504e910660]
 /usr/lib/libc.so.6(+0x12edd0) [0x7f504db9edd0]
 /usr/lib/xorg/modules/dri//fglrx_dri.so(+0xe5b214) [0x7f50413b3214]
 /usr/lib/xorg/modules/dri//fglrx_dri.so(+0xe5b5c5) [0x7f50413b35c5]
 /usr/lib/xorg/modules/dri//fglrx_dri.so(+0xe81866) [0x7f50413d9866]
 /usr/lib/xorg/modules/dri//fglrx_dri.so(+0xc792a6) [0x7f50411d12a6]
 /usr/lib/xorg/modules/dri//fglrx_dri.so(+0xc7889a) [0x7f50411d089a]
 /usr/lib/xorg/modules/dri//fglrx_dri.so(+0x1006520) [0x7f504155e520]
 /usr/lib/xorg/modules/dri//fglrx_dri.so(+0x1006b69) [0x7f504155eb69]
 /usr/lib/xorg/modules/dri//fglrx_dri.so(+0x3cee0c) [0x7f5040926e0c]
 /usr/lib/xorg/modules/dri//fglrx_dri.so(+0x2a7de5) [0x7f50407ffde5]
 /usr/lib/xorg/modules/dri//fglrx_dri.so(+0x60bf67) [0x7f5040b63f67]
 ./bin/lin64/StarRuler2.bin() [0x6c2073]
 ./bin/lin64/StarRuler2.bin() [0x513b20]
 ./bin/lin64/StarRuler2.bin() [0x51521d]
 ./bin/lin64/StarRuler2.bin() [0x414ed5]
 /usr/lib/libc.so.6(__libc_start_main+0xf0) [0x7f504da90790]
 ./bin/lin64/StarRuler2.bin() [0x41bf69]

No active script context to log.
[1]    1386 abort (core dumped)  ./StarRuler2.sh

Here are my system specs:
Code: [Select]
Processor Information:
    Vendor:  AuthenticAMD
    CPU Family:  0x15
    CPU Model:  0x2
    CPU Stepping:  0x0
    CPU Type:  0x0
    Speed:  4000 Mhz
    8 logical processors
    8 physical processors
    HyperThreading:  Unsupported
    FCMOV:  Supported
    SSE2:  Supported
    SSE3:  Supported
    SSSE3:  Supported
    SSE4a:  Supported
    SSE41:  Supported
    SSE42:  Supported
Network Information:
    Network Speed: 
Operating System Version:
    "Arch Linux" (64 bit)
    Kernel Name:  Linux
    Kernel Version:  4.0.5-1-ARCH
    X Server Vendor:  The X.Org Foundation
    X Server Release:  11604000
    X Window Manager:  awesome
    Steam Runtime Version:  steam-runtime-release_2015-01-06
Video Card:
    Driver:  ATI Technologies Inc. AMD Radeon HD 7700 Series 
    Driver Version:  4.4.13372 Compatibility Profile Context 9.012
    OpenGL Version: 4.4
    Desktop Color Depth: 24 bits per pixel
    Monitor Refresh Rate: 60 Hz
    VendorID:  0x1002
    DeviceID:  0x683d
    Number of Monitors:  2
    Number of Logical Video Cards:  1
    Primary Display Resolution:  1920 x 1080
    Desktop Resolution: 3200 x 1080
    Primary Display Size: 20,08" x 11,42"  (23,07" diag)
                                            51,0cm x 29,0cm  (58,6cm diag)
    Primary VRAM Not Detected
Sound card:
    Audio device: USB Mixer
Memory:
    RAM:  15951 Mb
Miscellaneous:
    UI Language:  English
    LANG:  en_CA.utf8
    Microphone:  Not set
    Total Hard Disk Space Available:  189336 Mb
    Largest Free Hard Disk Block:  27971 Mb

I know that Arch is not officially supported but i'd really like to make this work on my system without having to change my distro.

Any help would really be appreciated
« Last Edit: June 23, 2015, 01:54:58 PM by femtomatic »

GGLucas

  • Dr. Evil
  • BMS Staff
  • Delusional
  • *
  • Posts: 1877
  • Karma: +300/-6
    • View Profile
Re: Linux: Game crashes on main menu
« Reply #1 on: June 22, 2015, 07:27:07 AM »
Unfortunately this is almost certainly a problem inside your drivers, which is very odd because I develop on an Arch system with catalyst drivers myself. Which catalyst repo/package/version do you have?

Since the game crashes I'm assuming you haven't used the main menu option to update the game to V1.0.2. It's possible some of the changes in that version may alleviate your issue, although driver issues are often weird enough that it's hard to know until you try. I've PMed you a download link to the full v1.0.2 gog build, since you can't update it yourself, check out if it works or not.

femtomatic

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Linux: Game crashes on main menu
« Reply #2 on: June 22, 2015, 09:27:04 PM »
Thanks GGLucas for your quick response and the download link. Unfortunately the result is the same with the new version, but it's good to know that at least one of the BMS devs uses Arch with the catalyst driver, I'm optimistic that we'll find a solution.

The catalyst driver I'm using is catalyst-total from the AUR. It's now at version 15.5 but it only supports Xorg versions < 1.17 so my xorg-server package is 1.16.4 from the [xorg116] repo. Which catalyst repo/package/version are you running?

I also noticed that if I was quick enough I could click on one of the buttons in the main menu and the game seems to process the event without problem but crashes anyway after a few seconds. For example, if I click the "New Game" button it brings up the race selection menu, but then it crashes. It seems to be always crashing at the same time, a few seconds after the soundtrack starts. I also get a different message when I'm able to get to the race selection menu, maybe this can help:

Code: [Select]
22 Jun 2015 21:43:14
Initializing sound
Initializing window system
Loading engine settings
Initializing OpenGL Engine
Registering mods
Starting 9 threads on 8 processors.
Loading mod(s)
OpenGL vendor 'ATI Technologies Inc.', renderer 'AMD Radeon HD 7700 Series  '
       version '4.4.13372 Compatibility Profile Context 9.012'
Loaded in 22.5 seconds
Shadow scripts: 803ms load, 4093ms compile
Server scripts: 953ms load, 6528ms compile

Caught Segfault at 0x7f191d7f4bf0

Stack trace:
 ./bin/lin64/StarRuler2.bin() [0x5cbc5a]
 ./bin/lin64/StarRuler2.bin() [0x5cbd78]
 /usr/lib/libpthread.so.0(+0x10660) [0x7f1979928660]
 /usr/lib/libc.so.6(+0x12edd0) [0x7f1978bb6dd0]
 /usr/lib/xorg/modules/dri//fglrx_dri.so(+0xe5b214) [0x7f196c343214]
 /usr/lib/xorg/modules/dri//fglrx_dri.so(+0xe5b5c5) [0x7f196c3435c5]
 /usr/lib/xorg/modules/dri//fglrx_dri.so(+0xe81866) [0x7f196c369866]
 /usr/lib/xorg/modules/dri//fglrx_dri.so(+0xc792a6) [0x7f196c1612a6]
 /usr/lib/xorg/modules/dri//fglrx_dri.so(+0xc7889a) [0x7f196c16089a]
 /usr/lib/xorg/modules/dri//fglrx_dri.so(+0x1006520) [0x7f196c4ee520]
 /usr/lib/xorg/modules/dri//fglrx_dri.so(+0x1006b69) [0x7f196c4eeb69]
 /usr/lib/xorg/modules/dri//fglrx_dri.so(+0x3cee0c) [0x7f196b8b6e0c]
 /usr/lib/xorg/modules/dri//fglrx_dri.so(+0x2a7de5) [0x7f196b78fde5]
 /usr/lib/xorg/modules/dri//fglrx_dri.so(+0x60bf67) [0x7f196baf3f67]
 ./bin/lin64/StarRuler2.bin() [0x6af403]
 [0x7f1933a8d98e]

Script Exception: (null)
 /home/yannick/Downloads/Star Ruler 2/v1.0.2/scripts/menu/new_game.as
  new_game::void EmpireSetup::draw() | Line 1784 | Col 5
  elements.GuiPanel::void GuiPanel::draw() | Line 414 | Col 4
  elements.BaseGuiElement::void BaseGuiElement::draw() | Line 398 | Col 4
  elements.GuiBackgroundPanel::void GuiBackgroundPanel::draw() | Line 80 | Col 3
  elements.BaseGuiElement::void BaseGuiElement::draw() | Line 398 | Col 4
  gui::void RootElement::draw() | Line 564 | Col 4
  gui::void draw() | Line 169 | Col 2

I also timed the StarRuler2.sh command a couple of times to see if it was always crashing at the same time. It's pretty consistent, I don't know if it's any useful to you guys but here are the results for 6 consecutive runs:
Code: [Select]
54,47s user 130,11s system 567% cpu 32,551 total
51,45s user 127,88s system 565% cpu 31,715 total
51,99s user 128,60s system 566% cpu 31,892 total
50,98s user 127,69s system 573% cpu 31,181 total
55,09s user 142,88s system 576% cpu 34,357 total
52,27s user 128,79s system 566% cpu 31,983 total
« Last Edit: June 22, 2015, 09:29:07 PM by femtomatic »

GGLucas

  • Dr. Evil
  • BMS Staff
  • Delusional
  • *
  • Posts: 1877
  • Karma: +300/-6
    • View Profile
Re: Linux: Game crashes on main menu
« Reply #3 on: June 23, 2015, 03:40:40 AM »
I was using the 15.3 catalyst drivers from Vi0LO's [catalyst] repo, I've since also tried [catalyst-stable] containing 15.5, and manually built catalyst-total 15.5 from the AUR, and they both run the game fine (on [xorg116]).

The backtraces you posted are crashes in a gl draw call (glDrawRangeElements), which almost has to be a bug in the driver or some other form of inconsistent behavior between drivers/cards. (My card is an HD6800)

Are you on [testing]? Maybe it's triggered by a kernel version difference, [base] is currently on 4.0.5. I have no idea what else would cause a problem like this. You could also try messing with the graphics settings in ~/.starruler2/settings.txt, we have seen similar crashes when running out of video memory, so you could try lowering the iTextureQuality option in there, but it sounds like you have plenty of memory on your card, so it's a long shot.

femtomatic

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Linux: Game crashes on main menu
« Reply #4 on: June 23, 2015, 01:54:37 PM »
Thanks GGLucas! lowering iTextureQuality to 2 worked! It might be that my card isn't able to manage higher texture quality, or that the catalyst driver isn't working well with this particular model (which wouldn't be surprising unfortunately). Anyways I've had a quick look at the game and the graphics look great, very fluid, I don't really mind the "Sad" texture quality. I can't wait to play for real now.

Just a last couple of things:
1- I still get an error message when I close the game, I don't know if it's related to my earlier problems or if it can be of any use to you guys but here it is:
Code: [Select]
*** Error in `./bin/lin64/StarRuler2.bin': free(): invalid pointer: 0x0000000002a7c1e0 ***
AL lib: (EE) alc_cleanup: 1 device not closed

2- It's really just a minor annoyance, but I think I might be missing some fonts in my system, I get a thin white frame around each letter (see the screenshot attached). Can you tell me which fonts are used for the game?

GGLucas

  • Dr. Evil
  • BMS Staff
  • Delusional
  • *
  • Posts: 1877
  • Karma: +300/-6
    • View Profile
Re: [Solved] Linux: Game crashes on main menu
« Reply #5 on: June 23, 2015, 02:39:28 PM »
The boxes around the letters are a glitch at certain forced AA levels. Check if you have the drivers settings in amdcccle set to override application setting for anti-aliasing. The game loads all its fonts from its local data files, so your system fonts are unrelated.