Bug 110575 - Crash when renaming images
Summary: Crash when renaming images
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: AdvancedRename-engine (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-11 18:29 UTC by Carsten Niehaus
Modified: 2018-03-23 21:04 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 0.1.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carsten Niehaus 2005-08-11 18:29:21 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.3.5 gcc (GCC) 3.3.5 (Debian 1:3.3.5-8ubuntu2)
OS:                Linux

After starting to rename a whole directory of files some error happend. I cancelled the dialog and this crash happend. I will now try to reproduce and note the exact error, I really cannot remember...

Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
[Thread debugging using libthread_db enabled]
[New Thread -1237513664 (LWP 8916)]
[KCrash handler]
#4  KProcess::isRunning (this=0x0) at kprocess.cpp:505
#5  0xb4820a2f in KIPIBatchProcessImagesPlugin::RenameImagesDialog::slotResult
    () from /home/carsten/kde35dir/lib/kde3/kipiplugin_batchprocessimages.so
#6  0xb4823674 in KIPIBatchProcessImagesPlugin::RenameImagesDialog::qt_invoke
    () from /home/carsten/kde35dir/lib/kde3/kipiplugin_batchprocessimages.so
#7  0xb6b04067 in QObject::activate_signal ()
   from /usr/share/qt3/lib/libqt-mt.so.3
#8  0xb77e300a in KIO::Job::result (this=0x85323b8, t0=0x0)
    at jobclasses.moc:162
#9  0xb77c780c in KIO::Job::emitResult (this=0x85323b8) at job.cpp:222
#10 0xb77dc61d in KIO::CopyJob::deleteNextDir (this=0x85323b8) at job.cpp:3464
#11 0xb77dc594 in KIO::CopyJob::copyNextFile (this=0x85323b8) at job.cpp:3425
#12 0xb77d9a1e in KIO::CopyJob::slotResultCopyingFiles (this=0x85323b8, 
    job=0x8534d40) at job.cpp:3094
#13 0xb77ded1e in KIO::CopyJob::slotResult (this=0x85323b8, job=0x85377d0)
    at job.cpp:3733
#14 0xb77e7515 in KIO::CopyJob::qt_invoke (this=0x85323b8, _id=8, 
    _o=0xbfffe5e0) at qucom_p.h:312
#15 0xb6b04067 in QObject::activate_signal ()
   from /usr/share/qt3/lib/libqt-mt.so.3
#16 0xb77e300a in KIO::Job::result (this=0x8534d40, t0=0x0)
    at jobclasses.moc:162
#17 0xb77c780c in KIO::Job::emitResult (this=0x8534d40) at job.cpp:222
#18 0xb77c74ef in KIO::Job::removeSubjob (this=0x8534d40, job=0x853af08, 
    emitResultIfLast=true) at job.cpp:184
#19 0xb77c7485 in KIO::Job::removeSubjob (this=0x0, job=0x0) at job.cpp:173
#20 0xb77d205c in KIO::FileCopyJob::slotResult (this=0x8534d40, job=0x853af08)
    at job.cpp:1909
#21 0xb77e5fcd in KIO::FileCopyJob::qt_invoke (this=0x8534d40, _id=9, 
    _o=0xbfffe840) at qucom_p.h:312
#22 0xb6b04067 in QObject::activate_signal ()
   from /usr/share/qt3/lib/libqt-mt.so.3
#23 0xb77e300a in KIO::Job::result (this=0x853af08, t0=0x0)
    at jobclasses.moc:162
#24 0xb77c780c in KIO::Job::emitResult (this=0x853af08) at job.cpp:222
#25 0xb77c95ec in KIO::SimpleJob::slotFinished (this=0x853af08) at job.cpp:570
#26 0xb77e3b8d in KIO::SimpleJob::qt_invoke (this=0x853af08, _id=7, 
    _o=0xbfffead0) at jobclasses.moc:417
#27 0xb77e48b3 in KIO::DirectCopyJob::qt_invoke (this=0x853af08, _id=7, 
    _o=0xbfffead0) at jobclasses.moc:822
#28 0xb6b04067 in QObject::activate_signal ()
   from /usr/share/qt3/lib/libqt-mt.so.3
#29 0xb6b03eae in QObject::activate_signal ()
   from /usr/share/qt3/lib/libqt-mt.so.3
#30 0xb77ba61e in KIO::SlaveInterface::finished (this=0x0) at qmetaobject.h:261
#31 0xb77b7428 in KIO::SlaveInterface::dispatch (this=0x8500090, _cmd=104, 
    rawdata=@0xbfffee70) at slaveinterface.cpp:243
#32 0xb77b6510 in KIO::SlaveInterface::dispatch (this=0x8500090)
    at slaveinterface.cpp:173
#33 0xb77b3138 in KIO::Slave::gotInput (this=0x8500090) at slave.cpp:300
#34 0xb77b5a78 in KIO::Slave::qt_invoke (this=0x8500090, _id=4, _o=0xbfffefd0)
    at slave.moc:113
#35 0xb6b04067 in QObject::activate_signal ()
   from /usr/share/qt3/lib/libqt-mt.so.3
#36 0xb6b041be in QObject::activate_signal ()
   from /usr/share/qt3/lib/libqt-mt.so.3
#37 0xb6e1fee0 in QSocketNotifier::activated ()
   from /usr/share/qt3/lib/libqt-mt.so.3
#38 0xb6b1f036 in QSocketNotifier::event ()
   from /usr/share/qt3/lib/libqt-mt.so.3
#39 0xb6aac370 in QApplication::internalNotify ()
   from /usr/share/qt3/lib/libqt-mt.so.3
#40 0xb6aab9d4 in QApplication::notify () from /usr/share/qt3/lib/libqt-mt.so.3
#41 0xb70bc865 in KApplication::notify (this=0xbffff610, receiver=0x84fee30, 
    event=0xbffff370) at kapplication.cpp:550
#42 0xb6a9ca10 in QEventLoop::activateSocketNotifiers ()
   from /usr/share/qt3/lib/libqt-mt.so.3
#43 0xb6a58917 in QEventLoop::processEvents ()
   from /usr/share/qt3/lib/libqt-mt.so.3
#44 0xb6abd74c in QEventLoop::enterLoop ()
   from /usr/share/qt3/lib/libqt-mt.so.3
#45 0xb6abd60e in QEventLoop::exec () from /usr/share/qt3/lib/libqt-mt.so.3
#46 0xb6aac57b in QApplication::exec () from /usr/share/qt3/lib/libqt-mt.so.3
#47 0x0804a3ea in main (argc=0, argv=0x0) at main.cpp:251
Comment 1 Carsten Niehaus 2005-08-11 18:34:00 UTC
Ok, this is the errormessage:

"Error adding image to the host application; error message was: Target album is not in the albums library."

This crash is 100% reproducable, this is backtrace number two:

Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
[Thread debugging using libthread_db enabled]
[New Thread -1237513664 (LWP 9161)]
[KCrash handler]
#4  KProcess::isRunning (this=0x0) at kprocess.cpp:505
#5  0xb481fa2f in KIPIBatchProcessImagesPlugin::RenameImagesDialog::slotResult
    () from /home/carsten/kde35dir/lib/kde3/kipiplugin_batchprocessimages.so
#6  0xb4822674 in KIPIBatchProcessImagesPlugin::RenameImagesDialog::qt_invoke
    () from /home/carsten/kde35dir/lib/kde3/kipiplugin_batchprocessimages.so
#7  0xb6b04067 in QObject::activate_signal ()
   from /usr/share/qt3/lib/libqt-mt.so.3
#8  0xb77e300a in KIO::Job::result (this=0x85333f0, t0=0x0)
    at jobclasses.moc:162
#9  0xb77c780c in KIO::Job::emitResult (this=0x85333f0) at job.cpp:222
#10 0xb77dc61d in KIO::CopyJob::deleteNextDir (this=0x85333f0) at job.cpp:3464
#11 0xb77dc594 in KIO::CopyJob::copyNextFile (this=0x85333f0) at job.cpp:3425
#12 0xb77d9a1e in KIO::CopyJob::slotResultCopyingFiles (this=0x85333f0, 
    job=0x851d2f8) at job.cpp:3094
#13 0xb77ded1e in KIO::CopyJob::slotResult (this=0x85333f0, job=0x853a430)
    at job.cpp:3733
#14 0xb77e7515 in KIO::CopyJob::qt_invoke (this=0x85333f0, _id=8, 
    _o=0xbfffe5a0) at qucom_p.h:312
#15 0xb6b04067 in QObject::activate_signal ()
   from /usr/share/qt3/lib/libqt-mt.so.3
#16 0xb77e300a in KIO::Job::result (this=0x851d2f8, t0=0x0)
    at jobclasses.moc:162
#17 0xb77c780c in KIO::Job::emitResult (this=0x851d2f8) at job.cpp:222
#18 0xb77c74ef in KIO::Job::removeSubjob (this=0x851d2f8, job=0x8538328, 
    emitResultIfLast=true) at job.cpp:184
#19 0xb77c7485 in KIO::Job::removeSubjob (this=0x0, job=0x0) at job.cpp:173
#20 0xb77d205c in KIO::FileCopyJob::slotResult (this=0x851d2f8, job=0x8538328)
    at job.cpp:1909
#21 0xb77e5fcd in KIO::FileCopyJob::qt_invoke (this=0x851d2f8, _id=9, 
    _o=0xbfffe800) at qucom_p.h:312
#22 0xb6b04067 in QObject::activate_signal ()
   from /usr/share/qt3/lib/libqt-mt.so.3
#23 0xb77e300a in KIO::Job::result (this=0x8538328, t0=0x0)
    at jobclasses.moc:162
#24 0xb77c780c in KIO::Job::emitResult (this=0x8538328) at job.cpp:222
#25 0xb77c95ec in KIO::SimpleJob::slotFinished (this=0x8538328) at job.cpp:570
#26 0xb77e3b8d in KIO::SimpleJob::qt_invoke (this=0x8538328, _id=7, 
    _o=0xbfffea90) at jobclasses.moc:417
#27 0xb77e48b3 in KIO::DirectCopyJob::qt_invoke (this=0x8538328, _id=7, 
    _o=0xbfffea90) at jobclasses.moc:822
#28 0xb6b04067 in QObject::activate_signal ()
   from /usr/share/qt3/lib/libqt-mt.so.3
#29 0xb6b03eae in QObject::activate_signal ()
   from /usr/share/qt3/lib/libqt-mt.so.3
#30 0xb77ba61e in KIO::SlaveInterface::finished (this=0x0) at qmetaobject.h:261
#31 0xb77b7428 in KIO::SlaveInterface::dispatch (this=0x8518b08, _cmd=104, 
    rawdata=@0xbfffee30) at slaveinterface.cpp:243
#32 0xb77b6510 in KIO::SlaveInterface::dispatch (this=0x8518b08)
    at slaveinterface.cpp:173
#33 0xb77b3138 in KIO::Slave::gotInput (this=0x8518b08) at slave.cpp:300
#34 0xb77b5a78 in KIO::Slave::qt_invoke (this=0x8518b08, _id=4, _o=0xbfffef90)
    at slave.moc:113
#35 0xb6b04067 in QObject::activate_signal ()
   from /usr/share/qt3/lib/libqt-mt.so.3
#36 0xb6b041be in QObject::activate_signal ()
   from /usr/share/qt3/lib/libqt-mt.so.3
#37 0xb6e1fee0 in QSocketNotifier::activated ()
   from /usr/share/qt3/lib/libqt-mt.so.3
#38 0xb6b1f036 in QSocketNotifier::event ()
   from /usr/share/qt3/lib/libqt-mt.so.3
#39 0xb6aac370 in QApplication::internalNotify ()
   from /usr/share/qt3/lib/libqt-mt.so.3
#40 0xb6aab9d4 in QApplication::notify () from /usr/share/qt3/lib/libqt-mt.so.3
#41 0xb70bc865 in KApplication::notify (this=0xbffff5d0, receiver=0x85033d8, 
    event=0xbffff330) at kapplication.cpp:550
#42 0xb6a9ca10 in QEventLoop::activateSocketNotifiers ()
   from /usr/share/qt3/lib/libqt-mt.so.3
#43 0xb6a58917 in QEventLoop::processEvents ()
   from /usr/share/qt3/lib/libqt-mt.so.3
#44 0xb6abd74c in QEventLoop::enterLoop ()
   from /usr/share/qt3/lib/libqt-mt.so.3
#45 0xb6abd60e in QEventLoop::exec () from /usr/share/qt3/lib/libqt-mt.so.3
#46 0xb6aac57b in QApplication::exec () from /usr/share/qt3/lib/libqt-mt.so.3
#47 0x0804a3ea in main (argc=0, argv=0x0) at main.cpp:251
Comment 2 Tom Albers 2005-08-15 22:17:23 UTC
SVN commit 449513 by toma:

Owen Hirst <n8rider@sbcglobal.net>  has provided a patch for KIPI Rename Images (part of the BatchProcesses Plugin). 

kipi part:
* Complete rewrite
* Use rename instead of copy
* Allow formatting of date string

digikam part:
* fixes the time and date adjustment not working 
* Update database entry when a file is renamed by a KIPI Plugin
* make slideshow available right after digikams start

This fixes the following bugs:
BUGS:110391,110659,110698,110575,99895,104032,105727,110508,104511

great work!



 M  +16 -0     graphics/digikam/digikam/albumdb.cpp  
 M  +8 -0      graphics/digikam/digikam/albumdb.h  
 M  +2 -0      graphics/digikam/digikam/digikamapp.cpp  
 M  +24 -10    graphics/digikam/digikam/kipiinterface.cpp  
 M  +1 -0      graphics/digikam/digikam/kipiinterface.h  
 _M            libs/kipi-plugins/batchprocessimages (directory)  
 M  +3 -2      libs/kipi-plugins/batchprocessimages/Makefile.am  
 M  +22 -1     libs/kipi-plugins/batchprocessimages/batchprocessimagesitem.cpp  
 M  +7 -0      libs/kipi-plugins/batchprocessimages/batchprocessimagesitem.h  
 M  +3 -3      libs/kipi-plugins/batchprocessimages/plugin_batchprocessimages.cpp  
 A             libs/kipi-plugins/batchprocessimages/renameimagesbase.ui  
 M  +45 -663   libs/kipi-plugins/batchprocessimages/renameimagesdialog.cpp  
 M  +44 -79    libs/kipi-plugins/batchprocessimages/renameimagesdialog.h  
 A             libs/kipi-plugins/batchprocessimages/renameimageswidget.cpp   [License: GPL]
 A             libs/kipi-plugins/batchprocessimages/renameimageswidget.h   [License: GPL]