Bug 476469

Summary: Kate crashes when clicking on first "Welcome" widget after creating a new session
Product: [Applications] kate Reporter: Massimo Eynard <massimo.eynard>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: st.jacob, str, waqar.17a
Priority: NOR Keywords: drkonqi
Version First Reported In: 22.12.3   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Massimo Eynard 2023-11-02 12:59:46 UTC
Application: kate (22.12.3)

Qt Version: 5.15.8
Frameworks Version: 5.103.0
Operating System: Linux 6.1.0-13-amd64 x86_64
Windowing System: X11
Distribution: Debian GNU/Linux 12 (bookworm)
DrKonqi: 5.27.5 [KCrashBackend]

-- Information about the crash:
At Kate launch, clicking on "New Session" creates a new "Welcome" widget in "Open Widgets" drop list. Selecting back first "Welcome" widget causes crash.

The crash can be reproduced every time.

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

[KCrash Handler]
#4  0x00007f2d353c58c7 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/ktexteditor/katefiletreeplugin.so
#5  0x00007f2d436e8f4f in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f2d447ced75 in QAbstractItemView::clicked(QModelIndex const&) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#7  0x00007f2d447d2e73 in QAbstractItemView::mouseReleaseEvent(QMouseEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#8  0x00007f2d445a4db8 in QWidget::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#9  0x00007f2d4465048e in QFrame::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#10 0x00007f2d436b147b in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007f2d44562f9e in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x00007f2d4456b552 in QApplication::notify(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007f2d436b16f8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007f2d4456965e in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007f2d445bdbd8 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007f2d445c0f60 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007f2d44562fae in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007f2d436b16f8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x00007f2d43d3d3ed in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#20 0x00007f2d43d11cac in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#21 0x00007f2d3d6fbeca in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#22 0x00007f2d4151e7a9 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007f2d4151ea38 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007f2d4151eacc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007f2d43709836 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#26 0x00007f2d436b017b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#27 0x00007f2d436b82d6 in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#28 0x0000555915cb3e33 in ?? ()
#29 0x00007f2d432461ca in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#30 0x00007f2d43246285 in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#31 0x0000555915cb5a91 in ?? ()
[Inferior 1 (process 4723) detached]

Reported using DrKonqi
Comment 1 Waqar Ahmed 2023-11-20 10:06:50 UTC
Cannot reproduce this in the latest release / master, please try with latest and reopen the ticket if you can still reproduce this crash.
Comment 2 Stuardo Rodríguez 2023-12-21 12:05:16 UTC
I can replicate it with Kate v22.12.3

How do I upgrade to latest kate version to test?
Comment 3 Waqar Ahmed 2023-12-21 14:27:25 UTC
> How do I upgrade to latest kate version to test?

Check with your distro maintainers or try snap or build Kate yourself. https://kate-editor.org/build-it

Reopen when you have tried with the latest or at least 23.08
Comment 4 Stefan Jacob 2024-02-14 13:30:56 UTC
Created attachment 165818 [details]
New crash information added by DrKonqi

kate (23.08.4) using Qt 5.15.12

Kate crashes when a text document is open and "Welcome" is clicked in the document selection under open controls.

-- Backtrace (Reduced):
#4  0x0000749693e4a0ed in ??? () at /usr/lib/qt/plugins/ktexteditor/katefiletreeplugin.so
#5  0x00007496a02d0e27 in ??? () at /usr/lib/libQt5Core.so.5
#6  0x00007496a11e356a in QAbstractItemView::clicked(QModelIndex const&) () at /usr/lib/libQt5Widgets.so.5
#7  0x00007496a11de7d5 in QAbstractItemView::mouseReleaseEvent(QMouseEvent*) () at /usr/lib/libQt5Widgets.so.5
#8  0x00007496a0faf1a1 in QWidget::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5