MuMain icon indicating copy to clipboard operation
MuMain copied to clipboard

ErrorReport.cpp generates "garbage" file

Open JPZV opened this issue 6 months ago • 0 comments

For some reason the ErrorReport.cpp code generates garbage content for MuError.log. This happens in both a Windows 11 x64 and in a Steam Deck (Linux) running with Proton 9 (AKA Wine).

Not sure if this is an encoding error or a flush/memory issue, because the file has many NULL (\0) characters, incomplete message (like "###### Log Be" instead of "###### Log Begin ######"), or even printf format being printed literally instead of its interpreted result (e.g. "Current version: %s" instead of "Current version: 1.0").

Here are some logs:

MuError.log (From Windows)

MuError.log (From SteamDeck)

Please note that if you open the log file with a text editor which print the NULL character (Like VSCode or Notepad++), replace all instance of NULL with empty ("") so you can see the current content of the file

JPZV avatar Jun 10 '25 04:06 JPZV