https://bugs.kde.org/show_bug.cgi?id=425405
Bug ID: 425405 Summary: systemsettings crashes when adding a new script to autostart Product: systemsettings Version: unspecified Platform: Compiled Sources OS: Linux Status: REPORTED Keywords: drkonqi Severity: crash Priority: NOR Component: general Assignee: plasma-b...@kde.org Reporter: k...@sdht.in Target Milestone: --- Application: systemsettings5 (5.19.80) (Compiled from sources) Qt Version: 5.15.0 Frameworks Version: 5.74.0 Operating System: Linux 5.8.1-arch1-1 x86_64 Windowing system: X11 Distribution: Arch Linux -- Information about the crash: I was testing out the new autostart implementation. On adding a new script, I'm getting a crash. I tried adding 2 "scripts" (Add.. -> Add login script", one a random .conf file and another .sh file. System settings crashes on selection both files, but after restarting, I can see that the .sh file has been added to the list. Another issue I noted is that "Add login script" is missing the option to select between pre-startup (~/.config/plasma-workspace/env) vs startup (~/.config/autostart-scripts). Is this expected or a regression? I depend on a pre-startup script to start a ssh-agent session. -- Backtrace: Application: System Settings (systemsettings5), signal: Segmentation fault Content of s_kcrashErrorMessage: (null) [KCrash Handler] #6 0x00007f968e4f3f8a in QUrl::path(QFlags<QUrl::ComponentFormattingOption>) const () at /usr/lib/libQt5Core.so.5 #7 0x00007f968e4f4246 in QUrl::fileName(QFlags<QUrl::ComponentFormattingOption>) const () at /usr/lib/libQt5Core.so.5 #8 0x00007f964b2411c6 in operator() (theJob=0x55a325fe7da0, __closure=0x55a32840a940) at /usr/include/qt/QtCore/qflags.h:121 #9 QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<KJob*>, void, AutostartModel::addScript(const QUrl&, AutostartModel::AutostartEntrySource)::<lambda(KJob*)> >::call (arg=<optimized out>, f=...) at /usr/include/qt/QtCore/qobjectdefs_impl.h:146 #10 QtPrivate::Functor<AutostartModel::addScript(const QUrl&, AutostartModel::AutostartEntrySource)::<lambda(KJob*)>, 1>::call<QtPrivate::List<KJob*>, void> (arg=<optimized out>, f=...) at /usr/include/qt/QtCore/qobjectdefs_impl.h:256 #11 QtPrivate::QFunctorSlotObject<AutostartModel::addScript(const QUrl&, AutostartModel::AutostartEntrySource)::<lambda(KJob*)>, 1, QtPrivate::List<KJob*>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=<optimized out>, this_=0x55a32840a930, r=<optimized out>, a=<optimized out>, ret=<optimized out>) at /usr/include/qt/QtCore/qobjectdefs_impl.h:443 #12 0x00007f968e5e4a26 in () at /usr/lib/libQt5Core.so.5 #13 0x00007f968e9110aa in KJob::finished(KJob*, KJob::QPrivateSignal) (this=this@entry=0x55a325fe7da0, _t1=<optimized out>, _t1@entry=0x55a325fe7da0, _t2=...) at /usr/src/debug/build/src/lib/KF5CoreAddons_autogen/include/moc_kjob.cpp:555 #14 0x00007f968e911cee in KJob::finishJob(bool) (this=0x55a325fe7da0, emitResult=<optimized out>) at /usr/src/debug/kcoreaddons/src/lib/jobs/kjob.cpp:93 #15 0x00007f968e5e4a26 in () at /usr/lib/libQt5Core.so.5 #16 0x00007f968e9111fd in KJob::result(KJob*, KJob::QPrivateSignal) (this=this@entry=0x55a326835390, _t1=<optimized out>, _t1@entry=0x55a326835390, _t2=...) at /usr/src/debug/build/src/lib/KF5CoreAddons_autogen/include/moc_kjob.cpp:576 #17 0x00007f968e911d1c in KJob::finishJob(bool) (this=0x55a326835390, emitResult=<optimized out>) at /usr/src/debug/kcoreaddons/src/lib/jobs/kjob.cpp:96 #18 0x00007f968e5e4a26 in () at /usr/lib/libQt5Core.so.5 #19 0x00007f968c1937d6 in KIO::SlaveInterface::dispatch(int, QByteArray const&) (this=0x55a327528c50, _cmd=104, rawdata=...) at /usr/src/debug/kio/src/core/slaveinterface.cpp:149 #20 0x00007f968c191f3a in KIO::SlaveInterface::dispatch() (this=0x55a327528c50) at /usr/src/debug/kio/src/core/slaveinterface.cpp:78 #21 0x00007f968c195a3b in KIO::Slave::gotInput() (this=0x55a327528c50) at /usr/src/debug/kio/src/core/slave.cpp:402 #22 0x00007f968e5e4a26 in () at /usr/lib/libQt5Core.so.5 #23 0x00007f968e5da1d2 in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5 #24 0x00007f968f1f6702 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5 #25 0x00007f968e5ad7ba in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5 #26 0x00007f968e5b02a3 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/libQt5Core.so.5 #27 0x00007f968e606cf4 in () at /usr/lib/libQt5Core.so.5 #28 0x00007f968c2ae43c in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0 #29 0x00007f968c2fc1d9 in () at /usr/lib/libglib-2.0.so.0 #30 0x00007f968c2ad221 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0 #31 0x00007f968e606331 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5 #32 0x00007f968e5ac13c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5 #33 0x00007f968e5b45c4 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5 #34 0x000055a3248e1806 in main(int, char**) (argc=<optimized out>, argv=0x7ffcef914450) at /usr/src/debug/systemsettings/app/main.cpp:168 [Inferior 1 (process 30068) detached] Possible duplicates by query: bug 425205, bug 424644, bug 423766, bug 423719, bug 423459. Reported using DrKonqi -- You are receiving this mail because: You are watching all bug changes.