It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
Crashes at startup

$ ./start.sh
Running Bastion
dbus[14320]: arguments to dbus_type_is_basic() were incorrect, assertion "dbus_type_is_valid (typecode) || typecode == DBUS_TYPE_INVALID" failed in file ../../../dbus/dbus-signature.c line 323.
This is normally a bug in some application using the D-Bus library.

D-Bus not built with -rdynamic so unable to print a backtrace
Stacktrace:

at <unknown> <0xffffffff>
at (wrapper managed-to-native) SDL2.SDL.SDL_Init (uint) <0x00065>
at Microsoft.Xna.Framework.SDL2_FNAPlatform.ProgramInit () <0x000ab>
at Microsoft.Xna.Framework.FNAPlatform..cctor () <0x0090f>
at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <0x0005a>
at <unknown> <0xffffffff>
at (wrapper managed-to-native) object.__icall_wrapper_mono_generic_class_init (intptr) <0x00053>
at Microsoft.Xna.Framework.Game..ctor () <0x003cb>
at GSGE.App..ctor () <0x00033>
at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0x000c8>
at <unknown> <0xffffffff>
at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&) <0x0006d>
at System.Reflection.MonoCMethod.InternalInvoke (object,object[]) <0x0003f>
at System.RuntimeType.CreateInstanceMono (bool) <0x00133>
at System.RuntimeType.CreateInstanceSlow (bool,bool,bool,System.Threading.StackCrawlMark&) <0x00053>
at System.RuntimeType.CreateInstanceDefaultCtor (bool,bool,bool,System.Threading.StackCrawlMark&) <0x0005f>
at System.Activator.CreateInstance<T_REF> () <0x0008f>
at GSGE.App.Run<T_REF> () <0x000af>
at GSGE.App.Main (string[]) <0x002a7>
at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <0x000c8>

Native stacktrace:

./Bastion.bin.x86_64() [0x45243d]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12890) [0x7f08db17d890]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7) [0x7f08daba0e97]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x141) [0x7f08daba2801]
/lib/x86_64-linux-gnu/libdbus-1.so.3(_dbus_abort+0x24) [0x7f08d551b204]
/lib/x86_64-linux-gnu/libdbus-1.so.3(_dbus_strdup+0) [0x7f08d5511a90]
/lib/x86_64-linux-gnu/libdbus-1.so.3(dbus_type_is_basic+0x63) [0x7f08d550cb43]
/lib/x86_64-linux-gnu/libdbus-1.so.3(dbus_message_append_args_valist+0x61) [0x7f08d5503b01]
/data/Games/Bastion/game/lib64/libSDL2-2.0.so.0(+0xd4a50) [0x7f08d75d9a50]
/data/Games/Bastion/game/lib64/libSDL2-2.0.so.0(+0xd58c6) [0x7f08d75da8c6]
/data/Games/Bastion/game/lib64/libSDL2-2.0.so.0(+0xd59d0) [0x7f08d75da9d0]
/data/Games/Bastion/game/lib64/libSDL2-2.0.so.0(+0xd4f8f) [0x7f08d75d9f8f]
/data/Games/Bastion/game/lib64/libSDL2-2.0.so.0(+0xc6a3e) [0x7f08d75cba3e]
/data/Games/Bastion/game/lib64/libSDL2-2.0.so.0(+0xce4ee) [0x7f08d75d34ee]
/data/Games/Bastion/game/lib64/libSDL2-2.0.so.0(+0xba180) [0x7f08d75bf180]
/data/Games/Bastion/game/lib64/libSDL2-2.0.so.0(+0x120ff) [0x7f08d75170ff]
[0x41a6c806]

Debug info from gdb:

[New LWP 14321]
[New LWP 14322]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f08db17d23a in __waitpid (pid=pid@entry=14324, stat_loc=stat_loc@entry=0x7ffd9ca31f4c, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30
30 ../sysdeps/unix/sysv/linux/waitpid.c: Нет такого файла или каталога.
Id Target Id Frame
* 1 Thread 0x7f08dbd3a780 (LWP 14320) "Main" 0x00007f08db17d23a in __waitpid (pid=pid@entry=14324, stat_loc=stat_loc@entry=0x7ffd9ca31f4c, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30
2 Thread 0x7f08d9bff700 (LWP 14321) "SGen worker" 0x00007f08db1789f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x989ee8 <work_cond+40>) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
3 Thread 0x7f08d7d74700 (LWP 14322) "Finalizer" 0x00007f08db17b6d6 in futex_abstimed_wait_cancelable (private=0, abstime=0x0, expected=0, futex_word=0x97e820 <finalizer_sem>) at ../sysdeps/unix/sysv/linux/futex-internal.h:205

Thread 3 (Thread 0x7f08d7d74700 (LWP 14322)):
#0 0x00007f08db17b6d6 in futex_abstimed_wait_cancelable (private=0, abstime=0x0, expected=0, futex_word=0x97e820 <finalizer_sem>) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
#1 do_futex_wait (sem=sem@entry=0x97e820 <finalizer_sem>, abstime=0x0) at sem_waitcommon.c:111
#2 0x00007f08db17b7c8 in __new_sem_wait_slow (sem=sem@entry=0x97e820 <finalizer_sem>, abstime=0x0) at sem_waitcommon.c:181
#3 0x00007f08db17b839 in __new_sem_wait (sem=sem@entry=0x97e820 <finalizer_sem>) at sem_wait.c:42
#4 0x00000000004a689b in mono_os_sem_wait (flags=MONO_SEM_FLAGS_ALERTABLE, sem=0x97e820 <finalizer_sem>) at ../../mono/utils/mono-os-semaphore.h:166
#5 mono_coop_sem_wait (sem=<optimized out>, flags=<optimized out>) at ../../mono/utils/mono-coop-semaphore.h:40
#6 finalizer_thread (unused=unused@entry=0x0) at gc.c:761
#7 0x000000000053e13e in start_wrapper_internal (data=<optimized out>) at threads.c:740
#8 start_wrapper (data=<optimized out>) at threads.c:788
#9 0x00000000005a24ac in inner_start_thread (arg=<optimized out>) at mono-threads-posix.c:92
#10 0x00007f08db1726db in start_thread (arg=0x7f08d7d74700) at pthread_create.c:463
#11 0x00007f08dac8388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f08d9bff700 (LWP 14321)):
#0 0x00007f08db1789f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x989ee8 <work_cond+40>) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1 __pthread_cond_wait_common (abstime=0x0, mutex=0x989e80 <lock>, cond=0x989ec0 <work_cond>) at pthread_cond_wait.c:502
#2 __pthread_cond_wait (cond=cond@entry=0x989ec0 <work_cond>, mutex=mutex@entry=0x989e80 <lock>) at pthread_cond_wait.c:655
#3 0x00000000005788eb in mono_os_cond_wait (cond=0x989ec0 <work_cond>, mutex=<optimized out>) at ../../mono/utils/mono-os-mutex.h:107
#4 thread_func (thread_data=0x0) at sgen-thread-pool.c:110
#5 0x00007f08db1726db in start_thread (arg=0x7f08d9bff700) at pthread_create.c:463
#6 0x00007f08dac8388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f08dbd3a780 (LWP 14320)):
#0 0x00007f08db17d23a in __waitpid (pid=pid@entry=14324, stat_loc=stat_loc@entry=0x7ffd9ca31f4c, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30
#1 0x00000000004524fc in mono_handle_native_sigsegv (signal=<optimized out>, ctx=<optimized out>, info=<optimized out>) at mini-exceptions.c:2427
#2 <signal handler called>
#3 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#4 0x00007f08daba2801 in __GI_abort () at abort.c:79
#5 0x00007f08d551b204 in _dbus_abort () from /lib/x86_64-linux-gnu/libdbus-1.so.3
#6 0x00007f08d5511a90 in _dbus_warn_check_failed () from /lib/x86_64-linux-gnu/libdbus-1.so.3
#7 0x00007f08d550cb43 in dbus_type_is_basic () from /lib/x86_64-linux-gnu/libdbus-1.so.3
#8 0x00007f08d5503b01 in dbus_message_append_args_valist () from /lib/x86_64-linux-gnu/libdbus-1.so.3
#9 0x00007f08d75d9a50 in SDL_DBus_CallVoidMethodOnConnection () from /data/Games/Bastion/game/lib64/libSDL2-2.0.so.0
#10 0x00007f08d75da8c6 in IBus_SetupConnection () from /data/Games/Bastion/game/lib64/libSDL2-2.0.so.0
#11 0x00007f08d75da9d0 in SDL_IBus_Init () from /data/Games/Bastion/game/lib64/libSDL2-2.0.so.0
#12 0x00007f08d75d9f8f in SDL_IME_Init () from /data/Games/Bastion/game/lib64/libSDL2-2.0.so.0
#13 0x00007f08d75cba3e in X11_InitKeyboard () from /data/Games/Bastion/game/lib64/libSDL2-2.0.so.0
#14 0x00007f08d75d34ee in X11_VideoInit () from /data/Games/Bastion/game/lib64/libSDL2-2.0.so.0
#15 0x00007f08d75bf180 in SDL_VideoInit_REAL () from /data/Games/Bastion/game/lib64/libSDL2-2.0.so.0
#16 0x00007f08d75170ff in SDL_Init_REAL () from /data/Games/Bastion/game/lib64/libSDL2-2.0.so.0
#17 0x0000000041a6c806 in ?? ()
#18 0x00007ffd9ca34330 in ?? ()
#19 0x0000000000000000 in ?? ()

=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

./Bastion: строка 35: 14320 Аварийный останов (стек памяти сброшен на диск) ./Bastion.bin.x86_64 $@
This question / problem has been solved by Huinehtarimage
I went through a very similar problem with Bastion lately, here what I have done to make it working :

- rename or delete the libSDL2-2.0.so.0 provided by Gog/Supergiant games included in the directory "game/lib64" (or "game/lib" depending of what architecture you use)
- install development libraries for SDL2 and libmono

then Bastion should work nicely, pointing to native libraries.

Edit: typos
Post edited May 09, 2019 by Huinehtar
avatar
Huinehtar: - rename or delete the libSDL2-2.0.so.0
- install developpement libraries for SDL2 and libmono
Thank you, this solves the problem.
Post edited May 09, 2019 by DenisL89
Glad to help ! ;)
Developer response:

Delete the bundled libSDL2-2.0.so.0 in the lib64 folder and it'll use your system's version instead. Somewhere down the line there was a DBus change that broke compatibility, so an SDL update is needed to fix this.

Will forward this to the current maintainer so we can get an official fix out, but that's the fast way to work around this for now!
Post edited May 10, 2019 by DenisL89
avatar
DenisL89: Developer response:

Delete the bundled libSDL2-2.0.so.0 in the lib64 folder and it'll use your system's version instead. Somewhere down the line there was a DBus change that broke compatibility, so an SDL update is needed to fix this.
The workaround works on 32-bit too:

cd ~/GOG\ Games/Bastion/game/lib/
mv libSDL2-2.0.so.0 libSDL2-2.0.so.0.bad
sudo apt install libsdl2-dev

Lauching Bastion now works.
Installing libmono-2.0-dev does not seem to be required.
avatar
DenisL89: Will forward this to the current maintainer so we can get an official fix out, but that's the fast way to work around this for now!
What's about fixing the GoG's installer itself, 6 months after the issue was addressed?