Bug 402458 - SystemSettings crash on startup after KF5 libs updated to version 5.52.
Summary: SystemSettings crash on startup after KF5 libs updated to version 5.52.
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: sidebarview (show other bugs)
Version: 5.12.7
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-22 12:28 UTC by leonmaxx
Modified: 2019-09-15 21:46 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
gdb-backtrace.txt (3.73 KB, text/plain)
2018-12-22 12:28 UTC, leonmaxx
Details
qt-debug-log.txt (7.34 KB, text/plain)
2018-12-22 12:29 UTC, leonmaxx
Details
gdb-backtrace-dbginfo.txt (2.77 KB, text/plain)
2018-12-22 12:55 UTC, leonmaxx
Details
qt-nocache-debug-log.txt (3.19 KB, text/plain)
2018-12-22 13:49 UTC, leonmaxx
Details

Note You need to log in before you can comment on or make changes to this bug.
Description leonmaxx 2018-12-22 12:28:34 UTC
Created attachment 117057 [details]
gdb-backtrace.txt

SUMMARY
Crash on startup after KF5 libs updated to version 5.52.

STEPS TO REPRODUCE
1. Updated KF5 libraries to version 5.52.
2. Start systemsettings5 from Konsole or kde menu.

OBSERVED RESULT
systemsettings5 crashes.

EXPECTED RESULT
systemsettings5 works.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: CentOS 7.6 / Linux 4.19.8-1.el7.x86_64
KDE Plasma Version:  5.12.7
KDE Frameworks Version: 5.52
Qt Version: 5.9.2

ADDITIONAL INFORMATION
Plasma build is in my Fedora COPR: https://copr.fedorainfracloud.org/coprs/leonmaxx/centos7-kde-plasma/
I backported this packages from Fedora 28 updates repository.
It worked perfectly fine with KF5 libraries version 5.51.
Comment 1 leonmaxx 2018-12-22 12:29:32 UTC
Created attachment 117058 [details]
qt-debug-log.txt

Qt5 debug log.
Comment 2 leonmaxx 2018-12-22 12:55:32 UTC
Created attachment 117060 [details]
gdb-backtrace-dbginfo.txt

d->quickWidget->rootObject() is NULL.
Comment 3 leonmaxx 2018-12-22 13:49:41 UTC
Created attachment 117061 [details]
qt-nocache-debug-log.txt

Qt5 debug log with disabled QML cache.
Comment 4 Christoph Feck 2018-12-22 14:01:58 UTC
Pasting relevant part inline:

(gdb) bt
#0  QObject::property (this=0x0, name=name@entry=0x7fffbffde4c0 "implicitWidth") at kernel/qobject.cpp:3928
#1  0x00007fffbffd8c33 in SidebarMode::initWidget (this=0xde14c0) at /usr/src/debug/systemsettings-5.12.7/sidebar/SidebarMode.cpp:478
#2  0x00007fffbffd95ad in SidebarMode::mainWidget (this=0xde14c0) at /usr/src/debug/systemsettings-5.12.7/sidebar/SidebarMode.cpp:288
Comment 5 leonmaxx 2018-12-22 16:03:10 UTC
I did some debugging:

SidebarMode.cpp:476    d->quickWidget->setSource(QUrl::fromLocalFile(d->package.filePath("mainscript")));

package.filePath("mainscript") resolves properly to "/usr/share/kpackage/genericqml/org.kde.systemsettings.sidebar/contents/ui/main.qml"

Seems like problem in d->quickWidget->setSource() call.
Comment 6 leonmaxx 2019-01-16 19:52:35 UTC
If I backport latest packages e.g. 5.14, will it work or it will crash too?
Comment 7 leonmaxx 2019-01-17 11:24:01 UTC
I rebuilt KF5 libraries version 5.51 with Epoch equal to 9 (to avoid further updates), and now it magically works without crashes.