CursorPlugin causes panic when window is closed #15490
Labels
A-Windowing
Platform-agnostic interface layer to run your app in
C-Bug
An unexpected or incorrect behavior
D-Straightforward
Simple bug fixes and API improvements, docs, test and examples
S-Ready-For-Implementation
This issue is ready for an implementation PR. Go for it!
Milestone
Bevy version
Main branch (6963b58)
What you did
Upon closing window, main thread panics.
What went wrong
thread 'main' panicked at ~/.cargo/git/checkouts/bevy-4791836925474557/6963b58/crates/bevy_ecs/src/system/commands/mod.rs:1714:13:
error[B0003]: ~/.cargo/git/checkouts/bevy-4791836925474557/6963b58/crates/bevy_render/src/view/window/cursor.rs:171:10: Could not insert a bundle (of type
bevy_winit::state::PendingCursor
) for entity 0v1#4294967296 because it doesn't exist in this World. See: https://bevyengine.org/learn/errors/b0003Additional information
Looks like CursorPlugin tries to access entity that was just removed (window closed).
bevy/crates/bevy_render/src/view/window/cursor.rs
Line 171 in df23b93
The text was updated successfully, but these errors were encountered: