question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ryujinx cannot boot with `libsndio` 1.8.0

See original GitHub issue

Bug Report

What’s the issue you encountered?

When you attempt to launch Ryujinx with the latest version of libsndio (1.8.0), it fails to load. This is because it looks for libsndio.so.6, which was renamed to libsndio.so.7 with the upgrade from 1.7.0 -> 1.8.0.

To fix this, you can symlink libsndio.so.7 to libsndio.so.6, but this obviously is a rather hacky solution. For testing purposes I’ve tried this, and everything does seem to fuction as intended.

I think it would be nice if Ryujinx could detect either version of libsndio, to ensure comatibility.

How can the issue be reproduced?

Install the latest version of libsdio, and append it to LD_LIBRARY_PATH (Make sure to remove any outdated version from the environment).

Afterwards, attempt to launch Ryujinx.

Log file

https://gist.github.com/IvarWithoutBones/167a40d36dd9ab6da0dd419c5bc5a1ea

Environment?

  • Ryujinx version: 1.0.6906
  • Game version: N/A
  • System Specs:
    • OS: NixOS
    • CPU: AMD Athlon Silver 3050U
    • GPU: Radeon Graphics (Integrated)
    • RAM: 8GB
  • Applied Mods : No

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
AcK77commented, Jun 7, 2021

The related issue is https://github.com/libsdl-org/SDL/issues/2531

Since we use SDL for input backend as default, we use it for audio too, and since the initialization fail because of an old SDL bug, that why you can’t launch Ryujinx, but as I said, it’s not a Ryujinx issue there… in that way I close this issue. Thanks for the report, maybe that could help someone else!

0reactions
IvarWithoutBonescommented, Jun 7, 2021

Are you sure the file is named libsndio.so.7 and not libsndio.so.7.0 or libsndio.so.7.1 ?

Yes, though libsndio.so.7.1 also exists.

~ > ls /nix/store/1p55q3i2l3zq0gvwq9351q6llbfyl7ym-sndio-1.8.0/lib
libsndio.so  libsndio.so.7  libsndio.so.7.1  pkgconfig

This is handled by SDL not by Ryujinx since you have selected SDL backend, it’s not an issue from our LibSoundIO backend.

I haven’t selected the SDL backend though, the initalisation seems to get called unconditionally: https://github.com/Ryujinx/Ryujinx/blob/eb056218a13fa145adcc9ecafd166b1b1f2caccb/Ryujinx.SDL2.Common/SDL2Driver.cs#L28 https://github.com/Ryujinx/Ryujinx/blob/eb056218a13fa145adcc9ecafd166b1b1f2caccb/Ryujinx.sln#L66

The only solution for now seems to be the symlink.

That’s annoying, I hope this can be fixed in upstream SDL soon than.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ryujinx not booting
As I download newer versions of ryujinx it does not boot What should I do?
Read more >
Ryujinx - Nintendo Switch Emulator
Ryujinx is an open-source Nintendo Switch emulator.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found