plasmashell flooding journal while mpv is playing

Hi,

While playing an internet stream in mpv I am getting thousands of these messages in journal:


...
[42510.470447] plasmashell[2519]: kde.dataengine.mpris: "org.mpris.MediaPlayer2.mpv.instance0x7f38b4009410" exports "SupportedMimeTypes" as D-Bus type "<unknown>" but it should be D-Bus type "as"
[42510.470595] plasmashell[2519]: kde.dataengine.mpris: "org.mpris.MediaPlayer2.mpv.instance0x7f38b4009410" exports "SupportedUriSchemes" as D-Bus type "<unknown>" but it should be D-Bus type "as"
[42510.470713] plasmashell[2519]: kde.dataengine.mpris: "org.mpris.MediaPlayer2.mpv.instance0x7f38b4009410" exports "Position" as D-Bus type "d" but it should be D-Bus type "x"
...

This is flooding my logs with unnecessary info and (I suspect) it may even be influencing system performance by adding this logging overhead.

How can I stop this log flood please?

No guarantee this will work, but try:

Create a text file “qtlogging.ini” in “/usr/share/qt5” with the following content:

[Rules]
*.debug=false

Be aware though, this will affect all kde/qt applications.

Before starting this thread I already had:


$ printenv | grep QT_LOGGING_RULES
QT_LOGGING_RULES=*.debug=false;qt.qpa.*=false

but it simply removed other (less fequent but still too many and annoying) messages like:


kwin_x11[2488]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 2508, resource id: 100663296, major code: 18 (ChangeProperty), minor code: 0

The ones listed in the OP still remain though.

Considering the above:
Should I still do what you suggest?

ETA: These seem to “warning” messages, not “debug” ones, so perhaps that’s why they remain unaffected by QT logging setting?

Sorry, I’d not looked that closely, I assumed(!) they were debug messages.

Depends on what messages you want to suppress…

other options for “non-essential” are
*.warning=false
*.info=false

KDE/Qt does issue a lot of debug messages, digikam for example writes almost 64k to the journal just on start-up.

Personally, I suppress debug and info…

Thanks for the additional clarifications.

Wouldn’t suppressing all warnings (for all programs) have any negative effects?

Is there a way to suppress only the warning messages for mpv?

Only if you’re looking through the journal for warning messages…

One could run with all warning messages suppressed, then if you had problems with an application re-enable warnings. The obvious drawback to that is (with warnings suppressed) if there was an unexpected problem you wouldn’t then glean much from the journal.

Is there a way to suppress only the warning messages for mpv?

Not that I’m aware of, (which doesn’t mean there isn’t). I believe it would be up to the individual application to be less verbose, or to have some method of controlling it’s verbosity. But I’m very much open to correction on that one.

My concerns exactly.

BTW searching the web I found there is a program called ‘kdebugsettings’ in which I see it is possible to control individually KDE programs. But mpv is not in the list of programs. Trying to add it through the “Insert” button results in a looooong delay after which typing ‘mpv’ in the search field shows some weird lines. So I have no idea if this is the way to it.

Another thing I found in ‘man mpv’ was MPV_VERBOSE but I am not sure if it has any relation to journal at all.

MPV is not a KDE native app

Hi
Yes, I use mpv here with curseradio and see zero journal entries, likewise if just use mpv standalone. Likely your desktop environment.

@malcolmlewis

How would you approach the main issue: avoiding only the extra journal messages related to mpv?

Hi
To me it seems like a bug report is in order with those dbus exports, but I’m not a Plasma user :wink:

openSUSE:Submitting bug reports - openSUSE

I have filed one before opening the thread. No replies so far.

but I’m not a Plasma user :wink:

Why not?
What do you use and why?

Hi
Do you have the reference link?

I use GNOME, used KDE way back in 2005, been a GNOME user since then… stability, it doesn’t break, plus use SLES and SLED which GNOME is the default DE…

https://bugzilla.opensuse.org/show_bug.cgi?id=1158702

I use GNOME, used KDE way back in 2005, been a GNOME user since then… stability, it doesn’t break, plus use SLES and SLED which GNOME is the default DE…

Intresting. I have never used GNOME. Only KDE and XFCE.