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

Ruffle vulkan render seems not compatible with nvidia driver #13467

Closed
l12436 opened this issue Oct 8, 2023 · 11 comments
Closed

Ruffle vulkan render seems not compatible with nvidia driver #13467

l12436 opened this issue Oct 8, 2023 · 11 comments
Labels
A-desktop Area: Desktop Application bug Something isn't working render-wgpu Issues relating to the wgpu renderer

Comments

@l12436
Copy link

l12436 commented Oct 8, 2023

Describe the bug

when using nvidia driver with lastest ruffle, the vulkan always load failed.
here is log from vulkan: log.gz
here is vulkaninfo: vulkaninfo.gz

when this happened ruffle just not output anything
image

Expected behavior

ruffle should be able to use vulkan under linux

Affected platform

Desktop app

Operating system

Ubuntu 22.04 with nvidia driver 525.125.06

Browser

No response

Additional information

No response

@l12436 l12436 added the bug Something isn't working label Oct 8, 2023
@l12436
Copy link
Author

l12436 commented Oct 8, 2023

Now workaround is using llvmpipe which is /usr/share/vulkan/icd.d/lvp_icd.x86_64.json in my computer

@Lord-McSweeney
Copy link
Collaborator

Unfortunately we can't help without getting some more GPU info. I can use Vulkan fine on my Ubuntu 20.04 install.
Did you try just starting Ruffle without providing it a SWF file (this should open a window with a prompt to open a SWF file)?

@Lord-McSweeney Lord-McSweeney added A-desktop Area: Desktop Application render-wgpu Issues relating to the wgpu renderer labels Oct 8, 2023
@l12436
Copy link
Author

l12436 commented Oct 8, 2023

GPU: Nvidia RTX 3060

open ruffle without swf file will show a screen that has some ruffle settings, it normal, only open swf file will
image

if I using that screen to open a flash, it will only show the first screen of swf file, and no input is working. also the menu bar also not working. the audio has play normally

@Lord-McSweeney
Copy link
Collaborator

Can you upload the specific SWF here (Github doesn't accept SWFs, you'll need to ZIP the file)? Also, can you try running ruffle https://ruffle.rs/assets/logo-anim.swf (the Ruffle animation logo, which is one of the least resource-intensive SWFs I know)?

@l12436
Copy link
Author

l12436 commented Oct 8, 2023

I found out that if you load flash from URL, it will render normal
but if you download it into local file, and run through local file, BUG will shown.
your ruffle logo-anim.swf will also re-produce this issue

Run through local file. command ./ruffle_desktop logo-anim.swf
image
Run through url command ./ruffle_desktop https://ruffle.rs/assets/logo-anim.swf
image

maybe you did not use vulkan when load with url, but use vulkan in local file.

@Lord-McSweeney
Copy link
Collaborator

Lord-McSweeney commented Oct 8, 2023

You can specify the render backend by using the -g option. Can you try testing with -g vulkan and -g gl (opengl)?

@l12436
Copy link
Author

l12436 commented Oct 8, 2023

only -g vulkan work, -g gl will say that "Error: Ruffle requires hardware acceleration, but no compatible graphics device was found supporting Open GL"
which is weird for linux

@sleepycatcoding
Copy link
Member

sleepycatcoding commented Oct 9, 2023

I seem to have the same issue, opening local files, hangs/slows down the whole desktop and does not render anything in the Ruffle window, but opening the same file from a HTTP server, the issue does not appear.

GPU: NVIDIA GeForce GTX 1650 (Driver Version: 525.125.06)
System: Linux Mint 21.2
Kernel: 5.15.0-84-generic

I also bisected the issue and it seems to start with 2dcd783.

There is a similar issue in wgpu repo gfx-rs/wgpu#4180, and that seemed to be fixed by gfx-rs/wgpu#4184, so I think the only thing we need to do is rebase the backport on newer wgpu, since wgpu-hal got bumped to 1.17.2. (Haven't tested yet).

@kreudom
Copy link

kreudom commented Oct 9, 2023

I can confirm that 0.17.2 fixes the issue for me (see also #13422)

@l12436
Copy link
Author

l12436 commented Oct 18, 2023

after ruffle update to wgpu 0.17.2, it now working again with vulkan under nvidia

@sleepycatcoding
Copy link
Member

Fixed by #13561.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-desktop Area: Desktop Application bug Something isn't working render-wgpu Issues relating to the wgpu renderer
Projects
None yet
Development

No branches or pull requests

4 participants