Skip to content
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 epa3.rs #246

Open
ethereumdegen opened this issue Jul 29, 2024 · 1 comment
Open

Crash in epa3.rs #246

ethereumdegen opened this issue Jul 29, 2024 · 1 comment

Comments

@ethereumdegen
Copy link

Getting a crash on this linein epa3 around line 313 i believe:

let mut best_face_id = *self.heap.peek().unwrap();

I dont know what is causing it in my instance yet but why is this an unwrap? seems unsafe.

thread 'Compute Task Pool (2)' panicked at /home/andy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/parry3d-0.15.1/src/query/epa/epa3.rs:313:50:
called `Option::unwrap()` on a `None` value

@ethereumdegen
Copy link
Author

ethereumdegen commented Jul 29, 2024

I have narrowed it down more.. Spawning a Collider with a Sensor but without a RigidBody or Dynamicbody reliably causes this crash for me in my app

Adding a DynamicBody or RigidBody component makes it NOT crash anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant