Bug 472345

Summary: Crash on launch in KSycocaEntry::name() on first logon to Plasma6
Product: [Frameworks and Libraries] frameworks-kservice Reporter: Allan Sandfeld <kde>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED WORKSFORME    
Severity: crash CC: alexander.lohnau, kdelibs-bugs-null, nate
Priority: NOR Keywords: drkonqi, qt6
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Allan Sandfeld 2023-07-18 08:07:39 UTC
Application: plasma-welcome (5.27.80)
 (Compiled from sources)
Qt Version: 6.5.2
Frameworks Version: 5.240.0
Operating System: Linux 6.2.0-23-generic x86_64
Windowing System: X11
Distribution: Ubuntu 23.04
DrKonqi: 5.27.80 [KCrashBackend]

-- Information about the crash:
The welcome app comes up as a crash immediately on first login.

The crash can be reproduced every time.

-- Backtrace:
Application: Welcome Center (plasma-welcome), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = 0x0}
[KCrash Handler]
#6  0x00007f082ff21aec in std::__uniq_ptr_impl<KSycocaEntryPrivate, std::default_delete<KSycocaEntryPrivate> >::_M_ptr (this=<optimized out>) at /usr/include/c++/12/bits/unique_ptr.h:191
#7  std::unique_ptr<KSycocaEntryPrivate, std::default_delete<KSycocaEntryPrivate> >::get (this=<optimized out>) at /usr/include/c++/12/bits/unique_ptr.h:462
#8  qGetPtrHelper<std::unique_ptr<KSycocaEntryPrivate, std::default_delete<KSycocaEntryPrivate> > const> (ptr=...) at /opt/qt6/include/QtCore/qtclasshelpermacros.h:79
#9  KSycocaEntry::d_func (this=<optimized out>) at /src/kdesrc/frameworks/kservice/src/sycoca/ksycocaentry.h:137
#10 KSycocaEntry::name (this=0x0) at /src/kdesrc/frameworks/kservice/src/sycoca/ksycocaentry.cpp:92
#11 0x00005559d046df04 in ApplicationInfo::setDesktopName (this=0x5559d1bec7d0, desktopName=...) at /opt/qt6/include/QtCore/qshareddata.h:132
#12 0x00007f082f2dcb06 in QQmlPropertyData::writeProperty (this=<optimized out>, target=<optimized out>, value=<optimized out>, flags=<error reading variable: Cannot access memory at address 0x0>) at /src/qt5/build2/qtbase/include/QtQml/6.5.2/QtQml/private/../../../../../../../qtdeclarative/src/qml/qml/qqmlpropertydata_p.h:339
#13 0x00007f082f2dbedb in GenericBinding<10>::doStore<QString> (flags=..., pd=0x7f081423b780, value=..., this=0x5559d1acdcb0) at /src/qt5/qtdeclarative/src/qml/qml/qqmlbinding.cpp:275
#14 GenericBinding<10>::write (this=0x5559d1acdcb0, result=..., isUndefined=<optimized out>, flags=...) at /src/qt5/qtdeclarative/src/qml/qml/qqmlbinding.cpp:256
#15 0x00007f082f2d73a8 in QQmlBinding::doUpdate (this=0x5559d1acdcb0, watcher=..., flags=..., scope=...) at /src/qt5/qtdeclarative/src/qml/qml/qqmlbinding.cpp:700
#16 0x00007f082f2d93c1 in QQmlBinding::update (this=0x5559d1acdcb0, flags=...) at /src/qt5/qtdeclarative/src/qml/qml/qqmlbinding.cpp:164
#17 0x00007f082f374ef3 in QQmlObjectCreator::finalize (this=0x5559d18f6200, interrupt=...) at /src/qt5/qtdeclarative/src/qml/qml/qqmlobjectcreator.cpp:1434
#18 0x00007f082f2f1715 in QQmlComponentPrivate::complete (enginePriv=0x5559d161df40, state=state@entry=0x5559d1671c30) at /src/qt5/build2/qtbase/include/QtQml/6.5.2/QtQml/private/../../../../../../../qtdeclarative/src/qml/qml/ftw/qbipointer_p.h:131
#19 0x00007f082f2f7491 in QQmlComponentPrivate::completeCreate (this=0x5559d1671b80) at /src/qt5/qtdeclarative/src/qml/qml/qqmlcomponent.cpp:1241
#20 0x00007f082f2f7d29 in QQmlComponent::completeCreate (this=0x5559d1672950) at /src/qt5/qtdeclarative/src/qml/qml/qqmlcomponent.cpp:1219
#21 QQmlComponentPrivate::createWithProperties (this=0x5559d1671b80, parent=parent@entry=0x0, properties=..., context=<optimized out>, behavior=behavior@entry=QQmlComponentPrivate::CreateDefault) at /src/qt5/qtdeclarative/src/qml/qml/qqmlcomponent.cpp:957
#22 0x00007f082f2f7fcc in QQmlComponent::create (this=<optimized out>, context=<optimized out>) at /src/qt5/qtdeclarative/src/qml/qml/qqmlcomponent.cpp:908
#23 0x00007f082f2d4df3 in QQmlApplicationEnginePrivate::finishLoad (this=0x5559d161df40, c=0x5559d1672950) at /src/qt5/qtdeclarative/src/qml/qml/qqmlapplicationengine.cpp:135
#24 0x00007f082f2d4ff3 in QQmlApplicationEnginePrivate::ensureLoadingFinishes (this=<optimized out>, c=<optimized out>) at /src/qt5/qtdeclarative/src/qml/qml/qqmlapplicationengine.cpp:162
#25 0x00007f082f2d5190 in QQmlApplicationEnginePrivate::startLoad (this=<optimized out>, url=..., data=..., dataFlag=<optimized out>) at /src/qt5/qtdeclarative/src/qml/qml/qqmlapplicationengine.cpp:109
#26 0x00007f082f2d5420 in QQmlApplicationEngine::load (this=this@entry=0x7ffc391ae880, url=...) at /src/qt5/qtdeclarative/src/qml/qml/qqmlapplicationengine.cpp:324
#27 0x00005559d0469f38 in main (argc=<optimized out>, argv=<optimized out>) at /src/kdesrc/kde/workspace/plasma-welcome/src/main.cpp:88
[Inferior 1 (process 8354) detached]

Reported using DrKonqi
Comment 1 Nate Graham 2023-07-20 01:35:23 UTC
Being in ApplicationInfo::setDesktopName() makes me think there's a malformed desktop file somewhere that's making the app crash in kservice when it tries to read it.

Can you go into frame 11 and print desktopName?
Comment 2 Bug Janitor Service 2023-08-04 03:44:58 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 3 Bug Janitor Service 2023-08-19 03:45:22 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now 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

Thank you for helping us make KDE software even better for everyone!