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

The latest wgpu commit caused a validation error on macOS #2458

Closed
jinleili opened this issue Feb 6, 2022 · 0 comments · Fixed by #2459
Closed

The latest wgpu commit caused a validation error on macOS #2458

jinleili opened this issue Feb 6, 2022 · 0 comments · Fixed by #2459

Comments

@jinleili
Copy link
Contributor

jinleili commented Feb 6, 2022

Description
Testing commit 3c3fbe8 is ok, validation error appears at 3e0305d

   Running `/Users/lijinlei/Rust/wgpu/target/debug/examples/boids`
Using Apple M1 Max (Metal)
[2022-02-06T00:20:55Z ERROR wgpu::backend::direct] Handling wgpu errors as fatal by default
thread 'main' panicked at 'wgpu error: Validation Error

Caused by:
    In Device::create_compute_pipeline
      note: label = `Compute pipeline`
    Internal error: mapping of ResourceBinding { group: 0, binding: 1 } is missing

', wgpu/src/backend/direct.rs:2273:5
Full backtrace:

[2022-02-06T00:20:55Z ERROR wgpu::backend::direct] Handling wgpu errors as fatal by default
thread 'main' panicked at 'wgpu error: Validation Error

Caused by:
In Device::create_compute_pipeline
note: label = Compute pipeline
Internal error: mapping of ResourceBinding { group: 0, binding: 1 } is missing

', wgpu/src/backend/direct.rs:2273:5
stack backtrace:
0: 0x10150c054 - std::backtrace_rs::backtrace::libunwind::trace::h6812f5c12d344a73
at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
1: 0x10150c054 - std::backtrace_rs::backtrace::trace_unsynchronized::he7a14c6fb88ae25c
at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x10150c054 - std::sys_common::backtrace::_print_fmt::h78452774aba0536d
at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/std/src/sys_common/backtrace.rs:67:5
3: 0x10150c054 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h98d8e939df2a84c8
at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/std/src/sys_common/backtrace.rs:46:22
4: 0x101525278 - core::fmt::write::ha8927896f8d44e8d
at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/core/src/fmt/mod.rs:1149:17
5: 0x1015092a0 - std::io::Write::write_fmt::h5be52fc0ae77f963
at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/std/src/io/mod.rs:1697:15
6: 0x10150d674 - std::sys_common::backtrace::_print::h541db45a3e9ffe20
at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/std/src/sys_common/backtrace.rs:49:5
7: 0x10150d674 - std::sys_common::backtrace::print::h29b0c38967f00a1d
at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/std/src/sys_common/backtrace.rs:36:9
8: 0x10150d674 - std::panicking::default_hook::{{closure}}::h7ab34c9d6fd8d067
at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/std/src/panicking.rs:211:50
9: 0x10150d254 - std::panicking::default_hook::h6507a23c659c2199
at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/std/src/panicking.rs:228:9
10: 0x10150dcb4 - std::panicking::rust_panic_with_hook::h032de7ae9e9d479f
at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/std/src/panicking.rs:606:17
11: 0x10150d800 - std::panicking::begin_panic_handler::{{closure}}::ha7b561c0fbbe4ae5
at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/std/src/panicking.rs:502:13
12: 0x10150c514 - std::sys_common::backtrace::__rust_end_short_backtrace::h0ff1db7619f9e51e
at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/std/src/sys_common/backtrace.rs:139:18
13: 0x10150d768 - rust_begin_unwind
at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/std/src/panicking.rs:498:5
14: 0x1015374a8 - core::panicking::panic_fmt::h660aa0926f67c6d3
at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/core/src/panicking.rs:107:14
15: 0x1011629cc - wgpu::backend::direct::default_error_handler::h8328a20cf19a5e1a
at /Users/lijinlei/Rust/wgpu/wgpu/src/backend/direct.rs:2273:5
16: 0x101184420 - core::ops::function::Fn::call::h0b499b903ecc90b3
at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/core/src/ops/function.rs:70:5
17: 0x1011a453c - <alloc::boxed::Box<F,A> as core::ops::function::Fn>::call::h4850c5ab615a7476
at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/alloc/src/boxed.rs:1708:9
18: 0x10116278c - wgpu::backend::direct::ErrorSinkRaw::handle_error::hf1d79aa9cb301480
at /Users/lijinlei/Rust/wgpu/wgpu/src/backend/direct.rs:2259:17
19: 0x1012325c4 - wgpu::backend::direct::Context::handle_error::h0817514aab6253f6
at /Users/lijinlei/Rust/wgpu/wgpu/src/backend/direct.rs:194:9
20: 0x1011604a0 - <wgpu::backend::direct::Context as wgpu::Context>::device_create_compute_pipeline::h81b5dd8d53fb9c73
at /Users/lijinlei/Rust/wgpu/wgpu/src/backend/direct.rs:1364:13
21: 0x10117a3ac - wgpu::Device::create_compute_pipeline::hb8177dd6d5419da9
at /Users/lijinlei/Rust/wgpu/wgpu/src/lib.rs:1813:17
22: 0x100f537b8 - <boids::Example as boids::framework::Example>::init::hb53258b75e953b21
at /Users/lijinlei/Rust/wgpu/wgpu/examples/boids/main.rs:167:32
23: 0x100f49e14 - boids::framework::start::h9710819adcbfd28c
at /Users/lijinlei/Rust/wgpu/wgpu/examples/boids/../framework.rs:219:23
24: 0x100f4a9a4 - boids::framework::run::hfb141ee2a4f2a4e4
at /Users/lijinlei/Rust/wgpu/wgpu/examples/boids/../framework.rs:386:5
25: 0x100f54634 - boids::main::hd52ee32d74c537ca
at /Users/lijinlei/Rust/wgpu/wgpu/examples/boids/main.rs:332:5
26: 0x100f5a828 - core::ops::function::FnOnce::call_once::hfd363c697d9b85c0
at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/core/src/ops/function.rs:227:5
27: 0x100f472bc - std::sys_common::backtrace::__rust_begin_short_backtrace::hcaac014be2ef406f
at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/std/src/sys_common/backtrace.rs:123:18
28: 0x100f447c4 - std::rt::lang_start::{{closure}}::hc9abd3f3189eb4c4
at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/std/src/rt.rs:145:18
29: 0x10150bd84 - core::ops::function::impls::<impl core::ops::function::FnOnce for &F>::call_once::h10f2582b16e2b13c
at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/core/src/ops/function.rs:259:13
30: 0x10150bd84 - std::panicking::try::do_call::hd3dfc31f9ced2f42
at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/std/src/panicking.rs:406:40
31: 0x10150bd84 - std::panicking::try::h584945b02ec0e15d
at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/std/src/panicking.rs:370:19
32: 0x10150bd84 - std::panic::catch_unwind::h1138cecd37279bb6
at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/std/src/panic.rs:133:14
33: 0x10150bd84 - std::rt::lang_start_internal::{{closure}}::hf94f7401539e24a6
at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/std/src/rt.rs:128:48
34: 0x10150bd84 - std::panicking::try::do_call::ha8b5def05088e3d3
at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/std/src/panicking.rs:406:40
35: 0x10150bd84 - std::panicking::try::h3ce579dae5f3a6fb
at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/std/src/panicking.rs:370:19
36: 0x10150bd84 - std::panic::catch_unwind::h29ecbe0d385e9017
at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/std/src/panic.rs:133:14
37: 0x10150bd84 - std::rt::lang_start_internal::h35c587f98e9244f6
at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/std/src/rt.rs:128:20
38: 0x100f44790 - std::rt::lang_start::h9c2a5ab0001edb79
at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/std/src/rt.rs:144:17
39: 0x100f5465c -
at /Users/lijinlei/Rust/wgpu/wgpu/examples/boids/main.rs:333:2

Platform
M1 macOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant