https://bugs.kde.org/show_bug.cgi?id=450434

            Bug ID: 450434
           Summary: Kate crashes when right clicking on a toolbar button
                    before a file was loaded
           Product: kate
           Version: 21.12.2
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Keywords: drkonqi
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: bh...@hotmail.de
  Target Milestone: ---

Application: kate (21.12.2)

Qt Version: 5.15.2
Frameworks Version: 5.90.0
Operating System: Linux 5.16.7-200.fc35.x86_64 x86_64
Windowing System: X11
Distribution: "Fedora release 35 (Thirty Five)"
DrKonqi: 5.23.5 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:

I have a toolbar button configured with a custom "External tool" command, which
is only available for *.py files. When I open Kate, it has no file open first.
Then I open a *.py file and quickly right click on the still greyed-out button.
Then Kate crashes. When I wait some time, and do then the right-click, it does
not happen anymore.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Kate (kate), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f73a72fbc58 in KActionCollection::KActionCollection(KXMLGUIClient
const*) () from /lib64/libKF5XmlGui.so.5
#5  0x00007f73a733697b in KXMLGUIClient::actionCollection() const () from
/lib64/libKF5XmlGui.so.5
#6  0x00007f73a7328f1d in KToolBarPrivate::findAction(QString const&,
KXMLGUIClient**) const () from /lib64/libKF5XmlGui.so.5
#7  0x00007f73a732d5c4 in
QtPrivate::QFunctorSlotObject<KToolBarPrivate::contextMenu(QPoint
const&)::{lambda()#14}, 0, QtPrivate::List<>, void>::impl(int,
QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) () from
/lib64/libKF5XmlGui.so.5
#8  0x00007f73a5bc73e9 in void doActivate<false>(QObject*, int, void**) () from
/lib64/libQt5Core.so.5
#9  0x00007f73a682d50d in QMenuPrivate::popup(QPoint const&, QAction*,
std::function<QPoint (QSize const&)>) () from /lib64/libQt5Widgets.so.5
#10 0x00007f73a682ebf3 in QMenuPrivate::exec(QPoint const&, QAction*,
std::function<QPoint (QSize const&)>) () from /lib64/libQt5Widgets.so.5
#11 0x00007f73a682ed53 in QMenu::exec(QPoint const&, QAction*) () from
/lib64/libQt5Widgets.so.5
#12 0x00007f73a732ca03 in KToolBar::contextMenuEvent(QContextMenuEvent*) ()
from /lib64/libKF5XmlGui.so.5
#13 0x00007f73a66e5e7e in QWidget::event(QEvent*) () from
/lib64/libQt5Widgets.so.5
#14 0x00007f73a66a3443 in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() from /lib64/libQt5Widgets.so.5
#15 0x00007f73a66aa9b4 in QApplication::notify(QObject*, QEvent*) () from
/lib64/libQt5Widgets.so.5
#16 0x00007f73a5b937d8 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() from /lib64/libQt5Core.so.5
#17 0x00007f73a66ffbb4 in QWidgetWindow::handleMouseEvent(QMouseEvent*) () from
/lib64/libQt5Widgets.so.5
#18 0x00007f73a67026e5 in QWidgetWindow::event(QEvent*) () from
/lib64/libQt5Widgets.so.5
#19 0x00007f73a66a3443 in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() from /lib64/libQt5Widgets.so.5
#20 0x00007f73a5b937d8 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() from /lib64/libQt5Core.so.5
#21 0x00007f73a5fe6b98 in
QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*)
() from /lib64/libQt5Gui.so.5
#22 0x00007f73a5fc6c9c in
QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>)
() from /lib64/libQt5Gui.so.5
#23 0x00007f7393d6611e in xcbSourceDispatch(_GSource*, int (*)(void*), void*)
() from /lib64/libQt5XcbQpa.so.5
#24 0x00007f73a3f0d05f in g_main_context_dispatch () from
/lib64/libglib-2.0.so.0
#25 0x00007f73a3f622a8 in g_main_context_iterate.constprop () from
/lib64/libglib-2.0.so.0
#26 0x00007f73a3f0a853 in g_main_context_iteration () from
/lib64/libglib-2.0.so.0
#27 0x00007f73a5be4bb8 in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
from /lib64/libQt5Core.so.5
#28 0x00007f73a5b921e2 in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from
/lib64/libQt5Core.so.5
#29 0x00007f73a5b9a724 in QCoreApplication::exec() () from
/lib64/libQt5Core.so.5
#30 0x0000563d137927ce in main ()
[Inferior 1 (process 29274) detached]

Possible duplicates by query: bug 92311, bug 90666, bug 78451, bug 297221, bug
150911.

Reported using DrKonqi

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

Reply via email to