gfx-rs / wgpu

A cross-platform, safe, pure-Rust graphics API.
https://wgpu.rs
Apache License 2.0
12.68k stars 929 forks source link

Panic at unreachable #6159

Open edwloef opened 2 months ago

edwloef commented 2 months ago

Description Panic at an unreachable in wgpu-core/src/device/global.rs, line 1859: unreachable!("Fallback system failed to choose present mode. This is a bug. Mode: {:?}, Options: {:?}", config.present_mode, &caps.present_modes);

Repro steps Run an iced application, e.g. https://github.com/edwloef/iced-text-editor, in a wayland compositor that supports explicit sync with an nvidia gpu.

Expected vs observed behavior Expected: no crash Observed: crash

Extra materials backtrace: https://pastebin.com/N77ge13a This may be an oopsie on nvidia's part, but maybe an issue to document the bug could be useful?

Platform linux 6.10.6, nvidia-open 560.35.03, wgpu-core 0.19.4

RuofengX commented 5 days ago

same issue. I am running ggez engine demo, so I think it is a hardware releated issue.

wl_surface#25: error 2: Buffer size (553x45) must be an integer multiple of the buffer_scale (2).
thread 'main' panicked at /home/ruofeng/.cargo/registry/src/rsproxy.cn-0dccff568467c15b/wgpu-core-0.16.1/src/device/mod.rs:5384:21:
internal error: entered unreachable code: Fallback system failed to choose present mode. This is a bug. Mode: AutoVsync, Options: []