Bug 323580 - Pressed "Esc" when displaying an image in Gwenview caused Gwenview to crash
Summary: Pressed "Esc" when displaying an image in Gwenview caused Gwenview to crash
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 4.11.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords: drkonqi
: 351289 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-08-16 07:05 UTC by Stefano P.
Modified: 2017-09-08 23:17 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (10.91 KB, text/plain)
2013-08-27 22:55 UTC, Stefano P.
Details
New crash information added by DrKonqi (6.71 KB, text/plain)
2013-09-01 20:19 UTC, Stefano P.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefano P. 2013-08-16 07:05:23 UTC
Application: gwenview (4.11.0)
KDE Platform Version: 4.11.00
Qt Version: 4.8.2
Operating System: Linux 3.2.0-52-generic x86_64
Distribution: Ubuntu 12.04.2 LTS

-- Information about the crash:
I was displaying an image from a folder, after having pressed "Esc" to return to the list of images in the folder Gwenview crashed.

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

Thread 3 (Thread 0x7f258ffff700 (LWP 8101)):
#0  0x00007f25b0ca8313 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f25acc25ff6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f25acc26124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f25b338d926 in QEventDispatcherGlib::processEvents (this=0x7f25880008e0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f25b335ce62 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f25b335d0b7 in QEventLoop::exec (this=0x7f258fffed90, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f25b325c077 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f25b333cb6f in QInotifyFileSystemWatcherEngine::run (this=0x10a3ba0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f25b325f09b in QThreadPrivate::start (arg=0x10a3ba0) at thread/qthread_unix.cpp:307
#9  0x00007f25ad2e6e9a in start_thread (arg=0x7f258ffff700) at pthread_create.c:308
#10 0x00007f25b0cb3ccd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f258cee0700 (LWP 2233)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:39
#1  0x00007f25b325db6b in _q_futex (val2=0, addr2=0x0, timeout=0x0, val=2, op=0, addr=0x1a36490) at thread/qmutex_unix.cpp:99
#2  QMutexPrivate::wait (this=0x1a36490, timeout=<optimized out>) at thread/qmutex_unix.cpp:113
#3  0x00007f25b325993d in QMutex::lockInternal (this=<optimized out>) at thread/qmutex.cpp:450
#4  0x00007f25b325f100 in lockInline (this=0x15f10a8) at ../../include/QtCore/../../src/corelib/thread/qmutex.h:190
#5  QMutexLocker (m=0x15f10a8, this=<synthetic pointer>) at ../../include/QtCore/../../src/corelib/thread/qmutex.h:109
#6  QThreadPrivate::start (arg=0xcf8c10) at thread/qthread_unix.cpp:297
#7  0x00007f25ad2e6e9a in start_thread (arg=0x7f258cee0700) at pthread_create.c:308
#8  0x00007f25b0cb3ccd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f25b45597c0 (LWP 8094)):
[KCrash Handler]
#6  0x00007f25b0bf6425 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f25b0bf9b8b in __GI_abort () at abort.c:91
#8  0x00007f25b0c3439e in __libc_message (do_abort=2, fmt=0x7f25b0d3e008 "*** glibc detected *** %s: %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:201
#9  0x00007f25b0c3eb96 in malloc_printerr (action=3, str=0x7f25b0d3e118 "double free or corruption (!prev)", ptr=<optimized out>) at malloc.c:5018
#10 0x00007f25aa12207c in ?? () from /usr/lib/libGL.so.1
#11 0x00007f25a832a17a in ?? () from /usr/lib/tls/libnvidia-tls.so.319.32
#12 0x00007f25b325e89e in QThread::start (this=0xcf8c10, priority=<optimized out>) at thread/qthread_unix.cpp:609
#13 0x00007f25b3e767da in Gwenview::ThumbnailGenerator::load (this=0xcf8c10, originalUri=..., originalTime=1376603837, originalFileSize=75856889, originalMimeType=..., pixPath=..., thumbnailPath=..., group=Gwenview::ThumbnailGroup::Large) at ../../lib/thumbnailprovider/thumbnailgenerator.cpp:160
#14 0x00007f25b3e78a9b in Gwenview::ThumbnailProvider::startCreatingThumbnail (this=0x10019b0, pixPath=...) at ../../lib/thumbnailprovider/thumbnailprovider.cpp:547
#15 0x00007f25b3e79c35 in Gwenview::ThumbnailProvider::checkThumbnail (this=0x10019b0) at ../../lib/thumbnailprovider/thumbnailprovider.cpp:487
#16 0x00007f25b3377946 in QObject::event (this=0x10019b0, e=<optimized out>) at kernel/qobject.cpp:1195
#17 0x00007f25b19267b4 in notify_helper (e=0x2f4d2e0, receiver=0x10019b0, this=0xc721b0) at kernel/qapplication.cpp:4556
#18 QApplicationPrivate::notify_helper (this=0xc721b0, receiver=0x10019b0, e=0x2f4d2e0) at kernel/qapplication.cpp:4528
#19 0x00007f25b192b583 in QApplication::notify (this=0x7fffb61242b0, receiver=0x10019b0, e=0x2f4d2e0) at kernel/qapplication.cpp:4417
#20 0x00007f25b265ed96 in KApplication::notify (this=0x7fffb61242b0, receiver=0x10019b0, event=0x2f4d2e0) at ../../kdeui/kernel/kapplication.cpp:311
#21 0x00007f25b335e32c in QCoreApplication::notifyInternal (this=0x7fffb61242b0, receiver=0x10019b0, event=0x2f4d2e0) at kernel/qcoreapplication.cpp:915
#22 0x00007f25b336210a in sendEvent (event=0x2f4d2e0, receiver=0x10019b0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#23 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0xbf11f0) at kernel/qcoreapplication.cpp:1539
#24 0x00007f25b338d493 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#25 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#26 0x00007f25acc25d13 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007f25acc26060 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007f25acc26124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007f25b338d8bf in QEventDispatcherGlib::processEvents (this=0xc71110, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#30 0x00007f25b19cecde in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#31 0x00007f25b335ce62 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#32 0x00007f25b335d0b7 in QEventLoop::exec (this=0x7fffb6124240, flags=...) at kernel/qeventloop.cpp:204
#33 0x00007f25b3362407 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#34 0x0000000000427bd5 in main (argc=<optimized out>, argv=0x7fffb61244f8) at ../../app/main.cpp:139

Possible duplicates by query: bug 322518, bug 321465, bug 320526, bug 320128, bug 317863.

Reported using DrKonqi
Comment 1 Aurelien Gateau 2013-08-16 09:50:33 UTC
Judging from the backtrace, Gwenview was trying to generate a thumbnail for a large image (filesize is 75856889 bytes). It is possible Gwenview ate too much memory and got killed by the kernel, or the image is causing a problem.

If you can look at the folder list and find out which image file has a size of 75856889 bytes, can you try to move it somewhere else and see if the crash still happens?
Comment 2 Stefano P. 2013-08-27 22:55:01 UTC
Created attachment 81978 [details]
New crash information added by DrKonqi

gwenview (4.11.0) on KDE Platform 4.11.00 using Qt 4.8.2

- What I was doing when the application crashed:
I left a folder with many images and tried to enter in another folder with many images

-- Backtrace (Reduced):
#6  0x00007f6a57207425 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f6a5720ab8b in __GI_abort () at abort.c:91
[...]
#9  0x00007f6a5724fb96 in malloc_printerr (action=3, str=0x7f6a5734f118 "double free or corruption (!prev)", ptr=<optimized out>) at malloc.c:5018
[...]
#12 0x00007f6a5986f89e in QThread::start (this=0x21837c0, priority=<optimized out>) at thread/qthread_unix.cpp:609
#13 0x00007f6a59863dc0 in tryStart (task=0x220ae30, this=0x1e60db0) at concurrent/qthreadpool.cpp:203
Comment 3 Stefano P. 2013-08-28 05:11:43 UTC
Hi,
I've found that file ( find -type f -size 75856889c ): I've copied it 
into another folder and I may display it without problems.
FYI it's a 16-bit tiff:
$ identify -quiet DSC_3412.tif
DSC_3412.tif[0] TIFF 3872x2592 3872x2592+0+0 16-bit DirectClass 75.86MB 
0.010u 0:00.009
DSC_3412.tif[1] TIFF 160x107 160x107+0+0 8-bit DirectClass 75.86MB 
0.000u 0:00.009

It's one of those from my old 10 mp camera generated by the Nikon 
software, most of those I'm displaying these days are the ones from the 
new 24 mp camera that are about 2.4 times bigger.
So it's true that in these days I'm displaying many big files (photos) 
but what looks strange it's that Gwenview doesn't crash always in the 
same manner or in the same folder or on the same picture.
Sometimes it crashes also when working on folders with file of "normal" 
size (maximum 2000x3000 pixel, between 100 KB and 5 MB).

After the initial report I've added the KDE backport repository: many 
KDE packages have been updated but still these sudden crashes are 
happening; yesterday I've associated another report to my previous one.


Let me know if you need further information or if you need more details 
about the configuration of my machine,
best regards
Stefano Procenzano

------------------------------------------------------------------------

Il 16. 08. 13 11:50, Aurelien Gateau ha scritto:
> https://bugs.kde.org/show_bug.cgi?id=323580
>
> Aurelien Gateau <agateau@kde.org> changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>               Status|UNCONFIRMED                 |RESOLVED
>                   CC|                            |agateau@kde.org
>           Resolution|---                         |WAITINGFORINFO
>
> --- Comment #1 from Aurelien Gateau <agateau@kde.org> ---
> Judging from the backtrace, Gwenview was trying to generate a thumbnail for a
> large image (filesize is 75856889 bytes). It is possible Gwenview ate too much
> memory and got killed by the kernel, or the image is causing a problem.
>
> If you can look at the folder list and find out which image file has a size of
> 75856889 bytes, can you try to move it somewhere else and see if the crash
> still happens?
>
Comment 4 Stefano P. 2013-09-01 20:19:29 UTC
Created attachment 82095 [details]
New crash information added by DrKonqi

gwenview (4.11.0) on KDE Platform 4.11.00 using Qt 4.8.2

- What I was doing when the application crashed:
from one folder of images I've entered a subfolder with otherer images.

-- Backtrace (Reduced):
#6  0x00007f98c376e425 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f98c3771b8b in __GI_abort () at abort.c:91
[...]
#9  0x00007f98c37b6b96 in malloc_printerr (action=3, str=0x7f98c38b6118 "double free or corruption (!prev)", ptr=<optimized out>) at malloc.c:5018
[...]
#12 0x00007f98c5dd689e in QThread::start (this=0x1106a60, priority=<optimized out>) at thread/qthread_unix.cpp:609
#13 0x00007f98c69f3e47 in Gwenview::ThumbnailWriter::queueThumbnail (this=0x1106a60, path=..., image=...) at ../../lib/thumbnailprovider/thumbnailwriter.cpp:70
Comment 5 Nate Graham 2017-09-08 23:17:52 UTC
*** Bug 351289 has been marked as a duplicate of this bug. ***