Bug 453889 - Kate crashes upon clicking "Configure Kate" with a clean config
Summary: Kate crashes upon clicking "Configure Kate" with a clean config
Status: RESOLVED DUPLICATE of bug 451615
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: 22.04.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-16 13:34 UTC by Sam
Modified: 2022-05-17 07:29 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam 2022-05-16 13:34:59 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. rm -rf ~/.config/kate* ~/.local/share/kate ~/.local/share/kxmlgui5/kate
2. kate
3. (In kate, press Configure Kate in the toolbar menu)

OBSERVED RESULT
It immediately crashes

EXPECTED RESULT
Doesn't crash

SOFTWARE/OS VERSIONS
Windows: N/A
macOS: N/A
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 2.24.5
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.4

ADDITIONAL INFORMATION
Backtrace (Wow this took long to DL):

#0  QMapData<KEntryKey, KEntry>::findNode (this=0x200030, akey=...) at /usr/include/qt/QtCore/qmap.h:287
#1  0x00007ffff75124ea in QMap<KEntryKey, KEntry>::constFind (akey=..., this=0x5555562c7a40) at /usr/include/qt/QtCore/qmap.h:852
#2  KEntryMap::constFindEntry(QByteArray const&, QByteArray const&, QFlags<KEntryMap::SearchFlag>) const [clone .isra.0] (this=this@entry=0x5555562c7a40, 
    key=..., flags=..., flags@entry=..., group=...) at /usr/src/debug/kconfig-5.94.0/src/core/kconfigdata.cpp:60
#3  0x00007ffff74eac33 in KEntryMap::getEntry (group=..., expand=0x7fffffffca87, flags=..., defaultValue=..., key=..., this=0x5555562c7a40)
    at /usr/src/debug/kconfig-5.94.0/src/core/kconfigdata.cpp:217
#4  KConfigPrivate::lookupData (this=0x5555562c7a20, group=..., key=<optimized out>, flags=..., expand=0x7fffffffca87)
    at /usr/src/debug/kconfig-5.94.0/src/core/kconfig.cpp:1048
#5  0x00007ffff74f76a6 in KConfigGroup::readEntry (this=this@entry=0x55555607aa20, key=key@entry=0x7ffff0fb3f7b "View Style", aDefault=...)
    at /usr/src/debug/kconfig-5.94.0/src/core/kconfiggroup.cpp:674
#6  0x00007ffff74f78d2 in KConfigGroup::readEntry (this=this@entry=0x55555607aa20, key=key@entry=0x7ffff0fb3f7b "View Style", 
    aDefault=aDefault@entry=0x7ffff0fb3f70 "DetailTree") at /usr/src/debug/kconfig-5.94.0/src/core/kconfiggroup.cpp:659
#7  0x00007ffff0f4aa73 in KDirOperator::readConfig (this=0x5555568c04d0, configGroup=...) at /usr/src/debug/kio-5.94.0/src/filewidgets/kdiroperator.cpp:2436
#8  0x00007fffee0b8670 in KateFileBrowser::readSessionConfig (this=0x5555567efdb0, cg=...)
    at /usr/src/debug/kate-22.04.1/addons/filebrowser/katefilebrowser.cpp:160
#9  0x00007fffee0bc01c in KateFileBrowserPluginView::createFileBrowser (this=0x5555560768c0, visible=<optimized out>)
    at /usr/include/c++/12.1.0/bits/unique_ptr.h:191
#10 0x00007fffee0bcc15 in KateFileBrowserPluginView::createFileBrowser (visible=true, this=<optimized out>) at /usr/include/qt/QtCore/qlist.h:117
#11 KateFileBrowserPlugin::configPage (this=0x555555a359e0, number=<optimized out>, parent=0x555556359710)
    at /usr/src/debug/kate-22.04.1/addons/filebrowser/katefilebrowserplugin.cpp:56
#12 0x00005555555f212f in KateConfigDialog::addPluginPage (this=0x555556359710, plugin=0x555555a359e0)
    at /usr/src/debug/kate-22.04.1/kate/kateconfigdialog.cpp:306
#13 0x00005555555ad11a in KateConfigDialog::addPluginPages (this=0x555556359710) at /usr/src/debug/kate-22.04.1/kate/kateconfigdialog.cpp:286
#14 KateConfigDialog::KateConfigDialog (parent=<optimized out>, this=<optimized out>) at /usr/src/debug/kate-22.04.1/kate/kateconfigdialog.cpp:63
#15 KateMainWindow::showPluginConfigPage (this=<optimized out>, configpageinterface=<optimized out>, id=<optimized out>)
    at /usr/src/debug/kate-22.04.1/kate/katemainwindow.cpp:905
#16 0x00007ffff6272c78 in doActivate<false> (sender=0x555555e3df50, signal_index=4, argv=0x7fffffffd010) at kernel/qobject.cpp:3898
--Type <RET> for more, q to quit, c to continue without paging--
#17 0x00007ffff6ce4e07 in QAction::triggered (this=this@entry=0x555555e3df50, _t1=<optimized out>) at .moc/moc_qaction.cpp:376
#18 0x00007ffff6cea817 in QAction::activate (this=0x555555e3df50, event=<optimized out>) at kernel/qaction.cpp:1161
#19 0x00007ffff6265dd0 in QObject::event (this=0x555555e3df50, e=0x55555634bc50) at kernel/qobject.cpp:1314
#20 0x00007ffff6cf1a7c in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x555555e3df50, e=0x55555634bc50) at kernel/qapplication.cpp:3637
#21 0x00007ffff62424a8 in QCoreApplication::notifyInternal2 (receiver=0x555555e3df50, event=0x55555634bc50) at kernel/qcoreapplication.cpp:1064
#22 0x00007ffff6242fa3 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x5555556a2d40) at kernel/qcoreapplication.cpp:1821
#23 0x00007ffff6288e38 in postEventSourceDispatch (s=0x5555556c61e0) at kernel/qeventdispatcher_glib.cpp:277
#24 0x00007ffff4534163 in g_main_dispatch (context=0x5555556c7dd0) at ../glib/glib/gmain.c:3417
#25 g_main_context_dispatch (context=0x5555556c7dd0) at ../glib/glib/gmain.c:4135
#26 0x00007ffff458a9e9 in g_main_context_iterate.constprop.0 (context=context@entry=0x5555556c7dd0, block=block@entry=1, dispatch=dispatch@entry=1, 
    self=<optimized out>) at ../glib/glib/gmain.c:4211
#27 0x00007ffff45316c5 in g_main_context_iteration (context=0x5555556c7dd0, may_block=1) at ../glib/glib/gmain.c:4276
#28 0x00007ffff628cc6c in QEventDispatcherGlib::processEvents (this=0x555555675a70, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#29 0x00007ffff623ac5c in QEventLoop::exec (this=0x7fffffffd480, flags=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#30 0x00007ffff6245759 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#31 0x00007ffff660ef82 in QGuiApplication::exec () at kernel/qguiapplication.cpp:1867
#32 0x00007ffff6cefe8a in QApplication::exec () at kernel/qapplication.cpp:2829
#33 0x00005555555927da in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kate-22.04.1/kate/main.cpp:714
(gdb) backtrace
#0  QMapData<KEntryKey, KEntry>::findNode (this=0x200030, akey=...) at /usr/include/qt/QtCore/qmap.h:287
#1  0x00007ffff75124ea in QMap<KEntryKey, KEntry>::constFind (akey=..., this=0x5555562c7a40) at /usr/include/qt/QtCore/qmap.h:852
#2  KEntryMap::constFindEntry(QByteArray const&, QByteArray const&, QFlags<KEntryMap::SearchFlag>) const [clone .isra.0] (this=this@entry=0x5555562c7a40, 
    key=..., flags=..., flags@entry=..., group=...) at /usr/src/debug/kconfig-5.94.0/src/core/kconfigdata.cpp:60
#3  0x00007ffff74eac33 in KEntryMap::getEntry (group=..., expand=0x7fffffffca87, flags=..., defaultValue=..., key=..., this=0x5555562c7a40)
    at /usr/src/debug/kconfig-5.94.0/src/core/kconfigdata.cpp:217
#4  KConfigPrivate::lookupData (this=0x5555562c7a20, group=..., key=<optimized out>, flags=..., expand=0x7fffffffca87)
    at /usr/src/debug/kconfig-5.94.0/src/core/kconfig.cpp:1048
#5  0x00007ffff74f76a6 in KConfigGroup::readEntry (this=this@entry=0x55555607aa20, key=key@entry=0x7ffff0fb3f7b "View Style", aDefault=...)
    at /usr/src/debug/kconfig-5.94.0/src/core/kconfiggroup.cpp:674
#6  0x00007ffff74f78d2 in KConfigGroup::readEntry (this=this@entry=0x55555607aa20, key=key@entry=0x7ffff0fb3f7b "View Style", 
    aDefault=aDefault@entry=0x7ffff0fb3f70 "DetailTree") at /usr/src/debug/kconfig-5.94.0/src/core/kconfiggroup.cpp:659
#7  0x00007ffff0f4aa73 in KDirOperator::readConfig (this=0x5555568c04d0, configGroup=...) at /usr/src/debug/kio-5.94.0/src/filewidgets/kdiroperator.cpp:2436
#8  0x00007fffee0b8670 in KateFileBrowser::readSessionConfig (this=0x5555567efdb0, cg=...)
    at /usr/src/debug/kate-22.04.1/addons/filebrowser/katefilebrowser.cpp:160
#9  0x00007fffee0bc01c in KateFileBrowserPluginView::createFileBrowser (this=0x5555560768c0, visible=<optimized out>)
    at /usr/include/c++/12.1.0/bits/unique_ptr.h:191
#10 0x00007fffee0bcc15 in KateFileBrowserPluginView::createFileBrowser (visible=true, this=<optimized out>) at /usr/include/qt/QtCore/qlist.h:117
#11 KateFileBrowserPlugin::configPage (this=0x555555a359e0, number=<optimized out>, parent=0x555556359710)
    at /usr/src/debug/kate-22.04.1/addons/filebrowser/katefilebrowserplugin.cpp:56
#12 0x00005555555f212f in KateConfigDialog::addPluginPage (this=0x555556359710, plugin=0x555555a359e0)
    at /usr/src/debug/kate-22.04.1/kate/kateconfigdialog.cpp:306
#13 0x00005555555ad11a in KateConfigDialog::addPluginPages (this=0x555556359710) at /usr/src/debug/kate-22.04.1/kate/kateconfigdialog.cpp:286
#14 KateConfigDialog::KateConfigDialog (parent=<optimized out>, this=<optimized out>) at /usr/src/debug/kate-22.04.1/kate/kateconfigdialog.cpp:63
#15 KateMainWindow::showPluginConfigPage (this=<optimized out>, configpageinterface=<optimized out>, id=<optimized out>)
    at /usr/src/debug/kate-22.04.1/kate/katemainwindow.cpp:905
#16 0x00007ffff6272c78 in doActivate<false> (sender=0x555555e3df50, signal_index=4, argv=0x7fffffffd010) at kernel/qobject.cpp:3898
#17 0x00007ffff6ce4e07 in QAction::triggered (this=this@entry=0x555555e3df50, _t1=<optimized out>) at .moc/moc_qaction.cpp:376
#18 0x00007ffff6cea817 in QAction::activate (this=0x555555e3df50, event=<optimized out>) at kernel/qaction.cpp:1161
#19 0x00007ffff6265dd0 in QObject::event (this=0x555555e3df50, e=0x55555634bc50) at kernel/qobject.cpp:1314
#20 0x00007ffff6cf1a7c in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x555555e3df50, e=0x55555634bc50) at kernel/qapplication.cpp:3637
#21 0x00007ffff62424a8 in QCoreApplication::notifyInternal2 (receiver=0x555555e3df50, event=0x55555634bc50) at kernel/qcoreapplication.cpp:1064
#22 0x00007ffff6242fa3 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x5555556a2d40) at kernel/qcoreapplication.cpp:1821
#23 0x00007ffff6288e38 in postEventSourceDispatch (s=0x5555556c61e0) at kernel/qeventdispatcher_glib.cpp:277
#24 0x00007ffff4534163 in g_main_dispatch (context=0x5555556c7dd0) at ../glib/glib/gmain.c:3417
#25 g_main_context_dispatch (context=0x5555556c7dd0) at ../glib/glib/gmain.c:4135
#26 0x00007ffff458a9e9 in g_main_context_iterate.constprop.0 (context=context@entry=0x5555556c7dd0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4211
#27 0x00007ffff45316c5 in g_main_context_iteration (context=0x5555556c7dd0, may_block=1) at ../glib/glib/gmain.c:4276
#28 0x00007ffff628cc6c in QEventDispatcherGlib::processEvents (this=0x555555675a70, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#29 0x00007ffff623ac5c in QEventLoop::exec (this=0x7fffffffd480, flags=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#30 0x00007ffff6245759 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#31 0x00007ffff660ef82 in QGuiApplication::exec () at kernel/qguiapplication.cpp:1867
#32 0x00007ffff6cefe8a in QApplication::exec () at kernel/qapplication.cpp:2829
#33 0x00005555555927da in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kate-22.04.1/kate/main.cpp:714
Comment 1 Sam 2022-05-16 13:38:48 UTC
Right after taking the backtrace and starting kate again, it started working. Removed the kate config (as shown in the first msg) and restarted it and it's back. So far it seems to be a config issue.
Comment 2 Sam 2022-05-16 13:47:33 UTC
Sorry for the 3rd message, kate seems to suspend instead of dying when it crashes.
Comment 3 Waqar Ahmed 2022-05-17 07:29:32 UTC

*** This bug has been marked as a duplicate of bug 451615 ***