-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Immediate crash on Winit wayland backend and wgpu Vulkan renderer #1618
Comments
no problem on kabylake GT2 with mesa 22.3.1 kernel 5.15 + sway-im-git 1.9 |
if you can run with LIBGL_ALWAYS_SOFTWARE=1. there is problem in sway or mesa . |
I had this problem for a few months on my GNOME desktop. I assumed it was related to my hybrid graphics card setup (Intel+Nvidia), but you only seem to have one card and the same problem. |
There seem to be a few issues reported on Likely using the Iced Presumably it's a driver or wgpu issue rather than something in iced. (Though if other things using wgpu seem to work reliably, that assumption may be wrong.) |
same problem on KDE Plasma Arch Linux |
What GPU(s) do you have? |
NVIDIA GeForce RTX 3060 Laptop GPU |
this sounds like either the screen format is wrong or not supported, its attempting to use wgpu Opengl and missing features, a bad driver for the nvidia, or its using the processors built in GPU over the dedicated GPU. |
Do you also have an integrated GPU? If so, you might be encountering this bug gfx-rs/wgpu#2519. My current "workaround" is to use the integrated GPU. |
Sorry to dredge up an old thread, but how do you use the integrated GPU? Is there a RUSTFLAGS or compile target? |
When you set up your wgpu adapter you can set the power preference to "low" which should pick the integrated GPU. You can also make your application check for the |
Setting the following environment variable made it work for my machine (Sway on Hybrid laptop with Intel + NVIDIA GPU.
I got to this workaround from #1185 I think the problem is in trying to figure out which file to use on hybrid systems with sway |
Same problem here, running anything on my Nvidia GPU. It seem to run on the integrated GPU. And here is my system information (in case it can help solve the problem in the future): OS: Pop!_OS 22.04 LTS x86_64 |
Hi, I fixed it with the following command: export VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json Cheers @AmmarAbouZor |
There also is a potential fix in an upcoming NVIDIA driver (545). See here. |
@Dunckleosteus this is likely an issue with your vulkan and or driver installation. You shouldn't be needing to tell libvulkan where to find icds. |
Hi, thank you for your reply. How should I go about fixing the problem ? This may a be silly question but I am a complete linux beginner. |
This update did indeed fix my problem. I have another unrelated issue now (gfx-rs/wgpu#4627) though. Maybe this issue can be closed unless other folks can still reproduce it? |
Is there an existing issue for this?
Is this issue related to iced?
What happened?
All Iced programs (in the panic sample the game of life example) immediately crash when having vulkan & wayland backends chosen.
Environment:
Sway 1.7
Intel alder lake graphics with Mesa 22.3.1
What is the expected behavior?
The application doesn't crash or errors that vulkan & wayland is an unsupported combination (-> Use x11 & vulkan for actually working experience or wayland & gl for experience where most things excluding images work)
Version
master
Operative System
Linux
Do you have any log output?
The text was updated successfully, but these errors were encountered: