Bug 450553 - KMenuEdit crashes in KService::desktopEntryName() when save button is clicked
Summary: KMenuEdit crashes in KService::desktopEntryName() when save button is clicked
Status: RESOLVED DUPLICATE of bug 478398
Alias: None
Product: kmenuedit
Classification: Applications
Component: general (show other bugs)
Version: 5.23.5
Platform: Fedora RPMs Linux
: HI crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: drkonqi
: 461844 469737 471103 480870 481853 481871 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-02-19 09:24 UTC by john
Modified: 2024-02-27 19:44 UTC (History)
10 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (3.47 KB, text/plain)
2022-06-12 21:41 UTC, Roke Julian Lockhart Beedell
Details
New crash information added by DrKonqi (4.44 KB, text/plain)
2022-11-13 16:46 UTC, Bharadwaj Raju
Details
New crash information added by DrKonqi (3.85 KB, text/plain)
2023-10-12 18:33 UTC, nathan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description john 2022-02-19 09:24:36 UTC
Application: kmenuedit (5.23.5)

Qt Version: 5.15.2
Frameworks Version: 5.90.0
Operating System: Linux 5.16.9-200.fc35.x86_64 x86_64
Windowing System: X11
Distribution: Fedora Linux 35 (KDE Plasma)
DrKonqi: 5.23.5 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:
Created a New Item, Moved several existing Applications into the New Item menu (drag and dropped). Clicked Save. Edit Application segfaults.

- Unusual behavior I noticed:
None

- Custom settings of the application:
None

The crash can be reproduced every time.

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

[KCrash Handler]
#4  0x00007fb7423da704 in KService::desktopEntryName() const () from /lib64/libKF5Service.so.5
#5  0x000055e29dc50689 in GlobalAccel::changeMenuEntryShortcut(QExplicitlySharedDataPointer<KService> const&, QKeySequence const&) ()
#6  0x000055e29dc50bfe in MenuFolderInfo::save(MenuFile*) ()
#7  0x000055e29dc469a6 in TreeView::save() ()
#8  0x00007fb740e2b430 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#9  0x00007fb741a02916 in QAction::triggered(bool) () from /lib64/libQt5Widgets.so.5
#10 0x00007fb741a0562c in QAction::activate(QAction::ActionEvent) () from /lib64/libQt5Widgets.so.5
#11 0x00007fb741b005aa in QAbstractButtonPrivate::click() () from /lib64/libQt5Widgets.so.5
#12 0x00007fb741b00707 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /lib64/libQt5Widgets.so.5
#13 0x00007fb741bfd31e in QToolButton::mouseReleaseEvent(QMouseEvent*) () from /lib64/libQt5Widgets.so.5
#14 0x00007fb741a4be7e in QWidget::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#15 0x00007fb741a09443 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#16 0x00007fb741a11074 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#17 0x00007fb740df77d8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#18 0x00007fb741a0fb57 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /lib64/libQt5Widgets.so.5
#19 0x00007fb741a65450 in QWidgetWindow::handleMouseEvent(QMouseEvent*) () from /lib64/libQt5Widgets.so.5
#20 0x00007fb741a686e5 in QWidgetWindow::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#21 0x00007fb741a09443 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#22 0x00007fb740df77d8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#23 0x00007fb741385b98 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /lib64/libQt5Gui.so.5
#24 0x00007fb741365c9c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Gui.so.5
#25 0x00007fb72f38f11e in xcbSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5XcbQpa.so.5
#26 0x00007fb73f69905f in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#27 0x00007fb73f6ee2a8 in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
#28 0x00007fb73f696853 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#29 0x00007fb740e48bb8 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#30 0x00007fb740df61e2 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#31 0x00007fb740dfe724 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#32 0x000055e29dc377ef in main ()
[Inferior 1 (process 51324) detached]

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

Possible duplicates by query: bug 426822, bug 423726, bug 419386, bug 417097, bug 416486.

Reported using DrKonqi
Comment 1 Roke Julian Lockhart Beedell 2022-06-12 21:41:22 UTC
Created attachment 149648 [details]
New crash information added by DrKonqi

kmenuedit (5.25.0) using Qt 5.15.4

I was modiying entries via KMenuEdit. When I attempted to save them, it crashed.

-- Backtrace (Reduced):
#4  0x00007f0e9cb1f294 in KService::desktopEntryName() const () from /lib64/libKF5Service.so.5
#5  0x000055b413cc08fd in GlobalAccel::changeMenuEntryShortcut(QExplicitlySharedDataPointer<KService> const&, QKeySequence const&) ()
#6  0x000055b413ccc07e in MenuFolderInfo::save(MenuFile*) ()
#7  0x000055b413cd0ec6 in TreeView::save() ()
#8  0x00007f0e9b57c39f in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
Comment 2 Bharadwaj Raju 2022-11-13 16:46:00 UTC
Created attachment 153717 [details]
New crash information added by DrKonqi

kmenuedit (5.26.80) using Qt 5.15.6

What I was doing: I added an entry called "test", then deleted it. After, I was asked to save/discard and I selected save.

-- Backtrace (Reduced):
#5  QString::QString (other=<error reading variable: Cannot access memory at address 0x10>, this=this@entry=0x7ffe0a1e33f0) at /usr/include/qt5/QtCore/qstring.h:1093
#6  KService::desktopEntryName (this=0x0) at /home/bharadwaj/kde/src/kservice/src/services/kservice.cpp:944
#7  0x000000000041de6c in GlobalAccel::changeMenuEntryShortcut (service=..., shortcut=...) at /usr/include/qt5/QtCore/qshareddata.h:161
#8  0x00000000004277de in MenuFolderInfo::save (this=0x1a142f0, menuFile=0x19d0eb0) at /home/bharadwaj/kde/src/kmenuedit/menuinfo.cpp:176
#9  0x000000000042df6d in TreeView::save (this=0x18ebe10) at /home/bharadwaj/kde/src/kmenuedit/treeview.cpp:1709
Comment 3 Nate Graham 2023-05-15 18:09:37 UTC
*** Bug 461844 has been marked as a duplicate of this bug. ***
Comment 4 Nate Graham 2023-05-15 18:09:40 UTC
*** Bug 469737 has been marked as a duplicate of this bug. ***
Comment 5 Nate Graham 2023-09-14 22:37:09 UTC
*** Bug 471103 has been marked as a duplicate of this bug. ***
Comment 6 nathan 2023-10-12 18:33:46 UTC
Created attachment 162251 [details]
New crash information added by DrKonqi

kmenuedit (5.27.8) using Qt 5.15.10

Crashed after duplicating an entry, dragging to a different location, renaming, and clicking "Save."

-- Backtrace (Reduced):
#6  QString::QString(QString const&) (other=<error reading variable: Cannot access memory at address 0x10>, this=0x7fff74c08f90, this=<optimized out>, other=<optimized out>) at /usr/include/qt/QtCore/qstring.h:1093
#7  KService::desktopEntryName() const (this=0x0) at /usr/src/debug/kservice5/kservice-5.110.0/src/services/kservice.cpp:991
#8  0x0000564317c1f5a8 in GlobalAccel::changeMenuEntryShortcut(QExplicitlySharedDataPointer<KService> const&, QKeySequence const&) (service=..., shortcut=...) at /usr/include/qt/QtCore/qshareddata.h:161
#9  0x0000564317c2ae00 in MenuFolderInfo::save(MenuFile*) (this=0x56431967d550, menuFile=0x5643197548f0) at /usr/src/debug/kmenuedit/kmenuedit-5.27.8/menuinfo.cpp:176
#10 0x0000564317c2fad9 in TreeView::save() (this=0x564319674960) at /usr/src/debug/kmenuedit/kmenuedit-5.27.8/treeview.cpp:1719
Comment 7 Nate Graham 2024-02-06 20:55:34 UTC
*** Bug 480870 has been marked as a duplicate of this bug. ***
Comment 8 Harald Sitter 2024-02-26 14:21:12 UTC
*** Bug 481853 has been marked as a duplicate of this bug. ***
Comment 9 Harald Sitter 2024-02-26 14:24:29 UTC

*** This bug has been marked as a duplicate of bug 478398 ***
Comment 10 Nate Graham 2024-02-27 19:44:54 UTC
*** Bug 481871 has been marked as a duplicate of this bug. ***