Wadjet Eye Games

Author Topic: Blackwell crashes on Linux  (Read 5464 times)

Offline kazuki

  • Newbie
  • *
  • Posts: 3
    • View Profile
Blackwell crashes on Linux
« on: September 28, 2014, 10:39:11 AM »
Hello there.

I tried to play Blackwell Legacy on Linux. It starts and I can hear the music in the main menu. But as soon as I start a new game, it crashes.

I'm using Arch Linux (64-Bit).

GDB says this:
Quote
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff695cbf0 in __lll_unlock_elision () from /usr/lib/libpthread.so.0

And this is the command line output I got:
Quote
AGS: Adventure Game Studio v3.3 Interpreter
Copyright (c) 1999-2011 Chris Jones and 2011-20xx others
ACI version 3.3.0.1132

AGS: ***** ENGINE STARTUP
AGS: Reading config file
AGS: Initializing allegro
AGS: Setting up window
AGS: Initializing game data
AGS: Initializing TTF renderer
AGS: Initializing mouse
AGS: Checking memory
AGS: Initializing speech vox
Speech sample file found and initialized.
AGS: Initializing audio vox
Audio vox found and initialized.
AGS: Initializing keyboard
AGS: Install timer
Checking sound inits.
AGS: Initialize sound drivers
AGS: Install exit handler
AGS: Initialize path finder library
AGS: Initialize gfx
AGS: Load game data
AGS: Blackwell Legacy v1.7
AGS: Checking for disk space
AGS: Initializing MOD/XM player
AGS: Initializing screen settings
AGS: Init gfx filters
AGS: Init gfx driver
AGS: Switching to graphics mode
AGS: Widescreen side borders: disabled in Setup
AGS: Attempt to switch gfx mode to 320 x 240 (32-bit)
AGS: Succeeded. Using gfx mode 320 x 240 (32-bit)
AGS: Preparing graphics mode screen
AGS: Screen resolution: 320 x 240; game resolution 320 x 200
AGS: Initializing colour conversion
AGS: Check for preload image
AGS: Initialize sprites
AGS: Set up screen
AGS: Initialize game settings
AGS: Prepare to start game
AGS: Checking replay status
AGS: Engine initialization complete
AGS: Starting game
AGS: Loading room 35
AGS: Room change requested to room 22
AGS: Unloading room 35
AGS: Loading room 22
AGS: Room change requested to room 3
AGS: Unloading room 22
AGS: Loading room 3
Segmentation fault (core dumped)

Offline gyscos

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Blackwell crashes on Linux
« Reply #1 on: December 19, 2014, 11:30:43 PM »
Hello,
I am also running an up-to-date Archlinux 64 bit, with glibc 2.20.
When creating a new game, Blackwell Legacy crashes 2-3 seconds after the intro video starts.
Same output as kazuki ; running gdb gives the same information he reported. This happend with both the x86 and the x86_64 binaries.

EDIT: the exact same crash (and same gdb info) occurs with Blackwell Convergence, Blackwell Unbound, and Gemini Rue.
« Last Edit: February 03, 2015, 11:33:47 PM by gyscos »

Offline Tigrou

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: Blackwell crashes on Linux
« Reply #2 on: January 18, 2015, 10:25:23 AM »
As a data point, it works fine under Ubuntu 14.10 (64-bit).

Offline gyscos

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Blackwell crashes on Linux
« Reply #3 on: February 04, 2015, 12:06:19 AM »
While we're at it, I might as well post the backtrack from the segfault :
Quote
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6860c00 in __lll_unlock_elision () from /usr/lib/libpthread.so.0
(gdb) bt
#0  0x00007ffff6860c00 in __lll_unlock_elision () from /usr/lib/libpthread.so.0
#1  0x000000000053b16c in SOUNDCLIP::~SOUNDCLIP() ()
#2  0x0000000000536d71 in stop_and_destroy_channel_ex(int, bool) ()
#3  0x000000000053878b in audio_update_polled_stuff() ()
#4  0x00000000005387dc in update_polled_stuff_and_crossfade() ()
#5  0x0000000000532721 in mainloop(bool, AGS::Engine::IDriverDependantBitmap*, int, int) ()
#6  0x00000000005327ae in main_game_loop() ()
#7  0x000000000053284d in do_main_cycle(int, long) ()
#8  0x00000000004ed0c5 in Sc_scrWait(RuntimeScriptValue const*, int) ()
#9  0x0000000000543c0c in ccInstance::Run(int) ()
#10 0x0000000000543110 in ccInstance::Run(int) ()
#11 0x0000000000543fd4 in ccInstance::CallScriptFunction(char*, int, RuntimeScriptValue*) ()
#12 0x000000000054459a in ccInstance::RunScriptFunctionIfExists(char*, int, RuntimeScriptValue*) ()
#13 0x0000000000544849 in ccInstance::RunTextScript(char*) ()
#14 0x0000000000548468 in run_interaction_script(InteractionScripts*, int, int, int) ()
#15 0x00000000004de0c5 in process_event(EventHappened*) ()
#16 0x00000000004de8ea in processallevents(int, EventHappened*) ()
#17 0x00000000004de924 in update_events() ()
#18 0x0000000000531203 in game_loop_update_events() ()
#19 0x000000000053273d in mainloop(bool, AGS::Engine::IDriverDependantBitmap*, int, int) ()
#20 0x00000000005327ae in main_game_loop() ()
#21 0x00000000005328d8 in do_play_game() ()
#22 0x0000000000532bc5 in initialize_start_and_play_game(int, char const*) ()
#23 0x000000000052f432 in initialize_engine(int, char**) ()
#24 0x0000000000534954 in _mangled_main(int, char**) ()
#25 0x00007ffff61c7040 in __libc_start_main () from /usr/lib/libc.so.6
#26 0x0000000000473cd9 in _start ()

Offline kazuki

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Blackwell crashes on Linux
« Reply #4 on: February 06, 2015, 03:56:18 PM »
Looks like this was a bug in the ags engine. Building it from the current master branch on https://github.com/adventuregamestudio/ags (bf690ecf29) and using that build to start the games, they no longer crash for me.

Looking a bit through the code and git, there seems to have been a patch that prevents deadlocks which would coincide with gyscos' backtrack.

Offline gyscos

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Blackwell crashes on Linux
« Reply #5 on: February 07, 2015, 02:48:49 PM »
Indeed, this solves the problem. All 3 Blackwell games on Linux now work fine.
ags won't start in the Gemini Rue folder though, I guess that's another matter.
Thanks anyway!

Offline kazuki

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Blackwell crashes on Linux
« Reply #6 on: February 07, 2015, 04:08:25 PM »
I assume Gemini Rue was done with an older version of ags, but you just have to rename agsgame.dat into ac2game.dat

Offline coversall

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Blackwell crashes on Linux
« Reply #7 on: November 01, 2015, 03:52:14 PM »
Hey guys,

I am also having this problem with all the Wadjet Eye games I have bought. From both steam and GOG.

Are you running linux ports of .exe's?