Crashing, but why? I don't understand the error message

I recommend you open an issue on Godot github because no matter you do, Godot philosophy is never crash, so will be interesting send this for developers check

+1 on opening an issue

The 2^32-1 now makes more sense - it’s BVHCommon::Invalid, so if you had BVH_ASSERTs enabled, it would crash there, instead of the next line.

Looks also like a race condition, but you’re right it’s very different from mine.

@matheusmdx
I’ve had another go at creating a simple project to demonstrate the issue, so far I have been unable to get it to crash. I didn’t want to open an issue without a reproduceable project, but I’m opening one now.
On searching again for things related to broad phase discarding and collision_object_3d code, I think it’s probably related to me turning on physics/3d/run_on_seperate_thread (it was at the start of the project when I did that). A quick test with it off seems to stop the crashing, like using set_deferred (but without the side effects). However it is hard to reproduce the crashing on demand and I’d previously thought I’d fixed the issue and I hadn’t.

EDIT:
Game crashes, but unable to recreate in a simple project, potentially a threading issue. Ā· Issue #92467 Ā· godotengine/godot (github.com)