-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
QBVH rebalance
still panics at 'attempt to add with overflow'
#146
Comments
I am also having this issue. |
Still getting this (just using rapier & passing query pipeline in |
Currently hitting the same issue intermittently (will come back to it in the future to fix for what I'm working on now if nobody else picks it up). Here is a stack trace:
|
rebalance
still panicks at 'attempt to add with overflow'rebalance
still panics at 'attempt to add with overflow'
I am also hitting this issue intermittently in parry2d:
|
Parry occasionally panics due to add overflow (dimforge#146). I couldn't write a test that reliably replicates the condition, but since it occurs at `src/partitioning/update.rs:367` and the only addition on that line is `depth + 1`, I'm willing to bet money that the problem is that we are overflowing `depth`, which is a `u8`. I bumped it to `u32`, which should still have low memory cost and be more space than we ever need for a tree structure.
For others in this thread who are using rapier: my workaround has been to pass |
I am also still hitting this issue. It would be nice to understand the root cause of it. |
Bevy XPBD is using Parry internally for spatial queries, and the
rebalance
method ofQbvh
is causing panics with the error 'attempt to add with overflow'. #139 claims to fix this, but it doesn't seem like it, although the error is on a slightly different line.This is the code that calls
rebalance
, in theupdate_incremental
method, similar to Rapier's query pipeline:The text was updated successfully, but these errors were encountered: