[kcachegrind] [Bug 483973] KCacheGrind crashes when opening history menu

2024-05-12 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=483973

teadrinkingprogram...@proton.me changed:

   What|Removed |Added

 CC|teadrinkingprogrammer@proto |
   |n.me|

-- 
You are receiving this mail because:
You are watching all bug changes.

[kcachegrind] [Bug 483973] KCacheGrind crashes when opening history menu

2024-04-01 Thread Albert Astals Cid
https://bugs.kde.org/show_bug.cgi?id=483973

Albert Astals Cid  changed:

   What|Removed |Added

  Latest Commit|https://invent.kde.org/sdk/ |https://invent.kde.org/sdk/
   |kcachegrind/-/commit/2dfd6e |kcachegrind/-/commit/bb9982
   |65f3422fa9dc2c85a2e21be0884 |b3a0300a92e8b252ef0439e1cdb
   |ee95ab2 |c017faf

--- Comment #6 from Albert Astals Cid  ---
Git commit bb9982b3a0300a92e8b252ef0439e1cdbc017faf by Albert Astals Cid, on
behalf of Quinten Kock.
Committed on 01/04/2024 at 09:43.
Pushed by aacid into branch 'release/24.02'.

Fix crash when opening the back/forward/up action menus

The popup menu for back/forward/up on the toolbar crashes KCacheGrind
when KF6 is used.

It seems the KToolBarPopupAction widget changed in KF6, and menu()
is now null() by default, and we should use popupMenu() instead.

See also:
https://api.kde.org/frameworks/kwidgetsaddons/html/classKToolBarPopupAction.html
(cherry picked from commit 2dfd6e65f3422fa9dc2c85a2e21be0884ee95ab2)

M  +3-3kcachegrind/toplevel.cpp

https://invent.kde.org/sdk/kcachegrind/-/commit/bb9982b3a0300a92e8b252ef0439e1cdbc017faf

-- 
You are receiving this mail because:
You are watching all bug changes.

[kcachegrind] [Bug 483973] KCacheGrind crashes when opening history menu

2024-04-01 Thread Albert Astals Cid
https://bugs.kde.org/show_bug.cgi?id=483973

Albert Astals Cid  changed:

   What|Removed |Added

  Latest Commit||https://invent.kde.org/sdk/
   ||kcachegrind/-/commit/2dfd6e
   ||65f3422fa9dc2c85a2e21be0884
   ||ee95ab2
 Resolution|--- |FIXED
 Status|ASSIGNED|RESOLVED

--- Comment #5 from Albert Astals Cid  ---
Git commit 2dfd6e65f3422fa9dc2c85a2e21be0884ee95ab2 by Albert Astals Cid, on
behalf of Quinten Kock.
Committed on 01/04/2024 at 09:43.
Pushed by aacid into branch 'master'.

Fix crash when opening the back/forward/up action menus

The popup menu for back/forward/up on the toolbar crashes KCacheGrind
when KF6 is used.

It seems the KToolBarPopupAction widget changed in KF6, and menu()
is now null() by default, and we should use popupMenu() instead.

See also:
https://api.kde.org/frameworks/kwidgetsaddons/html/classKToolBarPopupAction.html

M  +3-3kcachegrind/toplevel.cpp

https://invent.kde.org/sdk/kcachegrind/-/commit/2dfd6e65f3422fa9dc2c85a2e21be0884ee95ab2

-- 
You are receiving this mail because:
You are watching all bug changes.

[kcachegrind] [Bug 483973] KCacheGrind crashes when opening history menu

2024-03-30 Thread Bug Janitor Service
https://bugs.kde.org/show_bug.cgi?id=483973

Bug Janitor Service  changed:

   What|Removed |Added

 Status|REPORTED|ASSIGNED
 Ever confirmed|0   |1

--- Comment #4 from Bug Janitor Service  ---
A possibly relevant merge request was started @
https://invent.kde.org/sdk/kcachegrind/-/merge_requests/28

-- 
You are receiving this mail because:
You are watching all bug changes.

[kcachegrind] [Bug 483973] KCacheGrind crashes when opening history menu

2024-03-20 Thread Quinten Kock
https://bugs.kde.org/show_bug.cgi?id=483973

Quinten Kock  changed:

   What|Removed |Added

 Status|NEEDSINFO   |REPORTED
   Platform|Other   |Arch Linux
 Resolution|WAITINGFORINFO  |---

--- Comment #3 from Quinten Kock  ---
The backtrace is from my Arch Linux system, but I can also reproduce from
Gentoo. Both the repo version and kdesrc-build seem to suffer from the issue.

It's probably a regression from the Qt6 upgrade, because I think it used to
work.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kcachegrind] [Bug 483973] KCacheGrind crashes when opening history menu

2024-03-19 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=483973

teadrinkingprogram...@proton.me changed:

   What|Removed |Added

 CC||teadrinkingprogrammer@proto
   ||n.me
 Status|REPORTED|NEEDSINFO
 Resolution|--- |WAITINGFORINFO

--- Comment #2 from teadrinkingprogram...@proton.me ---
Hi there, thank you for submitting this bug.

Could you include your Linux distribution in the metadata and provide the
distribution version number?

-- 
You are receiving this mail because:
You are watching all bug changes.

[kcachegrind] [Bug 483973] KCacheGrind crashes when opening history menu

2024-03-19 Thread Quinten Kock
https://bugs.kde.org/show_bug.cgi?id=483973

--- Comment #1 from Quinten Kock  ---
Backtrace from the segfaulted thread. It seems to be clearing a NULL menu:

Thread 1 (Thread 0x71a1d9c0 (LWP 112356) "kcachegrind"):
#0  QMenu::clear (this=this@entry=0x0) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/widgets/qmenu.cpp:2220
acts = {> =
{> = {}, }, d
= {d = 0x5568e700, ptr = 0x77158d06
, size = 140737488340400}}
#1  0x5558985e in TopLevel::backAboutToShow (this=0x5584d100) at
/usr/src/debug/kcachegrind/kcachegrind-24.02.0/kcachegrind/toplevel.cpp:2127
#2  0x76190ca9 in QtPrivate::QSlotObjectBase::call (a=0x7fffc688,
r=0x5584d100, this=0x559e9540, this=, r=,
a=) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qobjectdefs_impl.h:433
#3  doActivate (sender=0x559aa340, signal_index=7,
argv=0x7fffc688) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qobject.cpp:4039
#4  0x772b6545 in QMenu::aboutToShow (this=0x559aa340) at
/usr/src/debug/qt6-base/build/src/widgets/Widgets_autogen/include/moc_qmenu.cpp:352
#5  QMenuPrivate::popup(QPoint const&, QAction*, std::function) (this=this@entry=0x559edce0, p=..., atAction=atAction@entry=0x0,
positionFunction=...) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/widgets/qmenu.cpp:2368
#6  0x772b73e0 in QMenuPrivate::exec(QPoint const&, QAction*,
std::function) (this=0x559edce0, p=..., action=0x0,
positionFunction=...) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/widgets/qmenu.cpp:2655
#7  0x7732a5df in QToolButtonPrivate::popupTimerDone
(this=0x55dbd1c0) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/widgets/qtoolbutton.cpp:776
#8  0x7732a9fa in QToolButton::showMenu (this=) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/widgets/qtoolbutton.cpp:667
#9  0x7732acc2 in QToolButton::mousePressEvent (this=0x55d6a9e0,
e=0x7fffcef0) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/widgets/qtoolbutton.cpp:569
#10 0x77144fb2 in QWidget::event (this=0x55d6a9e0,
event=0x7fffcef0) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/kernel/qwidget.cpp:8955
#11 0x770f438b in QApplicationPrivate::notify_helper
(this=this@entry=0x5568f0a0, receiver=receiver@entry=0x55d6a9e0,
e=e@entry=0x7fffcef0) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/kernel/qapplication.cpp:3296
#12 0x770f6be8 in QApplication::notify (this=,
receiver=0x55d6a9e0, e=0x7fffcef0) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/kernel/qapplication.cpp:2782
#13 0x76139818 in QCoreApplication::notifyInternal2
(receiver=0x55d6a9e0, event=0x7fffcef0) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qcoreapplication.cpp:1121
#14 0x7613986d in QCoreApplication::sendSpontaneousEvent
(receiver=, event=) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qcoreapplication.cpp:1553
#15 0x770f2327 in QApplicationPrivate::sendMouseEvent
(receiver=0x55d6a9e0, event=0x7fffcef0, alienWidget=0x55d6a9e0,
nativeWidget=0x5584d100, buttonDown=, lastMouseReceiver=...,
spontaneous=true, onlyDispatchEnterLeave=false) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/kernel/qapplication.cpp:2366
#16 0x77157a97 in QWidgetWindow::handleMouseEvent (this=0x55847a00,
event=event@entry=0x7fffd260) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/kernel/qwidgetwindow.cpp:653
#17 0x77158db0 in QWidgetWindow::event (this=0x55847a00,
event=0x7fffd260) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/kernel/qwidgetwindow.cpp:267
#18 0x770f438b in QApplicationPrivate::notify_helper (this=, receiver=0x55847a00, e=0x7fffd260) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/widgets/kernel/qapplication.cpp:3296
#19 0x76139818 in QCoreApplication::notifyInternal2
(receiver=0x55847a00, event=0x7fffd260) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qcoreapplication.cpp:1121
#20 0x7613986d in QCoreApplication::sendSpontaneousEvent
(receiver=, event=) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qcoreapplication.cpp:1553
#21 0x7676f9e5 in QGuiApplicationPrivate::processMouseEvent
(e=0x5630e110) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/gui/kernel/qguiapplication.cpp:2325
#22 0x767da85c in QWindowSystemInterface::sendWindowSystemEvents
(flags=...) at
/usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/gui/kernel/qwindowsysteminterface.cpp:1109
#23 0x76bb26c4 in userEventSourceDispatch (source=) at
/usr/src/debug/qt6-base/qtbase-everywhere-s