BUG: Vulkan doesn't load with Snap Package
Description
When trying to load any core with Vulkan driver using the Snap version of Retroarch, it crashes
Expected behavior
The core should load properly with Vulkan
Actual behavior
[ERROR] [Vulkan]: Failed to enumerate physical devices.
[ERROR] [Vulkan]: Failed to set video mode.
[ERROR] [Video]: Cannot open video driver.. Exiting..
[ERROR] Fatal error received in: "video_driver_init_internal()"
Steps to reproduce the bug
- Install the Snap on Debian 12 / AMD hardware
- Try to launch any core using the Vulkan driver
Bisect Results
Since I switched over from Ubuntu 23.04 -> Debian 12, I'm using the Snap (because the Debian version of Retroarch is very old and isn't compiled with Vulkan support, and Retroarch doesn't currently provide an updated deb package other than the Ubuntu PPA).
Version/Commit
1.16.0.3
Environment information
- OS: Debian 12 (Bookworm)
Works fine for me in Ubuntu 22.04. Are you using the proprietary nvidia driver, by chance?
Re: deb packages, you should be able to download and install the bare deb package just fine (e.g., this one: https://launchpad.net/~libretro/+archive/ubuntu/stable/+files/retroarch_1.16.0.3-r202309300051+085c2aaf9a-171~ubuntu23.10.1_amd64.deb)
Works fine for me in Ubuntu 22.04. Are you using the proprietary nvidia driver, by chance?
Re: deb packages, you should be able to download and install the bare deb package just fine (e.g., this one: https://launchpad.net/~libretro/+archive/ubuntu/stable/+files/retroarch_1.16.0.3-r202309300051+085c2aaf9a-171~ubuntu23.10.1_amd64.deb)
Running Debian 12 Bookworm with open source AMD (Mesa) drivers.
Output from vulkaninfo attached
vulkan.txt
RE: Installing the .deb, get Error: Dependency is not satisfiable: libavcodec60 (>=7:6.0)
for the deb, try one of the other releases. As long as debian has libavcodec of some version, you should be able to find one that matches.
For the snap issue, do other vulkan-dependent snap packages work for you?
for the deb, try one of the other releases. As long as debian has libavcodec of some version, you should be able to find one that matches.
For the snap issue, do other vulkan-dependent snap packages work for you?
The current supported version on Debian stable is Retroarch 1.14 - however, it's compiled without Vulkan support :(
Have not tested snap with any other Vulkan packages - not sure what I could test with - maybe I can test using Dolphin.
I meant any of the other series' debs from here: https://launchpad.net/~libretro/+archive/ubuntu/stable/+packages?field.name_filter=retroarch&field.status_filter=published&field.series_filter=
But yeah, for snap+vulkan, dolphin could be a good place to start.
I meant any of the other series' debs from here: https://launchpad.net/~libretro/+archive/ubuntu/stable/+packages?field.name_filter=retroarch&field.status_filter=published&field.series_filter=
But yeah, for snap+vulkan, dolphin could be a good place to start.
Thank you, after trying a few of the packages above it seems the dependencies are satisfied using the Lunar package: https://launchpad.net/~libretro/+archive/ubuntu/stable/+files/retroarch_1.16.0.3-r202309300051+085c2aaf9a-171~ubuntu23.04.1_amd64.deb
I can confirm Vulkan works flawlessly using this package (along with my old retroarch config from Jammy!)
Regarding the Snap, unfortunately it looks like Dolphin doesn't have the latest packages available in the Snap store (not even edge) - the last verison is v5, and Vulkan doesn't show up as an option here. I'm open to suggestions if you want me to do any more testing on my end.
Is there any chance Debian Stable will get a Vulkan-compiled release in the future? Or an "official" third-party repo that can be added to apt/sources.list?
Thank you for your help.
Is there any chance Debian Stable will get a Vulkan-compiled release in the future? Or an "official" third-party repo that can be added to apt/sources.list?
Not too likely, I'm afraid. We rely on the universal packages for that these days, and we probably wouldn't even have the PPA(s) except that I set it all up over a decade ago, long before those things existed.
@joeldeteves Did you make some test with AppImage package (Qt version if needed) as it should work.
Thank you.
@joeldeteves Did you make some test with AppImage package (Qt version if needed) as it should work.
Thank you.
Thanks @gouchi I just tested the AppImage using Vulkan and I can confirm that works. So it seems the problem is limited to the Snap Package :-)
Good to have another option in the future for Debian based distros - AppImage is a good solution.
I'll leave it to RA team if they want to investigate the Snap issue further or close this issue.
Thanks all!
@joeldeteves Could you please test the last build from edge channel?