Crash in BVH when using move_and_slide
or move_and_collide
with multi-threaded physics server
#53496
Labels
Milestone
Godot version
3.4-beta6
System information
Windows 10
Issue description
Based on #24050 (comment).
Random crash happens in the BVH with multi-threaded physics server due to possible calls to
_update_shapes
on both the main thread (test_body_motion
in_physics_process
) and the physics server thread syncing commands.The repro case is 2D only on 3.x,
but it probably also happens on master and in 3D.Edit: it looks like the issue is on 3.x only and was fixed on master with #45852.
Callstack on the main thread:
Callstack on the physics thread:
Steps to reproduce
Using the MRP, just try starting the game until it crashes immediately (happens about once every 4 times for me).
Minimal reproduction project
Sonic Outbreak project from #24050:
Sonic_Outbreak.zip
The text was updated successfully, but these errors were encountered: