Bug 469140 - Crash in resource thumbnail cache
Summary: Crash in resource thumbnail cache
Status: RESOLVED WORKSFORME
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: sh_zam
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2023-04-29 14:14 UTC by wolthera
Modified: 2023-07-06 03:45 UTC (History)
2 users (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 wolthera 2023-04-29 14:14:03 UTC
Application: krita (5.2.0-prealpha (git 227ee15))

Qt Version: 5.15.8
Frameworks Version: 5.102.0
Operating System: Linux 5.15.0-58-generic x86_64
Windowing System: X11
Distribution: KDE neon 5.26
DrKonqi: 5.26.5 [KCrashBackend]

-- Information about the crash:
I was resizing the window (while testing something in the text-branch) and suddenly this crash appeared. It seems to be in the thumbnail cache...

The crash can be reproduced sometimes.

-- Backtrace:
Application: Krita (krita), signal: Aborted

[KCrash Handler]
#4  __pthread_kill_implementation (no_tid=0, signo=6, threadid=139818780805184) at ./nptl/pthread_kill.c:44
#5  __pthread_kill_internal (signo=6, threadid=139818780805184) at ./nptl/pthread_kill.c:78
#6  __GI___pthread_kill (threadid=139818780805184, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#7  0x00007f2a1dc5e476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#8  0x00007f2a1dc447f3 in __GI_abort () at ./stdlib/abort.c:79
#9  0x00007f2a1e121ba3 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007f2a1f40a4a9 in kis_assert_common(char const*, char const*, int, bool, bool) (assertion=<optimized out>, file=<optimized out>, line=<optimized out>, abort=<optimized out>, isIgnorable=<optimized out>) at /home/wolthera/krita/src/libs/global/kis_assert.cpp:90
#11 0x00007f2a1f58fbe8 in KisResourceThumbnailCache::getImage(QModelIndex const&, QSize, Qt::AspectRatioMode, Qt::TransformationMode) (this=0x7f2a1f5d2d18 <(anonymous namespace)::Q_QGS_s_instance::innerFunction()::holder>, index=..., size=..., size@entry=..., aspectMode=aspectMode@entry=Qt::IgnoreAspectRatio, transformMode=transformMode@entry=Qt::FastTransformation) at /home/wolthera/krita/src/libs/resources/KisResourceThumbnailCache.cpp:193
#12 0x00007f2a20590aef in KisPresetDelegate::paint(QPainter*, QStyleOptionViewItem const&, QModelIndex const&) const (this=0x561f198a08e0, painter=0x7ffde5c3dbe0, option=..., index=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qsize.h:125
#13 0x00007f2a1f151409 in QListView::paintEvent(QPaintEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#14 0x00007f2a1eed597e in QWidget::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007f2a1ef83cf2 in QFrame::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007f2a1e34bdda in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007f2a1ee92782 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007f2a20735b05 in KisApplication::notify(QObject*, QEvent*) (this=0x7ffde5c3eb50, receiver=0x561f17f3b7c0, event=0x7ffde5c3e010) at /home/wolthera/krita/src/libs/ui/KisApplication.cpp:768
#19 0x00007f2a1e34c07a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007f2a1eecd81a in QWidgetPrivate::sendPaintEvent(QRegion const&) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007f2a1eece0b2 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007f2a1eea39da in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00007f2a1eed60cd in QWidget::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#24 0x00007f2a1ef83cf2 in QFrame::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#25 0x00007f2a1ee92793 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#26 0x00007f2a20735b05 in KisApplication::notify(QObject*, QEvent*) (this=0x7ffde5c3eb50, receiver=0x561f19bc1aa0, event=0x561f17867700) at /home/wolthera/krita/src/libs/ui/KisApplication.cpp:768
#27 0x00007f2a1e34c07a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#28 0x00007f2a1e34f167 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#29 0x00007f2a1e3a6487 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#30 0x00007f2a1b643d3b in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007f2a1b6986c8 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007f2a1b6413e3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007f2a1e3a5ad8 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#34 0x00007f2a1e34a99b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#35 0x00007f2a1e352f34 in QCoreApplication::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#36 0x0000561f10bab73e in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /home/wolthera/krita/src/krita/main.cc:717
[Inferior 1 (process 3533296) detached]

Reported using DrKonqi
Comment 1 amyspark 2023-04-29 23:17:25 UTC
This looks like a side effect of the centralized scaled thumbnail cache. Sharaf, can you take a look?
Comment 2 Dmitry Kazakov 2023-06-06 09:52:27 UTC
Hi, Wolthera!

Could you please check if this bug is still valid after my commit 95ad8ccdced81e9dc96de2e9659c9a66dd5ad9b9 ?
Comment 3 Bug Janitor Service 2023-06-21 03:45:10 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2023-07-06 03:45:22 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!