WhiteMagic / JoystickGremlin

A tool for configuring and managing joystick devices.
http://whitemagic.github.io/JoystickGremlin/
GNU General Public License v3.0
313 stars 46 forks source link

debug.txt was 43 gigabytes in size! #392

Open ghost opened 2 years ago

ghost commented 2 years ago

I kept running out of disk space on my C: drive and I narrowed the problem to the dubug.txt file that Joytstick Gremlin writes to being 43 gigabytes in size. Why did it grow so large and is there a way to turn off this logging or otherwise limit the size of the file?

WhiteMagic commented 2 years ago

Technically this isn't a problem caused by Gremlin as it does not write to this file. That file is written to by DILL (https://github.com/WhiteMagic/dill) which is the library I wrote to handle DirectInput devices. While there is currently no truncating activated in the logging library used, which probably isn't a lot of work to enable, the log file shouldn't really be able to get that big. I suspect that at some point your system was connecting/disconnecting the USB devices at abnormal rates which is the one thing that would cause the log file to fill up with stuff quickly. But without knowing what is in the log file it's impossible to say why it got that big.

danw-eth commented 1 year ago

Hi, I've just had the same problem with my C drive filling up. The debug.txt is 19gb on my C:\Users\\AppData\Local\VirtualStore\Program Files (x86)\H2ik\Joystick Gremlin folder. Is it possible to disable this debug logging?

If the file was somewhere visible it wouldn't be a big issue, but it's quite deeply hidden and doesn't reset on its own.