Skip to content

light_probe_blending crashes on DX12: Map buffer failed #23254

@mockersf

Description

@mockersf

Bevy version and features

  • main

What you did

in CI:

cargo run --profile release --example light_probe_blending --features bevy_ci_testing --features free_camera,https

What went wrong

     Running `target\release\examples\light_probe_blending.exe`
2026-03-06T22:14:41.183498Z  INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Windows Server 2025 Datacenter", kernel: "26100", cpu: "AMD EPYC 7763 64-Core Processor", core_count: "2", memory: "16.0 GiB" }
2026-03-06T22:14:41.184612Z  WARN bevy_asset::io::web: WebAssetPlugin is potentially insecure! Make sure to verify asset URLs are safe to load before loading them. If you promise you know what you're doing, you can silence this warning by setting silence_startup_warning: true in the WebAssetPlugin construction.
2026-03-06T22:14:41.293370Z  INFO bevy_render::renderer: AdapterInfo { name: "Microsoft Basic Render Driver", vendor: 5140, device: 140, device_type: Cpu, device_pci_bus_id: "", driver: "10.0.26100.32234", driver_info: "", backend: Dx12, subgroup_min_size: 4, subgroup_max_size: 4, transient_saves_memory: false }
2026-03-06T22:14:41.293423Z  WARN bevy_render::renderer: The selected adapter is using a driver that only supports software rendering. This is likely to be very slow. See https://bevy.org/learn/errors/b0006/
2026-03-06T22:14:41.413907Z  WARN bevy_audio::audio_output: No audio device found.
2026-03-06T22:14:41.444923Z  INFO bevy_render::batching::gpu_preprocessing: GPU preprocessing is fully supported on this device.
2026-03-06T22:14:41.445126Z  INFO bevy_pbr::cluster: GPU clustering is supported on this device.
2026-03-06T22:14:41.446539Z  INFO bevy_winit::system: Creating new window Bevy Light Probe Blending Example (63v0)
2026-03-06T22:16:32.406914Z ERROR wgpu_hal::auxil::dxgi::result: Map buffer failed: The GPU device instance has been suspended. Use GetDeviceRemovedReason to determine the appropriate action. (0x887A0005)
2026-03-06T22:16:32.407124Z ERROR wgpu_hal::auxil::dxgi::result: Map buffer failed: The GPU device instance has been suspended. Use GetDeviceRemovedReason to determine the appropriate action. (0x887A0005)
2026-03-06T22:16:32.407182Z ERROR wgpu_hal::auxil::dxgi::result: Map buffer failed: The GPU device instance has been suspended. Use GetDeviceRemovedReason to determine the appropriate action. (0x887A0005)
2026-03-06T22:16:32.407828Z ERROR bevy_render::error_handler: Caught DeviceLost error: Unknown Device is lost

thread 'main' (7772) panicked at crates\bevy_render\src\render_resource\uniform_buffer.rs:312:18:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

thread 'Compute Task Pool (1)' (8672) panicked at crates\bevy_render\src\render_resource\uniform_buffer.rs:312:18:
called `Option::unwrap()` on a `None` value

thread 'Compute Task Pool (0)' (7212) panicked at C:\Users\runneradmin\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\wgpu-28.0.0\src\backend\wgpu_core.rs:2231:18:
Error in Buffer::get_mapped_range: Validation Error

Caused by:
  Buffer with '' label is invalid

Encountered a panic in system `<Enable the debug feature to see the name>`!
Encountered a panic in system `
thread 'main' (7772) panicked at crates\bevy_render\src\render_resource\uniform_buffer.rs:312:18:
called `Option::unwrap()` on a `None` value
<Enable the debug feature to see the name>`!
Encountered a panic in system `<Enable the debug feature to see the name>`!
Encountered a panic in system `
thread 'Compute Task Pool (1)' (8672) panicked at crates\bevy_render\src\render_resource\uniform_buffer.rs:312:18:
called `Option::unwrap()` on a `None` value
<Enable the debug feature to see the name>`!

thread 'Compute Task Pool (0)' (7212) panicked at crates\bevy_render\src\render_resource\uniform_buffer.rs:312:18:
called `Option::unwrap()` on a `None` value

thread 'main' (7772) panicked at crates\bevy_render\src\render_resource\uniform_buffer.rs:312:18:
called `Option::unwrap()` on a `None` value
Encountered a panic in system `<Enable the debug feature to see the name>`!
Encountered a panic in system `<Enable the debug feature to see the name>`!
Encountered a panic in system `<Enable the debug feature to see the name>
thread 'main' (7772) panicked at crates\bevy_render\src\render_resource\uniform_buffer.rs:312:18:
  21:     0x7fffc9710311 - _CxxFrameHandler3
  22:     0x7fffd89663df - _chkstk
  23:     0x7fffd880e593 - RtlUnwindEx
  24:     0x7fffc970fe76 - _C_specific_handler
  25:     0x7fffc97018f2 - is_exception_typeof
  26:     0x7fffc9701d17 - is_exception_typeof
  27:     0x7fffc9702d61 - is_exception_typeof
  28:     0x7fffc9710311 - _CxxFrameHandler3
  29:     0x7fffd896635f - _chkstk
  30:     0x7fffd8812327 - RtlLocateExtendedFeature
  31:     0x7fffd880a961 - RtlRaiseException
  32:     0x7fffd5eda80a - RaiseException
  33:     0x7fffc9705277 - CxxThrowException
  34:     0x7ff631037f1d - panic_unwind::imp::throw_exception
                               at /rustc/4a4ef493e3a1488c6e321570238084b38948f6db/library\panic_unwind\src\seh.rs:368
  35:     0x7ff631037df5 - panic_unwind::imp::panic
                               at /rustc/4a4ef493e3a1488c6e321570238084b38948f6db/library\panic_unwind\src\seh.rs:302
  36:     0x7ff631037df5 - panic_unwind::__rust_start_panic
                               at /rustc/4a4ef493e3a1488c6e321570238084b38948f6db/library\panic_unwind\src\lib.rs:108
  37:     0x7ff6310200ef - std::panicking::rust_panic
                               at /rustc/4a4ef493e3a1488c6e321570238084b38948f6db/library\std\src\panicking.rs:886
  38:     0x7ff63103163a - std::panicking::panic_with_hook
                               at /rustc/4a4ef493e3a1488c6e321570238084b38948f6db/library\std\src\panicking.rs:850
  39:     0x7ff631031364 - std::panicking::panic_handler::closure$0
                               at /rustc/4a4ef493e3a1488c6e321570238084b38948f6db/library\std\src\panicking.rs:698
  40:     0x7ff63102b87f - std::sys::backtrace::__rust_end_short_backtrace<std::panicking::panic_handler::closure_env$0,never$>
                               at /rustc/4a4ef493e3a1488c6e321570238084b38948f6db/library\std\src\sys\backtrace.rs:182
  41:     0x7ff6310203be - std::panicking::panic_handler
                               at /rustc/4a4ef493e3a1488c6e321570238084b38948f6db/library\std\src\panicking.rs:689
  42:     0x7ff63118a51d - core::panicking::panic_fmt
                               at /rustc/4a4ef493e3a1488c6e321570238084b38948f6db/library\core\src\panicking.rs:80
  43:     0x7ff63118a167 - core::result::unwrap_failed
                               at /rustc/4a4ef493e3a1488c6e321570238084b38948f6db/library\core\src\result.rs:1867
  44:     0x7ff62ebd58ab - core::ops::function::impls::<impl core::ops::function::FnMut<A> for &mut F>::call_mut::h75aaee43b78a2f36
  45:     0x7ff62ebbedbe - <bevy_ecs::system::function_system::FunctionSystem<Marker,In,Out,F> as bevy_ecs::system::system::System>::run_unsafe::hb18dd95faea3e19f
  46:     0x7ff630e1adf6 - bevy_ecs::schedule::executor::__rust_begin_short_backtrace::run_unsafe::hfda4453d6d082cf1
  47:     0x7ff630e96f04 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::future::future::Future>::poll::hebe7259b4dfb7185
  48:     0x7ff630ea9b8a - async_task::raw::RawTask<F,T,S,M>::run::hc233df116d5431dc
  49:     0x7ff630ed103b - <futures_lite::future::Or<F1,F2> as core::future::future::Future>::poll::hf061e974867140e1
  50:     0x7ff630eccffb - std::thread::local::LocalKey<T>::with::h14afc370a11d817c
  51:     0x7ff630ecd6ea - std::thread::local::LocalKey<T>::with::h1c7a40524351e6d4
  52:     0x7ff630eca137 - std::sys::backtrace::__rust_begin_short_backtrace::h726f23bb6cf9a3f2
  53:     0x7ff630ecf488 - std::thread::lifecycle::spawn_unchecked::hfd3d4f7b08f41e59
  54:     0x7ff63102b148 - std::sys::thread::windows::impl$0::new::thread_start
                               at /rustc/4a4ef493e3a1488c6e321570238084b38948f6db/library\std\src\sys\thread\windows.rs:58
  55:     0x7fffd7bce8d7 - BaseThreadInitThunk
  56:     0x7fffd888c53c - RtlUserThreadStart
error: process didn't exit successfully: `target\release\examples\light_probe_blending.exe` (exit code: 0xc0000409, STATUS_STACK_BUFFER_OVERRUN)

Additional information

It's possible it could be due to the constraint of CI, could someone confirm on their local Windows?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behaviorO-DX12Specific to the DX12 render APIP-RegressionFunctionality that used to work but no longer does. Add a test for this!S-Needs-TestingTesting must be done before this is safe to merge

    Type

    No type

    Projects

    Status

    Needs SME Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions