-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
area: correctnessWe're behaving incorrectlyWe're behaving incorrectlybackend: metalIssues with MetalIssues with Metalplatform: macosIssues with integration with macosIssues with integration with macostype: bugSomething isn't workingSomething isn't working
Description
Description
RequestDeviceError { inner: Core(Device(Lost)) } on macOS Monterey 12.7.6 since wgpu 25
Repro steps
- For the current wgpu 27.0.0:
cd examples/standalone/02_hello_window/
cargo runcrashed
- For wgpu 25.0.2
cd examples/standalone/02_hello_window/
# set wgpu version to `25.0.2` in `Cargo.toml` and fix some version compatible issues in `src/main.rs`
vim Cargo.toml
vim src/main.rs
cargo runcrashed too
- For wgpu 24.0.5
cd examples/standalone/02_hello_window/
# set wgpu version to `24.0.5` in `Cargo.toml` and fix some version compatible issues in `src/main.rs`
vim Cargo.toml
vim src/main.rs
cargo runIt works!
Expected vs observed behavior
- expected: show the hello window.
- observed behavior: crashed
Extra materials
crashed console log when using wgpu 25.0.2:
[2025-12-04T11:16:45Z ERROR wgpu_core::indirect_validation] indirect-draw-validation error: ComputePipeline(Internal("new_compute_pipeline_state: \"Compiler encountered an internal error\""))
thread 'main' panicked at examples/standalone/02_hello_window/src/main.rs:30:14:
called `Result::unwrap()` on an `Err` value: RequestDeviceError { inner: Core(Device(Lost)) }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at library/core/src/panicking.rs:226:5:
panic in a function that cannot unwind
stack backtrace:
0: 0x106ec719e - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h9d61884e08d3316c
1: 0x106ee2873 - core::fmt::write::ha7e42c8550512cfb
2: 0x106ec5182 - std::io::Write::write_fmt::h8dd7e3932392f4be
3: 0x106ec6fe2 - std::sys::backtrace::BacktraceLock::print::h972ba80fe25d05e0
4: 0x106ec8180 - std::panicking::default_hook::{{closure}}::h05218cad2d40e027
5: 0x106ec7f8b - std::panicking::default_hook::hd9c10aab77439366
6: 0x106ec8d12 - std::panicking::rust_panic_with_hook::hb1fd245af5672dcd
7: 0x106ec8905 - std::panicking::begin_panic_handler::{{closure}}::hf868e10834208483
8: 0x106ec7669 - std::sys::backtrace::__rust_end_short_backtrace::haac0e906ed75717a
9: 0x106ec8574 - __rustc[4794b31dd7191200]::rust_begin_unwind
10: 0x106f35664 - core::panicking::panic_nounwind_fmt::h82bea23087e0bb7b
11: 0x106f3570a - core::panicking::panic_nounwind::h1486263b15958903
12: 0x106f35870 - core::panicking::panic_cannot_unwind::hee35ed8b73b78d65
13: 0x106e406a7 - winit::platform_impl::macos::app_state::ApplicationDelegate::app_did_finish_launching::h66e3a4163fa8a32b
14: 0x7ff8088ee68c - <unknown>
15: 0x7ff80898baa2 - <unknown>
16: 0x7ff80898ba20 - <unknown>
17: 0x7ff8088c02f8 - <unknown>
18: 0x7ff8096ff58e - <unknown>
19: 0x7ff80b33e357 - <unknown>
20: 0x7ff80b33e0a7 - <unknown>
21: 0x7ff80b33bc78 - <unknown>
22: 0x7ff80b33b8cf - <unknown>
23: 0x7ff80972a4b4 - <unknown>
24: 0x7ff80972a326 - <unknown>
25: 0x7ff80efb4484 - <unknown>
26: 0x7ff80efb3cee - <unknown>
27: 0x7ff80efad343 - <unknown>
28: 0x7ff8115bace2 - <unknown>
29: 0x7ff80b335efe - <unknown>
30: 0x7ff80b334166 - <unknown>
31: 0x7ff80b326818 - <unknown>
32: 0x106e81030 - <() as objc2::encode::EncodeArguments>::__invoke::ha357c07c2bdc9829
33: 0x106e82229 - objc2::runtime::message_receiver::msg_send_primitive::send::hd5770ed9d5632cb3
34: 0x106e7b4b0 - objc2::runtime::message_receiver::MessageReceiver::send_message::heaf4617f01fdec04
35: 0x106e78562 - objc2::__macro_helpers::msg_send::MsgSend::send_message::h19878b2b5e408999
36: 0x106e79037 - objc2_app_kit::generated::__NSApplication::NSApplication::run::h37b9d5b70ef0f8f9
37: 0x10653d5cd - winit::platform_impl::macos::event_loop::EventLoop<T>::run_on_demand::{{closure}}::{{closure}}::h00e3714f577fb659
38: 0x10653ab51 - objc2::rc::autorelease::autoreleasepool::hc75c641b8c89a013
39: 0x10653d528 - winit::platform_impl::macos::event_loop::EventLoop<T>::run_on_demand::{{closure}}::h20f2b68ae0fb6faa
40: 0x106543670 - winit::platform_impl::macos::event_handler::EventHandler::set::hc804433777d998ce
41: 0x10653a948 - winit::platform_impl::macos::app_state::ApplicationDelegate::set_event_handler::hfbe70d70740bbdc8
42: 0x10653d4c1 - winit::platform_impl::macos::event_loop::EventLoop<T>::run_on_demand::h18c249c86be81752
43: 0x10653dad8 - winit::platform_impl::macos::event_loop::EventLoop<T>::run::he2f1b0233be81f91
44: 0x106535203 - winit::event_loop::EventLoop<T>::run_app::ha43baf02038264f7
45: 0x10654185c - wgpu_example_02_hello_window::main::h421a001d6a4f02ce
46: 0x106538eba - core::ops::function::FnOnce::call_once::h30ff3e54098a6a71
47: 0x106535959 - std::sys::backtrace::__rust_begin_short_backtrace::h843c95c65c813b87
48: 0x106540a7c - std::rt::lang_start::{{closure}}::hfba804a84d81998b
49: 0x106ec03be - std::rt::lang_start_internal::ha8dd1a9b824efcda
50: 0x106540a68 - std::rt::lang_start::h38c41b6c3364c8d9
51: 0x106541a08 - _main
thread caused non-unwinding panic. aborting.
Platform
From output of fastfetch 2.55.1 (x86_64):
- OS: macOS Monterey 12.7.6 (21H1320) x86_64
- Host: MacBook Pro (Retina, 15-inch, Mid 2015)
- Kernel: Darwin 21.6.0
- CPU: Intel(R) Core(TM) i7-4770HQ (8) @ 2.20 GHz
- GPU: Intel Iris Pro
Metadata
Metadata
Assignees
Labels
area: correctnessWe're behaving incorrectlyWe're behaving incorrectlybackend: metalIssues with MetalIssues with Metalplatform: macosIssues with integration with macosIssues with integration with macostype: bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done