Unknown segmentation fault throwed on the Intel driver #2027
Labels
api: vulkan
Issues with Vulkan
external: driver-bug
A driver is causing the bug, though we may still want to work around it
Description
Hi, i'm running WGpu 0.9 in a project to write a Wayland compositor. I have designed various parts, including the windowing library and the engine. I have designed a task for my engine simply called
screen_task
that should fit the role of the compositor, from a graphic point of view. Unfortunately running it throws a segmentation fault error, that is actually unexpected since i use no unsafe code in any of my library.Running the code into
rust-lldb
and catching the backtrace result into this:This error seems to affect only the Intel gpu, the Nvidia one is not affected (still do not work because it is a work in progress, but do not throw segmentation fault).
Repro steps
It is possible to run the code by cloning https://github.com/Uniformbuffer3/screen_task and run it with:
RUST_LOG=info cargo run --release --no-default-features --features wgpu_standard_backend
If you run it as debug, the crashing component will be a validation layer, while if runned as release it will return the above error.
The selected feature make the whole project to be configured using the standard WGpu 0.9, and not my fork.
Also when RUST_LOG is used at level info (at least), the engine will print some debug info that may be helpful, but i don't know how much since i still have to write the documentation for the whole project, and i'm very sorry for this. I have started to write it, so meanwhile, please ask for any doubt.
Expected vs observed behavior
The
screen_task
, runned as it is, have no surface to draw yet, so it should simply show a black window (or crash for something yet to be implemented), but i expect it to not throws segmentation fault.Platform
OS: Pop!_OS 21.04 x86_64
Kernel: 5.13.0-7614-generic
CPU: Intel i5-4200M (4) @ 3.100GHz
GPU: Nvidia GTX850m (not running for this test)
Please ask if you require any additional data.
Thanks for listening, have a good day
The text was updated successfully, but these errors were encountered: