Bug 339348 - crashes when hugin creates (or deletes) temporary images in one of its album folders
Summary: crashes when hugin creates (or deletes) temporary images in one of its album ...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-Panorama (show other bugs)
Version: 4.3.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-24 06:30 UTC by b3nmore
Modified: 2021-04-04 09:44 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description b3nmore 2014-09-24 06:30:36 UTC
Application: digikam (4.3.0)
KDE Platform Version: 4.13.3
Qt Version: 4.8.6
Operating System: Linux 3.13.0-35-generic x86_64
Distribution: Ubuntu 14.04.1 LTS

-- Information about the crash:
- What I was doing when the application crashed:

Digikam was open in the background and hugin was processing some images in a folder, which is part of digikams local collections. hugin creates temporary images (irc tif) and deletes them after having finished stitching them together. As far as I can tell, digikam crashes either on creation or deletion of those temporary files.

The crash can be reproduced every time.

-- Backtrace:
Application: digiKam (digikam), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
[Current thread is 1 (Thread 0x7f82c2cc3ac0 (LWP 15749))]

Thread 6 (Thread 0x7f829b924700 (LWP 15751)):
#0  0x00007f82bb860c6d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f82a0e9d248 in ?? () from /lib/x86_64-linux-gnu/libusb-1.0.so.0
#2  0x00007f82b7685182 in start_thread (arg=0x7f829b924700) at pthread_create.c:312
#3  0x00007f82bb86dfbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 5 (Thread 0x7f82948c4700 (LWP 15752)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f82bc64f816 in wait (time=18446744073709551615, this=0x196bc30) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x196bb40, mutex=mutex@entry=0x196bb38, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00000000005f565e in Digikam::ScanController::run (this=0x196b8b0) at /build/buildd/digikam-4.3.0/core/digikam/database/scancontroller.cpp:725
#4  0x00007f82bc64f32f in QThreadPrivate::start (arg=0x196b8b0) at thread/qthread_unix.cpp:349
#5  0x00007f82b7685182 in start_thread (arg=0x7f82948c4700) at pthread_create.c:312
#6  0x00007f82bb86dfbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7f828ffff700 (LWP 15753)):
#0  0x00007fff1ddfea1f in ?? ()
#1  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f828f7fe700 (LWP 15755)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f82bc64f816 in wait (time=18446744073709551615, this=0x1c418f0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x1ce3740, mutex=mutex@entry=0x1ce3738, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f82c03381ba in Digikam::ParkingThread::run (this=0x1ce3720) at /build/buildd/digikam-4.3.0/core/libs/threads/threadmanager.cpp:119
#4  0x00007f82bc64f32f in QThreadPrivate::start (arg=0x1ce3720) at thread/qthread_unix.cpp:349
#5  0x00007f82b7685182 in start_thread (arg=0x7f828f7fe700) at pthread_create.c:312
#6  0x00007f82bb86dfbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f8279b63700 (LWP 15765)):
[KCrash Handler]
#6  0x00007f82b87f90e2 in Exiv2::PreviewManager::getPreviewImage(Exiv2::PreviewProperties const&) const () from /usr/lib/libexiv2.so.12
#7  0x00007f82c09e0452 in KExiv2Iface::KExiv2Previews::data (this=this@entry=0x7f8279b62770, index=index@entry=0) at ../../libkexiv2/kexiv2previews.cpp:162
#8  0x00007f82c09e06ab in KExiv2Iface::KExiv2Previews::image (this=this@entry=0x7f8279b62770, index=index@entry=0) at ../../libkexiv2/kexiv2previews.cpp:174
#9  0x00007f82c0315fdb in Digikam::ThumbnailCreator::createThumbnail (this=this@entry=0x270cbc0, info=..., detailRect=...) at /build/buildd/digikam-4.3.0/core/libs/threadimageio/thumbnailcreator.cpp:528
#10 0x00007f82c0318c76 in Digikam::ThumbnailCreator::load (this=0x270cbc0, path=..., rect=..., pregenerate=pregenerate@entry=false) at /build/buildd/digikam-4.3.0/core/libs/threadimageio/thumbnailcreator.cpp:261
#11 0x00007f82c0319ac2 in Digikam::ThumbnailCreator::load (this=<optimized out>, path=...) at /build/buildd/digikam-4.3.0/core/libs/threadimageio/thumbnailcreator.cpp:200
#12 0x00007f82c0327fe7 in Digikam::ThumbnailLoadingTask::execute (this=0x41b1e60) at /build/buildd/digikam-4.3.0/core/libs/threadimageio/thumbnailtask.cpp:172
#13 0x00007f82c03001a6 in Digikam::LoadSaveThread::run (this=0x270cd40) at /build/buildd/digikam-4.3.0/core/libs/threadimageio/loadsavethread.cpp:136
#14 0x00007f82c0339ffe in Digikam::DynamicThread::DynamicThreadPriv::run (this=0x270ce40) at /build/buildd/digikam-4.3.0/core/libs/threads/dynamicthread.cpp:186
#15 0x00007f82bc642fee in QThreadPoolThread::run (this=0x300a2b0) at concurrent/qthreadpool.cpp:108
#16 0x00007f82bc64f32f in QThreadPrivate::start (arg=0x300a2b0) at thread/qthread_unix.cpp:349
#17 0x00007f82b7685182 in start_thread (arg=0x7f8279b63700) at pthread_create.c:312
#18 0x00007f82bb86dfbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f82c2cc3ac0 (LWP 15749)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f82bc64f816 in wait (time=18446744073709551615, this=0x270cec0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x270ce70, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f82c0339668 in Digikam::DynamicThread::wait (this=this@entry=0x270cd40, locker=...) at /build/buildd/digikam-4.3.0/core/libs/threads/dynamicthread.cpp:351
#4  0x00007f82c03396e4 in Digikam::DynamicThread::shutDown (this=this@entry=0x270cd40) at /build/buildd/digikam-4.3.0/core/libs/threads/dynamicthread.cpp:222
#5  0x00007f82c03037b1 in Digikam::ManagedLoadSaveThread::shutDown (this=this@entry=0x270cd40) at /build/buildd/digikam-4.3.0/core/libs/threadimageio/managedloadsavethread.cpp:94
#6  0x00007f82c031bbbf in Digikam::ThumbnailLoadThread::~ThumbnailLoadThread (this=0x270cd40, __in_chrg=<optimized out>) at /build/buildd/digikam-4.3.0/core/libs/threadimageio/thumbnailloadthread.cpp:177
#7  0x00007f82c031bcf9 in Digikam::ThumbnailLoadThread::~ThumbnailLoadThread (this=0x270cd40, __in_chrg=<optimized out>) at /build/buildd/digikam-4.3.0/core/libs/threadimageio/thumbnailloadthread.cpp:180
#8  0x00007f82bb7af149 in __run_exit_handlers (status=1, listp=0x7f82bbb326c8 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true) at exit.c:82
#9  0x00007f82bb7af195 in __GI_exit (status=<optimized out>) at exit.c:104
#10 0x00007f82a851d224 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#11 0x00007f82bde4d8d0 in KApplication::xioErrhandler (this=0x7fff1dcb58a0, dpy=0x16f8a40) at ../../kdeui/kernel/kapplication.cpp:419
#12 0x00007f82b9d655ee in _XIOError (dpy=dpy@entry=0x16f8a40) at ../../src/XlibInt.c:1498
#13 0x00007f82b9d62fed in _XEventsQueued (dpy=dpy@entry=0x16f8a40, mode=mode@entry=2) at ../../src/xcb_io.c:366
#14 0x00007f82b9d550db in XEventsQueued (dpy=0x16f8a40, mode=2) at ../../src/Pending.c:43
#15 0x00007f82bd1e562c in x11EventSourceCheck (s=0x16c5800) at kernel/qguieventdispatcher_glib.cpp:85
#16 0x00007f82b374fa61 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#17 0x00007f82b374ff7b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007f82b37500ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007f82bc77e7a1 in QEventDispatcherGlib::processEvents (this=0x16c2fb0, flags=...) at kernel/qeventdispatcher_glib.cpp:434
#20 0x00007f82bd1e5bb6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#21 0x00007f82bc7500af in QEventLoop::processEvents (this=this@entry=0x7fff1dcb5380, flags=...) at kernel/qeventloop.cpp:149
#22 0x00007f82bc7503a5 in QEventLoop::exec (this=this@entry=0x7fff1dcb5380, flags=...) at kernel/qeventloop.cpp:204
#23 0x00007f82bc755b79 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#24 0x00007f82bd14237c in QApplication::exec () at kernel/qapplication.cpp:3828
#25 0x00000000004963b0 in main (argc=<optimized out>, argv=<optimized out>) at /build/buildd/digikam-4.3.0/core/digikam/main/main.cpp:236

Possible duplicates by query: bug 339325, bug 339269, bug 339217, bug 339088.

Report to https://bugs.kde.org/

Reproducible: Always
Comment 1 caulier.gilles 2014-09-24 07:04:14 UTC

*** This bug has been marked as a duplicate of bug 339144 ***
Comment 2 caulier.gilles 2021-04-04 09:44:57 UTC
Fixed with #339144