Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playing a beatmap with a video crashes on Wayland + AMD GPU #17813

Closed
ThatOneCalculator opened this issue Apr 14, 2022 · 9 comments
Closed

Playing a beatmap with a video crashes on Wayland + AMD GPU #17813

ThatOneCalculator opened this issue Apr 14, 2022 · 9 comments
Labels
missing details Can't move forward without more details from the reporter platform/linux

Comments

@ThatOneCalculator
Copy link

ThatOneCalculator commented Apr 14, 2022

Type

Crash to desktop

Bug description

Playing any map with a video causes a crash.

OS: Arch GNU/Linux
WM: Hyprland (Wayland)
GPU: AMD 6700XT
CPU: AMD 5800X

Thoughts: the crash says

Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
[AVHWDeviceContext @ 0x7ff338a945c0] VDPAU device creation on X11 display :1 failed.
corrupted size vs. prev_size
[1]    87298 IOT instruction (core dumped)  osu-lazer

but I have an AMD GPU, meaning that it's probably trying to open a non-existent Nvidia backend.

Version

2022.409.0-lazer

Logs

@frenzibyte
Copy link
Member

frenzibyte commented Apr 14, 2022

Can you confirm you actually have libva-vdpau-driver installed in the first place? That will eventually be shipped with the game rather than requiring linux users to install it (see ppy/osu-framework#4349).

@smoogipoo
Copy link
Contributor

Please post the output of ffmpeg -version.

@smoogipoo smoogipoo added platform/linux missing details Can't move forward without more details from the reporter labels Apr 14, 2022
@ThatOneCalculator
Copy link
Author

Can you confirm you actually have libva-vdpau-driver installed in the first place?

It wasn't installed, after installing it, the issue is resolved. It should probably be added as a dependency in the AUR PKGBUILD.

@ThatOneCalculator
Copy link
Author

Nvm, it crashed again. My FFMPEG version is n5.0

@frenzibyte
Copy link
Member

Is it the same crash? please include the crash logs.

@smoogipoo
Copy link
Contributor

Downgrading to FFmpeg 4 should fix it for you. This is a dupe of ppy/osu-framework#4349.

@ThatOneCalculator
Copy link
Author

Sadly looks like I can't downgrade.

image

@smoogipoo
Copy link
Contributor

See #17345 (comment). This is going to be up to you to resolve for now.

@ThatOneCalculator
Copy link
Author

Thank you! Editing line 7 of /usr/share/applications/osu-lazer.desktop to

Exec=env OSU_EXTERNAL_UPDATE_PROVIDER=1 LD_LIBRARY_PATH=/usr/lib/ffmpeg4.4:"$LD_LIBRARY_PATH" /usr/bin/osu-lazer

does the trick :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
missing details Can't move forward without more details from the reporter platform/linux
Projects
None yet
Development

No branches or pull requests

3 participants