Bug 469494

Summary: KMenuEditor crashes when I try to edit a certain program
Product: [Applications] kmenuedit Reporter: A Linux User <idontfeelcomfygivingyoumyemail>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: nate, null
Priority: NOR Keywords: drkonqi
Version: 5.27.4   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description A Linux User 2023-05-08 15:14:23 UTC
Application: kmenuedit (5.27.4)

Qt Version: 5.15.9
Frameworks Version: 5.105.0
Operating System: Linux 6.2.14-300.fc38.x86_64 x86_64
Windowing System: Wayland
Distribution: Fedora Linux 38 (KDE Plasma)
DrKonqi: 5.27.4 [KCrashBackend]

-- Information about the crash:
I added a custom entry to my kickoff. I edited from kickoff via "right click -> edit" and saved it. Now the program crashes/doesnt start.
When I tried to change the settings for this program, KMenuEditor crashes when I try to open it via "right click -> edit".
Opening KMenuEditor manually works, but when I click on the program to edit it, KMenuEditor crashes immediately. This doesn't happen for other programs, just this one.

The crash can be reproduced every time.

-- Backtrace:
Application: KDE Menu Editor (kmenuedit), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f364c10d794 in QWidgetLineControl::internalSetText(QString const&, int, bool) () from /lib64/libQt5Widgets.so.5
#5  0x000055c0e31fb63c in BasicTab::setEntryInfo(MenuEntryInfo*) ()
#6  0x00007f364b2e87d8 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#7  0x000055c0e3202378 in TreeView::itemSelected(QTreeWidgetItem*) ()
#8  0x00007f364b2e8651 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#9  0x00007f364c2bc70a in QTreeWidget::currentItemChanged(QTreeWidgetItem*, QTreeWidgetItem*) () from /lib64/libQt5Widgets.so.5
#10 0x00007f364b2e87d8 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#11 0x00007f364b271090 in QItemSelectionModel::currentChanged(QModelIndex const&, QModelIndex const&) () from /lib64/libQt5Core.so.5
#12 0x00007f364b2728a3 in QItemSelectionModel::setCurrentIndex(QModelIndex const&, QFlags<QItemSelectionModel::SelectionFlag>) () from /lib64/libQt5Core.so.5
#13 0x00007f364c23ad83 in QAbstractItemView::mousePressEvent(QMouseEvent*) () from /lib64/libQt5Widgets.so.5
#14 0x00007f364bff3688 in QWidget::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#15 0x00007f364c0a4ae7 in QFrame::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#16 0x00007f364b2b3af6 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#17 0x00007f364bfaeb65 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#18 0x00007f364bfb7456 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#19 0x00007f364b2b3d48 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#20 0x00007f364bfb56a4 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /lib64/libQt5Widgets.so.5
#21 0x00007f364c00d1a9 in QWidgetWindow::handleMouseEvent(QMouseEvent*) () from /lib64/libQt5Widgets.so.5
#22 0x00007f364c01072f in QWidgetWindow::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#23 0x00007f364bfaeb75 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#24 0x00007f364b2b3d48 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#25 0x00007f364b76c44b in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /lib64/libQt5Gui.so.5
#26 0x00007f364b74aa0c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Gui.so.5
#27 0x00007f36491639e4 in userEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5WaylandClient.so.5
#28 0x00007f3649b1339c in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#29 0x00007f3649b71438 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#30 0x00007f3649b10a23 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#31 0x00007f364b306919 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#32 0x00007f364b2b270b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#33 0x00007f364b2ba99b in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#34 0x000055c0e31f59a2 in main ()
[Inferior 1 (process 25867) detached]

The reporter indicates this bug may be a duplicate of or related to bug 468420.

Reported using DrKonqi
Comment 1 Nate Graham 2023-05-15 19:52:59 UTC

*** This bug has been marked as a duplicate of bug 466164 ***
Comment 2 Unknown 2023-08-11 18:00:42 UTC
Created attachment 160909 [details]
New crash information added by DrKonqi

kmenuedit (5.27.5) using Qt 5.15.8

I tried replacing the ktouch command with ktouch='QT_QPA_PLATFORM=xcb ktouch'. I couldn't get it to run, and KDE Menu Editor crashes every time I try to change it.

-- Backtrace (Reduced):
#4  0x00007f865a2b3d64 in QWidgetLineControl::internalSetText(QString const&, int, bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
[...]
#9  0x00007f865a451ae7 in QTreeWidget::currentItemChanged(QTreeWidgetItem*, QTreeWidgetItem*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
[...]
#11 0x00007f865945bcaa in QItemSelectionModel::currentChanged(QModelIndex const&, QModelIndex const&) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007f865945f4b9 in QItemSelectionModel::setCurrentIndex(QModelIndex const&, QFlags<QItemSelectionModel::SelectionFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#13 0x00007f865a3d5074 in QAbstractItemView::mousePressEvent(QMouseEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
Comment 3 Nate Graham 2023-12-13 15:34:01 UTC

*** This bug has been marked as a duplicate of bug 465290 ***
Comment 4 Nate Graham 2023-12-20 19:52:37 UTC

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