Reproducible Divide by Zero Segfault Crash Report #5
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
reproducible bug:
the bug occurs when decelerating and reaching the edge
I suspect this bug may be the same as a similar one I just experienced
If you time a reset just as you walk off a platform, an input instruction can somehow happen with a delta time of 0, causing
InputState::lerp_delta
to divide by zero (tested by loading rbhop's saveda and resetting as I walk off the start plat). I've also had it happen once on a diff map just by walking against an edge normally.Resetting is treated as an input and does not flush the event queue in physics_worker.rs. Perhaps instead of returning Some(PhysicsInputInstruction::Idle) it should return None to flush the queue and change to immediate execution mode, as if the mouse had stopped moving for over 10ms
Update: The issue is more than just a well timed reset. Loading bhop_pohb (see attached file) and just holding s will cause the lerp_delta divide by zero crash, no mouse movement or other key presses required
Update 2: More specific: Resetting, never generating a mouse event (don't move the mouse), and then causing a strafe tick (pressing any key while in the air), will also cause a crash, probably on any map
(tl;dr load map or reset -> never move mouse -> jump -> strafe in air -> divide by zero)