linuxdeepin / developer-center

Deepin developer center, provide developer wiki and community forum.
452 stars 73 forks source link

libdwayland platform plugin makes konsole spamming log under Plasma Wayland #7217

Open felixonmars opened 8 months ago

felixonmars commented 8 months ago

SUMMARY | 问题概要

With deepin-qt5platform-plugins installed, konsole running under Plasma Wayland prints dozens of errors on every second, rendering the systemd journal unusable:

Feb 01 23:54:58 flygon.felixc.at konsole[2889]: dpi is invalid got from xsettings(Qt/DPI/ and Xft/DPI), fallback to get dpi from QWaylandScreen::logicalDpi()                                                                                                                     
Feb 01 23:54:58 flygon.felixc.at konsole[2889]: dpi is invalid got from xsettings(Qt/DPI/ and Xft/DPI), fallback to get dpi from QWaylandScreen::logicalDpi()                                                                                                                     
Feb 01 23:54:58 flygon.felixc.at konsole[2889]: dpi is invalid got from xsettings(Qt/DPI/ and Xft/DPI), fallback to get dpi from QWaylandScreen::logicalDpi()                                                                                                                     
Feb 01 23:54:58 flygon.felixc.at konsole[2889]: dpi is invalid got from xsettings(Qt/DPI/ and Xft/DPI), fallback to get dpi from QWaylandScreen::logicalDpi()                                                                                                                     
Feb 01 23:54:58 flygon.felixc.at konsole[2889]: dpi is invalid got from xsettings(Qt/DPI/ and Xft/DPI), fallback to get dpi from QWaylandScreen::logicalDpi()                                                                                                                     
Feb 01 23:54:58 flygon.felixc.at konsole[2889]: dpi is invalid got from xsettings(Qt/DPI/ and Xft/DPI), fallback to get dpi from QWaylandScreen::logicalDpi()                                                                                                                     
Feb 01 23:54:58 flygon.felixc.at konsole[2889]: dpi is invalid got from xsettings(Qt/DPI/ and Xft/DPI), fallback to get dpi from QWaylandScreen::logicalDpi()                                                                                                                     
Feb 01 23:54:58 flygon.felixc.at konsole[2889]: dpi is invalid got from xsettings(Qt/DPI/ and Xft/DPI), fallback to get dpi from QWaylandScreen::logicalDpi()                                                                                                                     
Feb 01 23:54:58 flygon.felixc.at konsole[2889]: dpi is invalid got from xsettings(Qt/DPI/ and Xft/DPI), fallback to get dpi from QWaylandScreen::logicalDpi()                                                                                                                     
Feb 01 23:54:58 flygon.felixc.at konsole[2889]: dpi is invalid got from xsettings(Qt/DPI/ and Xft/DPI), fallback to get dpi from QWaylandScreen::logicalDpi()                                                                                                                     
Feb 01 23:54:58 flygon.felixc.at konsole[2889]: dpi is invalid got from xsettings(Qt/DPI/ and Xft/DPI), fallback to get dpi from QWaylandScreen::logicalDpi()                                                                                                                     
Feb 01 23:54:58 flygon.felixc.at konsole[2889]: dpi is invalid got from xsettings(Qt/DPI/ and Xft/DPI), fallback to get dpi from QWaylandScreen::logicalDpi()                                                                                                                     
Feb 01 23:54:58 flygon.felixc.at konsole[2889]: dpi is invalid got from xsettings(Qt/DPI/ and Xft/DPI), fallback to get dpi from QWaylandScreen::logicalDpi()                                                                                                                     
Feb 01 23:54:58 flygon.felixc.at konsole[2889]: dpi is invalid got from xsettings(Qt/DPI/ and Xft/DPI), fallback to get dpi from QWaylandScreen::logicalDpi()                                                                                                                     
Feb 01 23:54:58 flygon.felixc.at konsole[2889]: dpi is invalid got from xsettings(Qt/DPI/ and Xft/DPI), fallback to get dpi from QWaylandScreen::logicalDpi()                                                                                                                     
Feb 01 23:54:58 flygon.felixc.at konsole[2889]: dpi is invalid got from xsettings(Qt/DPI/ and Xft/DPI), fallback to get dpi from QWaylandScreen::logicalDpi()                                                                                                                     
Feb 01 23:54:58 flygon.felixc.at konsole[2889]: dpi is invalid got from xsettings(Qt/DPI/ and Xft/DPI), fallback to get dpi from QWaylandScreen::logicalDpi()                                                                                                                     
……

This no longer reproduces after removing /usr/lib/qt/plugins/platforms/libdwayland.so from disk.

SOFTWARE/OS VERSIONS | 软件/系统版本信息

Arch Linux x86_64
deepin-qt5platform-plugins 5.6.21-1

(It has been the case since a long time ago, maybe ever since the plugin was added to the package.)

PRE-REQUIREMENT | 预置条件

No response

STEPS TO REPRODUCE | 复现步骤

OBSERVED RESULT | 观察到的结果

No response

EXPECTED RESULT | 期望的结果

No response

ADDITIONAL INFORMATION | 额外补充

No response

justforlxz commented 8 months ago

目前的 dde wayland 方案已经废弃,建议在构建时禁用 dwayland。

https://github.com/linuxdeepin/qt5platform-plugins/blob/master/CMakeLists.txt#L55

felixonmars commented 8 months ago

wayland 支持已在 deepin-qt5platform-plugins 5.6.22-2 中禁用。建议上游项目代码里提供开关或直接移除相关支持。