Bug 472985 - kate crash when opening saved session
Summary: kate crash when opening saved session
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: 23.04.3
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2023-08-04 03:56 UTC by Thomas Karpiniec
Modified: 2023-08-25 07:06 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Karpiniec 2023-08-04 03:56:13 UTC
Application: kate (23.04.3)

Qt Version: 5.15.10
Frameworks Version: 5.108.0
Operating System: Linux 6.4.6-1-default x86_64
Windowing System: X11
Distribution: "openSUSE Tumbleweed"
DrKonqi: 5.27.6 [KCrashBackend]

-- Information about the crash:
I was trying out the LSP Plugin with a Rust project, which I opened with "Open Folder". I had 5 files open and experimentally saved a session. I then closed the "project" using the red cross button in the toolbar, then tried to open the saved "session" from the menu bar. The kate window appeared to close, re-open, then crash in quick succession.

I don't really know what I was doing with project/sessions because I'm still learning how they work. Hopefully the stack trace is useful!

The crash does not seem to be reproducible.

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

[KCrash Handler]
#4  0x00007faaf0116042 in QObjectData::dynamicMetaObject (this=0x55b7ce203180) at kernel/qobject.cpp:185
#5  0x00007faaf00f6459 in QMetaObject::cast (this=this@entry=0x7faaf18cba00 <DiagnosticsProvider::staticMetaObject>, obj=0x55b7ce0eecd0) at kernel/qmetaobject.cpp:389
#6  0x00007faaf00f6495 in QMetaObject::cast (this=this@entry=0x7faaf18cba00 <DiagnosticsProvider::staticMetaObject>, obj=<optimized out>) at kernel/qmetaobject.cpp:378
#7  0x00007faaf181f5a8 in qobject_cast<DiagnosticsProvider*> (object=<optimized out>) at /usr/include/qt5/QtCore/qobject.h:519
#8  QtPrivate::QVariantValueHelper<DiagnosticsProvider*>::object (v=...) at /usr/include/qt5/QtCore/qvariant.h:753
#9  QtPrivate::ObjectInvoker<QtPrivate::QVariantValueHelper<DiagnosticsProvider*>, QVariant const&, DiagnosticsProvider*>::invoke (a=...) at /usr/include/qt5/QtCore/qvariant.h:107
#10 qvariant_cast<DiagnosticsProvider*> (v=...) at /usr/include/qt5/QtCore/qvariant.h:879
#11 QVariant::value<DiagnosticsProvider*> (this=0x7ffd1849f9f0) at /usr/include/qt5/QtCore/qvariant.h:367
#12 getProvider (item=0x55b7ce3e7870) at /usr/src/debug/kate-23.04.3/apps/lib/diagnostics/diagnosticview.cpp:668
#13 DiagnosticsView::clearSuppressionsFromProvider (this=0x55b7ce051d40, provider=<optimized out>) at /usr/src/debug/kate-23.04.3/apps/lib/diagnostics/diagnosticview.cpp:748
#14 0x00007faaf01257a2 in QtPrivate::QSlotObjectBase::call (a=0x7ffd1849fb30, r=0x55b7ce051d40, this=0x55b7ce48ab00) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#15 doActivate<false> (sender=0x55b7ce21fa00, signal_index=7, argv=0x7ffd1849fb30) at kernel/qobject.cpp:3925
#16 0x00007faaf011e40f in QMetaObject::activate (sender=sender@entry=0x55b7ce21fa00, m=m@entry=0x7faaf18cba00 <DiagnosticsProvider::staticMetaObject>, local_signal_index=local_signal_index@entry=4, argv=argv@entry=0x7ffd1849fb30) at kernel/qobject.cpp:3985
#17 0x00007faaf17aed62 in DiagnosticsProvider::requestClearSuppressions (this=this@entry=0x55b7ce21fa00, _t1=<optimized out>, _t1@entry=0x55b7ce21fa00) at /usr/src/debug/kate-23.04.3/build/apps/lib/kateprivate_autogen/2XSJLH2FHN/moc_diagnosticview.cpp:255
#18 0x00007faae05b3433 in LSPClientPluginViewImpl::onServerChanged (this=0x55b7ce21f520) at /usr/src/debug/kate-23.04.3/addons/lspclient/lspclientpluginview.cpp:2112
#19 0x00007faaf01257a2 in QtPrivate::QSlotObjectBase::call (a=0x7ffd1849fbf0, r=0x55b7ce21f520, this=0x55b7d06f98f0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#20 doActivate<false> (sender=0x55b7ce0b7ac0, signal_index=3, argv=0x7ffd1849fbf0) at kernel/qobject.cpp:3925
#21 0x00007faaf011e40f in QMetaObject::activate (sender=sender@entry=0x55b7ce0b7ac0, m=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3985
#22 0x00007faae05ea870 in LSPClientServerManager::serverChanged (this=0x55b7ce0b7ac0) at /usr/src/debug/kate-23.04.3/build/addons/lspclient/lspclientplugin_autogen/EWIEGA46WW/moc_lspclientservermanager.cpp:196
#23 LSPClientServerManagerImpl::updateServerConfig (this=0x55b7ce0b7ac0) at /usr/src/debug/kate-23.04.3/addons/lspclient/lspclientservermanager.cpp:922
#24 0x00007faaf0129612 in QtPrivate::QSlotObjectBase::call (a=0x7ffd1849fd50, r=<optimized out>, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#25 QSingleShotTimer::timerEvent (this=0x55b7cf4c3d00) at kernel/qtimer.cpp:322
#26 0x00007faaf01191bb in QObject::event (this=0x55b7cf4c3d00, e=0x7ffd1849fe90) at kernel/qobject.cpp:1369
#27 0x00007faaf0fa519e in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55b7cf4c3d00, e=0x7ffd1849fe90) at kernel/qapplication.cpp:3640
#28 0x00007faaf00ed4f8 in QCoreApplication::notifyInternal2 (receiver=0x55b7cf4c3d00, event=0x7ffd1849fe90) at kernel/qcoreapplication.cpp:1064
#29 0x00007faaf00ed6be in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1462
#30 0x00007faaf0145889 in QTimerInfoList::activateTimers (this=0x55b7cdb02e40) at kernel/qtimerinfo_unix.cpp:643
#31 0x00007faaf0146134 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:183
#32 0x00007faaed916988 in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#33 0x00007faaed916d98 in ?? () from /lib64/libglib-2.0.so.0
#34 0x00007faaed916e2c in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#35 0x00007faaf0146496 in QEventDispatcherGlib::processEvents (this=0x55b7cdb03e10, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#36 0x00007faaf00ebf8b in QEventLoop::exec (this=this@entry=0x7ffd184a00d0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#37 0x00007faaf00f4420 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#38 0x000055b7cd995478 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kate-23.04.3/apps/kate/main.cpp:609
[Inferior 1 (process 442) detached]

Reported using DrKonqi
Comment 1 Waqar Ahmed 2023-08-25 07:06:00 UTC
This should be fixed in 23.08 hopefully. If you see this crash again, feel free to reopen this bug report.