Bug 195121 - digikam crashes on view image (exiv2)
Summary: digikam crashes on view image (exiv2)
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Engine (show other bugs)
Version: 0.10.0
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-03 18:35 UTC by EGD
Modified: 2017-08-10 19:39 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 1.0.0


Attachments
crash report (10.17 KB, application/octet-stream)
2009-06-03 20:08 UTC, EGD
Details
crash. only libexiv2 0.18.1 (11.24 KB, application/octet-stream)
2009-06-04 11:24 UTC, EGD
Details
image-crash1 (210.39 KB, image/jpeg)
2009-06-04 13:52 UTC, EGD
Details
image-crash2 (708.51 KB, image/jpeg)
2009-06-04 13:53 UTC, EGD
Details

Note You need to log in before you can comment on or make changes to this bug.
Description EGD 2009-06-03 18:35:08 UTC
Version:           0.10.0 (using Devel)
OS:                Linux
Installed from:    Compiled sources

digikam crashes while trying to open image
see this bug to Novell Bugzilla https://bugzilla.novell.com/show_bug.cgi?id=405028
Images causing crash:
https://bugzilla.novell.com/attachment.cgi?id=225115
https://bugzilla.novell.com/attachment.cgi?id=272892

reproduce:
1. copy this picture in any album digikam
2. Service => Search for new images
3. View images in the main window

see comment #11 https://bugzilla.novell.com/show_bug.cgi?id=405028#c11
Comment 1 caulier.gilles 2009-06-03 18:53:18 UTC
Andreas,

This entry is for you (:=)))

Gilles Caulier
Comment 2 caulier.gilles 2009-06-03 18:56:59 UTC
Andreas,

Look here : https://bugzilla.novell.com/show_bug.cgi?id=405028#c11

Sound like and old bug from Exiv2 resolved with recent release. Right ?

EGD,

which Exiv2 release you use exactly ?

Gilles Caulier
Comment 3 EGD 2009-06-03 19:15:27 UTC
(In reply to comment #2)
> EGD,
> 
> which Exiv2 release you use exactly ?

> rpm -qa | grep libexif
libexif-0.6.17-1.7
Comment 4 caulier.gilles 2009-06-03 19:18:33 UTC
No. we don't care about libexif. We use "libexiv2"...

http://www.exiv2.org

Gilles Caulier
Comment 5 Andreas Huggel 2009-06-03 19:46:18 UTC
EGD,

It looks like you are using an old version of Exiv2. Please upgrade to 0.18.1 and try again.

Andreas
Comment 6 EGD 2009-06-03 20:08:45 UTC
Created attachment 34250 [details]
crash report
Comment 7 EGD 2009-06-03 20:09:25 UTC
(In reply to comment #4)
> No. we don't care about libexif. We use "libexiv2"...
sorry
> rpm -qa | grep libexiv2
libexiv2-5-0.18.1-2.2
libexiv2-4-0.17.1-31.3

(In reply to comment #5)
> It looks like you are using an old version of Exiv2. Please upgrade to 0.18.1
> and try again.
i copy this two pictures to me album/Anime
Comment 8 caulier.gilles 2009-06-03 20:48:05 UTC
>libexiv2-5-0.18.1-2.2
>libexiv2-4-0.17.1-31.3

This is the problem. Both version installed. Please only let's the most recent version 0.18.1 and remove 0.17.1. I remember some problem about...

Gilles Caulier
Comment 9 Mikolaj Machowski 2009-06-03 20:56:19 UTC
"There can be only One."

There are weird bugs when more than one version of exiv2 is installed.
Comment 10 EGD 2009-06-04 11:23:49 UTC
i uninstall libexiv2-4-0.17.1-31.3 and view test image.
digikam again grash
Comment 11 EGD 2009-06-04 11:24:31 UTC
Created attachment 34258 [details]
crash. only libexiv2 0.18.1
Comment 12 caulier.gilles 2009-06-04 11:37:38 UTC
EGD,

try to load JPEG image which crash digiKam into exiv2 command line tool to see if it's reproducible.

Can you attach JPEG image to this bugzilla entry, or sent it by mail to Andreas for future investigations ?

Note : Andreas mail can be found at www.exiv2.org

Thanks in advance

Gilles Caulier
Comment 13 Andreas Huggel 2009-06-04 12:23:49 UTC
Gilles, EGD,

This backtrace doesn't look right. At least it's not sufficient to pinpoint any problem. There is no info in the backtrace about where in libexiv2 it crashed.

What versions of libkexiv2 (note the "k") do you have?

I believe you need a libkexiv2 which is compatible with libexiv2, just removing exiv2 0.17.1 may not be sufficient. 

Andreas
Comment 14 EGD 2009-06-04 13:52:20 UTC
Created attachment 34263 [details]
image-crash1
Comment 15 EGD 2009-06-04 13:53:25 UTC
Created attachment 34264 [details]
image-crash2
Comment 16 EGD 2009-06-04 13:55:10 UTC
(In reply to comment #13)
> What versions of libkexiv2 (note the "k") do you have?

> rpm -qa | grep libkexiv2
libkexiv2-7-4.2.88svn973768-1.3
Comment 17 caulier.gilles 2009-06-04 14:03:51 UTC
EGD,

I think you need to recompile libkexiv2, digiKam and kipi-plugins with your new libexiv2 installed...

Gilles Caulier
Comment 18 EGD 2009-06-04 19:10:26 UTC
observed feature - if you copy the image into the directory "My_album/Anime", and in any other, fall does not occur
Comment 19 caulier.gilles 2009-06-12 17:47:42 UTC
Copy of crash :

Application: digiKam (digikam), signal: Segmentation fault
[Current thread is 1 (Thread 0xb471c700 (LWP 6600))]      

Thread 13 (Thread 0xb2e31b90 (LWP 6601)):
#0  0xffffe430 in __kernel_vsyscall ()   
#1  0xb573ec35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb579f722 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0x0828d9d9 in ?? ()                                                                       
#4  0xb579e70e in ?? () from /usr/lib/libQtCore.so.4                                          
#5  0xb573b1b5 in start_thread () from /lib/libpthread.so.0                                   
#6  0xb557e3be in clone () from /lib/libc.so.6                                                

Thread 12 (Thread 0xb1c29b90 (LWP 6604)):
#0  0xffffe430 in __kernel_vsyscall ()   
#1  0xb573ec35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb579f722 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb71e9ca2 in Digikam::LoadSaveThread::run() () from /usr/lib/libdigikamcore.so.1         
#4  0xb579e70e in ?? () from /usr/lib/libQtCore.so.4                                          
#5  0xb573b1b5 in start_thread () from /lib/libpthread.so.0                                   
#6  0xb557e3be in clone () from /lib/libc.so.6                                                

Thread 11 (Thread 0xb242ab90 (LWP 6605)):
#0  0xffffe430 in __kernel_vsyscall ()   
#1  0xb573ec35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb579f722 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb71e9ca2 in Digikam::LoadSaveThread::run() () from /usr/lib/libdigikamcore.so.1         
#4  0xb579e70e in ?? () from /usr/lib/libQtCore.so.4                                          
#5  0xb573b1b5 in start_thread () from /lib/libpthread.so.0                                   
#6  0xb557e3be in clone () from /lib/libc.so.6                                                

Thread 10 (Thread 0xaec57b90 (LWP 6606)):
#0  0xffffe430 in __kernel_vsyscall ()   
#1  0xb573ef62 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xafc8e721 in ?? () from /usr/lib/libxine.so.1                                
#3  0xb573b1b5 in start_thread () from /lib/libpthread.so.0                       
#4  0xb557e3be in clone () from /lib/libc.so.6                                    

Thread 9 (Thread 0xadfcbb90 (LWP 6607)):
#0  0xffffe430 in __kernel_vsyscall ()  
#1  0xb573ef62 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xafc9d1ae in ?? () from /usr/lib/libxine.so.1                                
#3  0xb573b1b5 in start_thread () from /lib/libpthread.so.0                       
#4  0xb557e3be in clone () from /lib/libc.so.6                                    

Thread 8 (Thread 0xad7cab90 (LWP 6608)):
#0  0xb50343da in clock_gettime () from /lib/librt.so.1
#1  0xb58c01ab in ?? () from /usr/lib/libQtCore.so.4   
#2  0xb58c0381 in ?? () from /usr/lib/libQtCore.so.4   
#3  0xb58c1bac in ?? () from /usr/lib/libQtCore.so.4   
#4  0xb58be738 in ?? () from /usr/lib/libQtCore.so.4   
#5  0xb4fa78da in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#6  0xb4fa7d6a in ?? () from /usr/lib/libglib-2.0.so.0                    
#7  0xb4fa8241 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#8  0xb58be577 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#9  0xb58910fa in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4          
#10 0xb589153a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4                   
#11 0xb579b3b9 in QThread::exec() () from /usr/lib/libQtCore.so.4                                                           
#12 0xafce5899 in ?? () from /usr/lib/kde4/plugins/phonon_backend/phonon_xine.so                                            
#13 0xb579e70e in ?? () from /usr/lib/libQtCore.so.4                                                                        
#14 0xb573b1b5 in start_thread () from /lib/libpthread.so.0                                                                 
#15 0xb557e3be in clone () from /lib/libc.so.6                                                                              

Thread 7 (Thread 0xacfbfb90 (LWP 6611)):
#0  0xffffe430 in __kernel_vsyscall ()  
#1  0xb55746a7 in poll () from /lib/libc.so.6
#2  0xacfc4004 in ?? () from /usr/lib/xine/plugins/1.26/xineplug_ao_out_alsa.so
#3  0xb573b1b5 in start_thread () from /lib/libpthread.so.0                    
#4  0xb557e3be in clone () from /lib/libc.so.6                                 

Thread 6 (Thread 0xac77cb90 (LWP 6612)):
#0  0xffffe430 in __kernel_vsyscall ()  
#1  0xb573ec35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xafca0f43 in ?? () from /usr/lib/libxine.so.1                           
#3  0xb573b1b5 in start_thread () from /lib/libpthread.so.0                  
#4  0xb557e3be in clone () from /lib/libc.so.6                               

Thread 5 (Thread 0xabf46b90 (LWP 6613)):
#0  0xffffe430 in __kernel_vsyscall ()  
#1  0xb573ec35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb579f722 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb71e9ca2 in Digikam::LoadSaveThread::run() () from /usr/lib/libdigikamcore.so.1         
#4  0xb579e70e in ?? () from /usr/lib/libQtCore.so.4                                          
#5  0xb573b1b5 in start_thread () from /lib/libpthread.so.0                                   
#6  0xb557e3be in clone () from /lib/libc.so.6                                                

Thread 4 (Thread 0xab1fdb90 (LWP 6616)):
#0  0xffffe430 in __kernel_vsyscall ()  
#1  0xb573ef62 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb579f6fc in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb5794c26 in ?? () from /usr/lib/libQtCore.so.4                                          
#4  0xb579e70e in ?? () from /usr/lib/libQtCore.so.4                                          
#5  0xb573b1b5 in start_thread () from /lib/libpthread.so.0                                   
#6  0xb557e3be in clone () from /lib/libc.so.6                                                

Thread 3 (Thread 0xa8d6eb90 (LWP 6627)):
#0  0xffffe430 in __kernel_vsyscall ()  
#1  0xb573ec35 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb579f722 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb71e9ca2 in Digikam::LoadSaveThread::run() () from /usr/lib/libdigikamcore.so.1         
#4  0xb579e70e in ?? () from /usr/lib/libQtCore.so.4                                          
#5  0xb573b1b5 in start_thread () from /lib/libpthread.so.0                                   
#6  0xb557e3be in clone () from /lib/libc.so.6                                                

Thread 2 (Thread 0xa856db90 (LWP 6628)):
[KCrash Handler]                        
#6  0xb508f6c1 in ?? () from /usr/lib/libexiv2.so.5
#7  0xb77f9b2e in KExiv2Iface::KExiv2::getExifTagLong(char const*, long&) const () from /usr/lib/libkexiv2.so.7
#8  0xb77ec8fd in KExiv2Iface::KExiv2::getImageColorWorkSpace() const () from /usr/lib/libkexiv2.so.7          
#9  0xb7155e9b in ?? () from /usr/lib/libdigikamcore.so.1                                                      
#10 0xb715bed6 in Digikam::JPEGLoader::load(QString const&, Digikam::DImgLoaderObserver*) () from /usr/lib/libdigikamcore.so.1
#11 0xb7147e90 in Digikam::DImg::load(QString const&, int, Digikam::DImgLoaderObserver*, Digikam::DRawDecoding) () from /usr/lib/libdigikamcore.so.1                                                                                                        
#12 0xb71489f7 in Digikam::DImg::load(QString const&, Digikam::DImgLoaderObserver*, Digikam::DRawDecoding) () from /usr/lib/libdigikamcore.so.1                                                                                                             
#13 0xb71fe79a in ?? () from /usr/lib/libdigikamcore.so.1                                                                     
#14 0xb71e9cb0 in Digikam::LoadSaveThread::run() () from /usr/lib/libdigikamcore.so.1                                         
#15 0xb579e70e in ?? () from /usr/lib/libQtCore.so.4                                                                          
#16 0xb573b1b5 in start_thread () from /lib/libpthread.so.0                                                                   
#17 0xb557e3be in clone () from /lib/libc.so.6                                                                                

Thread 1 (Thread 0xb471c700 (LWP 6600)):
#0  0xffffe430 in __kernel_vsyscall ()  
#1  0xb556ec76 in access () from /lib/libc.so.6
#2  0xb5aedde8 in KStandardDirs::exists(QString const&) () from /usr/lib/libkdecore.so.5
#3  0xb5af2c65 in KStandardDirs::findResourceDir(char const*, QString const&) const () from /usr/lib/libkdecore.so.5
#4  0xb5b61192 in ?? () from /usr/lib/libkdecore.so.5                                                               
#5  0xb5b6132a in ?? () from /usr/lib/libkdecore.so.5                                                               
#6  0xb5b7054e in ?? () from /usr/lib/libkdecore.so.5                                                               
#7  0xb5b70b1c in KLocale::removeCatalog(QString const&) () from /usr/lib/libkdecore.so.5                           
#8  0xb5aed9b1 in KComponentData::~KComponentData() () from /usr/lib/libkdecore.so.5                                
#9  0xb5bda650 in KPluginFactory::~KPluginFactory() () from /usr/lib/libkdecore.so.5                                
#10 0xa8f77d1a in ?? () from /usr/lib/kde4/digikamimageplugin_blurfx.so                                             
#11 0xb58ab917 in QObjectCleanupHandler::clear() () from /usr/lib/libQtCore.so.4                                    
#12 0xb58ab970 in QObjectCleanupHandler::~QObjectCleanupHandler() () from /usr/lib/libQtCore.so.4                   
#13 0xb5bda1d5 in ?? () from /usr/lib/libkdecore.so.5                                                               
#14 0xb5a7ddbb in ?? () from /usr/lib/libkdecore.so.5                                                               
#15 0xb54da9b1 in exit () from /lib/libc.so.6                                                                       
#16 0xb5de595b in ?? () from /usr/lib/libQtGui.so.4                                                                 
#17 0xb699054a in KApplication::xioErrhandler(_XDisplay*) () from /usr/lib/libkdeui.so.5                            
#18 0xb6990586 in ?? () from /usr/lib/libkdeui.so.5                                                                 
#19 0xb52f13c2 in _XIOError () from /usr/lib/libX11.so.6                                                            
#20 0xb52f8483 in _XPutXCBBuffer () from /usr/lib/libX11.so.6                                                       
#21 0xb52f9a6f in _XSend () from /usr/lib/libX11.so.6                                                               
#22 0xb52e51e5 in ?? () from /usr/lib/libX11.so.6                                                                   
#23 0xb52e53e4 in XPutImage () from /usr/lib/libX11.so.6                                                            
#24 0xb5e64dac in QX11PixmapData::fromImage(QImage const&, QFlags<Qt::ImageConversionFlag>) () from /usr/lib/libQtGui.so.4
#25 0xb5e502d9 in QPixmap::fromImage(QImage const&, QFlags<Qt::ImageConversionFlag>) () from /usr/lib/libQtGui.so.4       
#26 0xb7147686 in Digikam::DImg::convertToPixmap() () from /usr/lib/libdigikamcore.so.1                                   
#27 0x08277e49 in ?? ()                                                                                                   
#28 0xb722d7ce in Digikam::PreviewWidget::viewportPaintEvent(QPaintEvent*) () from /usr/lib/libdigikamcore.so.1           
#29 0xb759baba in Q3ScrollView::eventFilter(QObject*, QEvent*) () from /usr/lib/libQt3Support.so.4                        
#30 0xb5891cea in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#31 0xb5d8167a in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4                     
#32 0xb5d89a82 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#33 0xb6990b9d in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#34 0xb5892adb in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#35 0xb5d8c7ee in QCoreApplication::sendSpontaneousEvent(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#36 0xb5ddfe69 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#37 0xb5f9d7b5 in ?? () from /usr/lib/libQtGui.so.4
#38 0xb5dd0956 in QWidgetPrivate::syncBackingStore() () from /usr/lib/libQtGui.so.4
#39 0xb5dd8565 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#40 0xb61b4177 in QMainWindow::event(QEvent*) () from /usr/lib/libQtGui.so.4
#41 0xb6a74fc7 in KMainWindow::event(QEvent*) () from /usr/lib/libkdeui.so.5
#42 0xb6aba39c in KXmlGuiWindow::event(QEvent*) () from /usr/lib/libkdeui.so.5
#43 0xb5d8169c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#44 0xb5d89a82 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#45 0xb6990b9d in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#46 0xb5892adb in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#47 0xb5893725 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#48 0xb589391d in QCoreApplication::sendPostedEvents(QObject*, int) () from /usr/lib/libQtCore.so.4
#49 0xb58be90f in ?? () from /usr/lib/libQtCore.so.4
#50 0xb4fa49c8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#51 0xb4fa8083 in ?? () from /usr/lib/libglib-2.0.so.0
#52 0xb4fa8241 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#53 0xb58be558 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#54 0xb5e21975 in ?? () from /usr/lib/libQtGui.so.4
#55 0xb58910fa in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#56 0xb589153a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#57 0xb58939e9 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#58 0xb5d81517 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#59 0x082b350b in ?? ()
#60 0xb54c3705 in __libc_start_main () from /lib/libc.so.6
#61 0x0808d761 in _start ()
Comment 20 caulier.gilles 2009-07-11 11:26:05 UTC
This is the problem :

#7  0xb77f9b2e in KExiv2Iface::KExiv2::getExifTagLong(char const*, long&) const
() from /usr/lib/libkexiv2.so.7
#8  0xb77ec8fd in KExiv2Iface::KExiv2::getImageColorWorkSpace() const () from
/usr/lib/libkexiv2.so.7    

i have fixed this problem few week ago in libkexiv2 with this commit:

http://websvn.kde.org/trunk/KDE/kdegraphics/libs/libkexiv2/libkexiv2/kexiv2exif.cpp?r1=956466&r2=981717

Gilles Caulier