-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
egui/eframe using wgpu/GL panics at startup after upgrade to v0.22 #3068
Comments
Update: I figured out that the issue is specifically with the GL backend of wgpu. Indeed, setting options.wgpu_options.supported_backends = eframe::wgpu::Backends::GL; results in the observed behavior, whereas setting options.wgpu_options.supported_backends = eframe::wgpu::Backends::VULKAN; does not ( On the current main branch of wgpu, running
confirms that we're running on the GL backend,
and shows the cube without panicking, so again I don't believe that the problem is upstream. |
I traced back this issue to commit 870264b, specifically to the line egui/crates/egui-wgpu/src/winit.rs Line 142 in 073f496
If I revert the change and remove |
It turns out that this issue does not depend on the Nvidia graphics card: I'm not able to run egui apps with wgpu on the GL backend also on a Debian 12 and on a Fedora 38 VM (on a host with an AMD GPU). Previously I thought it worked on them, but I just realized that wgpu had automatically selected Vulkan as its backend there. Using
At this point, this issue has been reported by other applications that use egui (fralonra/wgshadertoy#3). Is anybody able to run egui 0.22 with wgpu on the GL backend? Could the original authors of the commit (@emilk and @amfaber) comment on how we can make the GL backend work again with the |
Thanks for bring this to my attention, great detective work! |
Tested the PR, seems to work now (as far as the panic is concerned)! Thank you for the quick reply! |
However, nevermind about fralonra/wgshadertoy#3: I had a look at their code and while they're using egui, it looks like they're implementing the wgpu initialization logic themselves, and that issue – which is the same as this one with (macOS, Metal, |
Hi, thanks for mentioning the issue. WgShadertoy is using |
Describe the bug
On an Nvidia graphics card (NVIDIA Corporation GK107M [GeForce GT 750M Mac Edition]), every egui/eframe app panics at startup with an
'Error in Surface::configure: Validation Error
, caused byRequested usage is not supported
, when using wgpu. This didn't happen before the upgrade to v0.22.To Reproduce
Steps to reproduce the behavior:
Renderer::Wgpu
to eframe'sNativeOptions
Expected behavior
The application should not panic.
Screenshots
Desktop (please complete the following information):
Additional context
The error and backtrace I see e.g. with the hello_world example on Wayland is
The details of the graphics card via
lspci -vv
:In case you are wondering, yes, I'm running Ubuntu on Apple hardware (Intel, no VMs). I understand this is not a common hardware/software combination, but then, again, everything used to work (and still does) up until v0.22. Enabling the "wayland" feature in eframe does not help, nor does it help switching to X11.
I tend to believe this is not an upstream bug, as the wgpu examples run seamlessly on the same graphics card. I am willing to provide any other useful information.
The text was updated successfully, but these errors were encountered: