[Linux] Bug start
salorium
Member
in Bug Reports
It s impossible to start a game
When run :
salorium@ArchlinuxGeek ..re/Steam/steamapps/common/Castle Story % ./Castle\ Story
Set current directory to /home/salorium/.local/share/Steam/steamapps/common/Castle Story
Found path: /home/salorium/.local/share/Steam/steamapps/common/Castle Story/Castle Story
Mono path[0] = '/home/salorium/.local/share/Steam/steamapps/common/Castle Story/Castle Story_Data/Managed'
Mono path[1] = '/home/salorium/.local/share/Steam/steamapps/common/Castle Story/Castle Story_Data/Mono'
Mono config path = '/home/salorium/.local/share/Steam/steamapps/common/Castle Story/Castle Story_Data/Mono/etc'
Preloaded 'ScreenSelector.so'
Preloaded 'libAkConvolutionReverb.so'
Preloaded 'libAkFlanger.so'
Preloaded 'libAkGuitarDistortion.so'
Preloaded 'libAkHarmonizer.so'
Preloaded 'libAkMotion.so'
Preloaded 'libAkPitchShifter.so'
Preloaded 'libAkRecorder.so'
Preloaded 'libAkSoundEngine.so'
Preloaded 'libAkSoundSeedAir.so'
Preloaded 'libAkSoundSeedImpact.so'
Preloaded 'libAkStereoDelay.so'
Preloaded 'libAkTimeStretch.so'
Preloaded 'libAkTremolo.so'
Preloaded 'libCSteamworks.so'
Preloaded 'libMcDSP.so'
Preloaded 'libSynthOne.so'
Preloaded 'libiZotope.so'
Preloaded 'libsteam_api.so'
Unable to preload the following plugins:
RakNet.so
Player data archive not found at `/home/salorium/.local/share/Steam/steamapps/common/Castle Story/Castle Story_Data/data.unity3d`, using local filesystem[1] 21645 killed ./Castle\ Story
When run :
salorium@ArchlinuxGeek ..re/Steam/steamapps/common/Castle Story % ./Castle\ Story
Set current directory to /home/salorium/.local/share/Steam/steamapps/common/Castle Story
Found path: /home/salorium/.local/share/Steam/steamapps/common/Castle Story/Castle Story
Mono path[0] = '/home/salorium/.local/share/Steam/steamapps/common/Castle Story/Castle Story_Data/Managed'
Mono path[1] = '/home/salorium/.local/share/Steam/steamapps/common/Castle Story/Castle Story_Data/Mono'
Mono config path = '/home/salorium/.local/share/Steam/steamapps/common/Castle Story/Castle Story_Data/Mono/etc'
Preloaded 'ScreenSelector.so'
Preloaded 'libAkConvolutionReverb.so'
Preloaded 'libAkFlanger.so'
Preloaded 'libAkGuitarDistortion.so'
Preloaded 'libAkHarmonizer.so'
Preloaded 'libAkMotion.so'
Preloaded 'libAkPitchShifter.so'
Preloaded 'libAkRecorder.so'
Preloaded 'libAkSoundEngine.so'
Preloaded 'libAkSoundSeedAir.so'
Preloaded 'libAkSoundSeedImpact.so'
Preloaded 'libAkStereoDelay.so'
Preloaded 'libAkTimeStretch.so'
Preloaded 'libAkTremolo.so'
Preloaded 'libCSteamworks.so'
Preloaded 'libMcDSP.so'
Preloaded 'libSynthOne.so'
Preloaded 'libiZotope.so'
Preloaded 'libsteam_api.so'
Unable to preload the following plugins:
RakNet.so
Player data archive not found at `/home/salorium/.local/share/Steam/steamapps/common/Castle Story/Castle Story_Data/data.unity3d`, using local filesystem[1] 21645 killed ./Castle\ Story
Comments
I know you don't support this but I am using Arch Linux. I start the game and the launcher pops up. I press start the game and i get a black screen I can see the cursor only.
I have tried window mode, turned off my monitors, run Steam in native mode, and a bunch of launch options that some of my other unity games us.
I have 2 computer one running nvidea and another intel GPU. Both run Arch and both have the same problem when launching the game.
Hope you can help since this game looks fun.
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
CPU Family: 0x6
CPU Model: 0x3c
CPU Stepping: 0x3
CPU Type: 0x0
Speed: 4000 Mhz
8 logical processors
4 physical processors
HyperThreading: Supported
FCMOV: Supported
SSE2: Supported
SSE3: Supported
SSSE3: Supported
SSE4a: Unsupported
SSE41: Supported
SSE42: Supported
AES: Supported
AVX: Supported
CMPXCHG16B: Supported
LAHF/SAHF: Supported
PrefetchW: Unsupported
Operating System Version:
"Arch Linux" (64 bit)
Kernel Name: Linux
Kernel Version: 4.11.6-3-ARCH
X Server Vendor: The X.Org Foundation
X Server Release: 11903000
X Window Manager: GNOME Shell
Steam Runtime Version: steam-runtime-beta-release_2016-12-05
Video Card:
Driver: NVIDIA Corporation GeForce GTX 960/PCIe/SSE2
Driver Version: 4.5.0 NVIDIA 381.22
OpenGL Version: 4.5
Desktop Color Depth: 24 bits per pixel
Monitor Refresh Rate: 60 Hz
VendorID: 0x10de
DeviceID: 0x1401
Revision Not Detected
Number of Monitors: 3
Number of Logical Video Cards: 1
Primary Display Resolution: 1920 x 1080
Desktop Resolution: 5760 x 1080
Primary Display Size: 20.51" x 11.54" (23.50" diag)
52.1cm x 29.3cm (59.7cm diag)
Primary Bus: PCI Express 16x
Primary VRAM: 2048 MB
Supported MSAA Modes: 2x 4x 8x 16x
Sound card:
Audio device: Realtek ALC887-VD
Memory:
RAM: 24058 Mb
Miscellaneous:
UI Language: English
LANG: en_US.UTF-8
Microphone: Not set
Steam Controller Cable and Base: Not set
Total Hard Disk Space Available: 449167 Mb
Largest Free Hard Disk Block: 47665 Mb
VR Headset: None detected
The bad news is, as arch is unsupported, its up to us to fix this. The good news is, if there are only arch users suffering from this bug, there ought to be a way to fix it on our side (hopefully).
I'm not too sure about your deadlock diagnosis. On my machine I see one thread at 100% CPU, but doing no syscalls according to strace, especially no futex_wait. Unfortunately, that also means I have no idea what its doing...
If you want to use the launcher to start the game you have to install some multilib packages. I had to install: lib32-nss lib32-gconf lib32-gtk2. If you bypass the launcher and run 'Castle Story' binary you can skip installing these packages.
Unfortunately I still cannot play the game as I only got one-digit FPS ):
Hope it works for you
Steam automatically chooses for you - I don't know if there's a way to fool it into downloading the 32bit version. On Humble Bundle, you can choose though, if I'm not mistaken. If you own the game on Humble, try that. If you don't #koko7, send me a message on Steam and I'll give you a copy of the game on Humble so you can continue experimenting.
Unfortunately it isn't, unless you have a version laying around from Humble Bundle.
same here. Arch Linux. Humble Bundle.
Only 32 bit version works. The terminal output is more or less the same like the one of salorium for 32 and 64 bit:
"Unable to preload the following plugins:
RakNet.so
Player data archive not found at `/home/salorium/.local/share/Steam/steamapps/common/Castle Story/Castle Story_Data/data.unity3d`, using local filesystem[1] 21645 killed ./Castle\ Story"
This doesn't seem to be the problem.
Thread 4 "Castle Story" received signal SIGPWR, Power fail/restart.
[Switching to Thread 0x7fffef34c700 (LWP 21729)]
0x00007ffff79c5cc6 in do_futex_wait.constprop () from /usr/lib/libpthread.so.0
(gdb) bt
#0 0x00007ffff79c5cc6 in do_futex_wait.constprop () at /usr/lib/libpthread.so.0
#1 0x00007ffff79c5db8 in __new_sem_wait_slow.constprop.0 () at /usr/lib/libpthread.so.0
#2 0x00007fffefc21893 in mono_sem_wait () at /home/ryan/.local/share/Steam/steamapps/common/Castle Story/Castle Story_Data/Mono/x86_64/libmono.so
#3 0x00007fffefb8be88 in () at /home/ryan/.local/share/Steam/steamapps/common/Castle Story/Castle Story_Data/Mono/x86_64/libmono.so
#4 0x00007fffefbf3bfa in () at /home/ryan/.local/share/Steam/steamapps/common/Castle Story/Castle Story_Data/Mono/x86_64/libmono.so
#5 0x00007fffefc197ab in () at /home/ryan/.local/share/Steam/steamapps/common/Castle Story/Castle Story_Data/Mono/x86_64/libmono.so
#6 0x00007fffefc3a2bc in () at /home/ryan/.local/share/Steam/steamapps/common/Castle Story/Castle Story_Data/Mono/x86_64/libmono.so
#7 0x00007ffff79bd08a in start_thread () at /usr/lib/libpthread.so.0
#8 0x00007ffff6c031bf in clone () at /usr/lib/libc.so.6
That signal should not happen. And it continues to be interesting:
(gdb) continue
Continuing.
Thread 4 "Castle Story" received signal SIGXCPU, CPU time limit exceeded.
0x00007ffff6b41c2e in sigsuspend () from /usr/lib/libc.so.6
(gdb) bt
#0 0x00007ffff6b41c2e in sigsuspend () at /usr/lib/libc.so.6
#1 0x00007fffefc3a4e9 in () at /home/ryan/.local/share/Steam/steamapps/common/Castle Story/Castle Story_Data/Mono/x86_64/libmono.so
#2 0x00007ffff79c7da0 in <signal handler called> () at /usr/lib/libpthread.so.0
#3 0x00007ffff79c5cc4 in do_futex_wait.constprop () at /usr/lib/libpthread.so.0
#4 0x00007ffff79c5db8 in __new_sem_wait_slow.constprop.0 () at /usr/lib/libpthread.so.0
#5 0x00007fffefc21893 in mono_sem_wait () at /home/ryan/.local/share/Steam/steamapps/common/Castle Story/Castle Story_Data/Mono/x86_64/libmono.so
#6 0x00007fffefb8be88 in () at /home/ryan/.local/share/Steam/steamapps/common/Castle Story/Castle Story_Data/Mono/x86_64/libmono.so
#7 0x00007fffefbf3bfa in () at /home/ryan/.local/share/Steam/steamapps/common/Castle Story/Castle Story_Data/Mono/x86_64/libmono.so
#8 0x00007fffefc197ab in () at /home/ryan/.local/share/Steam/steamapps/common/Castle Story/Castle Story_Data/Mono/x86_64/libmono.so
#9 0x00007fffefc3a2bc in () at /home/ryan/.local/share/Steam/steamapps/common/Castle Story/Castle Story_Data/Mono/x86_64/libmono.so
#10 0x00007ffff79bd08a in start_thread () at /usr/lib/libpthread.so.0
#11 0x00007ffff6c031bf in clone () at /usr/lib/libc.so.6
The signals continue to alternate.
From my POV there is a deadlock in "do_futex_wait.constprop () from /lib64/libpthread.so.0" which is loaded by AkSoundEngine.
gdb: Just in case someone is trying to debug that, don't forget to skip the handles SIGPWR/SIGXCPU, otherwise it will stall.
gdb handles: otherwise the debugger is stucking at: Maybe that helps fixing this Bug in an update.
Btw. my specs:
Gentoo Linux - 4.14 / GCC 7.2 / SDL2 2.0.7 / nvidia GTX 750 Ti - 387.22 | intel i7-4790
unfortunately I can confirm the bug and the temporary solution on a Fedora 26 system.
Strange side note. I have played today and did a system update afterwards.
Maybe I can trackdown the changes . . .
kind regards
unfortunately I didn't found out which package was issuing the troubbles.
I have only seen that my system updates from SDL2-2.0.3 to SDL-2.0.7, but also a downgrading didn't get it back working. I tested in between also SDL2-2.0.5 but this didn't work either.
It seems that there is something else changed in combination, but I'll not continue to search through all of the 700 changes packages.
I found a solution by preloading the SDL2 Lib from the steam folder.
Command:
LD_PRELOAD=~/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0 ~/.local/share/Steam/steamapps/common/Castle\ Story/Castle\ Story
Interesting sidenote: Steam is running with SDL2-2.0.5.
So I'm back playing with sound.
I'm going to forward this to our devs to see if it helps us officially support that OS.