bevyengine / bevyengine/bevy

Crash occurs when attempting to minimize the window

Open
#19,162 7 comments 0 reactions 0 assignees View on GitHub
A-Windowing C-Bug O-Windows
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 16h
Merged PRs (30d)
171

Description

## Bevy version

`bevy 0.16`

## \[Optional\] Relevant system information
`OS: windows11`
AdapterInfo { name: "NVIDIA GeForce RTX 3070", vendor: 4318, device: 9352, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "576.28", backend: Vulkan }

## What you did
I'm trying to spawn modified viewport Camera2d;

## What went wrong

The program runs without issues, but crashes upon minimizing the window. When I remove the camera creation code, minimizing the window no longer causes a crash.

## Additional information

minimal_reproducible code
```rust
use bevy::{
prelude::*,
render::{camera::Viewport, view::RenderLayers},
};
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_systems(Startup, setup)
.run();
}

const LAYER: RenderLayers = RenderLayers::layer(0);

fn setup(
mut commands: Commands,

window: Query<&Window>,
) {
let Ok(window) = window.single() else {
return;
};
let width = window.width();
let height = window.height();

let list = [
(
UVec2 { x: 0, y: 0 },
UVec2 {
x: width as u32,
y: height as u32,
},
LAYER,
),
];

for (index, (camera_pos, camera_size, layer )) in list.iter().enumerate() {
commands
.spawn((
Camera2d::default(),
Camera {
viewport: Some(Viewport {
physical_position: *camera_pos,
physical_size: *camera_size,
..default()
}),
..default()
},
layer.clone(),
));
}
}

```

logs

Log:
```log
2025-05-10T14:48:14.846198Z ERROR wgpu::backend::wgpu_core: Handling wgpu errors as fatal by default

thread '' panicked at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\wgpu-24.0.3\src\backend\wgpu_core.rs:3273:26:
wgpu error: Validation Error

Caused by:
In RenderPass::end
In a set_scissor_rect command
Scissor Rect { x: 0, y: 0, w: 653, h: 1280 } is not contained in the render target (1, 1, 1)

stack backtrace:
0: std::panicking::begin_panic_handler
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\panicking.rs:695
1: core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\core\src\panicking.rs:75
2: wgpu::backend::wgpu_core::ContextWgpuCore::handle_error_inner
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\wgpu-24.0.3\src\backend\wgpu_core.rs:298
3: wgpu::backend::wgpu_core::ContextWgpuCore::handle_error
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\wgpu-24.0.3\src\backend\wgpu_core.rs:310
4: wgpu::backend::wgpu_core::impl$51::end
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\wgpu-24.0.3\src\backend\wgpu_core.rs:3273
5: core::ptr::drop_in_place
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ptr\mod.rs:523
6: core::ptr::drop_in_place
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ptr\mod.rs:523
7: core::ptr::drop_in_place
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ptr\mod.rs:523
8: bevy_core_pipeline::upscaling::node::impl$0::run
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bevy_core_pipeline-0.16.0\src\upscaling\node.rs:99
9: bevy_render::render_graph::node::impl$8::run
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bevy_render-0.16.0\src\render_graph\node.rs:417
10: bevy_render::renderer::graph_runner::RenderGraphRunner::run_graph
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bevy_render-0.16.0\src\renderer\graph_runner.rs:231
11: bevy_render::renderer::graph_runner::RenderGraphRunner::run_graph
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bevy_render-0.16.0\src\renderer\graph_runner.rs:238
12: bevy_render::renderer::graph_runner::RenderGraphRunner::run
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bevy_render-0.16.0\src\renderer\graph_runner.rs:86
13: bevy_render::renderer::render_system
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bevy_render-0.16.0\src\renderer\mod.rs:42
14: core::ops::function::FnMut::call_mut
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ops\function.rs:166
15: core::ops::function::impls::impl$3::call_mut
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ops\function.rs:294
16: bevy_ecs::system::exclusive_function_system::impl$5::run::call_inner
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bevy_ecs-0.16.0\src\system\exclusive_function_system.rs:254
17: bevy_ecs::system::exclusive_function_system::impl$5::run
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bevy_ecs-0.16.0\src\system\exclusive_function_system.rs:257
18: bevy_ecs::system::exclusive_function_system::impl$2::run_unsafe::closure$0
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bevy_ecs-0.16.0\src\system\exclusive_function_system.rs:129
19: bevy_ecs::world::World::last_change_tick_scope
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bevy_ecs-0.16.0\src\world\mod.rs:3120
20: bevy_ecs::system::exclusive_function_system::impl$2::run_unsafe
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bevy_ecs-0.16.0\src\system\exclusive_function_system.rs:121
21: bevy_ecs::system::schedule_system::impl$1::run_unsafe
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bevy_ecs-0.16.0\src\system\schedule_system.rs:64
22: bevy_ecs::system::system::System::run_without_applying_deferred
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bevy_ecs-0.16.0\src\system\system.rs:106
23: bevy_ecs::system::system::System::run' panicked at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\wgpu-hal-24.0.4\src\vulkan\instance.rs:173:58:
Trying to destroy a SurfaceSemaphores that is still in use by a SurfaceTexture
stack backtrace:
0: 0x7ffbc80e7281 - std::backtrace_rs::backtrace::win64::trace
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\..\..\backtrace\src\backtrace\win64.rs:85
1: 0x7ffbc80e7281 - std::backtrace_rs::backtrace::trace_unsynchronized
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\..\..\backtrace\src\backtrace\mod.rs:66
2: 0x7ffbc80e7281 - std::sys::backtrace::_print_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\sys\backtrace.rs:66
3: 0x7ffbc80e7281 - std::sys::backtrace::impl$0::print::impl$0::fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\sys\backtrace.rs:39
4: 0x7ffbc811adda - core::fmt::rt::Argument::fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\core\src\fmt\rt.rs:177
5: 0x7ffbc811adda - core::fmt::write
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\core\src\fmt\mod.rs:1449
6: 0x7ffbc80dd007 - std::io::Write::write_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\io\mod.rs:1890
7: 0x7ffbc80e70c5 - std::sys::backtrace::BacktraceLock::print
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\sys\backtrace.rs:42
8: 0x7ffbc80e9ff0 - std::panicking::default_hook::closure$0
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\panicking.rs:298
9: 0x7ffbc80e9de1 - std::panicking::default_hook
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\panicking.rs:325
10: 0x7ffbc80eac7e - alloc::boxed::impl$30::call
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\alloc\src\boxed.rs:1990
11: 0x7ffbc80eac7e - std::panicking::rust_panic_with_hook
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\panicking.rs:839
12: 0x7ffbc80ea9d9 - std::panicking::begin_panic_handler::closure$0
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\panicking.rs:704
13: 0x7ffbc80e7def - std::sys::backtrace::__rust_end_short_backtrace
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\sys\backtrace.rs:168
14: 0x7ffbc80ea5de - std::panicking::begin_panic_handler
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\panicking.rs:695
15: 0x7ffbc8145281 - core::panicking::panic_fmt
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\core\src\panicking.rs:75
16: 0x7ffbc814525c - core::panicking::panic_display
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\core\src\panicking.rs:261
17: 0x7ffbc814525c - core::option::expect_failed
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\core\src\option.rs:2024
18: 0x7ffbb96740bb - enum2$ > >::expect
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\option.rs:933
19: 0x7ffbb96740bb - wgpu_hal::vulkan::Swapchain::release_resources
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\wgpu-hal-24.0.4\src\vulkan\instance.rs:173
20: 0x7ffbb9679243 - wgpu_hal::vulkan::instance::impl$7::unconfigure
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\wgpu-hal-24.0.4\src\vulkan\instance.rs:986
21: 0x7ffbb95a12c7 - wgpu_core::instance::impl$4::drop
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\wgpu-core-24.0.2\src\instance.rs:466
22: 0x7ffbb94f2927 - core::ptr::drop_in_place
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ptr\mod.rs:523
23: 0x7ffbb94f2927 - alloc::sync::Arc::drop_slow
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\alloc\src\sync.rs:1910
24: 0x7ffbb954b2dc - wgpu_core::global::Global::surface_drop
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\wgpu-core-24.0.2\src\instance.rs:832
25: 0x7ffbb9454303 - wgpu::backend::wgpu_core::impl$56::drop
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\wgpu-24.0.3\src\backend\wgpu_core.rs:3486
26: 0x7ffbb9454303 - core::ptr::drop_in_place
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ptr\mod.rs:523
27: 0x7ffbb9454303 - alloc::sync::Arc::drop_slow
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\alloc\src\sync.rs:1910
28: 0x7ffbb8f54df0 - alloc::sync::impl$37::drop
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\alloc\src\sync.rs:2597
29: 0x7ffbb8f54df0 - core::ptr::drop_in_place
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ptr\mod.rs:523
30: 0x7ffbb8f54df0 - core::ptr::drop_in_place
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ptr\mod.rs:523
31: 0x7ffbb8f54df0 - core::ptr::drop_in_place
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ptr\mod.rs:523
32: 0x7ffbb8f54df0 - core::ptr::drop_in_place
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ptr\mod.rs:523
33: 0x7ffbb8f54df0 - core::ptr::drop_in_place
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ptr\mod.rs:523
34: 0x7ffbb8f54df0 - core::ptr::drop_in_place >
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ptr\mod.rs:523
35: 0x7ffbb8f5a5b5 - hashbrown::raw::Bucket >::drop
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\hashbrown-0.15.3\src\raw\mod.rs:505
36: 0x7ffbb8f5a5b5 - hashbrown::raw::RawTableInner::drop_elements
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\hashbrown-0.15.3\src\raw\mod.rs:2106
37: 0x7ffbb8f5a5b5 - hashbrown::raw::RawTableInner::drop_inner_table
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\hashbrown-0.15.3\src\raw\mod.rs:2161
38: 0x7ffbb8f5a5b5 - hashbrown::raw::impl$17::drop,hashbrown::raw::alloc::inner::Global>
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\hashbrown-0.15.3\src\raw\mod.rs:3365
39: 0x7ffbb8f962ca - core::ptr::drop_in_place
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ptr\mod.rs:523
40: 0x7ffbb8f962ca - core::ptr::drop_in_place
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ptr\mod.rs:523
41: 0x7ffbb8f962ca - core::ptr::drop_in_place
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ptr\mod.rs:523
42: 0x7ffbb8f962ca - core::ptr::drop_in_place
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ptr\mod.rs:523
43: 0x7ffbb8f962ca - core::ptr::drop_in_place
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ptr\mod.rs:523
44: 0x7ffbb8f962ca - core::ptr::mut_ptr::impl$0::drop_in_place
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ptr\mut_ptr.rs:1492
45: 0x7ffbb8f962ca - bevy_ptr::OwningPtr::drop_as
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bevy_ptr-0.16.0\src\lib.rs:472
46: 0x7ffbb8f962ca - bevy_ecs::component::ComponentDescriptor::drop_ptr
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bevy_ecs-0.16.0\src\component.rs:1096
47: 0x7ffbba3ba5d4 - bevy_ecs::storage::blob_vec::BlobVec::clear
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bevy_ecs-0.16.0\src\storage\blob_vec.rs:390
48: 0x7ffbba3ba5d4 - bevy_ecs::storage::blob_vec::impl$2::drop
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bevy_ecs-0.16.0\src\storage\blob_vec.rs:398
49: 0x7ffbba3ba5d4 - core::ptr::drop_in_place
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ptr\mod.rs:523
50: 0x7ffbb8cea282 - core::ptr::drop_in_place
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ptr\mod.rs:523
51: 0x7ffbb8cea282 - core::mem::manually_drop::ManuallyDrop::drop
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\mem\manually_drop.rs:256
52: 0x7ffbb8cea282 - bevy_ecs::storage::resource::impl$0::drop
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bevy_ecs-0.16.0\src\storage\resource.rs:54
53: 0x7ffbb8cea282 - core::ptr::drop_in_place
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ptr\mod.rs:523
54: 0x7ffbb8cea282 - core::ptr::drop_in_place
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ptr\mod.rs:523
55: 0x7ffbb8cea282 - alloc::vec::impl$25::drop,alloc::alloc::Global>
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\alloc\src\vec\mod.rs:3786
56: 0x7ffbb8bf2df0 - core::ptr::drop_in_place
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ptr\mod.rs:523
57: 0x7ffbb8bf2df0 - core::ptr::drop_in_place
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ptr\mod.rs:523
58: 0x7ffbb8bf2df0 - core::ptr::drop_in_place
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ptr\mod.rs:523
59: 0x7ffbb8bf2df0 - core::ptr::drop_in_place
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ptr\mod.rs:523
60: 0x7ffbb8c7450b - core::ptr::drop_in_place
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ptr\mod.rs:523
61: 0x7ffbb8c7450b - core::ptr::drop_in_place
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ptr\mod.rs:523
62: 0x7ffbb8c6c75e - bevy_render::pipelined_rendering::impl$2::cleanup::closure$0
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bevy_render-0.16.0\src\pipelined_rendering.rs:174
63: 0x7ffbb8c6c75e - std::sys::backtrace::__rust_begin_short_backtrace >
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\sys\backtrace.rs:152
64: 0x7ffc7351f730 - _CxxFrameHandler3
65: 0x7ffc73513a86 - is_exception_typeof
66: 0x7ffc7351ec04 - _C_specific_handler
67: 0x7ffc73512c94 - is_exception_typeof
68: 0x7ffc7351f541 - _CxxFrameHandler3
69: 0x7ffc907554ff - _chkstk
70: 0x7ffc906d0174 - RtlUnwindEx
71: 0x7ffc7351f0ca - _C_specific_handler
72: 0x7ffc735118e5 - is_exception_typeof
73: 0x7ffc73511d00 - is_exception_typeof
74: 0x7ffc73512d90 - is_exception_typeof
75: 0x7ffc7351f541 - _CxxFrameHandler3
76: 0x7ffc9075547f - _chkstk
77: 0x7ffc906ce886 - RtlFindCharInUnicodeString
78: 0x7ffc90704955 - RtlRaiseException
79: 0x7ffc8d8d016c - RaiseException
80: 0x7ffbc8137b47 - _CxxThrowException
at D:\a\_work\1\s\src\vctools\crt\vcruntime\src\eh\throw.cpp:79
81: 0x7ffbc81025e0 - panic_unwind::imp::panic
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\panic_unwind\src\seh.rs:350
82: 0x7ffbc81025e0 - panic_unwind::__rust_start_panic
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\panic_unwind\src\lib.rs:99
83: 0x7ffbc80eaf65 - std::panicking::rust_panic
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\panicking.rs:892
84: 0x7ffbc80eaeb3 - std::panicking::rust_panic_without_hook
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\panicking.rs:883
85: 0x7ffbc80e029f - std::panic::resume_unwind
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\panic.rs:390
86: 0x7ffbba3f0429 - bevy_ecs::schedule::executor::multi_threaded::impl$2::run
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bevy_ecs-0.16.0\src\schedule\executor\multi_threaded.rs:255
87: 0x7ffbba47e17a - bevy_ecs::schedule::schedule::Schedule::run
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bevy_ecs-0.16.0\src\schedule\schedule.rs:447
88: 0x7ffbba37f795 - bevy_ecs::world::impl$4::run_schedule::closure$0
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bevy_ecs-0.16.0\src\world\mod.rs:3678
89: 0x7ffbba37f795 - bevy_ecs::world::World::try_schedule_scope
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bevy_ecs-0.16.0\src\world\mod.rs:3597
90: 0x7ffbba37f795 - bevy_ecs::world::World::schedule_scope,bevy_ecs::intern::Interned >,bevy_ecs::world::impl$4::run_schedule::closure_env$0 > > >
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bevy_ecs-0.16.0\src\world\mod.rs:3649
91: 0x7ffbba35c59a - bevy_ecs::world::World::run_schedule
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bevy_ecs-0.16.0\src\world\mod.rs:3678
92: 0x7ffbba35c59a - bevy_app::sub_app::SubApp::run_default_schedule
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bevy_app-0.16.0\src\sub_app.rs:138
93: 0x7ffbba35c59a - bevy_app::sub_app::SubApp::update
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bevy_app-0.16.0\src\sub_app.rs:144
94: 0x7ffbb8c6c38b - bevy_render::pipelined_rendering::impl$2::cleanup::closure$0
at C:\Users\momo\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bevy_render-0.16.0\src\pipelined_rendering.rs:168
95: 0x7ffbb8c6c38b - std::sys::backtrace::__rust_begin_short_backtrace >
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\sys\backtrace.rs:152
96: 0x7ffbb8fdd895 - core::ops::function::FnOnce::call_once >,tuple$<> >
at C:\Users\momo\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ops\function.rs:250
97: 0x7ffbc80fc03d - alloc::boxed::impl$28::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\alloc\src\boxed.rs:1976
98: 0x7ffbc80fc03d - alloc::boxed::impl$28::call_once
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\alloc\src\boxed.rs:1976
99: 0x7ffbc80fc03d - std::sys::pal::windows::thread::impl$0::new::thread_start
at /rustc/05f9846f893b09a1be1fc8560e33fc3c815cfecb/library\std\src\sys\pal\windows\thread.rs:56
100: 0x7ffc8ea8259d - BaseThreadInitThunk
101: 0x7ffc9070af38 - RtlUserThreadStart
error: process didn't exit successfully: `target\debug\bevy_render.exe` (exit code: 0xc0000409, STATUS_STACK_BUFFER_OVERRUN)
```


Contributor guide

Open the contributing guide

Research direction

Start with the minimal Rust reproduction and the validation error in bevy_core_pipeline::upscaling::node.rs at line 99. Reproduce the crash on Windows 11 with Vulkan while minimizing the window, then trace the render-pass scissor rectangle against the minimized 1×1 render target. Done means minimizing no longer causes the wgpu validation panic.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
computer-graphics, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.