Skip to content

drag panic #21946

@baozaolaoba-top

Description

@baozaolaoba-top

Bevy version and features

main branch

c7f607a

[Optional] Relevant system information

cargo 1.93.0-nightly (6c1b61003 2025-10-28)
Archlinux

"AMD Radeon Graphics", vendor: 4098, device: 5710, device_type: IntegratedGpu

What you did

drag on bevy-inspector-egui

What went wrong

panic

Additional information

thread 'Compute Task Pool (13)' (673467) panicked at /crates/bevy_picking/src/events.rs:769:75:called Option::unwrap() on a None value
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
Encountered a panic in system bevy_picking::events::pointer_events!
Encountered a panic in system bevy_app::main_schedule::Main::run_main!

#21853

*state.dragging_over.get_mut(&hovered_entity).unwrap() = hit.clone();

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-BugAn unexpected or incorrect behaviorS-Needs-TriageThis issue needs to be labelled

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions