Bug 425051 - 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 DUPLICATE of bug 424259
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: master
Platform: Mageia RPMs Linux
: NOR task
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-05 19:54 UTC by Aurélien Oudelet (auroud85_fr)
Modified: 2022-07-06 07:12 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
aoudelet: Wayland+
aoudelet: X11+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aurélien Oudelet (auroud85_fr) 2020-08-05 19:54:54 UTC
SUMMARY
Too many logging as warnings in journald system journal coming from QT and Plasma 5 programs like this:

plasmashell[2223]: file:///usr/share/plasma/packages/org.kde.paneltoolbox/contents/ui/main.qml:89:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax inste>
plasmashell[2223]: Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
plasmashell[2223]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Panel.qml:73:5: QML Binding: Not restoring previous value because restoreMode has not been set.
                                                  This behavior is deprecated.
                                                  You have to import QtQml 2.15 after any QtQuick imports and set
                                                  the restoreMode of the binding to fix this warning.
                                                  In Qt < 6.0 the default is Binding.RestoreBinding.
                                                  In Qt >= 6.0 the default is Binding.RestoreBindingOrValue.
plasmashell[2223]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Panel.qml:89:5: QML Binding: Not restoring previous value because restoreMode has not been set.
                                                  This behavior is deprecated.
                                                  You have to import QtQml 2.15 after any QtQuick imports and set
                                                  the restoreMode of the binding to fix this warning.
                                                  In Qt < 6.0 the default is Binding.RestoreBinding.
                                                  In Qt >= 6.0 the default is Binding.RestoreBindingOrValue.
plasmashell[2223]: file:///usr/lib64/qt5/qml/QtQuick/Controls/Styles/Plasma/BusyIndicatorStyle.qml:39:9: QML Connections: Implicitly defined onFoo properties in Connections are deprecated.
plasmashell[2223]: file:///usr/lib64/qt5/qml/QtQuick/Controls/Styles/Plasma/BusyIndicatorStyle.qml:39:9: QML Connections: Implicitly defined onFoo properties in Connections are deprecated.
plasmashell[2223]: file:///usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/Task.qml:285:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated.
kwin_x11[2180]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 57700, resource id: 37748869, major code: 18 (ChangeProperty), minor code: 0
kwin_x11[2180]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 58141, resource id: 18877318, major code: 3 (GetWindowAttributes), minor code: 0
kwin_x11[2180]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 58142, resource id: 18877318, major code: 14 (GetGeometry), minor code: 0
plasmashell[2223]: file:///usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/Task.qml:285:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated.
plasmashell[2223]: file:///usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/Task.qml:285:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated.
kwin_x11[2180]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1124, resource id: 106954755, major code: 15 (QueryTree), minor code: 0
kwin_x11[2180]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1129, resource id: 106954755, major code: 18 (ChangeProperty), minor code: 0
plasmashell[2223]: file:///usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/Task.qml:285:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated.
plasmashell[2223]: 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 inst>
plasmashell[2223]: file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/FullRepresentation.qml:50:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated>
plasmashell[2223]: file:///usr/lib64/qt5/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:209:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax in>
plasmashell[2223]: file:///usr/lib64/qt5/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:209:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax in>
plasmashell[2223]: file:///usr/lib64/qt5/qml/org/kde/plasma/extras/PlaceholderMessage.qml:189: ReferenceError: string is not defined
plasmashell[2223]: file:///usr/lib64/qt5/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:209:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax in>
plasmashell[2223]: file:///usr/lib64/qt5/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:209:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax in>
plasmashell[2223]: 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 inst>
plasmashell[2223]: file:///usr/lib64/qt5/qml/org/kde/plasma/components/TabButton.qml:102:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: funct>
plasmashell[2223]: file:///usr/lib64/qt5/qml/org/kde/plasma/components/TabButton.qml:102:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: funct>
plasmashell[2223]: file:///usr/lib64/qt5/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:209:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax in>
plasmashell[2223]: file:///usr/lib64/qt5/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:209:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax in>
plasmashell[2223]: Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
plasmashell[2223]: Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
plasmashell[2223]: Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
plasmashell[2223]: file:///usr/lib64/qt5/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:209:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax in>
plasmashell[2223]: file:///usr/lib64/qt5/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:209:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax in>
plasmashell[2223]: file:///usr/lib64/qt5/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:209:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax in>
plasmashell[2223]: file:///usr/lib64/qt5/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:209:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax in>
plasmashell[2223]: 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 inst>
plasmashell[2223]: file:///usr/lib64/qt5/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:209:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax in>
plasmashell[2223]: file:///usr/share/plasma/plasmoids/org.kde.plasma.devicenotifier/contents/ui/FullRepresentation.qml:107:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecat>
plasmashell[2223]: file:///usr/share/plasma/plasmoids/org.kde.plasma.devicenotifier/contents/ui/FullRepresentation.qml:87:9: QML Connections: Implicitly defined onFoo properties in Connections are deprecate>
plasmashell[2223]: 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 inst>
plasmashell[2223]: file:///usr/lib64/qt5/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:209:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this 
plasmashell[2223]: file:///usr/lib64/qt5/qml/QtQuick/Controls/Styles/Plasma/ToolButtonStyle.qml:209:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated.
plasmashell[2223]: file:///usr/lib64/qt5/qml/org/kde/plasma/extras/PlaceholderMessage.qml:189: ReferenceError: string is not defined
kwin_x11[2180]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 5558, resource id: 58720273, major code: 18 (ChangeProperty), minor code: 0
plasmashell[2223]: file:///usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/Task.qml:285:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated.
kwin_x11[2180]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 10735, resource id: 56623143, major code: 18 (ChangeProperty), minor code: 0
kwin_x11[2180]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 11775, resource id: 37748857, major code: 73 (GetImage), minor code: 0
kwin_x11[2180]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 11776, resource id: 37748857, major code: 73 (GetImage), minor code: 0
kwin_x11[2180]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 11777, resource id: 37748857, major code: 73 (GetImage), minor code: 0
kwin_x11[2180]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 11778, resource id: 37748857, major code: 73 (GetImage), minor code: 0
kwin_x11[2180]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 11779, resource id: 37748857, major code: 73 (GetImage), minor code: 0
plasmashell[2223]: file:///usr/lib64/qt5/qml/org/kde/plasma/components/Highlight.qml:47:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: functi>
plasmashell[2223]: trying to show an empty dialog
kwin_x11[2180]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 13458, resource id: 37748865, major code: 18 (ChangeProperty), minor code: 0
kwin_x11[2180]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 13464, resource id: 37748866, major code: 18 (ChangeProperty), minor code: 0
plasmashell[2223]: file:///usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/Task.qml:285:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated.
kwin_x11[2180]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 15976, resource id: 18875164, major code: 3 (GetWindowAttributes), minor code: 0
kwin_x11[2180]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 15977, resource id: 18875164, major code: 14 (GetGeometry), minor code: 0
plasmashell[2223]: file:///usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/Task.qml:285:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated.



STEPS TO REPRODUCE
1. Run Plasma 5.19.4
2. See warning level messages like mentioned above in a Konsole with "journalctl -f"

These warning level messages are unnecessary for the end user, they can give the feeling of a dysfunction.
They must not be logged at warning level but at a less important like notice or debug.

SOFTWARE/OS VERSIONS
Operating System: Mageia 8
KDE Plasma Version: 5.19.4
KDE Frameworks Version: 5.72.0
Qt Version: 5.15.0
Kernel Version: 5.7.12-desktop-1.mga8
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5-6600K CPU @ 3.50GHz
Memory: 15.6 Gio of RAM
Graphics Processor: GeForce GTX 1660 Ti/PCIe/SSE2

Workaround:
Add QT_LOGGING_RULES='*=false' as environment variable to change this behaviour, e.g. to completely disable logging in /etc/environment
Comment 1 Kai Uwe Broulik 2020-08-05 20:08:39 UTC
Some distros used to install a config with *.debug=false and it was a PITA figuring out why no debug was produced whatsoever... I agree that these Qt deprecation warnings are quite obnoxious.
Comment 2 Aurélien Oudelet (auroud85_fr) 2020-08-06 13:26:26 UTC
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 3 David Edmundson 2020-08-06 14:11:07 UTC
Plasmashell now disables these warnings internally.

>There is a KCM panel "User Feedback" in Systemsetting.

I don't think we want to conflate local logs with telemetry. They're very different things.
Comment 4 David Edmundson 2020-08-06 14:15:21 UTC

*** This bug has been marked as a duplicate of bug 424259 ***