Launcher icon indicating copy to clipboard operation
Launcher copied to clipboard

MultiMC spamming system logs

Open Gamebuster19901 opened this issue 2 years ago • 1 comments

Operating System

Linux

Description of bug

The system logs are spammed with W QCoreApplication::postEvent: Unexpected null receiver. I believe this happens when files are downloaded.

Steps to reproduce

  1. Launch MultiMC
  2. Launch a game
  3. After the game gets to the main menu, close the game.
  4. run journalctl -b --no-pager in a terminal and observe the log entries.

Log Entries:

logspam.txt

The bigger the modpack that is launched, the more log spam there appears to be.

Suspected cause

No response

This issue is unique

  • [X] I have searched the issue tracker and did not find an issue describing my bug.

Gamebuster19901 avatar May 06 '23 22:05 Gamebuster19901

I've found that MultiMC uses Qt logging facilities, which can be configured at runtime: https://stackoverflow.com/a/39627492/4704639

For me personally the majority of log entries were debug messages, these can be hidden by setting QT_LOGGING_RULES=*.debug=false for the process.

Either your DE offers a GUI for this (KDE does), or you can manually edit your multimc.desktop,
changing Exec=<multimc.sh> to
Exec=env 'QT_LOGGING_RULES=*.debug=false' <multimc.sh>.
This should perhaps be the default in the .desktop file.

The warnings you get might have a distinct message category such that you can filter them out with <category>.warning=false without disabling warnings as a whole. You can find that out by modifying the message pattern to include that information: QT_MESSAGE_PATTERN="%{time process} %{category} %{type} %{function}: %{message}"

KiitoX avatar Jul 18 '23 07:07 KiitoX