LagGoggles

LagGoggles

9M Downloads

Crash on viewing result: divided by zero

Water-Moon opened this issue ยท 1 comments

commented

Describe the bug
When the game lags a lot and profile is only running for a short period(less than the time of 1 tick), a crash could occur because in the calculation it is divided by 0 tick.
SpongeForge Not present.
Game Version 1.12.2
Forge 14.23.5.2838
LagGoggles FAT-1.12.2-4.8

To Reproduce

  1. Make an extremely extraordinary magnificant huge lag machine,
  2. Now choose to profile for 5 seconds, and choose to profile "World"
  3. Try to open the "Analyze" screen
  4. Your game crashed.

Suggest: Add if statement to check if the tick amount during the profiling period is zero.

Crash Report
https://paste.dimdev.org/egarajumid.mccrash

edit reason: typo

commented

Should be fixed in #86