Hang Detector

dankmeme

Hang Detector

This mod aims to detect a big and relatively common issue - closure hangs. These are most often caused by mods doing unsafe things in static destructors, causing the game to lock up and freeze forever when closing it. Such issues can be very difficult to debug, and they aren't even always obvious - they may simply leave the game running forever in background after it seems like it closed.

How it works

Hang detector bundles a small program called watchdog, that is launched alongside Geometry Dash. Using IPC, this program observes the state of the game, and most of the time sits idle. When it detects that the game has hung and no longer responds to requests, it begins to investigate.

Watchdog gives the game a 2.5 second grace period. This should be enough for most sane static destructors to run. If the game still hasn't closed after that time passes, the game is killed and certain debug information is collected; rather than letting it potentially run forever.

What it does not do

This mod currently does not detect any other kinds of crashes or main thread hangs that cause the game to freeze during gameplay, because it is difficult to know if the game froze forever or if it's just doing a heavy task.

Credits

Prevter - for making the logo!

v1.0.5

  • Port to Geode v6.0.0 for GD 2.209

v1.0.4

  • Don't trigger if a debugger is attached

v1.0.3

  • Always terminate the GD process after closing the hang detector message box
  • Change format for log filenames & add time in logs

v1.0.2

  • Fix non compliance with index guidelines

Original Site made by HJfod. Geode 2 parody-ish by MeFinity.

Geode-SDK is the property of the Geode Team.


This website (Geode 2, Codename Malachite) is not affiliated with the Geode Team in any way shape or form.