Bevy version and features
bevy = "0.18", default features.
Relevant system information
rustc 1.92.0 stable, aarch64-pc-windows-msvc
- Windows 11 Home, build 26200, Snapdragon X laptop
wgpu 27.0.1, winit 0.30.13
AdapterInfo { name: "Qualcomm(R) Adreno(TM) X1-85 GPU", vendor: 20803, device: 909329200, device_type: IntegratedGpu, driver: "Qualcomm Technologies Inc. Adreno Vulkan Driver", driver_info: "Driver Build: 9876292e35, , 1748599450\nDate: 05/30/2025\nCompiler Version: E031.50.05.00\nDriver Branch: PP137\n", backend: Vulkan }
What you did
Ran the app below, minimized the window, restored the window. Repeat once or twice.
Cargo.toml:
[dependencies]
bevy = "0.18"
src/main.rs:
use bevy::prelude::*;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_systems(Startup, setup)
.run();
}
fn setup(
mut commands: Commands,
) {
commands.spawn(Camera2d);
commands.spawn((
Sprite::from_color(Color::srgb(0.8, 0.3, 0.3), Vec2::splat(200.0)),
Transform::default(),
));
}
What went wrong
The window flickers a bunch upon restoring and then the game crashes with the following error:
2026-05-06T01:45:53.853057Z ERROR wgpu::backend::wgpu_core: Handling wgpu errors as fatal by default
thread 'Compute Task Pool (4)' panicked at wgpu-27.0.1\src\backend\wgpu_core.rs:3832:38:
wgpu error: Validation Error
Caused by:
In Surface::get_current_texture_view
Surface is not configured for presentation
stack backtrace:
0: std::panicking::panic_handler
1: core::panicking::panic_fmt
2: wgpu::backend::wgpu_core::default_error_handler
at wgpu-27.0.1\src\backend\wgpu_core.rs:693
3: wgpu::backend::wgpu_core::ErrorSinkRaw::handle_error_or_return_handler
at wgpu-27.0.1\src\backend\wgpu_core.rs:677
4: wgpu::backend::wgpu_core::ContextWgpuCore::handle_error_inner
at wgpu-27.0.1\src\backend\wgpu_core.rs:305
5: wgpu::backend::wgpu_core::ContextWgpuCore::handle_error_nolabel
at wgpu-27.0.1\src\backend\wgpu_core.rs:338
6: wgpu::backend::wgpu_core::impl$56::get_current_texture
at wgpu-27.0.1\src\backend\wgpu_core.rs:3832
7: wgpu::api::surface::Surface::get_current_texture
at wgpu-27.0.1\src\api\surface.rs:109
8: bevy_render::view::window::prepare_windows
at bevy_render-0.18.1\src\view\window\mod.rs:279
Encountered a panic in system `<Enable the debug feature to see the name>`!
thread 'Compute Task Pool (4)' panicked at bevy_render-0.18.1\src\render_resource\uniform_buffer.rs:312:18:
called `Option::unwrap()` on a `None` value
5: bevy_render::render_resource::uniform_buffer::DynamicUniformBuffer<bevy_pbr::light_probe::EnvironmentMapUniform>::get_writer
at bevy_render-0.18.1\src\render_resource\uniform_buffer.rs:312
6: bevy_pbr::light_probe::prepare_environment_uniform_buffer
at bevy_pbr-0.18.1\src\light_probe\mod.rs:414
thread 'Compute Task Pool (2)' panicked at bevy_render-0.18.1\src\render_resource\uniform_buffer.rs:312:18:
called `Option::unwrap()` on a `None` value
5: bevy_render::render_resource::uniform_buffer::DynamicUniformBuffer<bevy_pbr::render::fog::GpuFog>::get_writer
at bevy_render-0.18.1\src\render_resource\uniform_buffer.rs:312
6: bevy_pbr::render::fog::prepare_fog
at bevy_pbr-0.18.1\src\render\fog.rs:60
thread 'Compute Task Pool (3)' panicked at bevy_render-0.18.1\src\render_resource\uniform_buffer.rs:312:18:
called `Option::unwrap()` on a `None` value
5: bevy_render::render_resource::uniform_buffer::DynamicUniformBuffer<bevy_pbr::ssr::ScreenSpaceReflectionsUniform>::get_writer
at bevy_render-0.18.1\src\render_resource\uniform_buffer.rs:312
6: bevy_pbr::ssr::prepare_ssr_settings
at bevy_pbr-0.18.1\src\ssr\mod.rs:488
thread 'Compute Task Pool (0)' panicked at bevy_render-0.18.1\src\render_resource\uniform_buffer.rs:312:18:
called `Option::unwrap()` on a `None` value
5: bevy_render::render_resource::uniform_buffer::DynamicUniformBuffer<bevy_pbr::light_probe::LightProbesUniform>::get_writer
at bevy_render-0.18.1\src\render_resource\uniform_buffer.rs:312
6: bevy_pbr::light_probe::upload_light_probes
at bevy_pbr-0.18.1\src\light_probe\mod.rs:454
thread 'Compute Task Pool (1)' panicked at bevy_render-0.18.1\src\render_resource\uniform_buffer.rs:312:18:
called `Option::unwrap()` on a `None` value
5: bevy_render::render_resource::uniform_buffer::DynamicUniformBuffer<bevy_render::view::ViewUniform>::get_writer
at bevy_render-0.18.1\src\render_resource\uniform_buffer.rs:312
6: bevy_render::view::prepare_view_uniforms
at bevy_render-0.18.1\src\view\mod.rs:931
Bevy version and features
bevy = "0.18", default features.Relevant system information
rustc 1.92.0stable, aarch64-pc-windows-msvcwgpu 27.0.1,winit 0.30.13What you did
Ran the app below, minimized the window, restored the window. Repeat once or twice.
Cargo.toml:src/main.rs:What went wrong
The window flickers a bunch upon restoring and then the game crashes with the following error: