Summary: | Kate crashed when opening settings | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | luizmiguellorentz2 |
Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | christoph, cristiano.kieling, ismailsahillioglu, techokami, waqar.17a |
Priority: | NOR | Keywords: | drkonqi |
Version: | 22.04.1 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/utilities/kate/commit/36ede44fc7bef479e94f76121309a900bee2b29f | Version Fixed In: | 22.04.2 |
Sentry Crash Report: | |||
Attachments: |
New crash information added by DrKonqi
New crash information added by DrKonqi New crash information added by DrKonqi |
Description
luizmiguellorentz2
2022-05-14 17:57:15 UTC
*** This bug has been marked as a duplicate of bug 453234 *** Created attachment 148886 [details]
New crash information added by DrKonqi
kate (22.04.1) using Qt 5.15.3
- What I was doing when the application crashed:
Just opened Settings after fresh install of KDE Neon. Before instaling Kate, i just updated everything with pkcon refresh and update e instaled kate with pkcon install kate. After opening the program, first thing i clicked was settings (configure kate) and everytime de program closes.
-- Backtrace (Reduced):
#4 0x00007fb402208c98 in QFlags<KEntryMap::SearchFlag>::operator|= (other=<optimized out>, this=<optimized out>) at ./src/core/kconfig.cpp:1045
#5 KConfigPrivate::lookupData (this=this@entry=0x200030002, group=..., key=key@entry=0x7fb3fb36ab26 "View Style", flags=flags@entry=..., expand=expand@entry=0x7ffeee87abd7) at ./src/core/kconfig.cpp:1046
#6 0x00007fb40221ba04 in KConfigGroup::readEntry (this=this@entry=0x557fbf15b9b0, key=key@entry=0x7fb3fb36ab26 "View Style", aDefault=...) at /usr/include/c++/9/bits/atomic_base.h:326
#7 0x00007fb40221bc40 in KConfigGroup::readEntry (this=0x557fbf15b9b0, key=0x7fb3fb36ab26 "View Style", aDefault=0x7fb3fb36ab1b "DetailTree") at /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:706
#8 0x00007fb3fb2f4021 in KDirOperator::readConfig(KConfigGroup const&) () from /lib/x86_64-linux-gnu/libKF5KIOFileWidgets.so.5
Hmm, that is strange, my commit should be in 22.04.1 :( Perhaps that was still not good enough and the KConfigGroup is just not valid there. I will remove the whole delaying, if one has the file browser active, one better pays for the loading of the config instead of having some crash. Git commit e002696b0673dff7ec9584e00b1546d2f850121c by Christoph Cullmann. Committed on 16/05/2022 at 17:47. Pushed by cullmann into branch 'release/22.04'. Revert "fix crash on file browser activation" This reverts commit a28624c877cfe6db6ae6ab257f95af36213b25e0. => this fix is not enough, the KConfigGroup is just not valid anymore here in some cases M +3 -6 addons/filebrowser/katefilebrowserplugin.cpp https://invent.kde.org/utilities/kate/commit/e002696b0673dff7ec9584e00b1546d2f850121c Git commit 36ede44fc7bef479e94f76121309a900bee2b29f by Christoph Cullmann. Committed on 16/05/2022 at 17:49. Pushed by cullmann into branch 'release/22.04'. Revert "Create filebrowser on demand" This reverts commit 7caed2681d18d9ea08c35f160e88fb44a2e52769. revert full lazy loading, doesn't work this way M +0 -2 addons/filebrowser/katefilebrowser.cpp M +11 -30 addons/filebrowser/katefilebrowserplugin.cpp M +7 -7 addons/filebrowser/katefilebrowserplugin.h https://invent.kde.org/utilities/kate/commit/36ede44fc7bef479e94f76121309a900bee2b29f Reverted in 22.04 and master. Better pay price on startup then having random crashes. I am not able to reproduce the crash after my previous fix, but I guess the point is just that we can't ensure the KConfigGroup is still usable given we have no idea if the base KConfig object it relies on is still around and kicking. Created attachment 149281 [details]
New crash information added by DrKonqi
kate (22.04.1) using Qt 5.15.2
- What I was doing when the application crashed:
I clicked "Configure Kate Application" from the "Settings" menu.
But here is an important detail. This crash happens only when I create
new user and try to open configuraton of Kate while in the newly created
user's session. Interestingly this is not happening in the session of the user
which is created in system installation. Hope this detail help you to catch
the bug.
-- Backtrace (Reduced):
#4 QFlags<KEntryMap::SearchFlag>::operator|= (other=<optimized out>, this=<optimized out>) at /usr/src/debug/kconfig-5.94.0-1.1.x86_64/src/core/kconfig.cpp:1058
#5 KConfigPrivate::lookupData (this=0x30008000b, group=..., key=0x7ff8df855f7b "View Style", flags=..., expand=0x7fffd7aeed67) at /usr/src/debug/kconfig-5.94.0-1.1.x86_64/src/core/kconfig.cpp:1059
#6 0x00007ff8e641a7a1 in KConfigGroup::readEntry (this=this@entry=0x560980715240, key=key@entry=0x7ff8df855f7b "View Style", aDefault=...) at /usr/src/debug/kconfig-5.94.0-1.1.x86_64/src/core/kconfiggroup.cpp:674
#7 0x00007ff8e641a9bb in KConfigGroup::readEntry (this=this@entry=0x560980715240, key=key@entry=0x7ff8df855f7b "View Style", aDefault=aDefault@entry=0x7ff8df855f70 "DetailTree") at /usr/src/debug/kconfig-5.94.0-1.1.x86_64/src/core/kconfiggroup.cpp:659
#8 0x00007ff8df7efd5e in KDirOperator::readConfig (this=0x56098321d3a0, configGroup=...) at /usr/src/debug/kio-5.94.0-1.1.x86_64/src/filewidgets/kdiroperator.cpp:2436
Created attachment 150400 [details]
New crash information added by DrKonqi
kate (22.04.1) using Qt 5.15.3
- What I was doing when the application crashed:
I was simply going to the Settings menu, and the application completely crashed and took my work with it.
-- Backtrace (Reduced):
#4 0x00007ff57da5fdae in QMapData<KEntryKey, KEntry>::findNode(KEntryKey const&) const () from /lib64/libKF5ConfigCore.so.5
#6 0x00007ff57da5f7e2 in KConfigPrivate::lookupData(QByteArray const&, char const*, QFlags<KEntryMap::SearchFlag>, bool*) const () from /lib64/libKF5ConfigCore.so.5
#7 0x00007ff57da6bf95 in KConfigGroup::readEntry(char const*, QString const&) const () from /lib64/libKF5ConfigCore.so.5
#8 0x00007ff57da6c1af in KConfigGroup::readEntry(char const*, char const*) const () from /lib64/libKF5ConfigCore.so.5
#9 0x00007ff569abd212 in KDirOperator::readConfig(KConfigGroup const&) () from /lib64/libKF5KIOFileWidgets.so.5
|