[Linux] Error with SDL2 while launch the game

    Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

    • [Linux] Error with SDL2 while launch the game

      Hi,

      I have an issue with SDL2 when I launch Albion Online.

      There is the problem:

      Quellcode

      1. ➜ ./Albion-Online
      2. ATTENTION: default value of option force_s3tc_enable overridden by environment.
      3. Found path: /home/necros/albiononline/game_x64/Albion-Online
      4. Mono path[0] = '/home/necros/albiononline/game_x64/Albion-Online_Data/Managed'
      5. Mono path[1] = '/home/necros/albiononline/game_x64/Albion-Online_Data/Mono'
      6. Mono config path = '/home/necros/albiononline/game_x64/Albion-Online_Data/Mono/etc'
      7. Preloaded 'ScreenSelector.so'
      8. Preloaded 'libAkSoundEngine.so'
      9. Unable to preload the following plugins:
      10. libSDL2-2.0.so.0
      11. Player data archive not found at `/home/necros/albiononline/game_x64/Albion-Online_Data/data.unity3d`, using local filesystem
      Alles anzeigen


      I'm on Fedora 25.

      I have SDL installed


      Quellcode

      1. sudo dnf reinstall SDL2
      Thanks for your help ! :)
    • The output:

      Quellcode

      1. $ ldd /home/necros/albiononline/game_x64/Albion-Online_Data/Plugins/x86_64/libSDL2-2.0.so.0
      2. linux-vdso.so.1 (0x00007ffc43b2c000)
      3. libasound.so.2 => /lib64/libasound.so.2 (0x00007fa83a973000)
      4. libm.so.6 => /lib64/libm.so.6 (0x00007fa83a66a000)
      5. libdl.so.2 => /lib64/libdl.so.2 (0x00007fa83a466000)
      6. libpulse.so.0 => /lib64/libpulse.so.0 (0x00007fa83a215000)
      7. libsndio.so.6.1 => not found
      8. libX11.so.6 => /lib64/libX11.so.6 (0x00007fa839ed4000)
      9. libXext.so.6 => /lib64/libXext.so.6 (0x00007fa839cc2000)
      10. libXcursor.so.1 => /lib64/libXcursor.so.1 (0x00007fa839ab7000)
      11. libXinerama.so.1 => /lib64/libXinerama.so.1 (0x00007fa8398b4000)
      12. libXi.so.6 => /lib64/libXi.so.6 (0x00007fa8396a4000)
      13. libXrandr.so.2 => /lib64/libXrandr.so.2 (0x00007fa839499000)
      14. libXss.so.1 => /lib64/libXss.so.1 (0x00007fa839293000)
      15. libXxf86vm.so.1 => /lib64/libXxf86vm.so.1 (0x00007fa83908d000)
      16. libwayland-egl.so.1 => /lib64/libwayland-egl.so.1 (0x00007fa838e8b000)
      17. libwayland-client.so.0 => /lib64/libwayland-client.so.0 (0x00007fa838c7c000)
      18. libwayland-cursor.so.0 => /lib64/libwayland-cursor.so.0 (0x00007fa838a74000)
      19. libxkbcommon.so.0 => /lib64/libxkbcommon.so.0 (0x00007fa838834000)
      20. libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fa838614000)
      21. librt.so.1 => /lib64/librt.so.1 (0x00007fa83840c000)
      22. libc.so.6 => /lib64/libc.so.6 (0x00007fa838046000)
      23. /lib64/ld-linux-x86-64.so.2 (0x000055ce4746a000)
      24. libpulsecommon-10.0.so => /usr/lib64/pulseaudio/libpulsecommon-10.0.so (0x00007fa837dc3000)
      25. libdbus-1.so.3 => /lib64/libdbus-1.so.3 (0x00007fa837b72000)
      26. libcap.so.2 => /lib64/libcap.so.2 (0x00007fa83796d000)
      27. libxcb.so.1 => /lib64/libxcb.so.1 (0x00007fa837743000)
      28. libXrender.so.1 => /lib64/libXrender.so.1 (0x00007fa837539000)
      29. libXfixes.so.3 => /lib64/libXfixes.so.3 (0x00007fa837333000)
      30. libffi.so.6 => /lib64/libffi.so.6 (0x00007fa83712b000)
      31. libX11-xcb.so.1 => /lib64/libX11-xcb.so.1 (0x00007fa836f29000)
      32. libICE.so.6 => /lib64/libICE.so.6 (0x00007fa836d0b000)
      33. libSM.so.6 => /lib64/libSM.so.6 (0x00007fa836b03000)
      34. libXtst.so.6 => /lib64/libXtst.so.6 (0x00007fa8368fd000)
      35. libsystemd.so.0 => /lib64/libsystemd.so.0 (0x00007fa836872000)
      36. libwrap.so.0 => /lib64/libwrap.so.0 (0x00007fa836667000)
      37. libsndfile.so.1 => /lib64/libsndfile.so.1 (0x00007fa8363f8000)
      38. libasyncns.so.0 => /lib64/libasyncns.so.0 (0x00007fa8361f0000)
      39. libXau.so.6 => /lib64/libXau.so.6 (0x00007fa835fec000)
      40. libuuid.so.1 => /lib64/libuuid.so.1 (0x00007fa835de7000)
      41. libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fa835bcc000)
      42. libselinux.so.1 => /lib64/libselinux.so.1 (0x00007fa8359a5000)
      43. liblzma.so.5 => /lib64/liblzma.so.5 (0x00007fa83577d000)
      44. liblz4.so.1 => /lib64/liblz4.so.1 (0x00007fa835569000)
      45. libgcrypt.so.20 => /lib64/libgcrypt.so.20 (0x00007fa835283000)
      46. libgpg-error.so.0 => /lib64/libgpg-error.so.0 (0x00007fa83506f000)
      47. libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fa834e58000)
      48. libnsl.so.1 => /lib64/libnsl.so.1 (0x00007fa834c3f000)
      49. libgsm.so.1 => /lib64/libgsm.so.1 (0x00007fa834a31000)
      50. libFLAC.so.8 => /lib64/libFLAC.so.8 (0x00007fa8347d6000)
      51. libogg.so.0 => /lib64/libogg.so.0 (0x00007fa8345cf000)
      52. libvorbis.so.0 => /lib64/libvorbis.so.0 (0x00007fa8343a3000)
      53. libvorbisenc.so.2 => /lib64/libvorbisenc.so.2 (0x00007fa8340fa000)
      54. libpcre.so.1 => /lib64/libpcre.so.1 (0x00007fa833e87000)
      Alles anzeigen

      Yes, I know the game is for Ubuntu, but all linux aren't so differents ;)

      I already have SDL installed.
    • I tried, but update-rc.d is for Debian distro.

      I have Fedora.

      When I try

      Quellcode

      1. ➜ ~ sndiod -dd
      2. sndiod: error while loading shared libraries: libsndio.so: cannot open shared object file: No such file or directory

      Do you have some idea?


      I think the fedora command is


      Quellcode

      1. chkconfig

      Thanks for your help :)
    • Fedora is a Systemd init system so you need to write the corresponding unit.

      I use this one :

      Quellcode: /etc/systemd/system/.#sndiod.servicebe28da321c800310

      1. [Unit]
      2. Description=Lightweight audio & MIDI server part of the OpenBSD project
      3. After=network.target sound.target
      4. [Service]
      5. User=sndiod
      6. EnvironmentFile=/etc/conf.d/sndiod
      7. ExecStart=/usr/bin/sndiod -dd $OPTS
      8. [Install]
      9. WantedBy=default.target
      Alles anzeigen

      But you probably need to adapt it.

      You can make an unit with this command :

      Quellcode

      1. # systemctl edit --force sndiod.service
    • Hi, I change for:

      Quellcode

      1. [Unit]
      2. Description=Lightweight audio & MIDI server part of the OpenBSD project
      3. After=network.target sound.target
      4. [Service]
      5. User=sndiod
      6. EnvironmentFile=/etc/init.d/sndiod
      7. ExecStart=/usr/local/bin/sndiod -dd $OPTS
      8. [Install]
      9. WantedBy=default.target
      Alles anzeigen



      But when I restart:


      Quellcode

      1. ➜ ~ sudo systemctl status sndiod.service
      2. ● sndiod.service - Lightweight audio & MIDI server part of the OpenBSD project
      3. Loaded: loaded (/etc/systemd/system/sndiod.service; enabled; vendor preset: disabled)
      4. Active: failed (Result: exit-code) since mer. 2017-07-05 17:46:41 CEST; 1min 9s ago
      5. Process: 1098 ExecStart=/usr/local/bin/sndiod -dd $OPTS (code=exited, status=127)
      6. Main PID: 1098 (code=exited, status=127)
      7. juil. 05 17:46:40 keios systemd[1]: Started Lightweight audio & MIDI server part of the OpenBSD project.
      8. juil. 05 17:46:41 keios systemd[1]: sndiod.service: Main process exited, code=exited, status=127/n/a
      9. juil. 05 17:46:41 keios systemd[1]: sndiod.service: Unit entered failed state.
      10. juil. 05 17:46:41 keios systemd[1]: sndiod.service: Failed with result 'exit-code'.
      Alles anzeigen
      I try the command:


      Quellcode

      1. ➜ ~ /usr/local/bin/sndiod --dd $OPTS
      2. /usr/local/bin/sndiod: error while loading shared libraries: libsndio.so: cannot open shared object file: No such file or directory
    • No :/

      This is the message:


      Quellcode

      1. ➜ ~ sudo systemctl status sndiod.service
      2. ● sndiod.service - Lightweight audio & MIDI server part of the OpenBSD project
      3. Loaded: loaded (/etc/systemd/system/sndiod.service; enabled; vendor preset: disabled)
      4. Active: failed (Result: exit-code) since jeu. 2017-07-06 09:07:22 CEST; 36s ago
      5. Process: 1207 ExecStart=/usr/local/bin/sndiod -dd $OPTS (code=exited, status=127)
      6. Main PID: 1207 (code=exited, status=127)
      7. juil. 06 09:07:22 keios systemd[1]: Started Lightweight audio & MIDI server part of the OpenBSD project.
      8. juil. 06 09:07:22 keios systemd[1]: sndiod.service: Main process exited, code=exited, status=127/n/a
      9. juil. 06 09:07:22 keios systemd[1]: sndiod.service: Unit entered failed state.
      10. juil. 06 09:07:22 keios systemd[1]: sndiod.service: Failed with result 'exit-code'.
      11. ➜ ~ /usr/local/bin/sndiod -dd
      12. /usr/local/bin/sndiod: error while loading shared libraries: libsndio.so: cannot open shared object file: No such file or directory
      13. ➜ ~ sudo ldconfig
      14. ➜ ~ /usr/local/bin/sndiod -dd
      15. /usr/local/bin/sndiod: error while loading shared libraries: libsndio.so: cannot open shared object file: No such file or directory
      Alles anzeigen

      There is a way to find more logs?

      I don't find sndiod inside /var/log

      I try this:

      Quellcode

      1. ➜ system /etc/init.d/sndiod
      2. /etc/init.d/sndiod: ligne 26: /lib/init/vars.sh: No such file or directory
      an idea? ^^"

      Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von Keios ()

    • Yes, i have alsa-lib-devel

      With journalctl there is no information about sndiod

      I try the script for linux

      Shell-Script

      1. #!/bin/sh
      2. SCRIPT=$(readlink -f "$0")
      3. SCRIPTPATH=$(dirname "$SCRIPT")
      4. export LD_LIBRARY_PATH=/usr/lib
      5. #export LD_LIBRARY_PATH="$SCRIPTPATH/launcher"
      6. export QT_QPA_PLATFORM_PLUGIN_PATH=/usr/lib/qt/plugins/platforms
      7. #export QT_QPA_PLATFORM_PLUGIN_PATH="$SCRIPTPATH/launcher/plugins/platforms"
      8. export QT_PLUGIN_PATH=/usr/lib/qt/plugins
      9. #export QT_PLUGIN_PATH="$SCRIPTPATH/launcher/plugins/"
      10. sed -i -e '/Screenmanager Is Fullscreen mode/d' "$HOME/.config/unity3d/Sandbox Interactive GmbH/Albion Online Client/prefs"
      11. sed -i -e '/Screenmanager Resolution Height/d' "$HOME/.config/unity3d/Sandbox Interactive GmbH/Albion Online Client/prefs"
      12. sed -i -e '/Screenmanager Resolution Width/d' "$HOME/.config/unity3d/Sandbox Interactive GmbH/Albion Online Client/prefs"
      13. LD_PRELOAD=~/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0 "$SCRIPTPATH/launcher/Albion-Online"
      Alles anzeigen


      But I get this error:


      Quellcode

      1. sed: impossible de lire /home/necros/.config/unity3d/Sandbox Interactive GmbH/Albion Online Client/prefs: No such file or directory
      2. sed: impossible de lire /home/necros/.config/unity3d/Sandbox Interactive GmbH/Albion Online Client/prefs: No such file or directory
      3. sed: impossible de lire /home/necros/.config/unity3d/Sandbox Interactive GmbH/Albion Online Client/prefs: No such file or directory
      4. /home/necros/albiononline/launcher/Albion-Online: error while loading shared libraries: libQt5WebEngine.so.5: cannot open shared object file: No such file or directory

      Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von Keios ()

    • You can try to copy the libsndio.so.6.1 from Ubuntu to your game directory, then modify the Albion-Online startup script:

      Shell-Script

      1. LD_PRELOAD="$SCRIPTPATH/libsndio.so.6.1" "$SCRIPTPATH/launcher/Albion-Online" &
      This way I was able to get the game running on my Fedora 26 system, but it hangs on startup, on "1%".


      Or you can use the unofficial Flatpak build:

      Quellcode

      1. flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
      2. flatpak --user install flathub com.albiononline.AlbionOnline

      Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von AsciiWolf ()

    • Same issue here (Fedora 26).
      Tried different things described on this page, doesn't help much.
      Tried to fuse the patched client with official one, two more files but that's it, doesn't help much.


      The following steps seem to be enough to make it the "1%" hang described by asciiwolf.

      1. Make sure alsa-lib-devel is installed
      # sudo dnf install alsa-lib-devel

      2. Download libsndio source code, compile it
      $ git clone caoua.org/git/sndio
      $ cd sndio
      $ ./configure
      $ make

      3. copy libsndio lib it to your install directory
      $ cp libsndio/libsndio.so.6.1 path/to/albiononline/launcher/


      From the command line it looks like this :

      ATTENTION: default value of option force_s3tc_enable overridden by environment.
      Found path: /mnt/steam/albiononline/game_x64/Albion-Online
      Mono path[0] = '/mnt/steam/albiononline/game_x64/Albion-Online_Data/Managed'
      Mono path[1] = '/mnt/steam/albiononline/game_x64/Albion-Online_Data/Mono'
      Mono config path = '/mnt/steam/albiononline/game_x64/Albion-Online_Data/Mono/etc'
      Preloaded 'ScreenSelector.so'
      Preloaded 'libAkSoundEngine.so'
      Preloaded 'libSDL2-2.0.so.0'
      Player data archive not found at `/mnt/steam/albiononline/game_x64/Albion-Online_Data/data.unity3d`, using local filesystem



      Unsure what i should do now. :(

      Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von lateo ()

    • Looks like I somehow managed to get it to work.
      Based on this thread : [Tuto][Linux] Have a working game !

      Using this launch script :

      Quellcode

      1. #!/bin/sh
      2. SCRIPT=$(readlink -f "$0")
      3. SCRIPTPATH=$(dirname "$SCRIPT")
      4. export LD_LIBRARY_PATH="/usr/lib:/usr/lib64:$SCRIPTPATH/launcher"
      5. ###export LD_LIBRARY_PATH="$SCRIPTPATH/launcher"
      6. export QT_QPA_PLATFORM_PLUGIN_PATH="/usr/lib/qt/plugins/platforms:$SCRIPTPATH/launcher/plugins/platforms"
      7. ###export QT_QPA_PLATFORM_PLUGIN_PATH="$SCRIPTPATH/launcher/plugins/platforms"
      8. export QT_PLUGIN_PATH="/usr/lib/qt/plugins:$SCRIPTPATH/launcher/plugins/"
      9. ###export QT_PLUGIN_PATH="$SCRIPTPATH/launcher/plugins/"
      10. ## keeping the sed stuff for later, if needed.
      11. #sed -i -e '/Screenmanager Is Fullscreen mode/d' "$HOME/.config/unity3d/Sandbox Interactive GmbH/Albion Online Client/prefs"
      12. #sed -i -e '/Screenmanager Resolution Height/d' "$HOME/.config/unity3d/Sandbox Interactive GmbH/Albion Online Client/prefs"
      13. #sed -i -e '/Screenmanager Resolution Width/d' "$HOME/.config/unity3d/Sandbox Interactive GmbH/Albion Online Client/prefs"
      14. #LD_PRELOAD=~/.local/share/Steam/ubuntu12_64/libSDL2-2.0.so.0 "$SCRIPTPATH/launcher/Albion-Online"
      15. LD_PRELOAD=$SCRIPTPATH/game_x64/Albion-Online_Data/Plugins/x86_64/libSDL2-2.0.so.0 "$SCRIPTPATH/launcher/Albion-Online"
      Alles anzeigen

      This is just the very first time the game doesn't hang, unsure if it's good enough, time will tell.
      Anyway, this is enough for me to have some hope :)
    • The game actually runs nicely on my Gentoo Linux system, except that I have no sound (pulseaudio).
      I encountered the error above and could fix it by installing sndio.

      Unfortunately that didn't fix the sound for me. Note that only in-game sound is affected. The intro video plays correctly with sound.
      I do have system libsdl2 installed too, so point 1 in Known technical issues and workarounds does not apply.
      Should I try the "patched client" (live.albiononline.com/clients/…online-fullgame-linux.zip) ?