Tomas Mariancik

Results 313 comments of Tomas Mariancik

I don't think it actually has anything to do with the ProtoFluxWireManager based on that. Given the nature of the crash, it could be a stack overflow exception. These tend...

Thanks! I've been working on this now. I can reproduce this with headless with debugger joining the session to. What's weird is that it also just straight up crashes, Visual...

Making progress. I enabled creation of process dumps via registry (https://stackoverflow.com/questions/68215771/can-i-force-windows-create-a-local-dump-of-a-crashing-net-application). Got the exception: ![Image](https://github.com/user-attachments/assets/d07d848c-2e41-463c-ada8-f98e3a8eac09)

I narrowed it down further some more. It has to do with a particular BoxCollider (always the same one) in the world. When it gets registered with the Bepu physics...

Narrowed it down further. It happens due to excessive depth traversal when the body is being registered - this results in overwriting the program stack in Bepu, because it goes...

It's this specifically. It's still an issue in latest version of Bepu in master, although it's an edge case: https://github.com/bepu/bepuphysics2/blob/ec5082f1839a50b8aff07354483994d6b4bad73b/BepuPhysics/Trees/Tree_RayCast.cs#L109

This specific crash has been fixed in 2025.2.19.21! This is currently a workaround, I just increased the stack size for the traversal. It's possible for this to still occur with...

We can make it take the name of the slot the material is on, but that won't always be correct in this case, since the materials can be deduplicated. Though...

Yeah I think it'll be good change. Just won't always work out the way it's proposed, depending on where the materials are.