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

Nvidia Driver 545 Breaks Skybox Example on Linux Wayland #4689

Closed
krakow10 opened this issue Nov 15, 2023 · 8 comments
Closed

Nvidia Driver 545 Breaks Skybox Example on Linux Wayland #4689

krakow10 opened this issue Nov 15, 2023 · 8 comments
Labels
api: vulkan Issues with Vulkan area: wsi Issues with swapchain management or windowing external: driver-bug A driver is causing the bug, though we may still want to work around it

Comments

@krakow10
Copy link

Note that this is a duplicate of #4627. I was not able to comment or reopen the issue, so I've created a new issue. I built and tested a6aa3cd and the issue has not been fixed. Works great on NVIDIA 535 driver, broken on NVIDIA 545 driver.

Description
The example only renders one frame. This also affects my application which is based on the skybox example. This is probably an Nvidia driver bug because this driver version reworks many Wayland things.

Repro steps
cargo run --bin skybox

Expected vs observed behavior
Many frames should be rendered per second, but only one is observed once.

Extra materials
None

Platform
OS: Archlinux x86-64
Nvidia Driver: 545.29.02
GPU: 3080 Ti
DE: Hyprland

@cwfitzgerald cwfitzgerald added api: gles Issues with GLES or WebGL area: wsi Issues with swapchain management or windowing type: bug Something isn't working api: vulkan Issues with Vulkan labels Nov 15, 2023
@teoxoy
Copy link
Member

teoxoy commented Nov 21, 2023

545.29.02 seems to still be on the "New Feature Branch"
535.129.03 is the latest on the "Production Branch"

Marking as a driver-bug for now.

@teoxoy teoxoy added external: driver-bug A driver is causing the bug, though we may still want to work around it and removed type: bug Something isn't working labels Nov 21, 2023
@teoxoy
Copy link
Member

teoxoy commented Nov 21, 2023

Is this happening only on Vulkan?

@krakow10
Copy link
Author

krakow10 commented Nov 22, 2023

Testing this commit on 8 configurations: 30d67a3

Nvidia 535.113.01, Vulkan, wayland (Hyprland):
cargo run --bin skybox
works ✅

Nvidia 535.113.01, Vulkan, x11 (xfce):
cargo run --bin skybox
works ✅

Nvidia 545.29.02, Vulkan, wayland (Hyprland):
cargo run --bin skybox
no errors, only one frame is drawn ❌

Nvidia 545.29.02, Vulkan, x11 (xfce):
cargo run --bin skybox
works ✅

I was not able to get OpenGL to run on any combination of 535, 545, x11, or wayland.

Show big errors

Nvidia 535.113.01, OpenGL, wayland (Hyprland):

WGPU_BACKEND=gl cargo run --bin skybox

[quat@quat-desktop wgpu]$ WGPU_BACKEND=gl cargo run --bin skybox
    Finished dev [unoptimized + debuginfo] target(s) in 0.12s
     Running `target/debug/skybox`
[2023-11-22T05:08:46Z INFO  wgpu_example::framework] Initializing wgpu...
[2023-11-22T05:08:46Z INFO  wgpu_example::framework] Using NVIDIA GeForce RTX 3080 Ti/PCIe/SSE2 (Gl)
[2023-11-22T05:08:46Z INFO  wgpu_example::framework] Entering event loop...
[2023-11-22T05:08:46Z INFO  wgpu_example::framework] Surface resume PhysicalSize { width: 800, height: 600 }
thread 'main' panicked at 'Surface isn't supported by the adapter.', examples/common/src/framework.rs:188:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2023-11-22T05:08:46Z ERROR wgpu_hal::gles::egl] EGL 'eglMakeCurrent' code 0x3006: EGL_BAD_CONTEXT error: In eglMakeCurrent: Invalid EGLContext (0x55b25565ae11)
    
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: BadContext', wgpu-hal/src/gles/egl.rs:305:14
stack backtrace:
   0:     0x55b25466a5ea - std::backtrace_rs::backtrace::libunwind::trace::h9a6b80bbf328ba5d
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x55b25466a5ea - std::backtrace_rs::backtrace::trace_unsynchronized::hd162ec543a11886b
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x55b25466a5ea - std::sys_common::backtrace::_print_fmt::h78a5099be12f51a6
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/sys_common/backtrace.rs:65:5
   3:     0x55b25466a5ea - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::ha1c5390454d74f71
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x55b25469019f - core::fmt::write::h9ffde816c577717b
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/fmt/mod.rs:1254:17
   5:     0x55b254667095 - std::io::Write::write_fmt::h88186074961638e4
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/io/mod.rs:1698:15
   6:     0x55b25466a3b5 - std::sys_common::backtrace::_print::h184198273ed08d59
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/sys_common/backtrace.rs:47:5
   7:     0x55b25466a3b5 - std::sys_common::backtrace::print::h1b4d8e7add699453
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/sys_common/backtrace.rs:34:9
   8:     0x55b25466b93e - std::panicking::default_hook::{{closure}}::h393bcea75423915a
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panicking.rs:269:22
   9:     0x55b25466b6e5 - std::panicking::default_hook::h48c64f31d8b3fd03
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panicking.rs:288:9
  10:     0x55b25466be9e - std::panicking::rust_panic_with_hook::hafdc493a79370062
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panicking.rs:691:13
  11:     0x55b25466bd99 - std::panicking::begin_panic_handler::{{closure}}::h0a64bc82e36bedc7
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panicking.rs:582:13
  12:     0x55b25466aa56 - std::sys_common::backtrace::__rust_end_short_backtrace::hc203444fb7416a16
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/sys_common/backtrace.rs:150:18
  13:     0x55b25466baf2 - rust_begin_unwind
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panicking.rs:578:5
  14:     0x55b25337cdd3 - core::panicking::panic_fmt::h0f6ef0178afce4f2
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/panicking.rs:67:14
  15:     0x55b25337d373 - core::result::unwrap_failed::h8090202169109f9c
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/result.rs:1687:5
  16:     0x55b254121a57 - core::result::Result<T,E>::unwrap::h32bb4b6caf08f940
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/result.rs:1089:23
  17:     0x55b2541736fd - wgpu_hal::gles::egl::EglContext::make_current::h854e685d7e243586
                               at /home/quat/git/learnings-rs/wgpu/wgpu-hal/src/gles/egl.rs:303:9
  18:     0x55b25419d262 - wgpu_hal::gles::egl::AdapterContext::lock::{{closure}}::h5875156fca0955d9
                               at /home/quat/git/learnings-rs/wgpu/wgpu-hal/src/gles/egl.rs:417:13
  19:     0x55b25411591e - core::option::Option<T>::map::hace2f44671507d89
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/option.rs:1099:29
  20:     0x55b254173956 - wgpu_hal::gles::egl::AdapterContext::lock::h43bc0774e5d3bf29
                               at /home/quat/git/learnings-rs/wgpu/wgpu-hal/src/gles/egl.rs:416:19
  21:     0x55b2541c830e - wgpu_hal::gles::device::<impl wgpu_hal::Device<wgpu_hal::gles::Api> for wgpu_hal::gles::Device>::destroy_buffer::hd6bd6ef410255963
                               at /home/quat/git/learnings-rs/wgpu/wgpu-hal/src/gles/device.rs:618:23
  22:     0x55b253df3702 - <wgpu_core::device::resource::Device<A> as core::ops::drop::Drop>::drop::h74c1a56dc56a7c1f
                               at /home/quat/git/learnings-rs/wgpu/wgpu-core/src/device/resource.rs:149:13
  23:     0x55b253dce657 - core::ptr::drop_in_place<wgpu_core::device::resource::Device<wgpu_hal::gles::Api>>::h41898970897c46e2
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ptr/mod.rs:490:1
  24:     0x55b253bd2f80 - alloc::sync::Arc<T>::drop_slow::hec7e1c7d01bb6a73
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/alloc/src/sync.rs:1259:18
  25:     0x55b253dd4e06 - <alloc::sync::Arc<T> as core::ops::drop::Drop>::drop::hd8d3578d892e7a76
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/alloc/src/sync.rs:1886:13
  26:     0x55b253db566b - core::ptr::drop_in_place<alloc::sync::Arc<wgpu_core::device::resource::Device<wgpu_hal::gles::Api>>>::ha345171e7c133e67
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ptr/mod.rs:490:1
  27:     0x55b253db8166 - core::ptr::drop_in_place<wgpu_core::storage::Element<wgpu_core::device::resource::Device<wgpu_hal::gles::Api>>>::h400a019c7aefca1f
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ptr/mod.rs:490:1
  28:     0x55b253dba7d0 - core::ptr::drop_in_place<[wgpu_core::storage::Element<wgpu_core::device::resource::Device<wgpu_hal::gles::Api>>]>::hb9931117ac98ac5b
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ptr/mod.rs:490:1
  29:     0x55b253bf9730 - alloc::vec::Vec<T,A>::clear::he7506c0554143443
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/alloc/src/vec/mod.rs:2034:13
  30:     0x55b253eec6b9 - wgpu_core::hub::Hub<A>::clear::hdfcc9e6687b99099
                               at /home/quat/git/learnings-rs/wgpu/wgpu-core/src/hub.rs:267:9
  31:     0x55b253ddc02d - <wgpu_core::global::Global<G> as core::ops::drop::Drop>::drop::h0ffe789afe3323cd
                               at /home/quat/git/learnings-rs/wgpu/wgpu-core/src/global.rs:175:13
  32:     0x55b253dd2f57 - core::ptr::drop_in_place<wgpu_core::global::Global<wgpu_core::identity::IdentityManagerFactory>>::h7ed13e7c145f4866
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ptr/mod.rs:490:1
  33:     0x55b253dc87a4 - core::ptr::drop_in_place<wgpu::backend::direct::Context>::ha95db22cfcbc9cb3
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ptr/mod.rs:490:1
  34:     0x55b253dc8d20 - core::ptr::drop_in_place<dyn wgpu::context::DynContext>::hc2a0ecf8f30fb205
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ptr/mod.rs:490:1
  35:     0x55b253bd247b - alloc::sync::Arc<T>::drop_slow::h15494905ec9b972f
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/alloc/src/sync.rs:1259:18
  36:     0x55b253dd3a3d - <alloc::sync::Arc<T> as core::ops::drop::Drop>::drop::h098bc693f13e1725
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/alloc/src/sync.rs:1886:13
  37:     0x55b253dcc67b - core::ptr::drop_in_place<alloc::sync::Arc<dyn wgpu::context::DynContext>>::h7ae83e44e06f189f
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ptr/mod.rs:490:1
  38:     0x55b253900167 - core::ptr::drop_in_place<wgpu::Queue>::hc5694fe9e6a89861
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ptr/mod.rs:490:1
  39:     0x55b2533a39f7 - core::ptr::drop_in_place<wgpu_example::framework::ExampleContext>::h6fc20f7be7e9ac0d
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ptr/mod.rs:490:1
  40:     0x55b2533a2c69 - core::ptr::drop_in_place<wgpu_example::framework::start<skybox::Example>::{{closure}}::{{closure}}>::h9ecfe17b09ce22a3
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ptr/mod.rs:490:1
  41:     0x55b2533d495d - winit::platform_impl::platform::wayland::event_loop::EventLoop<T>::run_on_demand::h9d5fab1d8a478666
                               at /home/quat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.3/src/platform_impl/linux/wayland/event_loop/mod.rs:221:5
  42:     0x55b25339f82d - winit::platform_impl::platform::EventLoop<T>::run_on_demand::hfb3223e6458bc50d
                               at /home/quat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.3/src/platform_impl/linux/mod.rs:821:56
  43:     0x55b25339f876 - winit::platform_impl::platform::EventLoop<T>::run::h45b9433fa78a9361
                               at /home/quat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.3/src/platform_impl/linux/mod.rs:814:9
  44:     0x55b2533aa507 - winit::event_loop::EventLoop<T>::run::h2d9993d7aea40658
                               at /home/quat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.3/src/event_loop.rs:249:9
  45:     0x55b2533c29de - wgpu_example::framework::start::{{closure}}::h1c8e8b93e281681b
                               at /home/quat/git/learnings-rs/wgpu/examples/common/src/framework.rs:380:13
  46:     0x55b2533c6279 - pollster::block_on::h9d027fd586984fa1
                               at /home/quat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pollster-0.3.0/src/lib.rs:128:15
  47:     0x55b2533c233d - wgpu_example::framework::run::h959700d62e3c2fef
                               at /home/quat/git/learnings-rs/wgpu/examples/common/src/framework.rs:467:13
  48:     0x55b2533b9de2 - skybox::main::h6f718839b0b6f983
                               at /home/quat/git/learnings-rs/wgpu/examples/skybox/src/main.rs:460:5
  49:     0x55b2533a22eb - core::ops::function::FnOnce::call_once::h1ac7b537d490aea1
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ops/function.rs:250:5
  50:     0x55b2533988de - std::sys_common::backtrace::__rust_begin_short_backtrace::h4a9da20eb2ba9cc4
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/sys_common/backtrace.rs:134:18
  51:     0x55b2533c8c01 - std::rt::lang_start::{{closure}}::h08684f8b9acd001c
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/rt.rs:166:18
  52:     0x55b2546623fe - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::hb1327dc2ef3fecdf
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ops/function.rs:287:13
  53:     0x55b2546623fe - std::panicking::try::do_call::h4044173225fe83dd
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panicking.rs:485:40
  54:     0x55b2546623fe - std::panicking::try::hd8a722c09d156a53
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panicking.rs:449:19
  55:     0x55b2546623fe - std::panic::catch_unwind::hd2ca07971cf0119b
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panic.rs:140:14
  56:     0x55b2546623fe - std::rt::lang_start_internal::{{closure}}::h26d89d595cf47b70
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/rt.rs:148:48
  57:     0x55b2546623fe - std::panicking::try::do_call::hf47aa1aa005e5f1a
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panicking.rs:485:40
  58:     0x55b2546623fe - std::panicking::try::h73d246b2423eaf4e
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panicking.rs:449:19
  59:     0x55b2546623fe - std::panic::catch_unwind::hbaaeae8f1b2f9915
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panic.rs:140:14
  60:     0x55b2546623fe - std::rt::lang_start_internal::h76f3e81e6b8f13f9
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/rt.rs:148:20
  61:     0x55b2533c8bda - std::rt::lang_start::hf0f78026e0df610d
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/rt.rs:165:17
  62:     0x55b2533b9e0e - main
  63:     0x7f841f845cd0 - <unknown>
  64:     0x7f841f845d8a - __libc_start_main
  65:     0x55b25337e005 - _start
  66:                0x0 - <unknown>
thread panicked while panicking. aborting.
Aborted (core dumped)

Nvidia 535.113.01, OpenGL, x11 (xfce):

WGPU_BACKEND=gl cargo run --bin skybox


[quat@quat-desktop wgpu]$ WGPU_BACKEND=gl cargo run --bin skybox
    Finished dev [unoptimized + debuginfo] target(s) in 0.12s
     Running `target/debug/skybox`
[2023-11-22T05:11:31Z INFO  winit::platform_impl::platform::x11::window] Guessed window scale factor: 1.1666666666666667
[2023-11-22T05:11:31Z INFO  wgpu_example::framework] Initializing wgpu...
[2023-11-22T05:11:31Z INFO  wgpu_example::framework] Using NVIDIA GeForce RTX 3080 Ti/PCIe/SSE2 (Gl)
[2023-11-22T05:11:31Z INFO  wgpu_example::framework] Entering event loop...
[2023-11-22T05:11:31Z INFO  wgpu_example::framework] Surface resume PhysicalSize { width: 800, height: 600 }
thread 'main' panicked at 'Surface isn't supported by the adapter.', examples/common/src/framework.rs:188:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Nvidia 545.29.02, OpenGL, wayland (Hyprland):

WGPU_BACKEND=gl cargo run --bin skybox

[quat@quat-desktop wgpu]$ WGPU_BACKEND=gl cargo run --bin skybox
    Finished dev [unoptimized + debuginfo] target(s) in 0.12s
     Running `target/debug/skybox`
[2023-11-22T05:23:24Z INFO  wgpu_example::framework] Initializing wgpu...
[2023-11-22T05:23:25Z INFO  wgpu_example::framework] Using NVIDIA GeForce RTX 3080 Ti/PCIe/SSE2 (Gl)
[2023-11-22T05:23:25Z INFO  wgpu_example::framework] Entering event loop...
[2023-11-22T05:23:25Z INFO  wgpu_example::framework] Surface resume PhysicalSize { width: 800, height: 600 }
thread 'main' panicked at 'Surface isn't supported by the adapter.', examples/common/src/framework.rs:188:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2023-11-22T05:23:25Z ERROR wgpu_hal::gles::egl] EGL 'eglMakeCurrent' code 0x3006: EGL_BAD_CONTEXT error: In eglMakeCurrent: Invalid EGLContext (0x556484ea2a91)
    
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: BadContext', wgpu-hal/src/gles/egl.rs:305:14
stack backtrace:
   0:     0x5564844e75ea - std::backtrace_rs::backtrace::libunwind::trace::h9a6b80bbf328ba5d
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x5564844e75ea - std::backtrace_rs::backtrace::trace_unsynchronized::hd162ec543a11886b
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x5564844e75ea - std::sys_common::backtrace::_print_fmt::h78a5099be12f51a6
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/sys_common/backtrace.rs:65:5
   3:     0x5564844e75ea - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::ha1c5390454d74f71
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x55648450d19f - core::fmt::write::h9ffde816c577717b
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/fmt/mod.rs:1254:17
   5:     0x5564844e4095 - std::io::Write::write_fmt::h88186074961638e4
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/io/mod.rs:1698:15
   6:     0x5564844e73b5 - std::sys_common::backtrace::_print::h184198273ed08d59
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/sys_common/backtrace.rs:47:5
   7:     0x5564844e73b5 - std::sys_common::backtrace::print::h1b4d8e7add699453
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/sys_common/backtrace.rs:34:9
   8:     0x5564844e893e - std::panicking::default_hook::{{closure}}::h393bcea75423915a
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panicking.rs:269:22
   9:     0x5564844e86e5 - std::panicking::default_hook::h48c64f31d8b3fd03
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panicking.rs:288:9
  10:     0x5564844e8e9e - std::panicking::rust_panic_with_hook::hafdc493a79370062
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panicking.rs:691:13
  11:     0x5564844e8d99 - std::panicking::begin_panic_handler::{{closure}}::h0a64bc82e36bedc7
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panicking.rs:582:13
  12:     0x5564844e7a56 - std::sys_common::backtrace::__rust_end_short_backtrace::hc203444fb7416a16
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/sys_common/backtrace.rs:150:18
  13:     0x5564844e8af2 - rust_begin_unwind
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panicking.rs:578:5
  14:     0x5564831f9dd3 - core::panicking::panic_fmt::h0f6ef0178afce4f2
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/panicking.rs:67:14
  15:     0x5564831fa373 - core::result::unwrap_failed::h8090202169109f9c
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/result.rs:1687:5
  16:     0x556483f9ea57 - core::result::Result<T,E>::unwrap::h32bb4b6caf08f940
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/result.rs:1089:23
  17:     0x556483ff06fd - wgpu_hal::gles::egl::EglContext::make_current::h854e685d7e243586
                               at /home/quat/git/learnings-rs/wgpu/wgpu-hal/src/gles/egl.rs:303:9
  18:     0x55648401a262 - wgpu_hal::gles::egl::AdapterContext::lock::{{closure}}::h5875156fca0955d9
                               at /home/quat/git/learnings-rs/wgpu/wgpu-hal/src/gles/egl.rs:417:13
  19:     0x556483f9291e - core::option::Option<T>::map::hace2f44671507d89
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/option.rs:1099:29
  20:     0x556483ff0956 - wgpu_hal::gles::egl::AdapterContext::lock::h43bc0774e5d3bf29
                               at /home/quat/git/learnings-rs/wgpu/wgpu-hal/src/gles/egl.rs:416:19
  21:     0x55648404530e - wgpu_hal::gles::device::<impl wgpu_hal::Device<wgpu_hal::gles::Api> for wgpu_hal::gles::Device>::destroy_buffer::hd6bd6ef410255963
                               at /home/quat/git/learnings-rs/wgpu/wgpu-hal/src/gles/device.rs:618:23
  22:     0x556483c70702 - <wgpu_core::device::resource::Device<A> as core::ops::drop::Drop>::drop::h74c1a56dc56a7c1f
                               at /home/quat/git/learnings-rs/wgpu/wgpu-core/src/device/resource.rs:149:13
  23:     0x556483c4b657 - core::ptr::drop_in_place<wgpu_core::device::resource::Device<wgpu_hal::gles::Api>>::h41898970897c46e2
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ptr/mod.rs:490:1
  24:     0x556483a4ff80 - alloc::sync::Arc<T>::drop_slow::hec7e1c7d01bb6a73
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/alloc/src/sync.rs:1259:18
  25:     0x556483c51e06 - <alloc::sync::Arc<T> as core::ops::drop::Drop>::drop::hd8d3578d892e7a76
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/alloc/src/sync.rs:1886:13
  26:     0x556483c3266b - core::ptr::drop_in_place<alloc::sync::Arc<wgpu_core::device::resource::Device<wgpu_hal::gles::Api>>>::ha345171e7c133e67
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ptr/mod.rs:490:1
  27:     0x556483c35166 - core::ptr::drop_in_place<wgpu_core::storage::Element<wgpu_core::device::resource::Device<wgpu_hal::gles::Api>>>::h400a019c7aefca1f
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ptr/mod.rs:490:1
  28:     0x556483c377d0 - core::ptr::drop_in_place<[wgpu_core::storage::Element<wgpu_core::device::resource::Device<wgpu_hal::gles::Api>>]>::hb9931117ac98ac5b
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ptr/mod.rs:490:1
  29:     0x556483a76730 - alloc::vec::Vec<T,A>::clear::he7506c0554143443
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/alloc/src/vec/mod.rs:2034:13
  30:     0x556483d696b9 - wgpu_core::hub::Hub<A>::clear::hdfcc9e6687b99099
                               at /home/quat/git/learnings-rs/wgpu/wgpu-core/src/hub.rs:267:9
  31:     0x556483c5902d - <wgpu_core::global::Global<G> as core::ops::drop::Drop>::drop::h0ffe789afe3323cd
                               at /home/quat/git/learnings-rs/wgpu/wgpu-core/src/global.rs:175:13
  32:     0x556483c4ff57 - core::ptr::drop_in_place<wgpu_core::global::Global<wgpu_core::identity::IdentityManagerFactory>>::h7ed13e7c145f4866
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ptr/mod.rs:490:1
  33:     0x556483c457a4 - core::ptr::drop_in_place<wgpu::backend::direct::Context>::ha95db22cfcbc9cb3
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ptr/mod.rs:490:1
  34:     0x556483c45d20 - core::ptr::drop_in_place<dyn wgpu::context::DynContext>::hc2a0ecf8f30fb205
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ptr/mod.rs:490:1
  35:     0x556483a4f47b - alloc::sync::Arc<T>::drop_slow::h15494905ec9b972f
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/alloc/src/sync.rs:1259:18
  36:     0x556483c50a3d - <alloc::sync::Arc<T> as core::ops::drop::Drop>::drop::h098bc693f13e1725
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/alloc/src/sync.rs:1886:13
  37:     0x556483c4967b - core::ptr::drop_in_place<alloc::sync::Arc<dyn wgpu::context::DynContext>>::h7ae83e44e06f189f
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ptr/mod.rs:490:1
  38:     0x55648377d167 - core::ptr::drop_in_place<wgpu::Queue>::hc5694fe9e6a89861
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ptr/mod.rs:490:1
  39:     0x5564832209f7 - core::ptr::drop_in_place<wgpu_example::framework::ExampleContext>::h6fc20f7be7e9ac0d
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ptr/mod.rs:490:1
  40:     0x55648321fc69 - core::ptr::drop_in_place<wgpu_example::framework::start<skybox::Example>::{{closure}}::{{closure}}>::h9ecfe17b09ce22a3
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ptr/mod.rs:490:1
  41:     0x55648325195d - winit::platform_impl::platform::wayland::event_loop::EventLoop<T>::run_on_demand::h9d5fab1d8a478666
                               at /home/quat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.3/src/platform_impl/linux/wayland/event_loop/mod.rs:221:5
  42:     0x55648321c82d - winit::platform_impl::platform::EventLoop<T>::run_on_demand::hfb3223e6458bc50d
                               at /home/quat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.3/src/platform_impl/linux/mod.rs:821:56
  43:     0x55648321c876 - winit::platform_impl::platform::EventLoop<T>::run::h45b9433fa78a9361
                               at /home/quat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.3/src/platform_impl/linux/mod.rs:814:9
  44:     0x556483227507 - winit::event_loop::EventLoop<T>::run::h2d9993d7aea40658
                               at /home/quat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.3/src/event_loop.rs:249:9
  45:     0x55648323f9de - wgpu_example::framework::start::{{closure}}::h1c8e8b93e281681b
                               at /home/quat/git/learnings-rs/wgpu/examples/common/src/framework.rs:380:13
  46:     0x556483243279 - pollster::block_on::h9d027fd586984fa1
                               at /home/quat/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pollster-0.3.0/src/lib.rs:128:15
  47:     0x55648323f33d - wgpu_example::framework::run::h959700d62e3c2fef
                               at /home/quat/git/learnings-rs/wgpu/examples/common/src/framework.rs:467:13
  48:     0x556483236de2 - skybox::main::h6f718839b0b6f983
                               at /home/quat/git/learnings-rs/wgpu/examples/skybox/src/main.rs:460:5
  49:     0x55648321f2eb - core::ops::function::FnOnce::call_once::h1ac7b537d490aea1
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ops/function.rs:250:5
  50:     0x5564832158de - std::sys_common::backtrace::__rust_begin_short_backtrace::h4a9da20eb2ba9cc4
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/sys_common/backtrace.rs:134:18
  51:     0x556483245c01 - std::rt::lang_start::{{closure}}::h08684f8b9acd001c
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/rt.rs:166:18
  52:     0x5564844df3fe - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::hb1327dc2ef3fecdf
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/core/src/ops/function.rs:287:13
  53:     0x5564844df3fe - std::panicking::try::do_call::h4044173225fe83dd
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panicking.rs:485:40
  54:     0x5564844df3fe - std::panicking::try::hd8a722c09d156a53
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panicking.rs:449:19
  55:     0x5564844df3fe - std::panic::catch_unwind::hd2ca07971cf0119b
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panic.rs:140:14
  56:     0x5564844df3fe - std::rt::lang_start_internal::{{closure}}::h26d89d595cf47b70
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/rt.rs:148:48
  57:     0x5564844df3fe - std::panicking::try::do_call::hf47aa1aa005e5f1a
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panicking.rs:485:40
  58:     0x5564844df3fe - std::panicking::try::h73d246b2423eaf4e
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panicking.rs:449:19
  59:     0x5564844df3fe - std::panic::catch_unwind::hbaaeae8f1b2f9915
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/panic.rs:140:14
  60:     0x5564844df3fe - std::rt::lang_start_internal::h76f3e81e6b8f13f9
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/rt.rs:148:20
  61:     0x556483245bda - std::rt::lang_start::hf0f78026e0df610d
                               at /rustc/90c541806f23a127002de5b4038be731ba1458ca/library/std/src/rt.rs:165:17
  62:     0x556483236e0e - main
  63:     0x7fe117933cd0 - <unknown>
  64:     0x7fe117933d8a - __libc_start_main
  65:     0x5564831fb005 - _start
  66:                0x0 - <unknown>
thread panicked while panicking. aborting.
Aborted (core dumped)

Nvidia 545.29.02, OpenGL, x11 (xfce):

WGPU_BACKEND=gl cargo run --bin skybox

[quat@quat-desktop wgpu]$ WGPU_BACKEND=gl cargo run --bin skybox
    Finished dev [unoptimized + debuginfo] target(s) in 0.46s
     Running `target/debug/skybox`
[2023-11-22T05:19:52Z INFO  winit::platform_impl::platform::x11::window] Guessed window scale factor: 1.1666666666666667
[2023-11-22T05:19:52Z INFO  wgpu_example::framework] Initializing wgpu...
[2023-11-22T05:19:52Z INFO  wgpu_example::framework] Using NVIDIA GeForce RTX 3080 Ti/PCIe/SSE2 (Gl)
[2023-11-22T05:19:53Z INFO  wgpu_example::framework] Entering event loop...
[2023-11-22T05:19:53Z INFO  wgpu_example::framework] Surface resume PhysicalSize { width: 800, height: 600 }
thread 'main' panicked at 'Surface isn't supported by the adapter.', examples/common/src/framework.rs:188:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

@teoxoy teoxoy removed the api: gles Issues with GLES or WebGL label Nov 22, 2023
@teoxoy
Copy link
Member

teoxoy commented Nov 22, 2023

Thanks for all the info!

Regarding GL not working, could you try again with RUST_LOG=trace and report your findings in a new issue?

@krakow10
Copy link
Author

The rewritten skybox example cargo run --bin wgpu-examples skybox appears to work on nvidia 550, but I have not tested if it works on 545. My game is still broken, but that's a me problem.

@krakow10
Copy link
Author

krakow10 commented Jan 24, 2024

I just reran the example while live streaming, and it is frozen like the original issue! I don't know what's going on here.

Edit: I tried several more times and rebooted but could not get it to work again.

@krakow10 krakow10 reopened this Jan 24, 2024
@krakow10
Copy link
Author

krakow10 commented Feb 9, 2024

Some information was posted about this on the nvidia forum:
https://forums.developer.nvidia.com/t/wgpu-driver-bug/280420
Summary is that a fix will be available not on the first, but the second stable release of the 550 driver branch, which is currently in beta.

@krakow10
Copy link
Author

As promised, 550.67 has fixed this issue. You can even see it in the release notes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: vulkan Issues with Vulkan area: wsi Issues with swapchain management or windowing external: driver-bug A driver is causing the bug, though we may still want to work around it
Projects
None yet
Development

No branches or pull requests

3 participants