[Linux] Bug start

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

Comments

  • ShatojonShatojon Administrator Developer Backer Wiki Editor
    Thank you, I've forwarded this to QA.
  • mantismantis Member
    I think I have the same issue. New to Castle Story so I am not sure if this problem is new, I have not been able to start the game.

    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

  • koko7koko7 Member
    Same problem here on Arch with current version 0.9.1a. Attached strace too as there seems to be some kind of deadlock. Hope it helps
  • ShatojonShatojon Administrator Developer Backer Wiki Editor
    Hey guys, unfortunately we don't support Arch Linux. :( There's not much I can do to help.
  • GondlarGondlar Member
    edited July 2017
    Same Problem here, also Archlinux.
    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...
  • HobbypunkHobbypunk Member
    edited July 2017
    i've the same problems, also on arch - any idea how to debug this?
  • ShatojonShatojon Administrator Developer Backer Wiki Editor
    Hey guys! While we don't support Arch Linux and I myself am not particularly knowledgeable when it comes to it, if I can forward any questions you have to our devs that might help you figure out a way to get Castle Story running on Arch, let me know, I'll be happy to do what I can. :)
  • koko7koko7 Member
    I got the game started using the 32bit version. Castle Story seems not to be the only Unity Game with that bug (https://steamcommunity.com/app/305620/discussions/7/1353742967802459397/)
    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
  • #koko7, kann you explain it a little bit? i'm playing via steam, where can i find the 32bit version? or how can i download it?
  • koko7koko7 Member
    I tried but in steam I couldn't find it either. Maybe #Shatojon knows how to get the 32bit version in steam? ;)
  • ShatojonShatojon Administrator Developer Backer Wiki Editor
    Hey guys,

    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. :)
  • HobbypunkHobbypunk Member
    edited July 2017
    Is there an option to download an old version of castle story (0.8.x)? i would like to test if the old version works anymore. If it work's, we can minimize the chance that the problem is an arch package update :no_mouth:
  • ShatojonShatojon Administrator Developer Backer Wiki Editor
    Hey Hobbypunk,

    Unfortunately it isn't, unless you have a version laying around from Humble Bundle.
  • damn it :angry:
  • Hello,
    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.
  • ShatojonShatojon Administrator Developer Backer Wiki Editor
    Thank you for sharing, casteldefender123.
  • any news?
  • ShatojonShatojon Administrator Developer Backer Wiki Editor
    If you still thinkg getting an older version of the game on a special Steam branch would be a big help to you guys, I can hold someone hostage at the studio to make it happen.
  • I found some interesting details in gdb.
    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.
  • I think the issue is SDL2/AkSoundEngine related, just rename/remove "Castle Story/Castle Story_Data/Plugins/x86_64/libAkSoundEngine.so". After that the game will run (of course, without sound).

    From my POV there is a deadlock in "do_futex_wait.constprop () from /lib64/libpthread.so.0" which is loaded by AkSoundEngine.

    gdb:
    Thread 1 "Castle Story" received signal SIGINT, Interrupt.
    0x00007ffff79c5bd6 in do_futex_wait.constprop () from /lib64/libpthread.so.0
    (gdb) bt
    #0 0x00007ffff79c5bd6 in do_futex_wait.constprop () from /lib64/libpthread.so.0
    #1 0x00007ffff79c5ca4 in __new_sem_wait_slow.constprop.0 () from /lib64/libpthread.so.0
    #2 0x00007fffe4b1e7ad in ?? () from /home/xxx/.local/share/Steam/steamapps/common/Castle Story/Castle Story_Data/Plugins/x86_64/libAkSoundEngine.so
    #3 0x00007fffe4a6d3d1 in ?? () from /home/xxx/.local/share/Steam/steamapps/common/Castle Story/Castle Story_Data/Plugins/x86_64/libAkSoundEngine.so
    Just in case someone is trying to debug that, don't forget to skip the handles SIGPWR/SIGXCPU, otherwise it will stall.

    gdb handles:
    (gdb) handle SIGPWR nostop noprint
    (gdb) handle SIGXCPU nostop noprint
    otherwise the debugger is stucking at:
    [...]
    Thread 4 "Castle Story" received signal SIGPWR, Power fail/restart.
    [Switching to Thread 0x7fffef0d4700 (LWP 9834)]
    0x00007ffff79c5bd6 in do_futex_wait.constprop () from /lib64/libpthread.so.0
    (gdb) c
    Continuing.
    Thread 4 "Castle Story" received signal SIGXCPU, CPU time limit exceeded.
    0x00007ffff6ac24fd in sigsuspend () from /lib64/libc.so.6
    (gdb) c
    Continuing.
    [...]
    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
  • Hi,

    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
  • So,

    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.
  • ShatojonShatojon Administrator Developer Backer Wiki Editor

    So,

    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.

    Thank you for sharing! This worked for : http://steamcommunity.com/app/227860/discussions/1/2906376154333213057/#c1621724904371188603

    I'm going to forward this to our devs to see if it helps us officially support that OS.
Sign In or Register to comment.