dimforge / rapier.js

Official JavaScript bindings for the Rapier physics engine.
https://rapier.rs
Apache License 2.0
415 stars 57 forks source link

Runtime Error: unreachable on long running window #266

Open YageStudios opened 6 months ago

YageStudios commented 6 months ago

I have a multiplayer game that has 60 second rounds that will peak at about 800 entities that are cycled through pretty frequently.

Each round I destroy the references to the world then rebuild a new world to start fresh.

I was playing it with a friend and got to round 14 when I hit this unreachable message.

image

My guess is a counter overflowed. It triggered for both me and my friend at the exact same time (the game engine and state are deterministic and use lock step logic for the multiplayer component).

Any suggestions to overcome the issue? Is there any data that I can log that may help debug the issue?

MaxBittker commented 5 months ago

I am curious how to get better error messages in these cases

MaxBittker commented 5 months ago

(I got better error messages by running a debug build)