-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash in Bullet when changing a CollisionShape #40311
Comments
This issue seems to happen only on master, so it could be due to #38253 (we've synced with Bullet master at the time, not on a stable release). We need to check if it still happens with the current master from Bullet, and if it's the case investigate to make sure we're not causing it and open an issue upstream if needed. |
Actually this is not caused by the collision, it's caused by changing the Changing the
|
This is a regression from #39726. Works fine with 480cb25, crashes with bd3a468. |
Internally the flush was moved into the PhysicsServer3D::get_singleton()->sync();
PhysicsServer3D::get_singleton()->flush_queries(); // <--- Shape is not changed at this point.
if (OS::get_singleton()->get_main_loop()->iteration(frame_slice * time_scale)) { // <--- Now the shape changes here.
exit = true;
break;
}
PhysicsServer3D::get_singleton()->step(frame_slice * time_scale); // <---- Process happens here, but the shape is nullptr. I'll provide a fix shortly. |
Fixed with: #40252 |
Reopening, because it still crashes on master 9adf6d3 (i.e. after #40252) with MRP 40311.zip. Console output:
Stack trace:
|
Can you please check: #41096 ? |
Godot version:
Master 9678a41
OS/device including version:
Windows 10
Issue description:
Issue reproduced on master while testing the use case from #40283 (see #40283 (comment))
Callstack:
Steps to reproduce:
Start the reproduction project and wait for the collision to happen.
Repro steps from the original issue:
Minimal reproduction project:
RigidBodyBugMinimal-4.0.zip
The text was updated successfully, but these errors were encountered: