bevy: Off screen window crashes App
Bevy version
0.13.2
Relevant system information
If you cannot get Bevy to build or run on your machine, please include:
cargo: cargo 1.76.0 (c84b36747 2024-01-18)
os: Linux EndeavourOS (6.8.2-arch2-1)
AdapterInfo: { name: "NVIDIA GeForce RTX 3070 Ti Laptop GPU", vendor: 4318, device: 9440, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "550.67", backend: Vulkan }
windowing: Wayland
What you did
When running any app with the default rendering plugin, placing the window offscreen causes the program to crash.
Example
use bevy::prelude::*;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.run();
}
What went wrong
On my system, I run hyprland, a tiling window manager for Wayland. While running an app without any real content besides the default plugin, navigating to a new workspace causes the App to crash. This shouldn’t happen and the app should continue to run without crash when it is off the currently viewed screen. I am unsure if #12875 is related, as the crash log doesn’t really look similar, but perhaps that is the case.
Additional information
Error Log
```2024-04-05T22:34:43.881679Z WARN log: error setting XSETTINGS; Xft options won't reload automatically
2024-04-05T22:34:43.895046Z INFO bevy_winit::system: Creating new window "App" (0v1)
2024-04-05T22:34:43.895247Z INFO log: Guessed window scale factor: 1.0833333333333333
2024-04-05T22:34:44.023554Z INFO bevy_render::renderer: AdapterInfo { name: "NVIDIA GeForce RTX 3070 Ti Laptop GPU", vendor: 4318, device: 9440, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "550.67", backend: Vulkan }
2024-04-05T22:34:44.198100Z WARN bevy_render::view::window: Couldn't get swap chain texture. This often happens with the Nvidia 550 driver. It can be safely ignored.
thread 'Compute Task Pool (0)' panicked at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.13.2/src/view/window/mod.rs:362:21:
Couldn't get swap chain texture, operation unrecoverable: A timeout was encountered while trying to acquire the next frame
stack backtrace:
0: 0x79e89a78b6f6 - std::backtrace_rs::backtrace::libunwind::trace::hbee8a7973eeb6c93
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5
1: 0x79e89a78b6f6 - std::backtrace_rs::backtrace::trace_unsynchronized::hc8ac75eea3aa6899
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x79e89a78b6f6 - std::sys_common::backtrace::_print_fmt::hc7f3e3b5298b1083
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sys_common/backtrace.rs:68:5
3: 0x79e89a78b6f6 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hbb235daedd7c6190
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sys_common/backtrace.rs:44:22
4: 0x79e89a7ddf40 - core::fmt::rt::Argument::fmt::h76c38a80d925a410
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/fmt/rt.rs:142:9
5: 0x79e89a7ddf40 - core::fmt::write::h3ed6aeaa977c8e45
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/fmt/mod.rs:1120:17
6: 0x79e89a77f53f - std::io::Write::write_fmt::h78b18af5775fedb5
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/io/mod.rs:1810:15
7: 0x79e89a78b4d4 - std::sys_common::backtrace::_print::h5d645a07e0fcfdbb
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sys_common/backtrace.rs:47:5
8: 0x79e89a78b4d4 - std::sys_common::backtrace::print::h85035a511aafe7a8
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sys_common/backtrace.rs:34:9
9: 0x79e89a78e267 - std::panicking::default_hook::{{closure}}::hcce8cea212785a25
10: 0x79e89a78dfc9 - std::panicking::default_hook::hf5fcb0f213fe709a
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:292:9
11: 0x79e89a78e828 - std::panicking::rust_panic_with_hook::h095fccf1dc9379ee
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:779:13
12: 0x79e89a78e702 - std::panicking::begin_panic_handler::{{closure}}::h032ba12139b353db
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:657:13
13: 0x79e89a78bbf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h9259bc2ff8fd0f76
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sys_common/backtrace.rs:171:18
14: 0x79e89a78e460 - rust_begin_unwind
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:645:5
15: 0x79e89a7da645 - core::panicking::panic_fmt::h784f20a50eaab275
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/panicking.rs:72:14
16: 0x79e89c6302d3 - bevy_render::view::window::prepare_windows::h01f13462bd19bd45
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.13.2/src/view/window/mod.rs:362:21
17: 0x79e89c5ff7de - core::ops::function::FnMut::call_mut::h9359518015d589fd
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/ops/function.rs:166:5
18: 0x79e89c5ff7de - core::ops::function::impls::<impl core::ops::function::FnMut<A> for &mut F>::call_mut::h9ecbf8fead9a625a
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/ops/function.rs:294:13
19: 0x79e89c5ff7de - <Func as bevy_ecs::system::function_system::SystemParamFunction<fn(F0,F1,F2,F3,F4,F5,F6,F7,F8) .> Out>>::run::call_inner::hd7e009688ad5a4fa
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.13.2/src/system/function_system.rs:656:21
20: 0x79e89c5ff7de - <Func as bevy_ecs::system::function_system::SystemParamFunction<fn(F0,F1,F2,F3,F4,F5,F6,F7,F8) .> Out>>::run::h8257c478eaac64bf
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.13.2/src/system/function_system.rs:659:17
21: 0x79e89c5ff7de - <bevy_ecs::system::function_system::FunctionSystem<Marker,F> as bevy_ecs::system::system::System>::run_unsafe::h3aebd1a071d6d129
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.13.2/src/system/function_system.rs:499:19
22: 0x79e89d304af5 - bevy_ecs::schedule::executor::multi_threaded::MultiThreadedExecutor::spawn_system_task::{{closure}}::{{closure}}::h6f6d4648a8a8e58b
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.13.2/src/schedule/executor/multi_threaded.rs:534:26
23: 0x79e89d304af5 - core::ops::function::FnOnce::call_once::h98ef9d1ebed3aba5
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/ops/function.rs:250:5
24: 0x79e89d304af5 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h84533b6b7d896b7d
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/panic/unwind_safe.rs:272:9
25: 0x79e89d304af5 - std::panicking::try::do_call::ha1bdddcebef3262f
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:552:40
26: 0x79e89d304af5 - std::panicking::try::h9189daa446635661
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:516:19
27: 0x79e89d304af5 - std::panic::catch_unwind::ha6b633411d4d6f55
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panic.rs:142:14
28: 0x79e89d304af5 - bevy_ecs::schedule::executor::multi_threaded::MultiThreadedExecutor::spawn_system_task::{{closure}}::h257be07be8d6e4a1
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_ecs-0.13.2/src/schedule/executor/multi_threaded.rs:529:23
29: 0x79e89d304af5 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::future::future::Future>::poll::hd9edb16f46b4b975
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/panic/unwind_safe.rs:297:9
30: 0x79e89d304af5 - <futures_lite::future::CatchUnwind<F> as core::future::future::Future>::poll::{{closure}}::h6eaa8913aab9147b
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-2.3.0/src/future.rs:588:42
31: 0x79e89d304af5 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h2ee4405a19f3e8a4
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/panic/unwind_safe.rs:272:9
32: 0x79e89d304af5 - std::panicking::try::do_call::hd008134cd6d3ccbd
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:552:40
33: 0x79e89d304af5 - std::panicking::try::h34773b786c0346e2
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:516:19
34: 0x79e89d304af5 - std::panic::catch_unwind::h562e298280e82e4e
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panic.rs:142:14
35: 0x79e89d304af5 - <futures_lite::future::CatchUnwind<F> as core::future::future::Future>::poll::h69fd18c59a2c9384
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-2.3.0/src/future.rs:588:9
36: 0x79e89d300a7e - async_executor::Executor::spawn::{{closure}}::h371d820650092d6c
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.8.0/src/lib.rs:158:20
37: 0x79e89d30c6c4 - async_task::raw::RawTask<F,T,S,M>::run::{{closure}}::h840a8c35ccb4f777
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-task-4.7.0/src/raw.rs:550:21
38: 0x79e89d30c6c4 - core::ops::function::FnOnce::call_once::hea37269d53fb3ee6
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/ops/function.rs:250:5
39: 0x79e89d30c6c4 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hf82452cfa7006b6a
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/panic/unwind_safe.rs:272:9
40: 0x79e89d30c6c4 - std::panicking::try::do_call::hd3078b1d21a455bf
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:552:40
41: 0x79e89d30c6c4 - std::panicking::try::ha0817f58c0aa1cea
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:516:19
42: 0x79e89d30c6c4 - std::panic::catch_unwind::h87f2200801edd172
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panic.rs:142:14
43: 0x79e89d30c6c4 - async_task::raw::RawTask<F,T,S,M>::run::hc08add7dff14d650
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-task-4.7.0/src/raw.rs:549:23
44: 0x79e89d318d24 - async_task::runnable::Runnable<M>::run::h798d2b53defca3a1
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-task-4.7.0/src/runnable.rs:781:18
45: 0x79e89d318d24 - async_executor::Executor::run::{{closure}}::{{closure}}::h63bea77f1e1502eb
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.8.0/src/lib.rs:254:21
46: 0x79e89d318d24 - <futures_lite::future::Or<F1,F2> as core::future::future::Future>::poll::h41fff2e46b835a2c
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-2.3.0/src/future.rs:449:33
47: 0x79e89d318d24 - async_executor::Executor::run::{{closure}}::h4f576dc30fb2cfd4
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.8.0/src/lib.rs:261:32
48: 0x79e89d318d24 - futures_lite::future::block_on::{{closure}}::hd6aefe07ffae54c8
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-2.3.0/src/future.rs:99:19
49: 0x79e89d318d24 - std::thread::local::LocalKey<T>::try_with::hb326291cddfe9f22
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/thread/local.rs:270:16
50: 0x79e89d318d24 - std::thread::local::LocalKey<T>::with::h267a0613b5738fba
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/thread/local.rs:246:9
51: 0x79e89d318d24 - futures_lite::future::block_on::h4e741f0408f64703
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-2.3.0/src/future.rs:78:11
52: 0x79e89d3154c8 - bevy_tasks::task_pool::TaskPool::new_internal::{{closure}}::{{closure}}::{{closure}}::{{closure}}::h3440fe6f11d6efee
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_tasks-0.13.2/src/task_pool.rs:180:37
53: 0x79e89d3154c8 - std::panicking::try::do_call::h0535be88093b4c7d
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:552:40
54: 0x79e89d3154c8 - std::panicking::try::h27440c427f861b4c
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:516:19
55: 0x79e89d3154c8 - std::panic::catch_unwind::h34e02e96b0a2b6f5
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panic.rs:142:14
56: 0x79e89d3154c8 - bevy_tasks::task_pool::TaskPool::new_internal::{{closure}}::{{closure}}::{{closure}}::h559a87103dad12e0
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_tasks-0.13.2/src/task_pool.rs:174:43
57: 0x79e89d3154c8 - std::thread::local::LocalKey<T>::try_with::h1ce7a1b6a9ec67e1
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/thread/local.rs:270:16
58: 0x79e89d3154c8 - std::thread::local::LocalKey<T>::with::h08355adc34ecad6d
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/thread/local.rs:246:9
59: 0x79e89d3154c8 - bevy_tasks::task_pool::TaskPool::new_internal::{{closure}}::{{closure}}::hae77d7efa0279da2
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_tasks-0.13.2/src/task_pool.rs:167:50
60: 0x79e89d3154c8 - std::sys_common::backtrace::__rust_begin_short_backtrace::h8a24f2df7b0890d9
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sys_common/backtrace.rs:155:18
61: 0x79e89d313495 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h046e652d3730c4e0
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/thread/mod.rs:529:17
62: 0x79e89d313495 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h134edfbc8b7f29c0
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/panic/unwind_safe.rs:272:9
63: 0x79e89d313495 - std::panicking::try::do_call::h45def883aeec3a7c
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:552:40
64: 0x79e89d313495 - std::panicking::try::h9e44bb8403cff377
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:516:19
65: 0x79e89d313495 - std::panic::catch_unwind::he40cff11f1879025
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panic.rs:142:14
66: 0x79e89d313495 - std::thread::Builder::spawn_unchecked_::{{closure}}::h0cfe80353e0eeb27
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/thread/mod.rs:528:30
67: 0x79e89d313495 - core::ops::function::FnOnce::call_once{{vtable.shim}}::he7600ecd8684977d
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/ops/function.rs:250:5
68: 0x79e89a7988e5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h12de4fc57affb195
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/alloc/src/boxed.rs:2015:9
69: 0x79e89a7988e5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h3c619f45059d5cf1
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/alloc/src/boxed.rs:2015:9
70: 0x79e89a7988e5 - std::sys::unix::thread::Thread::new::thread_start::hbac657605e4b7389
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sys/unix/thread.rs:108:17
71: 0x79e89a49755a - <unknown>
72: 0x79e89a514a3c - <unknown>
73: 0x0 - <unknown>
Encountered a panic in system `bevy_render::view::window::prepare_windows`!
thread 'Compute Task Pool (0)' panicked at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.13.2/src/pipelined_rendering.rs:49:67:
called `Result::unwrap()` on an `Err` value: RecvError
stack backtrace:
0: 0x79e89a78b6f6 - std::backtrace_rs::backtrace::libunwind::trace::hbee8a7973eeb6c93
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5
1: 0x79e89a78b6f6 - std::backtrace_rs::backtrace::trace_unsynchronized::hc8ac75eea3aa6899
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x79e89a78b6f6 - std::sys_common::backtrace::_print_fmt::hc7f3e3b5298b1083
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sys_common/backtrace.rs:68:5
3: 0x79e89a78b6f6 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hbb235daedd7c6190
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sys_common/backtrace.rs:44:22
4: 0x79e89a7ddf40 - core::fmt::rt::Argument::fmt::h76c38a80d925a410
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/fmt/rt.rs:142:9
5: 0x79e89a7ddf40 - core::fmt::write::h3ed6aeaa977c8e45
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/fmt/mod.rs:1120:17
6: 0x79e89a77f53f - std::io::Write::write_fmt::h78b18af5775fedb5
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/io/mod.rs:1810:15
7: 0x79e89a78b4d4 - std::sys_common::backtrace::_print::h5d645a07e0fcfdbb
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sys_common/backtrace.rs:47:5
8: 0x79e89a78b4d4 - std::sys_common::backtrace::print::h85035a511aafe7a8
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sys_common/backtrace.rs:34:9
9: 0x79e89a78e267 - std::panicking::default_hook::{{closure}}::hcce8cea212785a25
10: 0x79e89a78dfc9 - std::panicking::default_hook::hf5fcb0f213fe709a
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:292:9
11: 0x79e89a78e828 - std::panicking::rust_panic_with_hook::h095fccf1dc9379ee
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:779:13
12: 0x79e89a78e702 - std::panicking::begin_panic_handler::{{closure}}::h032ba12139b353db
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:657:13
13: 0x79e89a78bbf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h9259bc2ff8fd0f76
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sys_common/backtrace.rs:171:18
14: 0x79e89a78e460 - rust_begin_unwind
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:645:5
15: 0x79e89a7da645 - core::panicking::panic_fmt::h784f20a50eaab275
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/panicking.rs:72:14
16: 0x79e89a7dad43 - core::result::unwrap_failed::h03d8a5018196e1cd
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/result.rs:1649:5
17: 0x79e89c53239f - core::result::Result<T,E>::unwrap::he1b602f4e04abfd4
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/result.rs:1073:23
18: 0x79e89c53239f - bevy_render::pipelined_rendering::RenderAppChannels::recv::{{closure}}::h6a369b73e24dc3c3
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.13.2/src/pipelined_rendering.rs:49:26
19: 0x79e89c53239f - bevy_render::pipelined_rendering::update_rendering::{{closure}}::{{closure}}::{{closure}}::{{closure}}::he9c6a71558016cc1
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.13.2/src/pipelined_rendering.rs:185:60
20: 0x79e89c53239f - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::future::future::Future>::poll::h2686eb2d5f6ee3c9
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/panic/unwind_safe.rs:297:9
21: 0x79e89c57bab5 - <futures_lite::future::CatchUnwind<F> as core::future::future::Future>::poll::{{closure}}::h08921b2d76f1fb46
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-2.3.0/src/future.rs:588:42
22: 0x79e89c57bab5 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h6b9d16a5f6cc2b37
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/panic/unwind_safe.rs:272:9
23: 0x79e89c57bab5 - std::panicking::try::do_call::h2f0c46ebccca0efa
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:552:40
24: 0x79e89c57bab5 - std::panicking::try::h7a0838e83e1cb0e2
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:516:19
25: 0x79e89c57bab5 - std::panic::catch_unwind::h25d790c76bd8cd82
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panic.rs:142:14
26: 0x79e89c57bab5 - <futures_lite::future::CatchUnwind<F> as core::future::future::Future>::poll::hf5afd8303cd0b9f3
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-2.3.0/src/future.rs:588:9
27: 0x79e89c57bab5 - async_executor::Executor::spawn::{{closure}}::he07c07a84119b87a
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.8.0/src/lib.rs:158:20
28: 0x79e89c57bab5 - async_task::raw::RawTask<F,T,S,M>::run::{{closure}}::hfca61515791a221d
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-task-4.7.0/src/raw.rs:550:21
29: 0x79e89c57bab5 - core::ops::function::FnOnce::call_once::h5e4665e218c410df
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/ops/function.rs:250:5
30: 0x79e89c57bab5 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h8d143b7366149096
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/panic/unwind_safe.rs:272:9
31: 0x79e89c57bab5 - std::panicking::try::do_call::hfd310b0cf052b4ea
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:552:40
32: 0x79e89c57bab5 - std::panicking::try::hc51ca6878ad2462c
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:516:19
33: 0x79e89c458ab2 - std::panic::catch_unwind::hf64b82caa53e4824
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panic.rs:142:14
34: 0x79e89c458ab2 - async_task::raw::RawTask<F,T,S,M>::run::hbe6a2db5ca582efb
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-task-4.7.0/src/raw.rs:549:23
35: 0x79e89d318d24 - async_task::runnable::Runnable<M>::run::h798d2b53defca3a1
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-task-4.7.0/src/runnable.rs:781:18
36: 0x79e89d318d24 - async_executor::Executor::run::{{closure}}::{{closure}}::h63bea77f1e1502eb
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.8.0/src/lib.rs:254:21
37: 0x79e89d318d24 - <futures_lite::future::Or<F1,F2> as core::future::future::Future>::poll::h41fff2e46b835a2c
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-2.3.0/src/future.rs:449:33
38: 0x79e89d318d24 - async_executor::Executor::run::{{closure}}::h4f576dc30fb2cfd4
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/async-executor-1.8.0/src/lib.rs:261:32
39: 0x79e89d318d24 - futures_lite::future::block_on::{{closure}}::hd6aefe07ffae54c8
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-2.3.0/src/future.rs:99:19
40: 0x79e89d318d24 - std::thread::local::LocalKey<T>::try_with::hb326291cddfe9f22
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/thread/local.rs:270:16
41: 0x79e89d318d24 - std::thread::local::LocalKey<T>::with::h267a0613b5738fba
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/thread/local.rs:246:9
42: 0x79e89d318d24 - futures_lite::future::block_on::h4e741f0408f64703
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-lite-2.3.0/src/future.rs:78:11
43: 0x79e89d3154c8 - bevy_tasks::task_pool::TaskPool::new_internal::{{closure}}::{{closure}}::{{closure}}::{{closure}}::h3440fe6f11d6efee
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_tasks-0.13.2/src/task_pool.rs:180:37
44: 0x79e89d3154c8 - std::panicking::try::do_call::h0535be88093b4c7d
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:552:40
45: 0x79e89d3154c8 - std::panicking::try::h27440c427f861b4c
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:516:19
46: 0x79e89d3154c8 - std::panic::catch_unwind::h34e02e96b0a2b6f5
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panic.rs:142:14
47: 0x79e89d3154c8 - bevy_tasks::task_pool::TaskPool::new_internal::{{closure}}::{{closure}}::{{closure}}::h559a87103dad12e0
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_tasks-0.13.2/src/task_pool.rs:174:43
48: 0x79e89d3154c8 - std::thread::local::LocalKey<T>::try_with::h1ce7a1b6a9ec67e1
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/thread/local.rs:270:16
49: 0x79e89d3154c8 - std::thread::local::LocalKey<T>::with::h08355adc34ecad6d
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/thread/local.rs:246:9
50: 0x79e89d3154c8 - bevy_tasks::task_pool::TaskPool::new_internal::{{closure}}::{{closure}}::hae77d7efa0279da2
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_tasks-0.13.2/src/task_pool.rs:167:50
51: 0x79e89d3154c8 - std::sys_common::backtrace::__rust_begin_short_backtrace::h8a24f2df7b0890d9
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sys_common/backtrace.rs:155:18
52: 0x79e89d313495 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h046e652d3730c4e0
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/thread/mod.rs:529:17
53: 0x79e89d313495 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h134edfbc8b7f29c0
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/panic/unwind_safe.rs:272:9
54: 0x79e89d313495 - std::panicking::try::do_call::h45def883aeec3a7c
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:552:40
55: 0x79e89d313495 - std::panicking::try::h9e44bb8403cff377
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:516:19
56: 0x79e89d313495 - std::panic::catch_unwind::he40cff11f1879025
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panic.rs:142:14
57: 0x79e89d313495 - std::thread::Builder::spawn_unchecked_::{{closure}}::h0cfe80353e0eeb27
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/thread/mod.rs:528:30
58: 0x79e89d313495 - core::ops::function::FnOnce::call_once{{vtable.shim}}::he7600ecd8684977d
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/ops/function.rs:250:5
59: 0x79e89a7988e5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h12de4fc57affb195
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/alloc/src/boxed.rs:2015:9
60: 0x79e89a7988e5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h3c619f45059d5cf1
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/alloc/src/boxed.rs:2015:9
61: 0x79e89a7988e5 - std::sys::unix::thread::Thread::new::thread_start::hbac657605e4b7389
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sys/unix/thread.rs:108:17
62: 0x79e89a49755a - <unknown>
63: 0x79e89a514a3c - <unknown>
64: 0x0 - <unknown>
thread '<unnamed>' panicked at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/thread/local.rs:246:26:
cannot access a Thread Local Storage value during or after destruction: AccessError
stack backtrace:
0: 0x79e89a78b6f6 - std::backtrace_rs::backtrace::libunwind::trace::hbee8a7973eeb6c93
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5
1: 0x79e89a78b6f6 - std::backtrace_rs::backtrace::trace_unsynchronized::hc8ac75eea3aa6899
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x79e89a78b6f6 - std::sys_common::backtrace::_print_fmt::hc7f3e3b5298b1083
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sys_common/backtrace.rs:68:5
3: 0x79e89a78b6f6 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hbb235daedd7c6190
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sys_common/backtrace.rs:44:22
4: 0x79e89a7ddf40 - core::fmt::rt::Argument::fmt::h76c38a80d925a410
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/fmt/rt.rs:142:9
5: 0x79e89a7ddf40 - core::fmt::write::h3ed6aeaa977c8e45
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/fmt/mod.rs:1120:17
6: 0x79e89a77f53f - std::io::Write::write_fmt::h78b18af5775fedb5
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/io/mod.rs:1810:15
7: 0x79e89a78b4d4 - std::sys_common::backtrace::_print::h5d645a07e0fcfdbb
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sys_common/backtrace.rs:47:5
8: 0x79e89a78b4d4 - std::sys_common::backtrace::print::h85035a511aafe7a8
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sys_common/backtrace.rs:34:9
9: 0x79e89a78e267 - std::panicking::default_hook::{{closure}}::hcce8cea212785a25
10: 0x79e89a78dfc9 - std::panicking::default_hook::hf5fcb0f213fe709a
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:292:9
11: 0x79e89a78e828 - std::panicking::rust_panic_with_hook::h095fccf1dc9379ee
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:779:13
12: 0x79e89a78e702 - std::panicking::begin_panic_handler::{{closure}}::h032ba12139b353db
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:657:13
13: 0x79e89a78bbf6 - std::sys_common::backtrace::__rust_end_short_backtrace::h9259bc2ff8fd0f76
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sys_common/backtrace.rs:171:18
14: 0x79e89a78e460 - rust_begin_unwind
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:645:5
15: 0x79e89a7da645 - core::panicking::panic_fmt::h784f20a50eaab275
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/panicking.rs:72:14
16: 0x79e89a7dad43 - core::result::unwrap_failed::h03d8a5018196e1cd
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/result.rs:1649:5
17: 0x79e89d0a4808 - core::result::Result<T,E>::expect::h1d705b8902ea48ff
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/result.rs:1030:23
18: 0x79e89d0a4808 - std::thread::local::LocalKey<T>::with::h8cb3eb3428f15d33
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/thread/local.rs:246:9
19: 0x79e89d0a4808 - <tracing_subscriber::fmt::fmt_layer::Layer<S,N,E,W> as tracing_subscriber::layer::Layer<S>>::on_event::hce32b9bfd1e17482
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-subscriber-0.3.18/src/fmt/fmt_layer.rs:949:13
20: 0x79e89d0b52f5 - tracing_core::dispatcher::Dispatch::event::h603a073f63501864
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-core-0.1.32/src/dispatcher.rs:615:13
21: 0x79e89d0b52f5 - tracing_log::dispatch_record::{{closure}}::h84240cb12d0478c8
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-log-0.1.4/src/lib.rs:211:9
22: 0x79e89d0b5cf5 - tracing_log::dispatch_record::h10153d1dde847373
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-log-0.1.4/src/lib.rs:195:5
23: 0x79e89d0b5cf5 - <tracing_log::log_tracer::LogTracer as log::Log>::log::h99da9a8b2c612e32
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-log-0.1.4/src/log_tracer.rs:199:13
24: 0x79e89d25ef18 - log::__private_api::log_impl::hc517980f2d25fad7
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/log-0.4.21/src/__private_api.rs:61:5
25: 0x79e89cacfa2e - log::__private_api::log::h0550443878a9f778
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/log-0.4.21/src/__private_api.rs:73:5
26: 0x79e89cacfa2e - wgpu_hal::gles::egl::egl_debug_proc::h59649437c2db6f6c
at /home/alexk101/.cargo/registry/src/index.crates.io-6f17d22bba15001f/log-0.4.21/src/macros.rs:50:13
27: 0x79e8908b4843 - <unknown>
28: 0x79e89084df9e - <unknown>
29: 0x79e89084e050 - <unknown>
30: 0x79e8908a2541 - <unknown>
31: 0x79e890834aa1 - <unknown>
32: 0x79e89084942b - <unknown>
33: 0x79e899e0d633 - <unknown>
34: 0x79e899e1036f - <unknown>
35: 0x79e8908ad550 - <unknown>
36: 0x79e8908a3310 - <unknown>
37: 0x79e89a44ab36 - <unknown>
38: 0x79e89a44ac80 - exit
39: 0x79e89a431cd7 - <unknown>
40: 0x79e89a431d8a - __libc_start_main
41: 0x5f46fc04df35 - _start
42: 0x0 - <unknown>
fatal runtime error: failed to initiate panic, error 5
About this issue
- Original URL
- State: open
- Created 3 months ago
- Reactions: 1
- Comments: 18 (9 by maintainers)
Oh, turns out the log you posted is just the unrelated output of wgpu also initializing OpenGL. Vulkan is working normally, and gets picked over OpenGL. Everything is normal in that front.
Either way. Weird that eframe doesn’t experience the surface errors when using wgpu. I’m not sure how to continue debugging from here. Ultimately I still think Bevy should still simply be more lenient with surface errors.
Why is your wgpu falling back to OpenGL? Is your Vulkan driver broken? Please open the app with
RUST_LOG=debug
and post the log.Okay, next observation: The default log level (when
RUST_LOG
is not specified) iserror
. Try settingRUST_LOG=warn
, because theDropped frame with error
spam is on the warning log level.@Friz64 Very good. That fixed compilation. Though, I am not entirely sure that this is helpful, as I don’t get any errors or crashes on the
wgpu
backend with eitherx11
orwayland
(tried each separately). NoDropped frame with error
spam either.Edit: A minor difference from your config, I am on version
0.27.2
foregui
andeframe
unfortunately no. The crash from that branch is included below
Log
```Great, sounds like a Bevy problem in some form then. Thanks for investigating.
I would test this on #12669 next: there’s a chance that this resolves the problem.
Tested the
eframe
template and did not have any issues.