Bug 450164

Summary: System Settings crashes in KCModuleQml::~KCModuleQml()
Product: [Applications] systemsettings Reporter: Nikolaj <79625490833>
Component: generic-crashAssignee: Nikolaj <79625490833>
Status: RESOLVED DUPLICATE    
Severity: crash CC: 79625490833, nate, nicolas.fella
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Mageia RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: backtrace

Description Nikolaj 2022-02-13 15:59:08 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
After opening the settings, they are immediately closed.

STEPS TO REPRODUCE
Open the Settings window

OBSERVED RESULT
Window Drop

EXPECTED RESULT
The settings window does not crash

SOFTWARE/OS VERSIONS
Name        : systemsettings
Version     : 5.20.4
Release     : 2.mga8
Group       : System/Base
Size        : 776828                       Architecture: x86_64
Source RPM  : systemsettings-5.20.4-2.mga8.src.rpm
URL         : https://www.kde.org/
Summary     : Plasma System Settings
Description :
Plasma System Settings.



ADDITIONAL INFORMATION
фев 11 20:05:55 dxd kernel: systemsettings5[15063]: segfault at 20000001f ip 00007f48f7371c22 sp 00007ffe7b6df430 error 4 in libQt5Qml.so.5.15.2[7f48f7285000+2b6000]
Comment 1 Nicolas Fella 2022-02-13 17:14:03 UTC
Please see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports for how to create a crash report
Comment 2 Nikolaj 2022-02-13 19:48:21 UTC
Created attachment 146680 [details]
backtrace

Indeed, it was discovered that due to the absence of one file, the settings window drops.
Comment 3 Nicolas Fella 2022-02-13 20:57:51 UTC
#0  0x00007ffff5990c22 in QQmlData::wasDeleted (object=0xb091d0)
    at ../../include/QtQml/5.15.2/QtQml/private/../../../../../src/qml/qml/qqmldata_p.h:338
#1  QV4::QObjectWrapper::getQmlProperty (engine=engine@entry=0x1c8cd30, qmlContext=qmlContext@entry=0x1d7e0d0, object=0xb091d0, 
    name=0x7fff8e71d5e8, revisionMode=revisionMode@entry=QV4::QObjectWrapper::CheckRevision, hasProperty=hasProperty@entry=0x7fffffff8ac8, 
    property=0x7fffffff8ad0) at jsruntime/qv4qobjectwrapper.cpp:360
#2  0x00007ffff5971b3a in QV4::QQmlContextWrapper::getPropertyAndBase (resource=<optimized out>, id=..., receiver=<optimized out>, 
    hasProperty=0x7fffffff8b4f, base=0x0, lookup=0x0) at jsruntime/qv4qmlcontext.cpp:316
#3  0x00007ffff5972423 in QV4::QQmlContextWrapper::resolveQmlContextPropertyLookupGetter (l=0x193db00, engine=0x1c8cd30, base=0x0)
    at jsruntime/qv4qmlcontext.cpp:481
--Type <RET> for more, q to quit, c to continue without paging--c
#4  0x00007ffff59ac848 in QV4::Moth::VME::interpret (frame=0x7fffffff8d20, engine=0x1c8cd30, code=0x7fffa80c1a0b <error: Cannot access memory at address 0x7fffa80c1a0b>) at jsruntime/qv4vme_moth.cpp:585
#5  0x00007ffff59b16b7 in QV4::Moth::VME::exec (frame=frame@entry=0x7fffffff8d20, engine=engine@entry=0x1c8cd30) at jsruntime/qv4vme_moth.cpp:463
#6  0x00007ffff595064a in QV4::Function::call (this=this@entry=0x1a52630, thisObject=<optimized out>, argv=argv@entry=0x7fff8e71d500, argc=<optimized out>, context=<optimized out>) at jsruntime/qv4function.cpp:69
#7  0x00007ffff5ab8db6 in QQmlJavaScriptExpression::evaluate (this=0x1ea8d00, this@entry=<error reading variable: Cannot access memory at address 0x7fffffff8ee0>, callData=callData@entry=0x7fff8e71d4d0, isUndefined=isUndefined@entry=0x0) at qml/qqmljavascriptexpression.cpp:212
#8  0x00007ffff5a6fbc6 in QQmlBoundSignalExpression::evaluate (this=<optimized out>, a=<optimized out>) at ../../include/QtQml/5.15.2/QtQml/private/../../../../../src/qml/jsruntime/qv4jscall_p.h:95
#9  0x00007ffff5a70098 in QQmlBoundSignal_callback (e=0x1ea8c80, a=0x0) at ../../include/QtQml/5.15.2/QtQml/private/../../../../../src/qml/qml/qqmlboundsignalexpressionpointer_p.h:69
#10 0x00007ffff5a9da76 in QQmlNotifier::emitNotify (endpoint=<optimized out>, a=0x0) at qml/qqmlnotifier.cpp:104
#11 0x00007ffff69f25fb in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#12 0x00007ffff5a6bb49 in QQmlContextData::emitDestruction (this=<optimized out>) at qml/qqmlcontext.cpp:580
#13 QQmlContextData::emitDestruction (this=0x1ea3980) at qml/qqmlcontext.cpp:564
#14 0x00007ffff5a6bb6f in QQmlContextData::emitDestruction (this=<optimized out>) at qml/qqmldata_p.h:102
#15 QQmlContextData::emitDestruction (this=<optimized out>) at qml/qqmlcontext.cpp:564
#16 0x00007ffff5a6bb6f in QQmlContextData::emitDestruction (this=<optimized out>) at qml/qqmldata_p.h:102
#17 QQmlContextData::emitDestruction (this=<optimized out>) at qml/qqmlcontext.cpp:564
#18 0x00007ffff5a6bb6f in QQmlContextData::emitDestruction (this=<optimized out>) at qml/qqmldata_p.h:102
#19 QQmlContextData::emitDestruction (this=<optimized out>) at qml/qqmlcontext.cpp:564
#20 0x00007ffff5a6bb6f in QQmlContextData::emitDestruction (this=<optimized out>) at qml/qqmldata_p.h:102
#21 QQmlContextData::emitDestruction (this=<optimized out>) at qml/qqmlcontext.cpp:564
#22 0x00007ffff5a6bd99 in QQmlContextData::invalidate (this=this@entry=0x1d7e0d0) at qml/qqmlcontext.cpp:594
#23 0x00007ffff5a6b8d7 in QQmlContextData::destroy (this=0x1d7e0d0) at qml/qqmlcontext.cpp:650
#24 0x00007ffff5a6bab1 in QQmlContext::~QQmlContext (this=0x1ce1db0, __in_chrg=<optimized out>) at qml/qqmlcontext.cpp:222
#25 0x00007ffff5a6bac9 in QQmlContext::~QQmlContext (this=0x1ce1db0, __in_chrg=<optimized out>) at qml/qqmlcontext.cpp:223
#26 0x00007ffff69e66df in QObjectPrivate::deleteChildren() () from /lib64/libQt5Core.so.5
#27 0x00007ffff69f0e44 in QObject::~QObject() () from /lib64/libQt5Core.so.5
#28 0x00007ffff618b6f9 in KDeclarative::QmlObjectSharedEngine::~QmlObjectSharedEngine() () from /lib64/libKF5Declarative.so.5
#29 0x00007ffff7e7dfbe in KQuickAddons::ConfigModule::~ConfigModule() () from /lib64/libKF5QuickAddons.so.5
#30 0x00007fffa80d0202 in ScreenLockerKcm::~ScreenLockerKcm() () from /usr/lib64/qt5/plugins/kcms/kcm_screenlocker.so
#31 0x00007ffff7f712c3 in KCModuleQml::~KCModuleQml() () from /lib64/libKF5KCMUtils.so.5
#32 0x00007ffff7f712e9 in KCModuleQml::~KCModuleQml() () from /lib64/libKF5KCMUtils.so.5
#33 0x00007ffff7f77014 in KCModuleProxy::deleteClient() () from /lib64/libKF5KCMUtils.so.5
#34 0x00007ffff7f7717c in KCModuleProxy::~KCModuleProxy() () from /lib64/libKF5KCMUtils.so.5
#35 0x00007ffff7f77219 in KCModuleProxy::~KCModuleProxy() () from /lib64/libKF5KCMUtils.so.5
#36 0x00007ffff69e66df in QObjectPrivate::deleteChildren() () from /lib64/libQt5Core.so.5
#37 0x00007ffff75d69b6 in QWidget::~QWidget() () from /lib64/libQt5Widgets.so.5
#38 0x00007ffff75d6cd9 in QWidget::~QWidget() () from /lib64/libQt5Widgets.so.5
#39 0x00007ffff69e66df in QObjectPrivate::deleteChildren() () from /lib64/libQt5Core.so.5
#40 0x00007ffff75d69b6 in QWidget::~QWidget() () from /lib64/libQt5Widgets.so.5
#41 0x00007ffff772ab39 in QScrollArea::~QScrollArea() () from /lib64/libQt5Widgets.so.5
#42 0x00007ffff7cdd64a in KPageWidgetItem::~KPageWidgetItem() () from /lib64/libKF5WidgetsAddons.so.5
#43 0x00007ffff7cdd725 in PageItem::~PageItem() () from /lib64/libKF5WidgetsAddons.so.5
#44 0x00007ffff7cdd8ed in KPageWidgetModel::removePage(KPageWidgetItem*) () from /lib64/libKF5WidgetsAddons.so.5
#45 0x00007ffff7faf685 in ModuleView::closeModules (this=0x811920) at /usr/src/debug/systemsettings-5.20.4-2.mga8.x86_64/core/ModuleView.cpp:287
#46 0x00007fffdc0c1db1 in SidebarMode::loadModule (this=0x712630, activeModule=..., args=...) at /usr/src/debug/systemsettings-5.20.4-2.mga8.x86_64/sidebar/SidebarMode.cpp:461
#47 0x00007fffdc0c2679 in SidebarMode::loadModule (this=<optimized out>, activeModule=..., args=...) at /usr/include/qt5/QtCore/qabstractitemmodel.h:76
Comment 4 Nikolaj 2022-02-13 22:09:38 UTC
output of the list command to gdb after the
in ../../include/QtQml/5.15.2/QtQml/private segment/../../../../../ src/qml/qml/qqmldata_p.h
list 1
file: "../../include/QtQml/5.15.2/QtQml/private/../../../../../src/qml/qml/qqmldata_p.h", line number: 1, symbol: "???"
1 ../../include/QtQml/5.15.2/QtQml/private/../../../../../src/qml/qml/qqmldata_p.h: No such file or directory.
Comment 5 Nikolaj 2022-02-14 11:27:21 UTC
the window stopped falling as soon as I installed the devel package and copied the file from it qqmldata_p.h.
Comment 6 Nate Graham 2022-02-15 21:20:12 UTC
So installing that made it stop crashing?

Did you compile the software from source code?
Comment 7 Bug Janitor Service 2022-03-02 04:35:50 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Nikolaj 2022-03-02 12:07:13 UTC
Sorry for the delay in responding. I installed the devel package, and copied the qqmldata_p.h file from there. Then the settings stopped falling. I didn't compile anything again.
Comment 9 Nate Graham 2022-03-02 16:36:14 UTC
Well that's strange, If you remove that package/file, does it start crashing again?
Comment 10 Nate Graham 2022-03-02 16:36:49 UTC
Oh, this is Bug 426047.

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