You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code softlocks within physics.step(); in the loop, after "Step: 9" is printed. The freeze does not occur if self.query_pipeline.update(&self.bodies, &self.colliders); is uncommented.
It was a bit difficult to figure out what was happening, as the freeze only occurred when rigidbodies were in certain positions. (If a == b, I could not trigger a freeze). If possible, it would be nice if the code panicked, or a more elegant solution that made it impossible for one to forget to update the QueryPipeline.
The freeze itself occurred inside this function call:
let _ = self.qbvh.refit(0.0,&mutself.workspace, |handle| {
In more complex code that periodically deleted rigidbodies and colliders, and had dynamic physics objects too, I occasionally panicked inside the closure on the next line, due to the handle's two internal integer components being huge numbers that looked like uninitialized memory.
Thank you for your work!
The text was updated successfully, but these errors were encountered:
I wasn’t able to reproduce the bug with the provided code, but, other similar issues were reported and a fix just got merged in dimforge/parry#185. So I’m closing this issue, but, feel free to open a new issue if this happens again.
The following code softlocks within
physics.step();
in the loop, after "Step: 9" is printed. The freeze does not occur ifself.query_pipeline.update(&self.bodies, &self.colliders);
is uncommented.It was a bit difficult to figure out what was happening, as the freeze only occurred when rigidbodies were in certain positions. (If a == b, I could not trigger a freeze). If possible, it would be nice if the code panicked, or a more elegant solution that made it impossible for one to forget to update the QueryPipeline.
The freeze itself occurred inside this function call:
rapier/src/pipeline/query_pipeline.rs
Line 349 in 1a4183c
In more complex code that periodically deleted rigidbodies and colliders, and had dynamic physics objects too, I occasionally panicked inside the closure on the next line, due to the handle's two internal integer components being huge numbers that looked like uninitialized memory.
Thank you for your work!
The text was updated successfully, but these errors were encountered: