Summary: | KMenuEdit crashes in QWidgetLineControl::internalSetText() with .desktop file that has an equals sign in the Exec key's value | ||
---|---|---|---|
Product: | [Applications] kmenuedit | Reporter: | Bradlee Sargent <bradlee.sargent> |
Component: | general | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED DUPLICATE | ||
Severity: | crash | CC: | boa_bravura_0r, colin, dmitrii.odintcov, eyndjl, idontfeelcomfygivingyoumyemail, mrb, nate, null, plaidradish, revent82, thienkimnguyenyt311, verdatenero |
Priority: | VHI | Keywords: | drkonqi |
Version: | 5.27.0 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=465290 | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
New crash information added by DrKonqi
New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi |
Description
Bradlee Sargent
2023-02-20 20:12:34 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kmenuedit/-/merge_requests/16 Created attachment 156933 [details]
New crash information added by DrKonqi
kmenuedit (5.27.2) using Qt 5.15.8
Just editing a Favorite menu (dbeaver) causes the crash.
-- Backtrace (Reduced):
#4 0x00007fe06e0c4324 in QWidgetLineControl::internalSetText(QString const&, int, bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
[...]
#9 0x00007fe06e268b32 in QTreeWidget::currentItemChanged(QTreeWidgetItem*, QTreeWidgetItem*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
[...]
#11 0x00007fe06d2656c7 in QItemSelectionModel::currentChanged(QModelIndex const&, QModelIndex const&) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007fe06d26917d in QItemSelectionModel::setCurrentIndex(QModelIndex const&, QFlags<QItemSelectionModel::SelectionFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#13 0x00007fe06e1eb14e in QAbstractItemView::mousePressEvent(QMouseEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
Created attachment 157028 [details]
New crash information added by DrKonqi
kmenuedit (5.27.2) using Qt 5.15.8
Editing Menu, selecting the offending menu item, then crash
-- Backtrace (Reduced):
#4 0x00007f1d1c0c4324 in QWidgetLineControl::internalSetText(QString const&, int, bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
[...]
#9 0x00007f1d1c268b32 in QTreeWidget::currentItemChanged(QTreeWidgetItem*, QTreeWidgetItem*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
[...]
#11 0x00007f1d1b2656c7 in QItemSelectionModel::currentChanged(QModelIndex const&, QModelIndex const&) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007f1d1b26917d in QItemSelectionModel::setCurrentIndex(QModelIndex const&, QFlags<QItemSelectionModel::SelectionFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#13 0x00007f1d1c1eb14e in QAbstractItemView::mousePressEvent(QMouseEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
*** Bug 466417 has been marked as a duplicate of this bug. *** *** Bug 468420 has been marked as a duplicate of this bug. *** *** Bug 469494 has been marked as a duplicate of this bug. *** Created attachment 160798 [details]
New crash information added by DrKonqi
kmenuedit (5.27.7) using Qt 5.15.10
This occurs after entering a Chromium app/extension shortcut in KDE MenuEditor
-- Backtrace (Reduced):
#4 0x00007f6d866b7134 in QWidgetLineControl::internalSetText(QString const&, int, bool) () at /usr/lib/libQt5Widgets.so.5
[...]
#9 0x00007f6d8685b64c in QTreeWidget::currentItemChanged(QTreeWidgetItem*, QTreeWidgetItem*) () at /usr/lib/libQt5Widgets.so.5
[...]
#11 0x00007f6d85868f4f in QItemSelectionModel::currentChanged(QModelIndex const&, QModelIndex const&) () at /usr/lib/libQt5Core.so.5
#12 0x00007f6d85865203 in QItemSelectionModel::setCurrentIndex(QModelIndex const&, QFlags<QItemSelectionModel::SelectionFlag>) () at /usr/lib/libQt5Core.so.5
#13 0x00007f6d867de0e7 in QAbstractItemView::mousePressEvent(QMouseEvent*) () at /usr/lib/libQt5Widgets.so.5
Created attachment 162013 [details]
New crash information added by DrKonqi
kmenuedit (5.27.8) using Qt 5.15.10
I tried editing the Menu entry for 1Password. Here's the 1password.desktop file that caused the crash for me:
[Desktop Entry]
Name=1Password
Exec=/opt/1Password/1password --ozone-platform-hint=auto %U
Terminal=false
Type=Application
Icon=1password
StartupWMClass=1Password
Comment=Password manager and secure wallet
MimeType=x-scheme-handler/onepassword;
Categories=Office;
-- Backtrace (Reduced):
#4 0x00007f98add0d9d4 in QWidgetLineControl::internalSetText(QString const&, int, bool) () from /lib64/libQt5Widgets.so.5
#5 0x000055636d72563c in BasicTab::setEntryInfo (this=0x55636ee996b0, entryInfo=0x55636f0d7ea0) at /usr/src/debug/kmenuedit-5.27.8-1.fc38.x86_64/basictab.cpp:382
#6 0x00007f98acee8608 in doActivate<false> (sender=0x55636ee634d0, signal_index=27, argv=0x7ffec390ff80) at kernel/qobject.cpp:3937
[...]
#8 0x000055636d72c378 in TreeView::entrySelected (_t1=<optimized out>, this=0x55636ee634d0) at /usr/src/debug/kmenuedit-5.27.8-1.fc38.x86_64/redhat-linux-build/kmenuedit_autogen/EWIEGA46WW/moc_treeview.cpp:250
#9 TreeView::itemSelected (this=0x55636ee634d0, item=0x55636f115d50) at /usr/src/debug/kmenuedit-5.27.8-1.fc38.x86_64/treeview.cpp:642
(In reply to Lennart Rosam from comment #8) > Created attachment 162013 [details] > New crash information added by DrKonqi > > kmenuedit (5.27.8) using Qt 5.15.10 > > I tried editing the Menu entry for 1Password. Here's the 1password.desktop > file that caused the crash for me: > > [Desktop Entry] > Name=1Password > Exec=/opt/1Password/1password --ozone-platform-hint=auto %U > Terminal=false > Type=Application > Icon=1password > StartupWMClass=1Password > Comment=Password manager and secure wallet > MimeType=x-scheme-handler/onepassword; > Categories=Office; > > -- Backtrace (Reduced): > #4 0x00007f98add0d9d4 in QWidgetLineControl::internalSetText(QString > const&, int, bool) () from /lib64/libQt5Widgets.so.5 > #5 0x000055636d72563c in BasicTab::setEntryInfo (this=0x55636ee996b0, > entryInfo=0x55636f0d7ea0) at > /usr/src/debug/kmenuedit-5.27.8-1.fc38.x86_64/basictab.cpp:382 > #6 0x00007f98acee8608 in doActivate<false> (sender=0x55636ee634d0, > signal_index=27, argv=0x7ffec390ff80) at kernel/qobject.cpp:3937 > [...] > #8 0x000055636d72c378 in TreeView::entrySelected (_t1=<optimized out>, > this=0x55636ee634d0) at > /usr/src/debug/kmenuedit-5.27.8-1.fc38.x86_64/redhat-linux-build/ > kmenuedit_autogen/EWIEGA46WW/moc_treeview.cpp:250 > #9 TreeView::itemSelected (this=0x55636ee634d0, item=0x55636f115d50) at > /usr/src/debug/kmenuedit-5.27.8-1.fc38.x86_64/treeview.cpp:642 Update: Turns out, the desktop file I originally posted (from /usr/share/applications) was not the culprit. I edited the shortcut before and a file was created under ~/.local/share/applications. Removing the file fixes the crash. Here's the content of the file: [Desktop Entry] Categories=Office; Comment=Password manager and secure wallet Exec='/opt/1Password/1password --ozone-platform-hint=auto' Icon=1password MimeType=x-scheme-handler/onepassword; Name=1Password NoDisplay=false Path= StartupNotify=true StartupWMClass=1Password Terminal=false TerminalOptions= Type=Application X-KDE-SubstituteUID=false X-KDE-Username= So to reproduce, put the file contents from comment #8 into /usr/share/applications/1password.desktop and the contents of the file above into ~/.local/share/applications/1password.desktop. Then try to edit the 1Password application under "Office". *** Bug 465290 has been marked as a duplicate of this bug. *** *** This bug has been marked as a duplicate of bug 465290 *** *** Bug 466417 has been marked as a duplicate of this bug. *** *** Bug 466757 has been marked as a duplicate of this bug. *** *** Bug 468420 has been marked as a duplicate of this bug. *** *** Bug 469494 has been marked as a duplicate of this bug. *** *** Bug 473290 has been marked as a duplicate of this bug. *** *** Bug 473998 has been marked as a duplicate of this bug. *** *** Bug 478646 has been marked as a duplicate of this bug. *** |