Bug 436894

Summary: gwenview crashed when double right rotating tmp images
Product: [Applications] gwenview Reporter: aronkvh
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: REPORTED ---    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: 21.04.0   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description aronkvh 2021-05-10 20:39:49 UTC
Application: gwenview (21.04.0)

Qt Version: 5.15.2
Frameworks Version: 5.81.0
Operating System: Linux 5.4.0-72-generic x86_64
Windowing System: X11
Drkonqi Version: 5.21.5
Distribution: KDE neon User Edition 5.21

-- Information about the crash:
- What I was doing when the application crashed:

I opened images from messenger (tmp) and tried rotating them 3x right, it crashed.
left rotation worked

The crash can be reproduced every time.

-- Backtrace:
Application: Gwenview (gwenview), signal: Segmentation fault

[New LWP 55854]
[New LWP 55855]
[New LWP 55856]
[New LWP 55862]
[New LWP 55863]
[New LWP 55864]
[New LWP 55865]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007fb6f7078aff in __GI___poll (fds=0x7ffe75368aa8, nfds=1, timeout=1000) at ../sysdeps/unix/sysv/linux/poll.c:29
[Current thread is 1 (Thread 0x7fb6f1102b40 (LWP 55852))]

Thread 8 (Thread 0x7fb6d77fe700 (LWP 55865)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b6ad278928) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55b6ad2788d8, cond=0x55b6ad278900) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55b6ad278900, mutex=0x55b6ad2788d8) at pthread_cond_wait.c:638
#3  0x00007fb6ddf14e6b in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007fb6ddf14a6b in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007fb6f5277609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fb6f7085293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7fb6dc9b7700 (LWP 55864)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b6ad278928) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55b6ad2788d8, cond=0x55b6ad278900) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55b6ad278900, mutex=0x55b6ad2788d8) at pthread_cond_wait.c:638
#3  0x00007fb6ddf14e6b in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007fb6ddf14a6b in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007fb6f5277609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fb6f7085293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7fb6dd1b8700 (LWP 55863)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b6ad278928) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55b6ad2788d8, cond=0x55b6ad278900) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55b6ad278900, mutex=0x55b6ad2788d8) at pthread_cond_wait.c:638
#3  0x00007fb6ddf14e6b in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007fb6ddf14a6b in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007fb6f5277609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fb6f7085293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7fb6dd9b9700 (LWP 55862)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b6ad278928) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55b6ad2788d8, cond=0x55b6ad278900) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55b6ad278900, mutex=0x55b6ad2788d8) at pthread_cond_wait.c:638
#3  0x00007fb6ddf14e6b in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007fb6ddf14a6b in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007fb6f5277609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fb6f7085293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fb6ed179700 (LWP 55856)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b6acb7f580) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55b6acb7f530, cond=0x55b6acb7f558) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55b6acb7f558, mutex=0x55b6acb7f530) at pthread_cond_wait.c:638
#3  0x00007fb6f7409d5b in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fb6f9293bf9 in ?? () from /lib/x86_64-linux-gnu/libgwenviewlib.so.5
#5  0x00007fb6f7403bec in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fb6f5277609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#7  0x00007fb6f7085293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fb6eee32700 (LWP 55855)):
#0  0x00007fb6f49b18ed in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fb6f49b3345 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fb6f49b482b in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fb6f49b529b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fb6f49b54a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fb6f7643ffb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fb6f75e81eb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fb6f7402a52 in QThread::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fb6f6e18f4b in ?? () from /lib/x86_64-linux-gnu/libQt5DBus.so.5
#9  0x00007fb6f7403bec in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007fb6f5277609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#11 0x00007fb6f7085293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fb6f0270700 (LWP 55854)):
#0  0x00007fb6f7078aff in __GI___poll (fds=0x7fb6f026f968, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fb6f4942c1a in ?? () from /lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fb6f494490a in xcb_wait_for_event () from /lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fb6f079cd58 in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007fb6f7403bec in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fb6f5277609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fb6f7085293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fb6f1102b40 (LWP 55852)):
[KCrash Handler]
#4  __memmove_sse2_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:262
#5  0x00007fb6f7c52bc7 in QImage::copy(QRect const&) const () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#6  0x00007fb6f92782c9 in Gwenview::ImageScaler::scaleRect(QRect const&) () from /lib/x86_64-linux-gnu/libgwenviewlib.so.5
#7  0x00007fb6f9278547 in Gwenview::ImageScaler::doScale() () from /lib/x86_64-linux-gnu/libgwenviewlib.so.5
#8  0x00007fb6f924ef2a in Gwenview::RasterImageView::updateBuffer(QRegion const&) () from /lib/x86_64-linux-gnu/libgwenviewlib.so.5
#9  0x00007fb6f9250d76 in Gwenview::RasterImageView::resizeEvent(QGraphicsSceneResizeEvent*) () from /lib/x86_64-linux-gnu/libgwenviewlib.so.5
#10 0x00007fb6f8666b18 in QGraphicsWidget::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#11 0x00007fb6f82f9dc3 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x00007fb6f8302bb8 in QApplication::notify(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007fb6f75e96da in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007fb6f8665dfb in QGraphicsWidget::setGeometry(QRectF const&) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007fb6f9248519 in Gwenview::DocumentView::resizeEvent(QGraphicsSceneResizeEvent*) () from /lib/x86_64-linux-gnu/libgwenviewlib.so.5
#16 0x00007fb6f8666b18 in QGraphicsWidget::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007fb6f82f9dc3 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007fb6f8302bb8 in QApplication::notify(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007fb6f75e96da in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007fb6f8665dfb in QGraphicsWidget::setGeometry(QRectF const&) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007fb6f9247e2d in Gwenview::DocumentView::setGeometry(QRectF const&) () from /lib/x86_64-linux-gnu/libgwenviewlib.so.5
#22 0x00007fb6f9245b55 in Gwenview::DocumentView::moveTo(QRect const&) () from /lib/x86_64-linux-gnu/libgwenviewlib.so.5
#23 0x00007fb6f92595f5 in Gwenview::DocumentViewContainer::updateLayout() () from /lib/x86_64-linux-gnu/libgwenviewlib.so.5
#24 0x00007fb6f925969c in Gwenview::DocumentViewContainer::resizeEvent(QResizeEvent*) () from /lib/x86_64-linux-gnu/libgwenviewlib.so.5
#25 0x00007fb6f833d28f in QWidget::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#26 0x00007fb6f83ecf82 in QFrame::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#27 0x00007fb6f865faa1 in QGraphicsView::viewportEvent(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#28 0x00007fb6f75e9443 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#29 0x00007fb6f82f9db2 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#30 0x00007fb6f8302bb8 in QApplication::notify(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#31 0x00007fb6f75e96da in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#32 0x00007fb6f8333ca0 in QWidgetPrivate::setGeometry_sys(int, int, int, int, bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#33 0x00007fb6f8334af0 in QWidget::setGeometry(QRect const&) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#34 0x00007fb6f83ee3d7 in QAbstractScrollAreaPrivate::layoutChildren_helper(bool*, bool*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#35 0x00007fb6f83ee89f in QAbstractScrollAreaPrivate::layoutChildren() () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#36 0x00007fb6f83f0190 in QAbstractScrollArea::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#37 0x00007fb6f82f9dc3 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#38 0x00007fb6f8302bb8 in QApplication::notify(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#39 0x00007fb6f75e96da in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#40 0x00007fb6f8333ca0 in QWidgetPrivate::setGeometry_sys(int, int, int, int, bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#41 0x00007fb6f8334af0 in QWidget::setGeometry(QRect const&) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#42 0x00007fb6f831e8e5 in QWidgetItem::setGeometry(QRect const&) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#43 0x00007fb6f831462b in QBoxLayout::setGeometry(QRect const&) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#44 0x00007fb6f831ab98 in QLayoutPrivate::doResize() () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#45 0x00007fb6f831bc3c in QLayout::activate() () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#46 0x00007fb6f82f9da7 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#47 0x00007fb6f8302bb8 in QApplication::notify(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#48 0x00007fb6f75e96da in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#49 0x00007fb6f8333ca0 in QWidgetPrivate::setGeometry_sys(int, int, int, int, bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#50 0x00007fb6f8334af0 in QWidget::setGeometry(QRect const&) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#51 0x00007fb6f84af2e1 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#52 0x00007fb6f84b1693 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#53 0x00007fb6f833d28f in QWidget::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#54 0x00007fb6f83ecf82 in QFrame::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#55 0x00007fb6f82f9dc3 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#56 0x00007fb6f8302bb8 in QApplication::notify(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#57 0x00007fb6f75e96da in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#58 0x00007fb6f8333ca0 in QWidgetPrivate::setGeometry_sys(int, int, int, int, bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#59 0x00007fb6f8334af0 in QWidget::setGeometry(QRect const&) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#60 0x00007fb6f831e8e5 in QWidgetItem::setGeometry(QRect const&) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#61 0x00007fb6f831462b in QBoxLayout::setGeometry(QRect const&) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#62 0x00007fb6f831ab98 in QLayoutPrivate::doResize() () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#63 0x00007fb6f82f9da7 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#64 0x00007fb6f8302bb8 in QApplication::notify(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#65 0x00007fb6f75e96da in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#66 0x00007fb6f8333ca0 in QWidgetPrivate::setGeometry_sys(int, int, int, int, bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#67 0x00007fb6f8334af0 in QWidget::setGeometry(QRect const&) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#68 0x00007fb6f831ab98 in QLayoutPrivate::doResize() () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#69 0x00007fb6f831bc3c in QLayout::activate() () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#70 0x00007fb6f82f9da7 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#71 0x00007fb6f8302bb8 in QApplication::notify(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#72 0x00007fb6f75e96da in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#73 0x00007fb6f8333ca0 in QWidgetPrivate::setGeometry_sys(int, int, int, int, bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#74 0x00007fb6f8334af0 in QWidget::setGeometry(QRect const&) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#75 0x00007fb6f831e8e5 in QWidgetItem::setGeometry(QRect const&) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#76 0x00007fb6f831462b in QBoxLayout::setGeometry(QRect const&) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#77 0x00007fb6f831ab98 in QLayoutPrivate::doResize() () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#78 0x00007fb6f831bc3c in QLayout::activate() () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#79 0x00007fb6f82f9da7 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#80 0x00007fb6f8302bb8 in QApplication::notify(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#81 0x00007fb6f75e96da in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#82 0x00007fb6f75ebfe1 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#83 0x00007fb6f7644987 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#84 0x00007fb6f49b517d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#85 0x00007fb6f49b5400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#86 0x00007fb6f49b54a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#87 0x00007fb6f7643fe2 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#88 0x00007fb6f75e81eb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#89 0x00007fb6f75f0394 in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#90 0x000055b6ab966c2a in ?? ()
#91 0x00007fb6f6f8a0b3 in __libc_start_main (main=0x55b6ab966740, argc=2, argv=0x7ffe7536c688, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffe7536c678) at ../csu/libc-start.c:308
#92 0x000055b6ab9672ae in _start ()
[Inferior 1 (process 55852) detached]

Reported using DrKonqi