Bug 333834 - Crash while rotating image
Summary: Crash while rotating image
Status: RESOLVED DUPLICATE of bug 350632
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 4.13.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords: drkonqi
: 346263 353706 357353 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-04-24 18:23 UTC by ztowfic
Modified: 2017-07-30 10:17 UTC (History)
6 users (show)

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


Attachments
New crash information added by DrKonqi (9.26 KB, text/plain)
2015-05-09 10:33 UTC, Andrey Rakhmatullin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ztowfic 2014-04-24 18:23:02 UTC
Application: gwenview (4.13.0)
KDE Platform Version: 4.13.0
Qt Version: 4.8.6
Operating System: Linux 3.13.0-24-generic x86_64
Distribution: Ubuntu 14.04 LTS

-- Information about the crash:
- What I was doing when the application crashed:
I quickly pressed rotate right twice. This caused the application to crash.

-- Backtrace:
Application: Gwenview (gwenview), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fc85adb2840 (LWP 9618))]

Thread 2 (Thread 0x7fc84247a700 (LWP 9619)):
#0  0x00007fc853b1f569 in __GI___pthread_mutex_lock (mutex=0x7fc83c000a60) at ../nptl/pthread_mutex_lock.c:125
#1  0x00007fc853693991 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fc853651699 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fc853651f03 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fc8536520ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fc859c0e7be in QEventDispatcherGlib::processEvents (this=0x7fc83c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#6  0x00007fc859be00af in QEventLoop::processEvents (this=this@entry=0x7fc842479d60, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007fc859be03a5 in QEventLoop::exec (this=this@entry=0x7fc842479d60, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007fc859adcc5f in QThread::exec (this=this@entry=0x1376790) at thread/qthread.cpp:537
#9  0x00007fc859bc1823 in QInotifyFileSystemWatcherEngine::run (this=0x1376790) at io/qfilesystemwatcher_inotify.cpp:265
#10 0x00007fc859adf32f in QThreadPrivate::start (arg=0x1376790) at thread/qthread_unix.cpp:349
#11 0x00007fc853b1d182 in start_thread (arg=0x7fc84247a700) at pthread_create.c:312
#12 0x00007fc85789530d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7fc85adb2840 (LWP 9618)):
[KCrash Handler]
#6  QMetaObject::cast (this=this@entry=0x7fc85a947220 <Gwenview::DownSamplingJob::staticMetaObject>, obj=0x71) at kernel/qmetaobject.cpp:274
#7  0x00007fc85a6a47ff in qobject_cast<Gwenview::DownSamplingJob*> (object=<optimized out>) at /usr/include/qt4/QtCore/qobject.h:380
#8  Gwenview::DocumentPrivate::scheduleImageDownSampling (this=0x20f2d20, invertedZoom=1) at ../../lib/document/document.cpp:110
#9  0x00007fc85a6a5e9d in Gwenview::Document::prepareDownSampledImageForZoom (this=0x18f03c0, zoom=0.38632478632478634) at ../../lib/document/document.cpp:458
#10 0x00007fc85a6dec1a in Gwenview::ImageScaler::doScale (this=0x1f308e0) at ../../lib/imagescaler.cpp:109
#11 0x00007fc85a6dee55 in Gwenview::ImageScaler::setDestinationRegion (this=<optimized out>, region=...) at ../../lib/imagescaler.cpp:102
#12 0x00007fc85a6be684 in setScalerRegionToVisibleRect (this=0x1f30830) at ../../lib/documentview/rasterimageview.cpp:145
#13 Gwenview::RasterImageView::updateBuffer (this=<optimized out>, region=...) at ../../lib/documentview/rasterimageview.cpp:438
#14 0x00007fc85a6be7c1 in Gwenview::RasterImageView::onZoomChanged (this=0x1d01da0) at ../../lib/documentview/rasterimageview.cpp:355
#15 0x00007fc85a6b0800 in Gwenview::AbstractImageView::setZoom (this=this@entry=0x1d01da0, zoom=<optimized out>, _center=..., updateType=updateType@entry=Gwenview::AbstractImageView::UpdateIfNecessary) at ../../lib/documentview/abstractimageview.cpp:221
#16 0x00007fc85a6be3b1 in Gwenview::RasterImageView::updateImageRect (this=0x1d01da0, imageRect=...) at ../../lib/documentview/rasterimageview.cpp:298
#17 0x00007fc85a6c0049 in Gwenview::RasterImageView::qt_static_metacall (_o=0x1d01da0, _id=113, _a=0x2eb50f0, _c=<optimized out>) at ./rasterimageview.moc:70
#18 0x00007fc859bf587a in QMetaObject::activate (sender=0x18f03c0, m=m@entry=0x7fc85a947260 <Gwenview::Document::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7fffa273efc0) at kernel/qobject.cpp:3539
#19 0x00007fc85a6a3155 in Gwenview::Document::imageRectUpdated (this=<optimized out>, _t1=...) at ./document.moc:150
#20 0x00007fc859bf9c1e in QObject::event (this=0x18f03c0, e=<optimized out>) at kernel/qobject.cpp:1194
#21 0x00007fc8584eee2c in QApplicationPrivate::notify_helper (this=this@entry=0x10fb470, receiver=receiver@entry=0x18f03c0, e=e@entry=0x7fc834025170) at kernel/qapplication.cpp:4567
#22 0x00007fc8584f54a0 in QApplication::notify (this=this@entry=0x7fffa273f640, receiver=receiver@entry=0x18f03c0, e=e@entry=0x7fc834025170) at kernel/qapplication.cpp:4353
#23 0x00007fc8591f9baa in KApplication::notify (this=0x7fffa273f640, receiver=0x18f03c0, event=0x7fc834025170) at ../../kdeui/kernel/kapplication.cpp:311
#24 0x00007fc859be14dd in QCoreApplication::notifyInternal (this=0x7fffa273f640, receiver=receiver@entry=0x18f03c0, event=event@entry=0x7fc834025170) at kernel/qcoreapplication.cpp:953
#25 0x00007fc859be4b3d in sendEvent (event=0x7fc834025170, receiver=0x18f03c0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#26 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x10bc1f0) at kernel/qcoreapplication.cpp:1577
#27 0x00007fc859be4fe3 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1470
#28 0x00007fc859c0ef83 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#29 postEventSourceDispatch (s=0x10f5f90) at kernel/qeventdispatcher_glib.cpp:287
#30 0x00007fc853651e04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007fc853652048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007fc8536520ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007fc859c0e7a1 in QEventDispatcherGlib::processEvents (this=0x10bdaf0, flags=...) at kernel/qeventdispatcher_glib.cpp:434
#34 0x00007fc858590bb6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#35 0x00007fc859be00af in QEventLoop::processEvents (this=this@entry=0x7fffa273f5e0, flags=...) at kernel/qeventloop.cpp:149
#36 0x00007fc859be03a5 in QEventLoop::exec (this=this@entry=0x7fffa273f5e0, flags=...) at kernel/qeventloop.cpp:204
#37 0x00007fc859be5b79 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#38 0x00007fc8584ed37c in QApplication::exec () at kernel/qapplication.cpp:3828
#39 0x00000000004277fd in main (argc=<optimized out>, argv=0x7fffa273f788) at ../../app/main.cpp:139

Reported using DrKonqi
Comment 1 Shlomi Fish 2014-12-20 15:36:22 UTC
I tried it on my Ubuntu 14.04 x86-64 VM and everything is fine there with rotating an image. Can you:

1. Try in a new UNIX user account.

2. Give us an image that reproduces this problem - including when it is put under /tmp ?
Comment 2 Andrey Rakhmatullin 2015-05-09 10:33:19 UTC
Created attachment 92506 [details]
New crash information added by DrKonqi

gwenview (4.14.0 pre) on KDE Platform 4.14.2 using Qt 4.8.7

- What I was doing when the application crashed:

Very quickly pressed "rotate image" two times.

-- Backtrace (Reduced):
#7  0x00007fb83729194f in Gwenview::DocumentPrivate::scheduleImageDownSampling(int) (object=<optimized out>) at /usr/include/qt4/QtCore/qobject.h:380
#8  0x00007fb83729194f in Gwenview::DocumentPrivate::scheduleImageDownSampling(int) (this=0x31ea370, invertedZoom=1) at ../../lib/document/document.cpp:110
#9  0x00007fb837292e09 in Gwenview::Document::prepareDownSampledImageForZoom(double) (this=0x3b05930, zoom=0.3219895287958115) at ../../lib/document/document.cpp:458
#10 0x00007fb8372ce35a in Gwenview::ImageScaler::doScale() (this=0x2dbc8b0) at ../../lib/imagescaler.cpp:109
#11 0x00007fb8372ce5a5 in Gwenview::ImageScaler::setDestinationRegion(QRegion const&) (this=<optimized out>, region=...) at ../../lib/imagescaler.cpp:102
Comment 3 Christoph Feck 2017-07-30 10:01:07 UTC
*** Bug 346263 has been marked as a duplicate of this bug. ***
Comment 4 Christoph Feck 2017-07-30 10:01:29 UTC
*** Bug 353706 has been marked as a duplicate of this bug. ***
Comment 5 Christoph Feck 2017-07-30 10:01:43 UTC
*** Bug 357353 has been marked as a duplicate of this bug. ***
Comment 6 Christoph Feck 2017-07-30 10:17:55 UTC
Still happening with Qt5 version.

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