Bug 423726 - kmenuedit crash after removing entries
Summary: kmenuedit crash after removing entries
Status: RESOLVED WORKSFORME
Alias: None
Product: kmenuedit
Classification: Applications
Component: general (show other bugs)
Version: 5.19.2
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2020-07-01 05:54 UTC by Daniel Wohlers
Modified: 2022-12-19 09:04 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (5.15 KB, text/plain)
2021-06-30 16:37 UTC, Vincent LaConte
Details
New crash information added by DrKonqi (3.47 KB, text/plain)
2022-12-04 08:04 UTC, hbr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Wohlers 2020-07-01 05:54:19 UTC
Application: kmenuedit (5.19.2)

Qt Version: 5.14.2
Frameworks Version: 5.71.0
Operating System: Linux 5.3.0-61-generic x86_64
Windowing system: X11
Distribution: KDE neon User Edition 5.19

-- Information about the crash:
- What I was doing when the application crashed:
I deleted an outdated version of an appimage.
After that i wanted to remove its entry from the menu.
So I filtered by its name, selected it and add a few separators by mistake.
After removing the entry, i cleared the filter and removed the unnecessary separators as well.
The crash happened when i clicked the save-button.

I tried to redo my steps, but aparently my changes were saved regardless of the crash.

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

[KCrash Handler]
#4  QString::QString (other=<error reading variable: Cannot access memory at address 0x10>, this=this@entry=0x7ffcdc19add0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:1050
#5  KService::desktopEntryName (this=0x0) at ./src/services/kservice.cpp:926
#6  0x0000560116e837cc in GlobalAccel::changeMenuEntryShortcut (service=..., shortcut=...) at ./globalaccel.cpp:31
#7  0x0000560116e80e42 in MenuFolderInfo::save (this=0x560118972c40, menuFile=0x5601188f2e70) at ./menuinfo.cpp:189
#8  0x0000560116e703df in TreeView::save (this=0x5601188f2230) at ./treeview.cpp:1717
#9  0x00007f2879a5b4b9 in doActivate<false> (sender=0x5601188f7050, signal_index=4, argv=0x7ffcdc19b020) at kernel/qobject.cpp:3882
#10 0x00007f2879a55f92 in QMetaObject::activate (sender=sender@entry=0x5601188f7050, m=m@entry=0x7f287aff1340 <QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffcdc19b020) at kernel/qobject.cpp:3930
#11 0x00007f287a9094a2 in QAction::triggered (this=this@entry=0x5601188f7050, _t1=<optimized out>) at .moc/moc_qaction.cpp:381
#12 0x00007f287a90bb0c in QAction::activate (this=0x5601188f7050, event=<optimized out>) at kernel/qaction.cpp:1161
#13 0x00007f287a9fcc8b in QAbstractButtonPrivate::click (this=0x560118b67890) at widgets/qabstractbutton.cpp:398
#14 0x00007f287a9fceed in QAbstractButton::mouseReleaseEvent (this=0x560118b67e00, e=0x7ffcdc19b5b0) at widgets/qabstractbutton.cpp:1012
#15 0x00007f287aaeee1a in QToolButton::mouseReleaseEvent (this=<optimized out>, e=<optimized out>) at widgets/qtoolbutton.cpp:622
#16 0x00007f287a9508c8 in QWidget::event (this=0x560118b67e00, event=0x7ffcdc19b5b0) at kernel/qwidget.cpp:9033
#17 0x00007f287a9fe0bb in QAbstractButton::event (this=this@entry=0x560118b67e00, e=e@entry=0x7ffcdc19b5b0) at widgets/qabstractbutton.cpp:969
#18 0x00007f287aaeeeb4 in QToolButton::event (this=0x560118b67e00, event=0x7ffcdc19b5b0) at widgets/qtoolbutton.cpp:1002
#19 0x00007f287a90f9ac in QApplicationPrivate::notify_helper (this=this@entry=0x560118659490, receiver=receiver@entry=0x560118b67e00, e=e@entry=0x7ffcdc19b5b0) at kernel/qapplication.cpp:3685
#20 0x00007f287a9179f8 in QApplication::notify (this=<optimized out>, receiver=0x560118b67e00, e=0x7ffcdc19b5b0) at kernel/qapplication.cpp:3129
#21 0x00007f2879a204a8 in QCoreApplication::notifyInternal2 (receiver=0x560118b67e00, event=0x7ffcdc19b5b0) at kernel/qcoreapplication.cpp:1075
#22 0x00007f2879a2068e in QCoreApplication::sendSpontaneousEvent (receiver=receiver@entry=0x560118b67e00, event=event@entry=0x7ffcdc19b5b0) at kernel/qcoreapplication.cpp:1482
#23 0x00007f287a91607f in QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x560118b67e00, event=event@entry=0x7ffcdc19b5b0, alienWidget=0x560118b67e00, nativeWidget=0x5601188ae540, buttonDown=buttonDown@entry=0x7f287b0209a0 <qt_button_down>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2615
#24 0x00007f287a96af81 in QWidgetWindow::handleMouseEvent (this=this@entry=0x5601189cda50, event=event@entry=0x7ffcdc19ba30) at kernel/qwidgetwindow.cpp:673
#25 0x00007f287a96ddea in QWidgetWindow::event (this=0x5601189cda50, event=0x7ffcdc19ba30) at kernel/qwidgetwindow.cpp:295
#26 0x00007f287a90f9ac in QApplicationPrivate::notify_helper (this=this@entry=0x560118659490, receiver=receiver@entry=0x5601189cda50, e=e@entry=0x7ffcdc19ba30) at kernel/qapplication.cpp:3685
#27 0x00007f287a916bb0 in QApplication::notify (this=0x7ffcdc19bec0, receiver=0x5601189cda50, e=0x7ffcdc19ba30) at kernel/qapplication.cpp:3431
#28 0x00007f2879a204a8 in QCoreApplication::notifyInternal2 (receiver=0x5601189cda50, event=0x7ffcdc19ba30) at kernel/qcoreapplication.cpp:1075
#29 0x00007f2879a2068e in QCoreApplication::sendSpontaneousEvent (receiver=receiver@entry=0x5601189cda50, event=event@entry=0x7ffcdc19ba30) at kernel/qcoreapplication.cpp:1482
#30 0x00007f287a01d8b5 in QGuiApplicationPrivate::processMouseEvent (e=0x5601188ab010) at kernel/qguiapplication.cpp:2203
#31 0x00007f287a01e9e5 in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0x5601188ab010) at kernel/qguiapplication.cpp:1935
#32 0x00007f2879ff71cb in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1170
#33 0x00007f286f4c6f9a in xcbSourceDispatch (source=<optimized out>) at qxcbeventdispatcher.cpp:105
#34 0x00007f2874437417 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#35 0x00007f2874437650 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#36 0x00007f28744376dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#37 0x00007f2879a7f7ac in QEventDispatcherGlib::processEvents (this=0x5601186c1440, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#38 0x00007f2879a1ed2a in QEventLoop::exec (this=this@entry=0x7ffcdc19bdd0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#39 0x00007f2879a284a0 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1383
#40 0x0000560116e68c25 in main (argc=<optimized out>, argv=<optimized out>) at ./main.cpp:93

The reporter indicates this bug may be a duplicate of or related to bug 419386, bug 376841.

Possible duplicates by query: bug 419386, bug 417097, bug 416486, bug 415699, bug 410345.

Reported using DrKonqi
Comment 1 Vincent LaConte 2021-06-30 16:37:07 UTC
Created attachment 139763 [details]
New crash information added by DrKonqi

kmenuedit (5.21.4) using Qt 5.15.2

- What I was doing when the application crashed:

Removing, with Del key, a non-empty Applications Menu section (directory). I had previously done this action two or three times during this sessiion with no crash.

-- Backtrace (Reduced):
#4  0x00007f0c8fd45d1b in QString::QString (other=..., this=0x7ffc20442310) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:1093
#5  KService::menuId (this=0x556988b386a0) at ./src/services/kservice.cpp:795
#6  0x00005569863e25c4 in MenuEntryInfo::menuId (this=<optimized out>) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qshareddata.h:161
#7  extractLayout (tree=tree@entry=0x0, parent=parent@entry=0x556988601f50) at ./treeview.cpp:1671
#8  0x00005569863e27c0 in TreeItem::saveLayout (this=0x556988601f50, menuFile=0x7f0c840063a0) at ./treeview.cpp:1683
Comment 2 Justin Zobel 2022-12-01 05:22:14 UTC
Thank you for reporting this issue in KDE software. As it was reported on an older version, can we please ask you to see if you can reproduce the issue with a more recent software version?  
  
If you can confirm this issue still exists in a recent version, please change the version field and the status to "REPORTED" when replying. Thank you!
Comment 3 Daniel Wohlers 2022-12-01 06:17:37 UTC
I wasn't able to reproduce the issue for a while.
Comment 4 hbr 2022-12-04 08:04:04 UTC
Created attachment 154295 [details]
New crash information added by DrKonqi

kmenuedit (5.26.4) using Qt 5.15.7

Created a desktop file using KDE Menu Editor

Tried to the delete the desktop file using KDE Menu Editor -> it crashed

-- Backtrace (Reduced):
#4  0x00007f50d197a694 in KService::desktopEntryName() const () from /lib64/libKF5Service.so.5
#5  0x0000564c475e2ded in GlobalAccel::changeMenuEntryShortcut(QExplicitlySharedDataPointer<KService> const&, QKeySequence const&) ()
#6  0x0000564c475ee43e in MenuFolderInfo::save(MenuFile*) ()
#7  0x0000564c475f33e6 in TreeView::save() ()
#8  0x00007f50d00dbdaf in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
Comment 5 Bug Janitor Service 2022-12-19 05:14:46 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 6 Vincent LaConte 2022-12-19 09:04:18 UTC
Can no longer reproduce the problem.