https://bugs.kde.org/show_bug.cgi?id=438095
Bug ID: 438095
Summary: Kate crashes trying to save text file
Product: kate
Version: 21.04.1
Platform: Fedora RPMs
OS: Linux
Status: REPORTED
Keywords: drkonqi
Severity: crash
Priority: NOR
Component: general
Assignee: kwrite-bugs-n...@kde.org
Reporter: bla...@gmail.com
Target Milestone: ---
Application: kate (21.04.1)
Qt Version: 5.15.2
Frameworks Version: 5.82.0
Operating System: Linux 5.12.8-300.fc34.x86_64 x86_64
Windowing System: Wayland
Drkonqi Version: 5.21.5
Distribution: Fedora 34 (Workstation Edition)
-- Information about the crash:
- What I was doing when the application crashed:
Tried to save a new text file in a directory. A lag of a couple of seconds and
then the crash.
This was reproducable, but only for that specific directory, which has about 20
PDF files in.
Seems related to the thumbnails somehow. When I moved the PDFs into a subdir
and out again,
forcing the thumbnails to be regenerated, the crash went away.
Suggests that it is perhaps related to loading thumbnails in some older
thumbnail format?
- Custom settings of the application:
Generates thumbnails for PDFs and Office files
The crash can be reproduced every time.
-- Backtrace:
Application: Kate (kate), signal: Segmentation fault
[KCrash Handler]
#4 0x7fac875bd766 in __memmove_avx_unaligned_erms () from /lib64/libc.so.6
#5 0x7fac87f4625f in QImage::copy(QRect const&) const () from
/lib64/libQt5Gui.so.5
#6 0x7fac8950e60d in KIO::PreviewJobPrivate::slotThumbData(KIO::Job*,
QByteArray const&) () from /lib64/libKF5KIOWidgets.so.5
#7 0x7fac87af74b0 in void doActivate(QObject*, int, void**) () from
/lib64/libQt5Core.so.5
#8 0x7fac8935ac38 in KIO::TransferJob::data(KIO::Job*, QByteArray const&)
() from /lib64/libKF5KIOCore.so.5
#9 0x7fac87af74b0 in void doActivate(QObject*, int, void**) () from
/lib64/libQt5Core.so.5
#10 0x7fac8933c926 in KIO::SlaveInterface::data(QByteArray const&) () from
/lib64/libKF5KIOCore.so.5
#11 0x7fac8933c33a in KIO::SlaveInterface::dispatch(int, QByteArray const&)
() from /lib64/libKF5KIOCore.so.5
#12 0x7fac8933460d in KIO::SlaveInterface::dispatch() () from
/lib64/libKF5KIOCore.so.5
#13 0x7fac8933dc62 in KIO::Slave::gotInput() () from
/lib64/libKF5KIOCore.so.5
#14 0x7fac87af74b0 in void doActivate(QObject*, int, void**) () from
/lib64/libQt5Core.so.5
#15 0x7fac87aee257 in QObject::event(QEvent*) () from
/lib64/libQt5Core.so.5
#16 0x7fac8858fe73 in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() from /lib64/libQt5Widgets.so.5
#17 0x7fac87ac6f48 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() from /lib64/libQt5Core.so.5
#18 0x7fac87ac9c76 in QCoreApplicationPrivate::sendPostedEvents(QObject*,
int, QThreadData*) () from /lib64/libQt5Core.so.5
#19 0x7fac87b13c57 in postEventSourceDispatch(_GSource*, int (*)(void*),
void*) () from /lib64/libQt5Core.so.5
#20 0x7fac85def4cf in g_main_context_dispatch () from
/lib64/libglib-2.0.so.0
#21 0x7fac85e434e8 in g_main_context_iterate.constprop () from
/lib64/libglib-2.0.so.0
#22 0x7fac85decc03 in g_main_context_iteration () from
/lib64/libglib-2.0.so.0
#23 0x7fac87b136f8 in
QEventDispatcherGlib::processEvents(QFlags) ()
from /lib64/libQt5Core.so.5
#24 0x7fac87ac59b2 in
QEventLoop::exec(QFlags) () from
/lib64/libQt5Core.so.5
#25 0x7fac8878ec87 in QDialog::exec() () from /lib64/libQt5Widgets.so.5
#26 0x7fac8878ebc7 in QDialog::exec() () from /lib64/libQt5Widgets.so.5
#27 0x7fac887a1b2d in QFileDialog::getSaveFileUrl(QWidget*, QString const&,
QUrl const&, QString const&, QString*, QFlags, QStringList
const&) () from /lib64/libQt5Widgets.so.5
#28 0x7fac89723a4d in KTextEditor::DocumentPrivate::documentSaveAs() ()
from /lib64/libKF5TextEditor.so.5
#29 0x7fac896aabb5 in
KTextEditor::DocumentPrivate::qt_static_metacall(QObject*, QMetaObject::Call,
int, void**) () from /lib64/libKF5TextEditor.so.5
#30 0x7fac87af74fd in void doActivate(QObject*, int, void**) () from
/lib64/libQt5Core.so.5
#31 0x7fac88589686 in QAction::triggered(bool) () from
/lib64/libQt5Widgets.so.5
#32 0x7fac8858bf70 in QAction::activate(QAction::ActionEvent) () from
/lib64/libQt5Widgets.so.5
#33 0x7fac8858cb4f in QAction::event(QEvent*) () from
/lib64/libQt5Widgets.so.5
#34 0x7fac8858fe73 in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() from /lib64/libQt5Widgets.so.5
#35 0x7fac87ac6f48 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() from /lib64/libQt5Core.so.5
#36 0x7fac87f2c102 in QShortcutMap::dispatchEvent(QKeyEvent*) () from
/lib64/libQt5Gui.so.5
#37 0x7fac87f2c613 in QShortcutMap::tryShortcut(QKeyEvent*) () from
/lib64/libQt5Gui.so.5
#38 0x7fac87ee87e7 in QWindowSystemInterface::handleShortcutEvent(QWindow*,
unsigned long, int,