Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
None
-
5.15.1
-
None
-
Note that below are the system requirements for running the crashing widget, the versions of relevant software are taken from https://forum.manjaro.org/t/stable-update-2020-10-01-kernels-mesa-kde-framework-deepin-systemd-pamac-xorg-server-qt/29141.
Qt version: 5.15.1
KDE version: 5.74.0
Computer System with an NVidia card running the NVidia Proprietary blob
Running Manjaro KDE stable, installing the NVidia blob via Hardware Configuration and then installing the https://aur.archlinux.org/packages/plasma5-applets-plasma-pstate/ package would be the easiest way to replicate the issue.Note that below are the system requirements for running the crashing widget, the versions of relevant software are taken from https://forum.manjaro.org/t/stable-update-2020-10-01-kernels-mesa-kde-framework-deepin-systemd-pamac-xorg-server-qt/29141 . Qt version: 5.15.1 KDE version: 5.74.0 Computer System with an NVidia card running the NVidia Proprietary blob Running Manjaro KDE stable, installing the NVidia blob via Hardware Configuration and then installing the https://aur.archlinux.org/packages/plasma5-applets-plasma-pstate/ package would be the easiest way to replicate the issue.
Description
After upgrading to QT 5.15.1, the plasma-pstate widget used in KDE has started crashing on startup. Below is a relevant dump of the stacktrace that caused plasmashell to crash
systemd-coredump Process 1765 (plasmashell) of user 1000 dumped core.
Stack trace of thread 1765:
#0 0x00007fcb6ceef758 n/a (libQt5Gui.so.5 + 0x49d758)
#1 0x00007fcb6cef30ce _ZNK17QGridLayoutEngine22ensureColumnAndRowDataEP18QGridLayoutRowDataP14QGridLayoutBoxPKdS5_N2Qt11OrientationEPK24QAbstractLayoutStyleInfo (libQt5Gui.so.5 + 0x4a10ce)
#2 0x00007fcb6cef34d6 _ZNK17QGridLayoutEngine8sizeHintEN2Qt8SizeHintERK6QSizeFPK24QAbstractLayoutStyleInfo (libQt5Gui.so.5 + 0x4a14d6)
...
Here is the line that is now causing the segfault https://github.com/jsalatas/plasma-pstate/blob/679c14321c1496bf12ca0487c2a520f3361cc98a/gr.ictpro.jsalatas.plasma.pstate/contents/ui/ComboBox.qml#L84
If you comment it out then it stops the crash (however it may cause other issues). On immediate glance of the code there doesn't seem to be anything wrong however it would be great to verify if this was either a regression in Qt or that code was relying on undefined/unspecified behavior.
There are 2 tickets in plasma-pstate related to this issue
- https://github.com/jsalatas/plasma-pstate/issues/63
- https://github.com/jsalatas/plasma-pstate/issues/61
Noe that if you downgrade to QT 5.15.0 the crash no longer happens.