phoboslab / wipeout-rewrite

2.59k stars 198 forks source link

Memory access out of bound after idling on the results screen #86

Open rndtrash opened 9 months ago

rndtrash commented 9 months ago

image

The game spammed with this exception after I left it running for a while. It stopped printing these errors after pressing Enter.

phoboslab commented 9 months ago

Was it running in a background tab? It's possibly related to throttling of background tabs, where the real time still advances, but the game code is not called often enough by the browser to catch up.

rndtrash commented 9 months ago

Yes, it was running in a background tab.

the real time still advances, but the game code is not called often enough by the browser to catch up.

So it's not fixable then? Again, other than the annoying exception message in the middle of the screen and music stopping until I press Enter to continue, everything works fine, so I can live with that.

phoboslab commented 9 months ago

Well, we can probably detect it and work around this issue. There's no way to make it run in the backgorund, though. I.e. music will always stop when the tab is not in focus.