Bug 336208

Summary: Stiching panorama
Product: [Applications] digikam Reporter: Michel Bovey <boveym>
Component: Database-SqliteAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles, luneandmer
Priority: NOR Keywords: drkonqi
Version: 3.5.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 7.5.0
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Michel Bovey 2014-06-14 10:47:21 UTC
Application: digikam (3.5.0)
KDE Platform Version: 4.13.0
Qt Version: 4.8.6
Operating System: Linux 3.13.0-27-generic x86_64
Distribution: Ubuntu 14.04 LTS

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

I was Stiching 2 pictures into panorama, using the kipi plugin.

The crash can be reproduced sometimes.

-- Backtrace:
Application: digiKam (digikam), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f9a77b59ac0 (LWP 22284))]

Thread 8 (Thread 0x7f9a5321c700 (LWP 22285)):
#0  0x00007f9a71570fbd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f9a57dc7248 in ?? () from /lib/x86_64-linux-gnu/libusb-1.0.so.0
#2  0x00007f9a6c800182 in start_thread (arg=0x7f9a5321c700) at pthread_create.c:312
#3  0x00007f9a7157e30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 7 (Thread 0x7f9a4cb0c700 (LWP 22286)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f9a7235f816 in wait (time=18446744073709551615, this=0x2798f30) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x2798e40, mutex=mutex@entry=0x2798e38, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00000000005d5ede in Digikam::ScanController::run (this=0x2798bb0) at /build/buildd/digikam-3.5.0/core/digikam/database/scancontroller.cpp:725
#4  0x00007f9a7235f32f in QThreadPrivate::start (arg=0x2798bb0) at thread/qthread_unix.cpp:349
#5  0x00007f9a6c800182 in start_thread (arg=0x7f9a4cb0c700) at pthread_create.c:312
#6  0x00007f9a7157e30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 6 (Thread 0x7f9a47fff700 (LWP 22287)):
#0  0x00007f9a71570fbd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f9a6a027fe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9a6a0280ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9a7248e7be in QEventDispatcherGlib::processEvents (this=0x7f9a400008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#4  0x00007f9a724600af in QEventLoop::processEvents (this=this@entry=0x7f9a47ffeae0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f9a724603a5 in QEventLoop::exec (this=this@entry=0x7f9a47ffeae0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f9a7235cc5f in QThread::exec (this=this@entry=0x2799ca0) at thread/qthread.cpp:537
#7  0x00007f9a72441823 in QInotifyFileSystemWatcherEngine::run (this=0x2799ca0) at io/qfilesystemwatcher_inotify.cpp:265
#8  0x00007f9a7235f32f in QThreadPrivate::start (arg=0x2799ca0) at thread/qthread_unix.cpp:349
#9  0x00007f9a6c800182 in start_thread (arg=0x7f9a47fff700) at pthread_create.c:312
#10 0x00007f9a7157e30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 5 (Thread 0x7f9a477fe700 (LWP 22289)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f9a7235f816 in wait (time=18446744073709551615, this=0x2a47f30) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x292b650, mutex=mutex@entry=0x292b648, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f9a751d879a in Digikam::ParkingThread::run (this=0x292b630) at /build/buildd/digikam-3.5.0/core/libs/threads/threadmanager.cpp:119
#4  0x00007f9a7235f32f in QThreadPrivate::start (arg=0x292b630) at thread/qthread_unix.cpp:349
#5  0x00007f9a6c800182 in start_thread (arg=0x7f9a477fe700) at pthread_create.c:312
#6  0x00007f9a7157e30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7f999ba0e700 (LWP 22612)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f9a7235f816 in wait (time=18446744073709551615, this=0x68aaa40) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x71eb090, mutex=mutex@entry=0x71eb088, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f9a143acc3d in KIPIPlugins::KPRawThumbThread::run (this=0x71eb0b0) at /build/buildd/digikam-3.5.0/extra/kipi-plugins/common/libkipiplugins/tools/kprawthumbthread.cpp:108
#4  0x00007f9a7235f32f in QThreadPrivate::start (arg=0x71eb0b0) at thread/qthread_unix.cpp:349
#5  0x00007f9a6c800182 in start_thread (arg=0x7f999ba0e700) at pthread_create.c:312
#6  0x00007f9a7157e30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7f999a7c2700 (LWP 22613)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f9a7235f816 in wait (time=18446744073709551615, this=0x71f7510) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x68bea80, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f9a75622651 in KDcrawIface::RActionThreadBase::run() () from /usr/lib/libkdcraw.so.23
#4  0x00007f9a7235f32f in QThreadPrivate::start (arg=0x7221140) at thread/qthread_unix.cpp:349
#5  0x00007f9a6c800182 in start_thread (arg=0x7f999a7c2700) at pthread_create.c:312
#6  0x00007f9a7157e30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f999afc3700 (LWP 22614)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f9a7235f816 in wait (time=18446744073709551615, this=0x73df450) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x2897948, mutex=0x7184640, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f9a761c5e6c in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x2897920, th=0x7f9984020010) at ../../../threadweaver/Weaver/WeaverImpl.cpp:370
#4  0x00007f9a761c8903 in ThreadWeaver::WorkingHardState::applyForWork (this=0x71bbc00, th=0x7f9984020010, previous=0x7232ce0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:68
#5  0x00007f9a761c761f in ThreadWeaver::Thread::run (this=0x7f9984020010) at ../../../threadweaver/Weaver/Thread.cpp:98
#6  0x00007f9a7235f32f in QThreadPrivate::start (arg=0x7f9984020010) at thread/qthread_unix.cpp:349
#7  0x00007f9a6c800182 in start_thread (arg=0x7f999afc3700) at pthread_create.c:312
#8  0x00007f9a7157e30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f9a77b59ac0 (LWP 22284)):
[KCrash Handler]
#6  0x0000000000200270 in ?? ()
#7  0x00007f9a5c0c8dac in sqlite3MemCompare (pMem1=pMem1@entry=0x7fffc2c358e0, pMem2=<optimized out>, pColl=0x72ee558) at sqlite3.c:60484
#8  0x00007f9a5c0c8f63 in sqlite3VdbeRecordCompare (nKey1=18, pKey1=0x7f9a481b8123, pPKey2=pPKey2@entry=0x7fffc2c35be0) at sqlite3.c:64162
#9  0x00007f9a5c0dd579 in sqlite3BtreeMovetoUnpacked (pCur=0x64a4a10, pIdxKey=0x7fffc2c35be0, intKey=0, biasRight=<optimized out>, pRes=0x7fffc2c35bd0) at sqlite3.c:55077
#10 0x00007f9a5c1059c5 in sqlite3VdbeExec (p=p@entry=0x2f66d88) at sqlite3.c:70168
#11 0x00007f9a5c10ded7 in sqlite3Step (p=0x2f66d88) at sqlite3.c:64828
#12 sqlite3_step (pStmt=<optimized out>) at sqlite3.c:64894
#13 0x00007f9a4c10711c in QSQLiteResultPrivate::fetchNext (this=this@entry=0x6154110, values=..., idx=idx@entry=0, initialFetch=initialFetch@entry=true) at ../../../sql/drivers/sqlite/qsql_sqlite.cpp:235
#14 0x00007f9a4c107e48 in QSQLiteResult::exec (this=0x2bc63c0) at ../../../sql/drivers/sqlite/qsql_sqlite.cpp:447
#15 0x00007f9a77784b7d in QSqlQuery::exec (this=this@entry=0x7fffc2c36118) at kernel/qsqlquery.cpp:949
#16 0x00007f9a75191a26 in Digikam::DatabaseCoreBackend::exec (this=0x2784540, query=...) at /build/buildd/digikam-3.5.0/core/libs/database/core/databasecorebackend.cpp:1414
#17 0x00007f9a75191aac in Digikam::DatabaseCoreBackend::execQuery (this=this@entry=0x2784540, query=..., boundValue1=...) at /build/buildd/digikam-3.5.0/core/libs/database/core/databasecorebackend.cpp:1056
#18 0x00007f9a75192b50 in Digikam::DatabaseCoreBackend::execQuery (this=this@entry=0x2784540, sql=..., boundValue1=...) at /build/buildd/digikam-3.5.0/core/libs/database/core/databasecorebackend.cpp:1005
#19 0x00007f9a75192b99 in Digikam::DatabaseCoreBackend::execSql (this=0x2784540, sql=..., boundValue1=..., values=values@entry=0x7fffc2c36160, lastInsertId=lastInsertId@entry=0x0) at /build/buildd/digikam-3.5.0/core/libs/database/core/databasecorebackend.cpp:902
#20 0x00007f9a74b5642e in Digikam::AlbumDB::getSetting (this=this@entry=0x27843a0, keyword=...) at /build/buildd/digikam-3.5.0/core/libs/database/albumdb.cpp:972
#21 0x00007f9a74b56d5c in Digikam::AlbumDB::getFilterSettings (this=0x27843a0, imageFilter=imageFilter@entry=0x7fffc2c363a0, videoFilter=videoFilter@entry=0x0, audioFilter=audioFilter@entry=0x0) at /build/buildd/digikam-3.5.0/core/libs/database/albumdb.cpp:1017
#22 0x000000000063a2c0 in Digikam::AlbumSettings::getRawFileFilter (this=this@entry=0x28a2100) at /build/buildd/digikam-3.5.0/core/digikam/utils/albumsettings.cpp:958
#23 0x0000000000533f42 in Digikam::KipiInterface::hostSetting (this=this@entry=0x2b81bb0, settingName=...) at /build/buildd/digikam-3.5.0/core/utilities/kipiiface/kipiinterface.cpp:363
#24 0x00000000005339f4 in Digikam::KipiInterface::currentAlbum (this=0x2b81bb0) at /build/buildd/digikam-3.5.0/core/utilities/kipiiface/kipiinterface.cpp:110
#25 0x00007f99a545cd94 in KIPIAdvancedSlideshowPlugin::Plugin_AdvancedSlideshow::slotAlbumChanged (this=0x5720ea0, anyAlbum=<optimized out>) at /build/buildd/digikam-3.5.0/extra/kipi-plugins/advancedslideshow/plugin/plugin_advancedslideshow.cpp:175
#26 0x00007f9a7247587a in QMetaObject::activate (sender=0x2b81bb0, m=m@entry=0x7f9a75ce8e60 <KIPI::Interface::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7fffc2c366f0) at kernel/qobject.cpp:3539
#27 0x00007f9a75ad54c2 in KIPI::Interface::currentAlbumChanged (this=<optimized out>, _t1=true) at ./interface.moc:128
#28 0x00007f9a7247587a in QMetaObject::activate (sender=0x286b650, m=m@entry=0x844e60 <Digikam::AlbumManager::staticMetaObject>, local_signal_index=local_signal_index@entry=6, argv=argv@entry=0x7fffc2c36820) at kernel/qobject.cpp:3539
#29 0x00000000005a2e04 in signalAlbumCurrentChanged (_t1=0x4153380, this=<optimized out>) at /build/buildd/digikam-3.5.0/obj-x86_64-linux-gnu/core/digikam/albummanager.moc:267
#30 Digikam::AlbumManager::setCurrentAlbum (this=<optimized out>, album=album@entry=0x4153380) at /build/buildd/digikam-3.5.0/core/digikam/album/albummanager.cpp:1846
#31 0x00000000005c81cd in Digikam::AbstractAlbumTreeView::mousePressEvent (this=0x32bbb50, e=0x7fffc2c37090) at /build/buildd/digikam-3.5.0/core/digikam/album/albumtreeview.cpp:538
#32 0x00007f9a72ea337b in QWidget::event (this=this@entry=0x32bbb50, event=event@entry=0x7fffc2c37090) at kernel/qwidget.cpp:8372
#33 0x00007f9a73244fce in QFrame::event (this=0x32bbb50, e=0x7fffc2c37090) at widgets/qframe.cpp:557
#34 0x00007f9a733545b3 in QAbstractItemView::viewportEvent (this=this@entry=0x32bbb50, event=event@entry=0x7fffc2c37090) at itemviews/qabstractitemview.cpp:1644
#35 0x00007f9a73393190 in QTreeView::viewportEvent (this=this@entry=0x32bbb50, event=0x7fffc2c37090) at itemviews/qtreeview.cpp:1252
#36 0x00000000005c83d5 in Digikam::AbstractAlbumTreeView::viewportEvent (this=this@entry=0x32bbb50, event=<optimized out>) at /build/buildd/digikam-3.5.0/core/digikam/album/albumtreeview.cpp:683
#37 0x00000000005c05c0 in Digikam::AlbumSelectionTreeView::viewportEvent (this=0x32bbb50, event=<optimized out>) at /build/buildd/digikam-3.5.0/core/digikam/album/albumselectiontreeview.cpp:233
#38 0x00007f9a72461646 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=this@entry=0x26fe8a0, receiver=receiver@entry=0x32b8b50, event=event@entry=0x7fffc2c37090) at kernel/qcoreapplication.cpp:1063
#39 0x00007f9a72e53e0c in QApplicationPrivate::notify_helper (this=this@entry=0x26fe8a0, receiver=receiver@entry=0x32b8b50, e=e@entry=0x7fffc2c37090) at kernel/qapplication.cpp:4563
#40 0x00007f9a72e5a5dd in QApplication::notify (this=this@entry=0x7fffc2c37d00, receiver=receiver@entry=0x32b8b50, e=e@entry=0x7fffc2c37090) at kernel/qapplication.cpp:4110
#41 0x00007f9a73b5ebaa in KApplication::notify (this=0x7fffc2c37d00, receiver=0x32b8b50, event=0x7fffc2c37090) at ../../kdeui/kernel/kapplication.cpp:311
#42 0x00007f9a724614dd in QCoreApplication::notifyInternal (this=0x7fffc2c37d00, receiver=receiver@entry=0x32b8b50, event=event@entry=0x7fffc2c37090) at kernel/qcoreapplication.cpp:953
#43 0x00007f9a72e59d93 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#44 QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x32b8b50, event=event@entry=0x7fffc2c37090, alienWidget=alienWidget@entry=0x32b8b50, nativeWidget=nativeWidget@entry=0x2ade290, buttonDown=buttonDown@entry=0x7f9a73939318 <qt_button_down>, lastMouseReceiver=..., spontaneous=spontaneous@entry=true) at kernel/qapplication.cpp:3178
#45 0x00007f9a72ece9cb in QETWidget::translateMouseEvent (this=this@entry=0x2ade290, event=event@entry=0x7fffc2c37410) at kernel/qapplication_x11.cpp:4634
#46 0x00007f9a72ece269 in QApplication::x11ProcessEvent (this=0x7fffc2c37d00, event=event@entry=0x7fffc2c37410) at kernel/qapplication_x11.cpp:3627
#47 0x00007f9a72ef5b02 in x11EventSourceDispatch (s=0x26fca90, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#48 0x00007f9a6a027e04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#49 0x00007f9a6a028048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#50 0x00007f9a6a0280ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#51 0x00007f9a7248e7a1 in QEventDispatcherGlib::processEvents (this=0x26fd9c0, flags=...) at kernel/qeventdispatcher_glib.cpp:434
#52 0x00007f9a72ef5bb6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#53 0x00007f9a724600af in QEventLoop::processEvents (this=this@entry=0x7fffc2c377e0, flags=...) at kernel/qeventloop.cpp:149
#54 0x00007f9a724603a5 in QEventLoop::exec (this=this@entry=0x7fffc2c377e0, flags=...) at kernel/qeventloop.cpp:204
#55 0x00007f9a72465b79 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#56 0x00007f9a72e5237c in QApplication::exec () at kernel/qapplication.cpp:3828
#57 0x0000000000492023 in main (argc=<optimized out>, argv=<optimized out>) at /build/buildd/digikam-3.5.0/core/digikam/main/main.cpp:235

Possible duplicates by query: bug 336005, bug 335847, bug 335685, bug 335684, bug 335667.

Reported using DrKonqi
Comment 1 caulier.gilles 2014-06-14 10:52:01 UTC

*** This bug has been marked as a duplicate of bug 329697 ***
Comment 2 luneandmer 2014-07-03 04:55:42 UTC
Created attachment 87525 [details]
New crash information added by DrKonqi

digikam (4.0.0) on KDE Platform 4.13.1 using Qt 4.8.6

- What I was doing when the application crashed:

Stiching image in panorama makes digikam crashes.

-- Backtrace (Reduced):
#7  0x00007f2b11a2de85 in sqlite3MemCompare (pMem1=pMem1@entry=0x7fffffd7cac0, pMem2=0x4c030b8, pColl=0x374beb8) at sqlite3.c:60470
#8  0x00007f2b11a2df63 in sqlite3VdbeRecordCompare (nKey1=18, pKey1=0x7f2afc05477e, pPKey2=pPKey2@entry=0x7fffffd7cdc0) at sqlite3.c:64162
#9  0x00007f2b11a42579 in sqlite3BtreeMovetoUnpacked (pCur=0x6b75650, pIdxKey=0x7fffffd7cdc0, intKey=0, biasRight=<optimized out>, pRes=0x7fffffd7cdb0) at sqlite3.c:55077
#10 0x00007f2b11a6a9c5 in sqlite3VdbeExec (p=p@entry=0x6bbc8c8) at sqlite3.c:70168
#11 0x00007f2b11a72ed7 in sqlite3Step (p=0x6bbc8c8) at sqlite3.c:64828
Comment 3 caulier.gilles 2021-12-17 11:51:01 UTC
Fixed with #329697