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

ERROR wgpu::backend::wgpu_core] Shader translation error for stage ShaderStages(COMPUTE): new_compute_pipeline_state: "Compiler encountered an internal error" #5827

Open
kunhualqk opened this issue Jun 17, 2024 · 0 comments

Comments

@kunhualqk
Copy link

I try to run wgpu-examples boids and got a error, while other examples OK

on my MacBook Pro (Retina, 15-inch, Mid 2015)

How can i fix?

backtrace bellow:

$ RUST_BACKTRACE=1 cargo run --bin wgpu-examples boids
Finished dev [unoptimized + debuginfo] target(s) in 0.39s
Running target/debug/wgpu-examples boids
[2024-06-17T08:05:45Z INFO wgpu_examples::framework] Initializing wgpu...
[2024-06-17T08:05:45Z INFO wgpu_core::instance] Adapter Metal AdapterInfo { name: "Intel Iris Pro Graphics", vendor: 0, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Metal }
[2024-06-17T08:05:45Z INFO wgpu_examples::framework] Using Intel Iris Pro Graphics (Metal)
[2024-06-17T08:05:45Z INFO wgpu_examples::framework] Entering event loop...
[2024-06-17T08:05:45Z INFO wgpu_examples::framework] Surface resume PhysicalSize { width: 1600, height: 1200 }
[2024-06-17T08:05:45Z ERROR wgpu::backend::wgpu_core] Shader translation error for stage ShaderStages(COMPUTE): new_compute_pipeline_state: "Compiler encountered an internal error"
[2024-06-17T08:05:45Z ERROR wgpu::backend::wgpu_core] Please report it to https://github.com/gfx-rs/wgpu
[2024-06-17T08:05:45Z ERROR wgpu::backend::wgpu_core] Handling wgpu errors as fatal by default
thread 'main' panicked at wgpu/src/backend/wgpu_core.rs:3229:5:
wgpu error: Validation Error

Caused by:
In Device::create_compute_pipeline
note: label = Compute pipeline
Internal error: new_compute_pipeline_state: "Compiler encountered an internal error"

stack backtrace:
0: rust_begin_unwind
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:645:5
1: core::panicking::panic_fmt
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/panicking.rs:72:14
2: wgpu::backend::wgpu_core::default_error_handler
at ./wgpu/src/backend/wgpu_core.rs:3229:5
3: core::ops::function::Fn::call
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/ops/function.rs:79:5
4: <alloc::boxed::Box<F,A> as core::ops::function::Fn>::call
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/alloc/src/boxed.rs:2029:9
5: wgpu::backend::wgpu_core::ErrorSinkRaw::handle_error
at ./wgpu/src/backend/wgpu_core.rs:3215:17
6: wgpu::backend::wgpu_core::ContextWgpuCore::handle_error
at ./wgpu/src/backend/wgpu_core.rs:305:9
7: <wgpu::backend::wgpu_core::ContextWgpuCore as wgpu::context::Context>::device_create_compute_pipeline
at ./wgpu/src/backend/wgpu_core.rs:1283:13
8: ::device_create_compute_pipeline
at ./wgpu/src/context.rs:2307:13
9: wgpu::Device::create_compute_pipeline
at ./wgpu/src/lib.rs:2985:26
10: <wgpu_examples::boids::Example as wgpu_examples::framework::Example>::init
at ./examples/src/boids/mod.rs:164:32
11: wgpu_examples::framework::start::{{closure}}::{{closure}}
at ./examples/src/framework.rs:399:40
12: <winit::platform_impl::platform::app_state::EventLoopHandler as winit::platform_impl::platform::app_state::EventHandler>::handle_nonuser_event::{{closure}}
at /Users/lqkkunhua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/macos/app_state.rs:87:13
13: winit::platform_impl::platform::app_state::EventLoopHandler::with_callback
at /Users/lqkkunhua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/macos/app_state.rs:70:13
14: <winit::platform_impl::platform::app_state::EventLoopHandler as winit::platform_impl::platform::app_state::EventHandler>::handle_nonuser_event
at /Users/lqkkunhua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/macos/app_state.rs:86:9
15: winit::platform_impl::platform::app_state::Handler::handle_nonuser_event
at /Users/lqkkunhua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/macos/app_state.rs:318:13
16: winit::platform_impl::platform::app_state::AppState::dispatch_init_events
at /Users/lqkkunhua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/macos/app_state.rs:451:9
17: winit::platform_impl::platform::app_state::AppState::start_running
at /Users/lqkkunhua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/macos/app_state.rs:462:9
18: winit::platform_impl::platform::app_state::AppState::launched
at /Users/lqkkunhua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/macos/app_state.rs:487:9
19: winit::platform_impl::platform::app_delegate::ApplicationDelegate::did_finish_launching
at /Users/lqkkunhua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/macos/app_delegate.rs:48:13
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38: <() as objc2::message::MessageArguments>::__invoke
at /Users/lqkkunhua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.4.1/src/message/mod.rs:531:39
39: objc2::message::platform::send_unverified
at /Users/lqkkunhua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.4.1/src/message/apple/mod.rs:35:34
40: objc2::message::MessageReceiver::send_message
at /Users/lqkkunhua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.4.1/src/message/mod.rs:233:53
41: winit::platform_impl::platform::appkit::application::NSApplication::run
at /Users/lqkkunhua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.4.1/src/macros/__attribute_helpers.rs:126:21
42: winit::platform_impl::platform::event_loop::EventLoop::run_on_demand::{{closure}}::{{closure}}
at /Users/lqkkunhua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/macos/event_loop.rs:310:26
43: core::ops::function::FnOnce::call_once
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/ops/function.rs:250:5
44: <core::panic::unwind_safe::AssertUnwindSafe as core::ops::function::FnOnce<()>>::call_once
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/panic/unwind_safe.rs:272:9
45: std::panicking::try::do_call
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:552:40
46: ___rust_try
47: std::panicking::try
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:516:19
48: std::panic::catch_unwind
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panic.rs:142:14
49: winit::platform_impl::platform::event_loop::EventLoop::run_on_demand::{{closure}}
at /Users/lqkkunhua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/macos/event_loop.rs:299:32
50: objc2::rc::autorelease::autoreleasepool
at /Users/lqkkunhua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.4.1/src/rc/autorelease.rs:438:15
51: winit::platform_impl::platform::event_loop::EventLoop::run_on_demand
at /Users/lqkkunhua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/macos/event_loop.rs:281:9
52: winit::platform_impl::platform::event_loop::EventLoop::run
at /Users/lqkkunhua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/macos/event_loop.rs:248:9
53: winit::event_loop::EventLoop::run
at /Users/lqkkunhua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/event_loop.rs:249:9
54: wgpu_examples::framework::start::{{closure}}
at ./examples/src/framework.rs:390:13
55: pollster::block_on
at /Users/lqkkunhua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pollster-0.3.0/src/lib.rs:128:15
56: wgpu_examples::framework::run
at ./examples/src/framework.rs:482:13
57: wgpu_examples::boids::main
at ./examples/src/boids/mod.rs:329:5
58: wgpu_examples::main
at ./examples/src/main.rs:229:5
59: core::ops::function::FnOnce::call_once
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.
thread 'main' panicked at /Users/lqkkunhua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/macos/app_state.rs:387:33:
called Result::unwrap() on an Err value: PoisonError { .. }
stack backtrace:
0: rust_begin_unwind
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:645:5
1: core::panicking::panic_fmt
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/panicking.rs:72:14
2: core::result::unwrap_failed
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/result.rs:1649:5
3: core::result::Result<T,E>::unwrap
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/result.rs:1073:23
4: winit::platform_impl::platform::app_state::AppState::clear_callback
at /Users/lqkkunhua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/macos/app_state.rs:387:9
5: winit::platform_impl::platform::event_loop::EventLoop::run_on_demand::{{closure}}
at /Users/lqkkunhua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/macos/event_loop.rs:329:13
6: objc2::rc::autorelease::autoreleasepool
at /Users/lqkkunhua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc2-0.4.1/src/rc/autorelease.rs:438:15
7: winit::platform_impl::platform::event_loop::EventLoop::run_on_demand
at /Users/lqkkunhua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/macos/event_loop.rs:281:9
8: winit::platform_impl::platform::event_loop::EventLoop::run
at /Users/lqkkunhua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/macos/event_loop.rs:248:9
9: winit::event_loop::EventLoop::run
at /Users/lqkkunhua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/event_loop.rs:249:9
10: wgpu_examples::framework::start::{{closure}}
at ./examples/src/framework.rs:390:13
11: pollster::block_on
at /Users/lqkkunhua/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pollster-0.3.0/src/lib.rs:128:15
12: wgpu_examples::framework::run
at ./examples/src/framework.rs:482:13
13: wgpu_examples::boids::main
at ./examples/src/boids/mod.rs:329:5
14: wgpu_examples::main
at ./examples/src/main.rs:229:5
15: core::ops::function::FnOnce::call_once
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.

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

No branches or pull requests

1 participant