Bug 26900 - Debug logging and useless logging in system log by qt and plasma5 programs
Summary: Debug logging and useless logging in system log by qt and plasma5 programs
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: High normal
Target Milestone: Mageia 8
Assignee: KDE maintainers
QA Contact:
URL:
Whiteboard: MGA7TOO 24865
Keywords: 8beta2
: 24865 27054 (view as bug list)
Depends on:
Blocks: 17523
  Show dependency treegraph
 
Reported: 2020-07-05 17:46 CEST by Aurelien Oudelet
Modified: 2020-12-30 21:33 CET (History)
2 users (show)

See Also:
Source RPM: qtbase5-5.15.2-4.mga8.src.rpm
CVE:
Status comment:


Attachments

Description Aurelien Oudelet 2020-07-05 17:46:33 CEST
Description of problem:
Default installation of Mageia 8 Cauldron (also in 7.1), you get such useless debug logging in system logs :

plasmashell[7187]: file:///usr/share/plasma/packages/org.kde.desktoptoolbox/contents/ui/ToolBoxRoot.qml:38:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this synta>
juil. 05 14:29:50 localhost plasmashell[7187]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:188:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax >
juil. 05 14:29:50 localhost plasmashell[7187]: trying to show an empty dialog
juil. 05 14:29:50 localhost plasmashell[7187]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:146:19: QML Loader: Binding loop detected for property "height"
juil. 05 14:29:50 localhost plasmashell[7187]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Desktop.qml:146:19: QML Loader: Binding loop detected for property "height"
juil. 05 14:29:50 localhost plasmashell[7187]: evaluating startup script: "/usr/share/plasma/shells/org.kde.plasma.desktop/contents/layout.js"
juil. 05 14:29:51 localhost plasmashell[7187]: Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
juil. 05 14:29:51 localhost plasmashell[7187]: kf5.kpackage: No metadata file in the package, expected it at: "/usr/share/mga/backgrounds/"
juil. 05 14:29:51 localhost plasmashell[7187]: kf5.kpackage: No metadata file in the package, expected it at: "/usr/share/mga/backgrounds/"
juil. 05 14:29:51 localhost plasmashell[7187]: kf5.kpackage: No metadata file in the package, expected it at: "/usr/share/mga/backgrounds/"
juil. 05 14:29:52 localhost plasmashell[7187]: file:///usr/share/plasma/wallpapers/org.kde.image/contents/ui/main.qml:28:1: QML StackView: Binding loop detected for property "configuredImage"
juil. 05 14:29:52 localhost plasmashell[7187]: Plasma scripting sleep() is deprecated and does nothing!
juil. 05 14:29:52 localhost plasmashell[7187]: Activity added twice "f8a3f4fc-3dbc-4772-b0aa-edc2aeccd936"
juil. 05 14:29:53 localhost plasmashell[7187]: file:///usr/share/plasma/wallpapers/org.kde.image/contents/ui/main.qml:76:9: Unable to assign [undefined] to QStringList
juil. 05 14:29:53 localhost plasmashell[7187]: file:///usr/share/plasma/wallpapers/org.kde.image/contents/ui/main.qml:75:9: Unable to assign [undefined] to int
juil. 05 14:29:53 localhost plasmashell[7187]: kf5.kpackage: No metadata file in the package, expected it at: "/usr/share/mga/backgrounds/"
juil. 05 14:29:53 localhost plasmashell[7187]: kf5.kpackage: No metadata file in the package, expected it at: "/usr/share/mga/backgrounds/"
juil. 05 14:29:53 localhost plasmashell[7187]: kf5.kpackage: No metadata file in the package, expected it at: "/usr/share/mga/backgrounds/"
juil. 05 14:29:53 localhost plasmashell[7187]: Error: cannot change the containment to AppletsLayout
juil. 05 14:29:54 localhost plasmashell[7187]: file:///usr/share/plasma/plasmoids/org.kde.plasma.kicker/contents/ui/main.qml:243:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax inst>
juil. 05 14:29:54 localhost plasmashell[7187]: file:///usr/share/plasma/plasmoids/org.kde.plasma.kicker/contents/ui/main.qml:141:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax inst>
juil. 05 14:29:54 localhost plasmashell[7187]: file:///usr/share/plasma/plasmoids/org.kde.plasma.kicker/contents/ui/main.qml:125:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax inst>
juil. 05 14:29:55 localhost plasmashell[7187]: Entry is not valid "kontact.desktop" QSharedPointer(0x201b670)
juil. 05 14:29:55 localhost plasmashell[7187]: Entry is not valid "ktp-contactlist.desktop" QSharedPointer(0x205c440)
juil. 05 14:29:55 localhost plasmashell[7187]: Entry is not valid "org.kde.kate.desktop" QSharedPointer(0x1ab2180)
juil. 05 14:29:55 localhost plasmashell[7187]: Entry is not valid "org.kde.discover" QSharedPointer(0x1ab3050)
juil. 05 14:29:56 localhost plasmashell[7187]: file:///usr/share/plasma/plasmoids/org.kde.plasma.kicker/contents/ui/main.qml:133:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax inst>
juil. 05 14:29:56 localhost plasmashell[7187]: file:///usr/share/plasma/plasmoids/org.kde.plasma.pager/contents/ui/main.qml:156:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax inste>
juil. 05 14:29:56 localhost plasmashell[7187]: file:///usr/share/plasma/plasmoids/org.kde.plasma.icon/contents/ui/main.qml:80:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead>
juil. 05 14:29:56 localhost plasmashell[7187]: file:///usr/share/plasma/plasmoids/org.kde.plasma.icon/contents/ui/main.qml:80:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead>
juil. 05 14:29:56 localhost plasmashell[7187]: file:///usr/share/plasma/plasmoids/org.kde.plasma.icon/contents/ui/main.qml:80:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead>
juil. 05 14:29:56 localhost plasmashell[7187]: file:///usr/share/plasma/plasmoids/org.kde.plasma.icon/contents/ui/main.qml:80:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead>
juil. 05 14:29:58 localhost plasmashell[7187]: file:///usr/lib64/qt5/qml/QtQuick/Controls/Styles/Plasma/ScrollViewStyle.qml:60:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instea>
juil. 05 14:29:58 localhost plasmashell[7187]: file:///usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/MouseHandler.qml:49:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this>
juil. 05 14:29:58 localhost plasmashell[7187]: file:///usr/lib64/qt5/qml/QtQuick/Controls/Styles/Plasma/ScrollViewStyle.qml:60:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instea>
juil. 05 14:29:58 localhost plasmashell[7187]: file:///usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/MouseHandler.qml:49:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this>


...
Truncated report.

Version-Release number of selected component (if applicable):
Cauldron

How reproducible:
Always.

Steps to Reproduce:
1. Log in Plasma 5.19.2
2. Open Konsole and type sudo journalctl -f
3. See debug logging in window
4. Move your mouse cursor whatever icon or menu and see debug logging

Howto workaround:
Type the following as root in a console:
echo "QT_LOGGING_RULES='*=false'" >> /etc/environment

Source: https://bbs.archlinux.org/viewtopic.php?id=193123.

Side effect:
Plasma becomes better responsive.
Comment 1 Lewis Smith 2020-07-05 20:37:25 CEST
Thank you for the report & 'fix'. I rather think we have had another similar complaint recently, but cannot find it.

Assigning to the KDE team.

Assignee: bugsquad => kde
Whiteboard: (none) => MGA7TOO

Comment 2 David GEIGER 2020-07-06 07:33:18 CEST
I don't see any other distributions who fixed this debug logging!

So this can be manually fixed with your proposed fix but only for users who wants do it.

CC: (none) => geiger.david68210

Comment 3 Aurelien Oudelet 2020-07-06 21:25:56 CEST
(In reply to David GEIGER from comment #2)
> I don't see any other distributions who fixed this debug logging!
> 
> So this can be manually fixed with your proposed fix but only for users who
> wants do it.

I still think from the user's point of view, viewing errors like these in journald is confusing.
It is useful for developers or bugtrackers but not for final users.
Also, too much written data can use SSD prematurely if /var is in a SSD partition.

Regards,
Aurelien Oudelet 2020-07-07 00:08:21 CEST

Whiteboard: MGA7TOO => MGA7TOO 24865 24841 are related ?

Comment 4 Aurelien Oudelet 2020-08-06 15:27:02 CEST
Reported against Plasmashell upstream:

https://bugs.kde.org/show_bug.cgi?id=425051

One upstream developer agree cumbersome logging but also complains distros apply fix proposed here.

I proposed this response:

I agree distributions should not deactivate that logging with an ENV setting.

BUT, these logging should not be output at warning level:
there is any broken functionality, GUI "just works" some.

Listening hard-drives (not SSD), use of Plasma produces more noises from that harddrives than other DE. These logging fills up to much datas to journal, encumbering it, degrades performance and reduces lifetime of these supports.
Mounting /var/log as tmpfs workarounds lifetime but it not a viable solution for end-users.

This is an upstream bug, not in Mageia RPM.

Suggestion:
There is a KCM panel "User Feedback" in Systemsetting. These debug or notice level logs should be activated by a checkbox in this KCM Systemsettings. Some awesome developer should place this checkbox there or he should make a solution by disabling all such logging if user deactivates all feedback.
Comment 5 Aurelien Oudelet 2020-08-06 16:32:13 CEST
Seems David Edmundson from KDE developers propose fix here in master git:

https://invent.kde.org/plasma/plasma-workspace/commit/5aebd1a8c122a30f950582832ab3d6cf1bc978f7

I don't know when it will be release against 5.19.5 or 5.20 version of Plasmashell.

Keywords: (none) => UPSTREAM

Aurelien Oudelet 2020-10-29 16:13:22 CET

Blocks: (none) => 17523

Comment 6 Aurelien Oudelet 2020-12-30 16:39:41 CET
*** Bug 27054 has been marked as a duplicate of this bug. ***
Comment 7 Aurelien Oudelet 2020-12-30 16:42:39 CET
(In reply to David GEIGER from comment #2)
> I don't see any other distributions who fixed this debug logging!
> 
> So this can be manually fixed with your proposed fix but only for users who
> wants do it.

I agree with David Geiger we can't disable all QT logging facility by setting
"QT_LOGGING_RULES='*=false'" >> /etc/environment

This is like crushing ants with a steamroller.

We should implement an easy fix:

For these 2 unnecessary logging facility,

1) for QML onFoo errors:

This will disappears when minimum QT version for Plasma App will be QT 5.15.x instead of QT 5.12.x.

implementation/fix in meantime:
add "qt.qml.connections.warning=false" to /etc/xdg/QtProject/qtlogging.ini


2) for qt.qpa.xcb errors:

No real fix upstream. This is "normal" but completely annoying and will disappears when Plasma will be totally on Wayland server...

fix:
add "qt.qpa.xcb.warning=false" to /etc/xdg/QtProject/qtlogging.ini

This should be implemented ASAP to help find real bugs when Bugsquad requests system log file.

Also, this really reduces the amount of unnecessary logging to system log, so preserves disk space.
Comment 8 Aurelien Oudelet 2020-12-30 16:45:12 CET
*** Bug 24865 has been marked as a duplicate of this bug. ***

CC: (none) => unruh

Comment 9 Aurelien Oudelet 2020-12-30 16:52:02 CET
$ urpmf -f /etc/xdg/QtProject

qtbase5-common-5.15.2-4.mga8.x86_64:/etc/xdg/QtProject

$ urpmq -i qtbase5-common
qtbase5-5.15.2-4.mga8.src.rpm

Updating SRPM
Aurelien Oudelet 2020-12-30 16:52:38 CET

Keywords: UPSTREAM => 8beta2
Source RPM: plasma-workspace-5.19.2-2.mga8.src.rpm => qtbase5-5.15.2-4.mga8.src.rpm
Whiteboard: MGA7TOO 24865 24841 are related ? => MGA7TOO 24865
Priority: Normal => High

Comment 10 Aurelien Oudelet 2020-12-30 21:33:14 CET
Implemented and fixed by Nicolas Lécureuil.
Many thanks.
Closing this.

Encourage Mageia 7 users to migrate to 8 when possible.
Can't land in Mageia 7 as it needs some patchs in QT.

Resolution: (none) => FIXED
Status: NEW => RESOLVED
Target Milestone: --- => Mageia 8


Note You need to log in before you can comment on or make changes to this bug.