bevy_mod_raycast icon indicating copy to clipboard operation
bevy_mod_raycast copied to clipboard

Panic with bevy master cf221f96

Open edisno opened this issue 4 years ago • 2 comments

thread 'main' panicked at '$state_name<bevy_mod_raycast::bounding::BoundVol> conflicts with a previous access in this query. Shared access cannot coincide with exclusive access.'

I believe this bevy commit introduced the problem: https://github.com/bevyengine/bevy/commit/9657f58f6a84b82f508cf5f09765db3d26d139ff

edisno avatar Apr 16 '21 18:04 edisno

~Can you provide more details from the error? Are you sure this isn't coming from your own systems?~

I was able to replicate. Problem is that the query filter for update_bound_vol() refers to the same component that is being mutably accessed in the query. Brought up in bevy discord, discussion here: https://discord.com/channels/691052431525675048/749335865876021248/833295370729029682

Can fix with a workaround for now.

aevyrie avatar Apr 18 '21 10:04 aevyrie

This is fixed in master fyi.

aevyrie avatar Apr 20 '21 08:04 aevyrie