Bug 295274 - Crash when specific pictures are opened in Image Editor
Summary: Crash when specific pictures are opened in Image Editor
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: DImg-Processing (show other bugs)
Version: 2.5.0
Platform: Arch Linux Linux
: NOR critical
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-03 21:50 UTC by Kristian
Modified: 2022-02-04 06:24 UTC (History)
3 users (show)

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


Attachments
image editor screenshot with test image : no problem... (723.87 KB, image/png)
2012-03-04 12:58 UTC, caulier.gilles
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kristian 2012-03-03 21:50:21 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2
Build Identifier: 2.5.0

DigiKam crashes when some specific images/folders are opened in the Image Editor. It happens most of the time, but not always.

Here's a backlog:

Application: digiKam (digikam), signal: Segmentation fault
Using host libthread_db library "/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fed5bd19980 (LWP 5515))]

Thread 22 (Thread 0x7fed376a4700 (LWP 5516)):
#0  0x00007fed530aea14 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fed5611e24b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00000000005ca120 in ?? ()
#3  0x00007fed5611dd3b in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007fed3e924354 in ?? () from /usr/lib/libGL.so.1
#5  0x00007fed530aadaa in start_thread () from /lib/libpthread.so.0
#6  0x00007fed5535909d in clone () from /lib/libc.so.6

Thread 21 (Thread 0x7fed36ea3700 (LWP 5517)):
#0  0x00007fed562495f2 in ?? () from /usr/lib/libQtCore.so.4
#1  0x00007fed562496b5 in ?? () from /usr/lib/libQtCore.so.4
#2  0x00007fed506e9e52 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#3  0x00007fed506eac5d in ?? () from /usr/lib/libglib-2.0.so.0
#4  0x00007fed506eb289 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#5  0x00007fed5624a126 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007fed56219e52 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0x00007fed5621a0a7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#8  0x00007fed5611ad17 in QThread::exec() () from /usr/lib/libQtCore.so.4
#9  0x00007fed561f9c9f in ?? () from /usr/lib/libQtCore.so.4
#10 0x00007fed5611dd3b in ?? () from /usr/lib/libQtCore.so.4
#11 0x00007fed3e924354 in ?? () from /usr/lib/libGL.so.1
#12 0x00007fed530aadaa in start_thread () from /lib/libpthread.so.0
#13 0x00007fed5535909d in clone () from /lib/libc.so.6

Thread 20 (Thread 0x7fed366a2700 (LWP 5520)):
#0  0x00007fed530aea14 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fed5611e24b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fed5958f4e1 in ?? () from /usr/lib/libdigikamcore.so.2
#3  0x00007fed5611dd3b in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007fed3e924354 in ?? () from /usr/lib/libGL.so.1
#5  0x00007fed530aadaa in start_thread () from /lib/libpthread.so.0
#6  0x00007fed5535909d in clone () from /lib/libc.so.6

Thread 19 (Thread 0x7fed277ec700 (LWP 5525)):
#0  0x00007fed530aea14 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fed34100b0d in ?? () from /usr/lib/libvlccore.so.5
#2  0x00007fed3e924354 in ?? () from /usr/lib/libGL.so.1
#3  0x00007fed530aadaa in start_thread () from /lib/libpthread.so.0
#4  0x00007fed5535909d in clone () from /lib/libc.so.6

Thread 18 (Thread 0x7fed26c34700 (LWP 5535)):
#0  0x00007fed530aed81 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fed5611e1af in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fed561115cf in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007fed5611dd3b in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007fed3e924354 in ?? () from /usr/lib/libGL.so.1
#5  0x00007fed530aadaa in start_thread () from /lib/libpthread.so.0
#6  0x00007fed5535909d in clone () from /lib/libc.so.6

Thread 17 (Thread 0x7fed26433700 (LWP 5536)):
#0  0x00007fed5111dca6 in ?? () from /usr/lib/libgomp.so.1
#1  0x00007fed5111c7ce in ?? () from /usr/lib/libgomp.so.1
#2  0x00007fed3e924354 in ?? () from /usr/lib/libGL.so.1
#3  0x00007fed530aadaa in start_thread () from /lib/libpthread.so.0
#4  0x00007fed5535909d in clone () from /lib/libc.so.6

Thread 16 (Thread 0x7fed25c32700 (LWP 5537)):
#0  0x00007fed5111dca6 in ?? () from /usr/lib/libgomp.so.1
#1  0x00007fed5111c7ce in ?? () from /usr/lib/libgomp.so.1
#2  0x00007fed3e924354 in ?? () from /usr/lib/libGL.so.1
#3  0x00007fed530aadaa in start_thread () from /lib/libpthread.so.0
#4  0x00007fed5535909d in clone () from /lib/libc.so.6

Thread 15 (Thread 0x7fed25431700 (LWP 5538)):
#0  0x00007fed5111dca6 in ?? () from /usr/lib/libgomp.so.1
#1  0x00007fed5111c7ce in ?? () from /usr/lib/libgomp.so.1
#2  0x00007fed3e924354 in ?? () from /usr/lib/libGL.so.1
#3  0x00007fed530aadaa in start_thread () from /lib/libpthread.so.0
#4  0x00007fed5535909d in clone () from /lib/libc.so.6

Thread 14 (Thread 0x7fed02af4700 (LWP 5557)):
#0  0x00007fed530aed81 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fed5611e1af in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fed561115cf in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007fed5611dd3b in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007fed3e924354 in ?? () from /usr/lib/libGL.so.1
#5  0x00007fed530aadaa in start_thread () from /lib/libpthread.so.0
#6  0x00007fed5535909d in clone () from /lib/libc.so.6

Thread 13 (Thread 0x7fed022e8700 (LWP 5558)):
#0  0x00007fed530aed81 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fed5611e1af in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fed561115cf in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007fed5611dd3b in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007fed3e924354 in ?? () from /usr/lib/libGL.so.1
#5  0x00007fed530aadaa in start_thread () from /lib/libpthread.so.0
#6  0x00007fed5535909d in clone () from /lib/libc.so.6

Thread 12 (Thread 0x7fed01ae7700 (LWP 5559)):
#0  0x00007fed5111dca6 in ?? () from /usr/lib/libgomp.so.1
#1  0x00007fed5111c7ce in ?? () from /usr/lib/libgomp.so.1
#2  0x00007fed3e924354 in ?? () from /usr/lib/libGL.so.1
#3  0x00007fed530aadaa in start_thread () from /lib/libpthread.so.0
#4  0x00007fed5535909d in clone () from /lib/libc.so.6

Thread 11 (Thread 0x7fed012e6700 (LWP 5560)):
#0  0x00007fed5111dca6 in ?? () from /usr/lib/libgomp.so.1
#1  0x00007fed5111c7ce in ?? () from /usr/lib/libgomp.so.1
#2  0x00007fed3e924354 in ?? () from /usr/lib/libGL.so.1
#3  0x00007fed530aadaa in start_thread () from /lib/libpthread.so.0
#4  0x00007fed5535909d in clone () from /lib/libc.so.6

Thread 10 (Thread 0x7fed00ae5700 (LWP 5561)):
#0  0x00007fed5111dca6 in ?? () from /usr/lib/libgomp.so.1
#1  0x00007fed5111c7ce in ?? () from /usr/lib/libgomp.so.1
#2  0x00007fed3e924354 in ?? () from /usr/lib/libGL.so.1
#3  0x00007fed530aadaa in start_thread () from /lib/libpthread.so.0
#4  0x00007fed5535909d in clone () from /lib/libc.so.6

Thread 9 (Thread 0x7fecf37b4700 (LWP 5569)):
#0  0x00007fed5111dca6 in ?? () from /usr/lib/libgomp.so.1
#1  0x00007fed5111c7ce in ?? () from /usr/lib/libgomp.so.1
#2  0x00007fed3e924354 in ?? () from /usr/lib/libGL.so.1
#3  0x00007fed530aadaa in start_thread () from /lib/libpthread.so.0
#4  0x00007fed5535909d in clone () from /lib/libc.so.6

Thread 8 (Thread 0x7fecf2fb3700 (LWP 5570)):
#0  0x00007fed5111dca6 in ?? () from /usr/lib/libgomp.so.1
#1  0x00007fed5111c7ce in ?? () from /usr/lib/libgomp.so.1
#2  0x00007fed3e924354 in ?? () from /usr/lib/libGL.so.1
#3  0x00007fed530aadaa in start_thread () from /lib/libpthread.so.0
#4  0x00007fed5535909d in clone () from /lib/libc.so.6

Thread 7 (Thread 0x7fecf27b2700 (LWP 5571)):
#0  0x00007fed5111dca6 in ?? () from /usr/lib/libgomp.so.1
#1  0x00007fed5111c7ce in ?? () from /usr/lib/libgomp.so.1
#2  0x00007fed3e924354 in ?? () from /usr/lib/libGL.so.1
#3  0x00007fed530aadaa in start_thread () from /lib/libpthread.so.0
#4  0x00007fed5535909d in clone () from /lib/libc.so.6

Thread 6 (Thread 0x7fed2763b700 (LWP 5586)):
#0  0x00007fed530aed81 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fed5611e1af in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fed561115cf in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007fed5611dd3b in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007fed3e924354 in ?? () from /usr/lib/libGL.so.1
#5  0x00007fed530aadaa in start_thread () from /lib/libpthread.so.0
#6  0x00007fed5535909d in clone () from /lib/libc.so.6

Thread 5 (Thread 0x7fecd331b700 (LWP 5587)):
#0  0x00007fed530aed81 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fed5611e1af in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fed561115cf in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007fed5611dd3b in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007fed3e924354 in ?? () from /usr/lib/libGL.so.1
#5  0x00007fed530aadaa in start_thread () from /lib/libpthread.so.0
#6  0x00007fed5535909d in clone () from /lib/libc.so.6

Thread 4 (Thread 0x7fecd2b1a700 (LWP 5588)):
#0  0x00007fed530aed81 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fed5611e1af in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fed561115cf in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007fed5611dd3b in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007fed3e924354 in ?? () from /usr/lib/libGL.so.1
#5  0x00007fed530aadaa in start_thread () from /lib/libpthread.so.0
#6  0x00007fed5535909d in clone () from /lib/libc.so.6

Thread 3 (Thread 0x7fecf10cb700 (LWP 5589)):
#0  0x00007fed530aed81 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fed5611e1af in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fed561115cf in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007fed5611dd3b in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007fed3e924354 in ?? () from /usr/lib/libGL.so.1
#5  0x00007fed530aadaa in start_thread () from /lib/libpthread.so.0
#6  0x00007fed5535909d in clone () from /lib/libc.so.6

Thread 2 (Thread 0x7fecf08ca700 (LWP 5590)):
#0  0x00007fed530aed81 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fed5611e1af in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fed561115cf in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007fed5611dd3b in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007fed3e924354 in ?? () from /usr/lib/libGL.so.1
#5  0x00007fed530aadaa in start_thread () from /lib/libpthread.so.0
#6  0x00007fed5535909d in clone () from /lib/libc.so.6

Thread 1 (Thread 0x7fed5bd19980 (LWP 5515)):
[KCrash Handler]
#6  0x00007fed593830e0 in Digikam::DImg::rotate(Digikam::DImg::ANGLE) () from /usr/lib/libdigikamcore.so.2
#7  0x00007fed593832d2 in Digikam::DImg::rotateAndFlip(int) () from /usr/lib/libdigikamcore.so.2
#8  0x00007fed5965d796 in Digikam::DImgInterface::slotImageLoaded(Digikam::LoadingDescription const&, Digikam::DImg const&) () from /usr/lib/libdigikamcore.so.2
#9  0x00007fed562340d6 in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#10 0x00007fed56c1e8c4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#11 0x00007fed56c23743 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#12 0x00007fed5796b646 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#13 0x00007fed5621b06c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#14 0x00007fed5621e90a in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#15 0x00007fed56249c93 in ?? () from /usr/lib/libQtCore.so.4
#16 0x00007fed506ea8bd in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#17 0x00007fed506eb0b8 in ?? () from /usr/lib/libglib-2.0.so.0
#18 0x00007fed506eb289 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#19 0x00007fed5624a0bf in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#20 0x00007fed56cc1f8e in ?? () from /usr/lib/libQtGui.so.4
#21 0x00007fed56219e52 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#22 0x00007fed5621a0a7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#23 0x00007fed5621ec05 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#24 0x000000000048bb9d in ?? ()
#25 0x00007fed5529638d in __libc_start_main () from /lib/libc.so.6
#26 0x000000000048d375 in _start ()


Reproducible: Sometimes

Steps to Reproduce:
1. Go to folder in digiKam
2. Choose picture
3. Open picture in Image Editor
Actual Results:  
digiKam crashes

Expected Results:  
Show the image in the Image Editor
Comment 1 caulier.gilles 2012-03-03 22:02:21 UTC
It crash when image is rotated by editor. Which type of image you load ? Can you share file please to test in local ?

Gilles Caulier
Comment 2 Pierre Hanser 2012-03-04 06:18:06 UTC
once upon a time, there was a problem with rotation angle returned by exiv2 with not initialised huge value
Comment 3 Kristian 2012-03-04 10:15:37 UTC
As you said, it has something to do with rotation. It happens when I open images which are automatically rotated according to their EXIF information. However, I can't reproduce it all the time. I'll send an image by mail to Gilles, because it's too large for Bugzilla.
Comment 4 caulier.gilles 2012-03-04 12:58:17 UTC
Created attachment 69278 [details]
image editor screenshot with test image : no problem...

No problem on my computer. Look all components version used by digiKam. 

I suspect a problem with shared lib libkexiv2 and Exiv2. Check your system...

Gilles Caulier
Comment 5 Kristian 2012-03-04 13:34:13 UTC
Unfortunately, I can't reproduce the bug right know, but I had a crash this morning. I didn't change any components since then. Here they are:

digiKam version 2.5.0
Exiv2 kann in JP2 speichern: Ja
Exiv2 kann in JPEG speichern: Ja
Exiv2 kann in PGF speichern: Ja
Exiv2 kann in PNG speichern: Ja
Exiv2 kann in TIFF speichern: Ja
Exiv2 unterstützt XMP-Metadaten: Ja
LibCImg: 130
LibClapack: Interne Bibliothek
LibExiv2: 0.22
LibJPEG: 80
LibJasper: 1.900.1
LibKDE: 4.8.00 (4.8.0
LibKExiv2: 2.1.0
LibKGeoMap: 2.0.0
LibKdcraw: 2.0.1
LibLCMS: 119
LibPGF: 6.11.42 - Interne Bibliothek
LibPNG: 1.5.7
LibQt: 4.8.0
LibRaw: 0.14.4
LibTIFF: LIBTIFF, Version 4.0.0 Copyright (c) 1988-1996 Sam Leffler Copyright (c) 1991-1996 Silicon Graphics, Inc.
Marble-Funktion: 0.12.97 (0.13 Release Candidate 2)
Parallelisiertes Entfernen von Mosaikmustern: Ja
Datenbanktreiber: QSQLITE
LibGphoto2: 2.4.11
LibKface: 2.0.0
LibKipi: 1.3.0
LibOpenCV: 2.3.1
Libface: 0.2
Comment 6 Marcel Wiesweg 2012-03-04 20:35:13 UTC
Debug information is missing from your backtrace: there is no line number. A backtrace with this information, and/or one obtained when running digikam under gdb, may provide more information.
Comment 7 Kristian 2012-03-25 10:53:18 UTC
I could reproduce it another time. Here's a more detailed backtrace:

Application: digiKam (digikam), signal: Segmentation fault
Using host libthread_db library "/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7ffa7438d980 (LWP 3217))]

Thread 12 (Thread 0x7ffa4fcac700 (LWP 3218)):
#0  0x00007ffa6b738a14 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007ffa6e7af24b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x000000000059cbc4 in Digikam::ScanController::run (this=0x2aa47b0) at $HOME/build/digikam-2.5/src/digikam-2.5.0/core/digikam/database/scancontroller.cpp:647
#3  0x00007ffa6e7aed3b in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007ffa56cbd454 in ?? () from /usr/lib/libGL.so.1
#5  0x00007ffa6b734daa in start_thread () from /lib/libpthread.so.0
#6  0x00007ffa6d9ea09d in clone () from /lib/libc.so.6

Thread 11 (Thread 0x7ffa4f4ab700 (LWP 3219)):
#0  0x00007ffa6d9e2183 in poll () from /lib/libc.so.6
#1  0x00007ffa68d75dc8 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007ffa68d76289 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007ffa6e8db126 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007ffa6e8aae52 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007ffa6e8ab0a7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007ffa6e7abd17 in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007ffa6e88ac9f in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007ffa6e7aed3b in ?? () from /usr/lib/libQtCore.so.4
#9  0x00007ffa56cbd454 in ?? () from /usr/lib/libGL.so.1
#10 0x00007ffa6b734daa in start_thread () from /lib/libpthread.so.0
#11 0x00007ffa6d9ea09d in clone () from /lib/libc.so.6

Thread 10 (Thread 0x7ffa3fc4b700 (LWP 3235)):
[KCrash Handler]
#6  Digikam::DImg::rotate (this=0x7dc2170, angle=<optimized out>) at $HOME/build/digikam-2.5/src/digikam-2.5.0/core/libs/dimg/dimg.cpp:2429
#7  0x00007ffa71a5f1da in Digikam::DImg::rotateAndFlip (this=0x7dc2170, orientation=<optimized out>) at $HOME/build/digikam-2.5/src/digikam-2.5.0/core/libs/dimg/dimg.cpp:2647
#8  0x00007ffa71bb30c4 in Digikam::LoadSaveThread::exifRotate (image=..., filePath=...) at $HOME/build/digikam-2.5/src/digikam-2.5.0/core/libs/threadimageio/loadsavethread.cpp:276
#9  0x00007ffa71bc1398 in Digikam::PreviewLoadingTask::execute (this=0x7dc1f70) at $HOME/build/digikam-2.5/src/digikam-2.5.0/core/libs/threadimageio/previewtask.cpp:185
#10 0x00007ffa71bb371a in Digikam::LoadSaveThread::run (this=0x2995d70) at $HOME/build/digikam-2.5/src/digikam-2.5.0/core/libs/threadimageio/loadsavethread.cpp:118
#11 0x00007ffa71be3be7 in Digikam::DynamicThread::DynamicThreadPriv::run (this=0x2995de0) at $HOME/build/digikam-2.5/src/digikam-2.5.0/core/libs/threads/dynamicthread.cpp:328
#12 0x00007ffa6e7a2502 in ?? () from /usr/lib/libQtCore.so.4
#13 0x00007ffa6e7aed3b in ?? () from /usr/lib/libQtCore.so.4
#14 0x00007ffa56cbd454 in ?? () from /usr/lib/libGL.so.1
#15 0x00007ffa6b734daa in start_thread () from /lib/libpthread.so.0
#16 0x00007ffa6d9ea09d in clone () from /lib/libc.so.6

Thread 9 (Thread 0x7ffa3f44a700 (LWP 3236)):
#0  0x00007ffa697a8ca6 in ?? () from /usr/lib/libgomp.so.1
#1  0x00007ffa697a77ce in ?? () from /usr/lib/libgomp.so.1
#2  0x00007ffa56cbd454 in ?? () from /usr/lib/libGL.so.1
#3  0x00007ffa6b734daa in start_thread () from /lib/libpthread.so.0
#4  0x00007ffa6d9ea09d in clone () from /lib/libc.so.6

Thread 8 (Thread 0x7ffa3ec49700 (LWP 3237)):
#0  0x00007ffa697a8ca6 in ?? () from /usr/lib/libgomp.so.1
#1  0x00007ffa697a77ce in ?? () from /usr/lib/libgomp.so.1
#2  0x00007ffa56cbd454 in ?? () from /usr/lib/libGL.so.1
#3  0x00007ffa6b734daa in start_thread () from /lib/libpthread.so.0
#4  0x00007ffa6d9ea09d in clone () from /lib/libc.so.6

Thread 7 (Thread 0x7ffa3e448700 (LWP 3238)):
#0  0x00007ffa697a8ca6 in ?? () from /usr/lib/libgomp.so.1
#1  0x00007ffa697a77ce in ?? () from /usr/lib/libgomp.so.1
#2  0x00007ffa56cbd454 in ?? () from /usr/lib/libGL.so.1
#3  0x00007ffa6b734daa in start_thread () from /lib/libpthread.so.0
#4  0x00007ffa6d9ea09d in clone () from /lib/libc.so.6

Thread 6 (Thread 0x7ffa1d66d700 (LWP 3253)):
#0  0x00007ffa6b738d81 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007ffa6e7af1af in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007ffa6e7a25cf in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007ffa6e7aed3b in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007ffa56cbd454 in ?? () from /usr/lib/libGL.so.1
#5  0x00007ffa6b734daa in start_thread () from /lib/libpthread.so.0
#6  0x00007ffa6d9ea09d in clone () from /lib/libc.so.6

Thread 5 (Thread 0x7ffa1ce64700 (LWP 3254)):
#0  0x00007ffa6b738d81 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007ffa6e7af1af in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007ffa6e7a25cf in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007ffa6e7aed3b in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007ffa56cbd454 in ?? () from /usr/lib/libGL.so.1
#5  0x00007ffa6b734daa in start_thread () from /lib/libpthread.so.0
#6  0x00007ffa6d9ea09d in clone () from /lib/libc.so.6

Thread 4 (Thread 0x7ffa17650700 (LWP 3260)):
#0  0x00007ffa697a8ca6 in ?? () from /usr/lib/libgomp.so.1
#1  0x00007ffa697a77ce in ?? () from /usr/lib/libgomp.so.1
#2  0x00007ffa56cbd454 in ?? () from /usr/lib/libGL.so.1
#3  0x00007ffa6b734daa in start_thread () from /lib/libpthread.so.0
#4  0x00007ffa6d9ea09d in clone () from /lib/libc.so.6

Thread 3 (Thread 0x7ffa16e4f700 (LWP 3261)):
#0  0x00007ffa697a8ca6 in ?? () from /usr/lib/libgomp.so.1
#1  0x00007ffa697a77ce in ?? () from /usr/lib/libgomp.so.1
#2  0x00007ffa56cbd454 in ?? () from /usr/lib/libGL.so.1
#3  0x00007ffa6b734daa in start_thread () from /lib/libpthread.so.0
#4  0x00007ffa6d9ea09d in clone () from /lib/libc.so.6

Thread 2 (Thread 0x7ffa1664e700 (LWP 3262)):
#0  0x00007ffa697a8ca6 in ?? () from /usr/lib/libgomp.so.1
#1  0x00007ffa697a77ce in ?? () from /usr/lib/libgomp.so.1
#2  0x00007ffa56cbd454 in ?? () from /usr/lib/libGL.so.1
#3  0x00007ffa6b734daa in start_thread () from /lib/libpthread.so.0
#4  0x00007ffa6d9ea09d in clone () from /lib/libc.so.6

Thread 1 (Thread 0x7ffa7438d980 (LWP 3217)):
#0  0x00007ffa6b738a14 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007ffa6e7af24b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007ffa6e7a1c8e in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007ffa6e7a36b4 in QThreadPool::~QThreadPool() () from /usr/lib/libQtCore.so.4
#4  0x00007ffa6e7a36f9 in QThreadPool::~QThreadPool() () from /usr/lib/libQtCore.so.4
#5  0x00007ffa6e8be5c5 in QObjectPrivate::deleteChildren() () from /usr/lib/libQtCore.so.4
#6  0x00007ffa6e8c482c in QObject::~QObject() () from /usr/lib/libQtCore.so.4
#7  0x00007ffa71be1a52 in destroy () at $HOME/build/digikam-2.5/src/digikam-2.5.0/core/libs/threads/threadmanager.cpp:241
#8  0x00007ffa6d93d4c1 in __run_exit_handlers () from /lib/libc.so.6
#9  0x00007ffa6d93d545 in exit () from /lib/libc.so.6
#10 0x00007ffa6f31b2f8 in ?? () from /usr/lib/libQtGui.so.4
#11 0x00007ffa6fffc818 in KApplication::xioErrhandler(_XDisplay*) () from /usr/lib/libkdeui.so.5
#12 0x00007ffa6bcd2a6e in _XIOError () from /usr/lib/libX11.so.6
#13 0x00007ffa6bcd09db in _XReply () from /usr/lib/libX11.so.6
#14 0x00007ffa6bcc64b9 in XQueryPointer () from /usr/lib/libX11.so.6
#15 0x00007ffa6f334d1f in QCursor::pos() () from /usr/lib/libQtGui.so.4
#16 0x00007ffa6f2b0c45 in QApplicationPrivate::sendSyntheticEnterLeave(QWidget*) () from /usr/lib/libQtGui.so.4
#17 0x00007ffa6f302932 in QWidget::setVisible(bool) () from /usr/lib/libQtGui.so.4
#18 0x00007ffa53336c7c in ?? () from /usr/lib/kde4/plugins/styles/oxygen.so
#19 0x00007ffa533367bf in ?? () from /usr/lib/kde4/plugins/styles/oxygen.so
#20 0x00007ffa6e8bff11 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#21 0x00007ffa6f6cbd72 in QLineEdit::textChanged(QString const&) () from /usr/lib/libQtGui.so.4
#22 0x00007ffa6f6cc019 in ?? () from /usr/lib/libQtGui.so.4
#23 0x00007ffa6e8bff11 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#24 0x00007ffa6f93d675 in QLineControl::textChanged(QString const&) () from /usr/lib/libQtGui.so.4
#25 0x00007ffa6f6d0c3b in QLineControl::finishChange(int, bool, bool) () from /usr/lib/libQtGui.so.4
#26 0x00007ffa6f6d0ed0 in QLineControl::internalSetText(QString const&, int, bool) () from /usr/lib/libQtGui.so.4
#27 0x00007ffa6f693751 in ?? () from /usr/lib/libQtGui.so.4
#28 0x00007ffa6f6938a7 in QComboBox::setCurrentIndex(int) () from /usr/lib/libQtGui.so.4
#29 0x00007ffa71bf832c in Digikam::DZoomBar::setZoom (this=0x83a8000, zoom=<optimized out>, zmin=<optimized out>, zmax=<optimized out>) at $HOME/build/digikam-2.5/src/digikam-2.5.0/core/libs/widgets/common/dzoombar.cpp:227
#30 0x00007ffa6e8bff11 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#31 0x00007ffa71ca4f3b in Digikam::EditorStackView::signalZoomChanged (this=<optimized out>, _t1=false, _t2=false, _t3=0.1918904958677686) at $HOME/build/digikam-2.5/src/build/core/digikam/editorstackview.moc:115
#32 0x00007ffa6e8bff11 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#33 0x00007ffa71c97ba0 in Digikam::Canvas::signalZoomChanged (this=<optimized out>, _t1=0.1918904958677686) at $HOME/build/digikam-2.5/src/build/core/digikam/canvas.moc:213
#34 0x00007ffa71c9ae90 in Digikam::Canvas::slotImageLoaded (this=0x7f8aaa0, filePath=..., success=true) at $HOME/build/digikam-2.5/src/digikam-2.5.0/core/utilities/imageeditor/canvas/canvas.cpp:275
#35 0x00007ffa6e8bff11 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#36 0x00007ffa71c90fc6 in Digikam::DImgInterface::signalImageLoaded (this=<optimized out>, _t1=..., _t2=true) at $HOME/build/digikam-2.5/src/build/core/digikam/dimginterface.moc:177
#37 0x00007ffa71c91713 in Digikam::DImgInterface::slotImageLoaded (this=0x7e055b0, loadingDescription=..., img=...) at $HOME/build/digikam-2.5/src/digikam-2.5.0/core/utilities/imageeditor/canvas/dimginterface.cpp:450
#38 0x00007ffa6e8c50d6 in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#39 0x00007ffa6f2af8c4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#40 0x00007ffa6f2b4743 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#41 0x00007ffa6fffe556 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#42 0x00007ffa6e8ac06c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#43 0x00007ffa6e8af90a in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#44 0x00007ffa6e8dac93 in ?? () from /usr/lib/libQtCore.so.4
#45 0x00007ffa68d758bd in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#46 0x00007ffa68d760b8 in ?? () from /usr/lib/libglib-2.0.so.0
#47 0x00007ffa68d76289 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#48 0x00007ffa6e8db0bf in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#49 0x00007ffa6f352f8e in ?? () from /usr/lib/libQtGui.so.4
#50 0x00007ffa6e8aae52 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#51 0x00007ffa6e8ab0a7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#52 0x00007ffa6e8afc05 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#53 0x000000000048f641 in main (argc=5, argv=0x7fff7b078898) at $HOME/build/digikam-2.5/src/digikam-2.5.0/core/digikam/main/main.cpp:232
Comment 8 Marcel Wiesweg 2012-03-25 20:08:06 UTC
Git commit fb1903d64bc0d420f11ace37cf7cee15ab69a65c by Marcel Wiesweg.
Committed on 25/03/2012 at 22:07.
Pushed by mwiesweg into branch 'master'.

Use new_failureTolerant to allocate data for rotation

M  +4    -4    libs/dimg/dimg.cpp
M  +0    -44   libs/dimg/loaders/dimgloader.cpp
M  +34   -2    libs/dimg/loaders/dimgloader.h

http://commits.kde.org/digikam/fb1903d64bc0d420f11ace37cf7cee15ab69a65c
Comment 9 Marcel Wiesweg 2012-03-25 20:09:48 UTC
Crash happens in image rotation. Out-of-memory could happen; I would expect the code to abort then by throwing bad_alloc. Nonetheless we should use the safe allocation here as well.
Are the affected images very large?
Comment 10 Kristian 2012-03-25 20:14:54 UTC
The size of the pictures is 10,2 Megapixel, about 2,5 MiB - 5 MiB.
Comment 11 caulier.gilles 2012-06-22 08:51:00 UTC
Official digiKam 2.6.0 release is out since few days now :

http://www.digikam.org/drupal/node/656

Please, check if this entry still valid, or update report accordingly.

Thanks in advance.

Gilles Caulier
Comment 12 Pierre Hanser 2012-07-03 09:22:42 UTC
not seen here since a long time
Comment 13 Kristian 2012-07-12 20:15:44 UTC
I can't reproduce it anymore. (However, reproducing this bug wasn't always possible.)