Bug 472569 - Kate crashes on opening file dialog (QFileDialog)
Summary: Kate crashes on opening file dialog (QFileDialog)
Status: RESOLVED UPSTREAM
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 23.04.2
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2023-07-24 09:06 UTC by Ilia Molchadsky
Modified: 2023-07-25 14:56 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ilia Molchadsky 2023-07-24 09:06:04 UTC
Application: kate (23.04.2)

Qt Version: 5.15.10
Frameworks Version: 5.108.0
Operating System: Linux 6.4.4-200.fc38.x86_64 x86_64
Windowing System: Wayland
Distribution: "Fedora release 38 (Thirty Eight)"
DrKonqi: 5.27.6 [KCrashBackend]

-- Information about the crash:
When I try to open or save file - open any file dialog - Kate crashes.
It happens every time.

The crash can be reproduced every time.

-- Backtrace:
Application: Kate (kate), signal: Aborted

[KCrash Handler]
#4  0x00007ffa5a8b0844 in __pthread_kill_implementation () from /lib64/libc.so.6
#5  0x00007ffa5a85fabe in raise () from /lib64/libc.so.6
#6  0x00007ffa5a84887f in abort () from /lib64/libc.so.6
#7  0x00007ffa5aaa4d19 in __gnu_cxx::__verbose_terminate_handler() [clone .cold] () from /lib64/libstdc++.so.6
#8  0x00007ffa5aab4f8c in __cxxabiv1::__terminate(void (*)()) () from /lib64/libstdc++.so.6
#9  0x00007ffa5aab4ff7 in std::terminate() () from /lib64/libstdc++.so.6
#10 0x00007ffa5aab5258 in __cxa_throw () from /lib64/libstdc++.so.6
#11 0x00007ffa5aeb09a0 in qBadAlloc() () from /lib64/libQt5Core.so.5
#12 0x00007ffa5aeb52b5 in QByteArray::reallocData(unsigned int, QFlags<QArrayData::AllocationOption>) [clone .cold] () from /lib64/libQt5Core.so.5
#13 0x00007ffa5b044aec in QSettingsPrivate::iniEscapedString(QString const&, QByteArray&, QTextCodec*) () from /lib64/libQt5Core.so.5
#14 0x00007ffa5b044f9b in QSettingsPrivate::iniEscapedStringList(QStringList const&, QByteArray&, QTextCodec*) () from /lib64/libQt5Core.so.5
#15 0x00007ffa5b04c490 in QConfFileSettingsPrivate::writeIniFile(QIODevice&, QMap<QSettingsKey, QVariant> const&) () from /lib64/libQt5Core.so.5
#16 0x00007ffa5b04d60f in QConfFileSettingsPrivate::syncConfFile(QConfFile*) () from /lib64/libQt5Core.so.5
#17 0x00007ffa5b04d812 in QConfFileSettingsPrivate::sync() () from /lib64/libQt5Core.so.5
#18 0x00007ffa5b04dd97 in QConfFileSettingsPrivate::QConfFileSettingsPrivate(QSettings::Format, QSettings::Scope, QString const&, QString const&) () from /lib64/libQt5Core.so.5
#19 0x00007ffa5b04e445 in QSettings::QSettings(QSettings::Scope, QString const&, QString const&, QObject*) () from /lib64/libQt5Core.so.5
#20 0x00007ffa5bfdfcdd in QFileDialogPrivate::restoreFromSettings() () from /lib64/libQt5Widgets.so.5
#21 0x00007ffa5bfe1d7b in QFileDialogPrivate::init(QFileDialogArgs const&) () from /lib64/libQt5Widgets.so.5
#22 0x00007ffa5bfe2cb1 in QFileDialog::QFileDialog(QFileDialogArgs const&) () from /lib64/libQt5Widgets.so.5
#23 0x00007ffa5bfe3179 in QFileDialog::getOpenFileUrls(QWidget*, QString const&, QUrl const&, QString const&, QString*, QFlags<QFileDialog::Option>, QStringList const&) () from /lib64/libQt5Widgets.so.5
#24 0x00007ffa5c70afd5 in KateViewManager::slotDocumentOpen() () from /lib64/libkateprivate.so.23.04.2
#25 0x00007ffa5b0e85e8 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#26 0x00007ffa5bda7d24 in QAction::triggered(bool) () from /lib64/libQt5Widgets.so.5
#27 0x00007ffa5bdaab7b in QAction::activate(QAction::ActionEvent) () from /lib64/libQt5Widgets.so.5
#28 0x00007ffa5bdab79d in QAction::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#29 0x00007ffa5bdaeb75 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#30 0x00007ffa5b0b4188 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#31 0x00007ffa5b59a55e in QShortcutMap::dispatchEvent(QKeyEvent*) () from /lib64/libQt5Gui.so.5
#32 0x00007ffa5b59abf3 in QShortcutMap::tryShortcut(QKeyEvent*) () from /lib64/libQt5Gui.so.5
#33 0x00007ffa5b54e272 in QWindowSystemInterface::handleShortcutEvent(QWindow*, unsigned long, int, QFlags<Qt::KeyboardModifier>, unsigned int, unsigned int, unsigned int, QString const&, bool, unsigned short) () from /lib64/libQt5Gui.so.5
#34 0x00007ffa5b568fd5 in QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) () from /lib64/libQt5Gui.so.5
#35 0x00007ffa5b54acfc in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Gui.so.5
#36 0x00007ffa55f4f9e4 in userEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5WaylandClient.so.5
#37 0x00007ffa5891348c in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#38 0x00007ffa58971648 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#39 0x00007ffa58910b13 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#40 0x00007ffa5b106729 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#41 0x00007ffa5b0b2b4b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#42 0x00007ffa5b0baddb in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#43 0x00005645457513e7 in main ()
[Inferior 1 (process 4794) detached]

Reported using DrKonqi
Comment 1 Ilia Molchadsky 2023-07-24 12:09:10 UTC
Any QT application crashes on opening file dialog.
When I try to open file dialog first time it opens after 10 seconds and I can choose file in it. When I press Cancel and trying to open it again application crashes.
Comment 2 Ilia Molchadsky 2023-07-25 14:50:57 UTC
Hello....
I have found the problem.
This is QtProject.conf file in ~/.config directory. It size was more than 1 Gigabyte. Something goes wrong in some Qt application and this file was corrupted.
QFileDialog class loads settings from this file and crashes with std::bad_malloc.