The Roblox Client allows the creating of massive log files, and I mean GB’s of text files that have the potential to max out the C drive disc space.
I do realize these files get cleaned up automatically but it should not be possible for any Roblox game to create a text document over 1GB in size by spamming the client side output.
In this particular case that I had today, it was the same sentence being printed in what I assume was inside a RunService loop. Roblox does not currently combine same output lines with (x???) like they do in Studio output, which would have prevented the case I had today. However if the text had any variations, this method wouldn’t be viable as there would have to be a smarter spam detection than simply comparing 2 output messages to being the same.
For those wondering, the output text files are being stored here: C:/Users/USERNAME/appdata/local/Roblox/logs
I have messaged the game owner about this issue in their game and they will resolve it soon. But this can happen to any Roblox game if you are not careful with what you are printing and how its being printed.
I am posting this in Engine Bugs instead of Engine feature request in hopes that this can be resolved sooner as this can potentially cause client crashes and memory leaks if it has not already.
This bug appears to still be happening, both on the desktop and android version. Is there a chance you could look into this again and maybe try to limit the total log file on regular clients to maybe… 200 MB?
Right now I see log files accumulating into the realm for tens to even hundreds of GB, and it eats storage space very, very quickly. It appears that there is no limit to the log file sizes and that they don’t get cleaned up either.
Maybe there could be a setting in the client to limit the log file storage so it can’t grow out of bounds.
And maybe also limit the amount of writes that can be made to the log files, because if it writes 1 GB/hour to the log file, it’s still going to destroy SSDs if the log size limit is set to a reasonable value of maybe 20 or 20 MB.
The best could perhaps be to add the ability to disable logfiles altogether on clients or just have very minimal logging for critical errors and such. Most of what I see in the log files is “Warning” spam.
Earlier today I was playtesting with a few of my players and couple hours later I had noticed that some apps wouldn’t start properly so I checked my Local drive. Completely full! So I go check why that happened, turns out that a log file was created in my roblox folder that was over 30gb in size!! completely filled the whole thing! This seems dangerous, I hope it’s somewhat protected- It’s strange since this has only happens to me now, I’m a very active developer and I’ve never even bothered to check the log folder, didn’t think it’d be an issue. Today’s log file seemed to have been the only one that large.