Bug 479797 - Autostart section of System Settings crashes if add application desktop shortcut to autostart, that is installed by flatpak.
Summary: Autostart section of System Settings crashes if add application desktop shor...
Status: RESOLVED DUPLICATE of bug 465290
Alias: None
Product: systemsettings
Classification: Applications
Component: general (show other bugs)
Version: 5.27.5
Platform: Debian stable Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2024-01-14 12:55 UTC by Oleg
Modified: 2024-01-19 13:39 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg 2024-01-14 12:55:35 UTC
Application: systemsettings (5.27.5)

Qt Version: 5.15.8
Frameworks Version: 5.103.0
Operating System: Linux 6.1.0-13-amd64 x86_64
Windowing System: X11
Distribution: Debian GNU/Linux 12 (bookworm)
DrKonqi: 5.27.5 [KCrashBackend]

-- Information about the crash:
I installed Viber from Flatpak. If try to add it to Autostart section of System Settings, nothing strange happens. But when restart the system, Viber doesn't start up for some reason. After I opened Autostart and tried to look inside the added shortcut by clicking edit button, the System Settings window crashed. This happens every time! I looked into stacktrace and didn't find any valuable info there, cause the tracing only indicated the line positions of the respective *.so libs in the stack! No any additional textual info or something!

I suspect, that crashing is caused due to the parsing complications of the command-line... Here it is from viber.desktop file:

Exec='/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=viber com.viber.Viber'

The same thing occurs for similar *.desktop files, that have more complex command lines... so the problem is more global.

The crash can be reproduced every time.

-- Backtrace:
Application: System Settings (systemsettings), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f2c862b3d64 in QWidgetLineControl::internalSetText(QString const&, int, bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#5  0x00007f2c80af0b73 in ?? () from /lib/x86_64-linux-gnu/libKF5KIOWidgets.so.5
#6  0x00007f2c80af40e8 in ?? () from /lib/x86_64-linux-gnu/libKF5KIOWidgets.so.5
#7  0x00007f2c80af45fa in ?? () from /lib/x86_64-linux-gnu/libKF5KIOWidgets.so.5
#8  0x00007f2c4d520473 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/plasma/kcms/systemsettings/kcm_autostart.so
#9  0x00007f2c4d51f181 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/plasma/kcms/systemsettings/kcm_autostart.so
#10 0x00007f2c830c6c93 in ?? () from /lib/x86_64-linux-gnu/libQt5Qml.so.5
#11 0x00007f2c82fa3521 in ?? () from /lib/x86_64-linux-gnu/libQt5Qml.so.5
#12 0x00007f2c82fa53e0 in QV4::QObjectMethod::callInternal(QV4::Value const*, QV4::Value const*, int) const () from /lib/x86_64-linux-gnu/libQt5Qml.so.5
#13 0x00007f2c82fc1cb6 in ?? () from /lib/x86_64-linux-gnu/libQt5Qml.so.5
#14 0x00007f2c82fc53df in ?? () from /lib/x86_64-linux-gnu/libQt5Qml.so.5
#15 0x00007f2c82f57c2e in QV4::Function::call(QV4::Value const*, QV4::Value const*, int, QV4::ExecutionContext const*) () from /lib/x86_64-linux-gnu/libQt5Qml.so.5
#16 0x00007f2c830e144d in QQmlJavaScriptExpression::evaluate(QV4::CallData*, bool*) () from /lib/x86_64-linux-gnu/libQt5Qml.so.5
#17 0x00007f2c83092baf in QQmlBoundSignalExpression::evaluate(void**) () from /lib/x86_64-linux-gnu/libQt5Qml.so.5
#18 0x00007f2c830942f8 in ?? () from /lib/x86_64-linux-gnu/libQt5Qml.so.5
#19 0x00007f2c830c677f in QQmlNotifier::emitNotify(QQmlNotifierEndpoint*, void**) () from /lib/x86_64-linux-gnu/libQt5Qml.so.5
#20 0x00007f2c854e8a8d in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00007f2c80872592 in QQuickAction::triggered(QObject*) () from /lib/x86_64-linux-gnu/libQt5QuickTemplates2.so.5
#22 0x00007f2c8087357e in ?? () from /lib/x86_64-linux-gnu/libQt5QuickTemplates2.so.5
#23 0x00007f2c80874223 in QQuickAction::qt_metacall(QMetaObject::Call, int, void**) () from /lib/x86_64-linux-gnu/libQt5QuickTemplates2.so.5
#24 0x00007f2c830c6c93 in ?? () from /lib/x86_64-linux-gnu/libQt5Qml.so.5
#25 0x00007f2c82fa20bd in ?? () from /lib/x86_64-linux-gnu/libQt5Qml.so.5
#26 0x00007f2c82fa53e0 in QV4::QObjectMethod::callInternal(QV4::Value const*, QV4::Value const*, int) const () from /lib/x86_64-linux-gnu/libQt5Qml.so.5
#27 0x00007f2c82fc1cb6 in ?? () from /lib/x86_64-linux-gnu/libQt5Qml.so.5
#28 0x00007f2c82fc53df in ?? () from /lib/x86_64-linux-gnu/libQt5Qml.so.5
#29 0x00007f2c82f57c2e in QV4::Function::call(QV4::Value const*, QV4::Value const*, int, QV4::ExecutionContext const*) () from /lib/x86_64-linux-gnu/libQt5Qml.so.5
#30 0x00007f2c830e144d in QQmlJavaScriptExpression::evaluate(QV4::CallData*, bool*) () from /lib/x86_64-linux-gnu/libQt5Qml.so.5
#31 0x00007f2c83092baf in QQmlBoundSignalExpression::evaluate(void**) () from /lib/x86_64-linux-gnu/libQt5Qml.so.5
#32 0x00007f2c830942f8 in ?? () from /lib/x86_64-linux-gnu/libQt5Qml.so.5
#33 0x00007f2c830c677f in QQmlNotifier::emitNotify(QQmlNotifierEndpoint*, void**) () from /lib/x86_64-linux-gnu/libQt5Qml.so.5
#34 0x00007f2c854e8a8d in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#35 0x00007f2c80871221 in QQuickAbstractButtonPrivate::handleRelease(QPointF const&) () from /lib/x86_64-linux-gnu/libQt5QuickTemplates2.so.5
#36 0x00007f2c80890251 in QQuickControl::mouseReleaseEvent(QMouseEvent*) () from /lib/x86_64-linux-gnu/libQt5QuickTemplates2.so.5
#37 0x00007f2c836550e8 in QQuickItem::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Quick.so.5
#38 0x00007f2c86162fae in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#39 0x00007f2c854b16f8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#40 0x00007f2c836729da in QQuickWindowPrivate::deliverMouseEvent(QQuickPointerMouseEvent*) () from /lib/x86_64-linux-gnu/libQt5Quick.so.5
#41 0x00007f2c836740dd in QQuickWindowPrivate::deliverPointerEvent(QQuickPointerEvent*) () from /lib/x86_64-linux-gnu/libQt5Quick.so.5
#42 0x00007f2c859493f5 in QWindow::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#43 0x00007f2c86162fae in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#44 0x00007f2c854b16f8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#45 0x00007f2c84627057 in QQuickWidget::mouseReleaseEvent(QMouseEvent*) () from /lib/x86_64-linux-gnu/libQt5QuickWidgets.so.5
#46 0x00007f2c861a4db8 in QWidget::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#47 0x00007f2c86162fae in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#48 0x00007f2c8616b552 in QApplication::notify(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#49 0x00007f2c854b16f8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#50 0x00007f2c8616965e in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#51 0x00007f2c861bdbd8 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#52 0x00007f2c861c0f60 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#53 0x00007f2c86162fae in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#54 0x00007f2c854b16f8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#55 0x00007f2c8593d3ed in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#56 0x00007f2c85911cac in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#57 0x00007f2c7b2fbeca in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#58 0x00007f2c83b1e7a9 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#59 0x00007f2c83b1ea38 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#60 0x00007f2c83b1eacc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#61 0x00007f2c85509836 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#62 0x00007f2c854b017b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#63 0x00007f2c854b82d6 in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#64 0x0000560c8bf19dfe in ?? ()
#65 0x00007f2c850461ca in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#66 0x00007f2c85046285 in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#67 0x0000560c8bf1a6f1 in ?? ()
[Inferior 1 (process 547583) detached]

Reported using DrKonqi
Comment 1 Nicolas Fella 2024-01-19 13:39:22 UTC

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