Bug 438678

Summary: Gwenview crashes in Gwenview::RasterImageItem::paint() when trying to rotate a jpg file quickly multiple times
Product: [Applications] gwenview Reporter: Daniel Ziltener <zilti>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: nate
Priority: NOR    
Version: 21.04.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Crash log

Description Daniel Ziltener 2021-06-15 13:28:14 UTC
Created attachment 139339 [details]
Crash log

Rotating an image in Gwenview crashes it reliably.
Comment 1 Nate Graham 2022-10-21 19:46:39 UTC
Application: Gwenview (gwenview), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = 0x0}
[KCrash Handler]
#5  0x00007fefaad582e4 in __memmove_avx_unaligned_erms () from /lib64/libc.so.6
#6  0x00007fefabdb1ce2 in QImage::copy(QRect const&) const () from /lib64/libQt5Gui.so.5
#7  0x00007fefae49132a in Gwenview::RasterImageItem::paint (this=0x263f570, painter=0x7fffb0f8f580) at /home/nate/kde/src/gwenview/lib/documentview/rasterimageitem.cpp:105
#8  0x00007fefac8fa6a1 in QGraphicsScenePrivate::draw(QGraphicsItem*, QPainter*, QTransform const*, QTransform const*, QRegion*, QWidget*, double, QTransform const*, bool, bool) () from /lib64/libQt5Widgets.so.5
#9  0x00007fefac8faefa in QGraphicsScenePrivate::drawSubtreeRecursive(QGraphicsItem*, QPainter*, QTransform const*, QRegion*, QWidget*, double, QTransform const*) () from /lib64/libQt5Widgets.so.5
#10 0x00007fefac8fa3f3 in QGraphicsScenePrivate::draw(QGraphicsItem*, QPainter*, QTransform const*, QTransform const*, QRegion*, QWidget*, double, QTransform const*, bool, bool) () from /lib64/libQt5Widgets.so.5
#11 0x00007fefac8faefa in QGraphicsScenePrivate::drawSubtreeRecursive(QGraphicsItem*, QPainter*, QTransform const*, QRegion*, QWidget*, double, QTransform const*) () from /lib64/libQt5Widgets.so.5
#12 0x00007fefac8fa3f3 in QGraphicsScenePrivate::draw(QGraphicsItem*, QPainter*, QTransform const*, QTransform const*, QRegion*, QWidget*, double, QTransform const*, bool, bool) () from /lib64/libQt5Widgets.so.5
#13 0x00007fefac8be464 in QGraphicsItemEffectSourcePrivate::draw(QPainter*) () from /lib64/libQt5Widgets.so.5
#14 0x00007fefac9662f8 in QGraphicsEffectSource::draw(QPainter*) () from /lib64/libQt5Widgets.so.5
#15 0x00007fefac8fb2f3 in QGraphicsScenePrivate::drawSubtreeRecursive(QGraphicsItem*, QPainter*, QTransform const*, QRegion*, QWidget*, double, QTransform const*) () from /lib64/libQt5Widgets.so.5
#16 0x00007fefac8fb922 in QGraphicsScenePrivate::drawItems(QPainter*, QTransform const*, QRegion*, QWidget*) () from /lib64/libQt5Widgets.so.5
#17 0x00007fefac9200e7 in QGraphicsView::paintEvent(QPaintEvent*) () from /lib64/libQt5Widgets.so.5
#18 0x00007fefac5f1808 in QWidget::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#19 0x00007fefac69e512 in QFrame::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#20 0x00007fefab6a7f91 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#21 0x00007fefac5aecf2 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#22 0x00007fefab6a81c8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#23 0x00007fefac5e9aa9 in QWidgetPrivate::sendPaintEvent(QRegion const&) () from /lib64/libQt5Widgets.so.5
#24 0x00007fefac5ea7f1 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () from /lib64/libQt5Widgets.so.5
#25 0x00007fefac5bff09 in QWidgetRepaintManager::paintAndFlush() () from /lib64/libQt5Widgets.so.5
#26 0x00007fefac5f1ac8 in QWidget::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#27 0x00007fefadbd9777 in KXmlGuiWindow::event (this=0x1f0a1a0, ev=0x28408c0) at /home/nate/kde/src/kxmlgui/src/kxmlguiwindow.cpp:220
#28 0x00007fefac5aed02 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#29 0x00007fefab6a81c8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#30 0x00007fefab6ab534 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt5Core.so.5
#31 0x00007fefac8ecf43 in QGraphicsScenePrivate::_q_processDirtyItems() () from /lib64/libQt5Widgets.so.5
#32 0x00007fefab6d2c44 in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
#33 0x00007fefac5aed02 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#34 0x00007fefab6a81c8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#35 0x00007fefab6ab534 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt5Core.so.5
#36 0x00007fefab6f9537 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5Core.so.5
#37 0x00007fefa968afaf in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#38 0x00007fefa96e02c8 in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
#39 0x00007fefa9688940 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#40 0x00007fefab6f902a in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#41 0x00007fefab6a6c1a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#42 0x00007fefab6aece2 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#43 0x000000000043753b in main (argc=<optimized out>, argv=<optimized out>) at /home/nate/kde/src/gwenview/app/main.cpp:213
[Inferior 1 (process 31728) detached]
Comment 2 Nate Graham 2022-10-21 19:47:21 UTC

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