TerminatorNL / LagGoggles

A minecraft forge mod which visualises lag in the world
GNU General Public License v3.0
54 stars 20 forks source link

Crash on viewing result: divided by zero #81

Closed Water-Moon closed 5 years ago

Water-Moon commented 5 years ago

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

TerminatorNL commented 5 years ago

Should be fixed in #86