Bug 289006 - Digikam crashed in import dialog when selecting filter on videos
Summary: Digikam crashed in import dialog when selecting filter on videos
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Import-Settings (show other bugs)
Version: 2.1.1
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-14 22:29 UTC by Thibault Godouet
Modified: 2017-08-16 10:56 UTC (History)
2 users (show)

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


Attachments
New crash information added by DrKonqi (8.79 KB, text/plain)
2012-07-08 06:11 UTC, Jim Shipman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thibault Godouet 2011-12-14 22:29:40 UTC
Application: digikam (2.1.1)
KDE Platform Version: 4.7.2 (4.7.2)
Qt Version: 4.7.4
Operating System: Linux 3.0.0-14-generic x86_64
Distribution: Ubuntu 11.10

-- Information about the crash:
- What I was doing when the application crashed:
1) I changed the video import filter to include .MTS files (with the appropriate the MIME type)
2) I started the importation tool, for pictures/videos taken with my Sony DSC-HX5V
3) I selected the filter "videos": Digikam crashed.

This is on Ubuntu 11.10

-- Backtrace:
Application: digiKam (digikam), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fad7f5a8a20 (LWP 3352))]

Thread 8 (Thread 0x7fad5d47b700 (LWP 3354)):
#0  0x00007fad791bb773 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fad72d3ff68 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fad72d40792 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fad68fee516 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007fad72d652b6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fad74c62efc in start_thread (arg=0x7fad5d47b700) at pthread_create.c:304
#6  0x00007fad791c789d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7fad54a91700 (LWP 3355)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fad79f251ab in wait (time=18446744073709551615, this=0x294b980) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x294b828, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00000000005c2e20 in Digikam::ScanController::run (this=0x294b4a0) at /build/buildd/digikam-2.1.1/core/digikam/database/scancontroller.cpp:647
#4  0x00007fad79f24d05 in QThreadPrivate::start (arg=0x294b4a0) at thread/qthread_unix.cpp:331
#5  0x00007fad74c62efc in start_thread (arg=0x7fad54a91700) at pthread_create.c:304
#6  0x00007fad791c789d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7fad4ffff700 (LWP 3356)):
#0  0x00007fad74c65034 in __pthread_mutex_lock (mutex=0x29655e8) at pthread_mutex_lock.c:61
#1  0x00007fad72d3f361 in g_main_context_query () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fad72d3fe6a in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fad72d40429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fad7a036f3e in QEventDispatcherGlib::processEvents (this=0x2965180, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007fad7a00acf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007fad7a00aef7 in QEventLoop::exec (this=0x7fad4fffeb30, flags=...) at kernel/qeventloop.cpp:201
#7  0x00007fad79f2227f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#8  0x00007fad79fedcbf in QInotifyFileSystemWatcherEngine::run (this=0x2964910) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007fad79f24d05 in QThreadPrivate::start (arg=0x2964910) at thread/qthread_unix.cpp:331
#10 0x00007fad74c62efc in start_thread (arg=0x7fad4ffff700) at pthread_create.c:304
#11 0x00007fad791c789d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7fad4f7fe700 (LWP 3358)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fad79f251ab in wait (time=18446744073709551615, this=0x2f96610) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2f96198, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007fad7ce69737 in Digikam::ParkingThread::run (this=0x2f96180) at /build/buildd/digikam-2.1.1/core/libs/threads/threadmanager.cpp:119
#4  0x00007fad79f24d05 in QThreadPrivate::start (arg=0x2f96180) at thread/qthread_unix.cpp:331
#5  0x00007fad74c62efc in start_thread (arg=0x7fad4f7fe700) at pthread_create.c:304
#6  0x00007fad791c789d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fad4d1b0700 (LWP 3359)):
#0  0x00007fad791bb773 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fad72d3ff68 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fad72d40429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fad7a036f3e in QEventDispatcherGlib::processEvents (this=0x28a3670, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007fad7a00acf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fad7a00aef7 in QEventLoop::exec (this=0x7fad4d1afb30, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007fad79f2227f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#7  0x00007fad79fedcbf in QInotifyFileSystemWatcherEngine::run (this=0x28a94c0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007fad79f24d05 in QThreadPrivate::start (arg=0x28a94c0) at thread/qthread_unix.cpp:331
#9  0x00007fad74c62efc in start_thread (arg=0x7fad4d1b0700) at pthread_create.c:304
#10 0x00007fad791c789d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fad37338700 (LWP 3870)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fad79f251ab in wait (time=18446744073709551615, this=0x4fe7c90) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x56fb338, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x0000000000775ef3 in Digikam::CameraController::run (this=0x5622080) at /build/buildd/digikam-2.1.1/core/utilities/cameragui/controller/cameracontroller.cpp:385
#4  0x00007fad79f24d05 in QThreadPrivate::start (arg=0x5622080) at thread/qthread_unix.cpp:331
#5  0x00007fad74c62efc in start_thread (arg=0x7fad37338700) at pthread_create.c:304
#6  0x00007fad791c789d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fad3eef6700 (LWP 3871)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fad79f251ab in wait (time=18446744073709551615, this=0x7fad300073d0) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x7fad30000fa8, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x000000000077cd5b in Digikam::CameraHistoryUpdater::run (this=0x7fad300066b0) at /build/buildd/digikam-2.1.1/core/utilities/cameragui/controller/camerahistoryupdater.cpp:118
#4  0x00007fad79f24d05 in QThreadPrivate::start (arg=0x7fad300066b0) at thread/qthread_unix.cpp:331
#5  0x00007fad74c62efc in start_thread (arg=0x7fad3eef6700) at pthread_create.c:304
#6  0x00007fad791c789d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fad7f5a8a20 (LWP 3352)):
[KCrash Handler]
#6  d_func (this=0x0) at ../../kdecore/services/kmimetype.h:48
#7  KMimeType::patterns (this=0x0) at ../../kdecore/services/kmimetype.cpp:586
#8  0x0000000000753bf1 in Digikam::FilterComboBox::mimeWildcards (this=0x51745d0, mime=...) at /build/buildd/digikam-2.1.1/core/utilities/cameragui/widgets/filtercombo.cpp:245
#9  0x00000000007541ab in Digikam::FilterComboBox::matchesCurrentFilter (this=0x51745d0, item=...) at /build/buildd/digikam-2.1.1/core/utilities/cameragui/widgets/filtercombo.cpp:294
#10 0x000000000075c7e4 in Digikam::CameraUI::slotRefreshIconView (this=0x4467a60, map=<optimized out>) at /build/buildd/digikam-2.1.1/core/utilities/cameragui/main/cameraui.cpp:1148
#11 0x0000000000765af7 in Digikam::CameraUI::qt_metacall (this=0x4467a60, _c=QMetaObject::InvokeMetaMethod, _id=61, _a=0x7fad301b0070) at /build/buildd/digikam-2.1.1/obj-x86_64-linux-gnu/core/utilities/cameragui/cameraui.moc:244
#12 0x00007fad7a022a5e in QObject::event (this=0x4467a60, e=<optimized out>) at kernel/qobject.cpp:1217
#13 0x00007fad7aa5c6eb in QWidget::event (this=0x4467a60, event=0x7fad30227c70) at kernel/qwidget.cpp:8754
#14 0x00007fad7ae1eceb in QMainWindow::event (this=0x4467a60, event=0x7fad30227c70) at widgets/qmainwindow.cpp:1478
#15 0x00007fad7b81c638 in KXmlGuiWindow::event (this=0x4467a60, ev=0x7fad30227c70) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:126
#16 0x00007fad7aa0c424 in notify_helper (e=0x7fad30227c70, receiver=0x4467a60, this=0x2631570) at kernel/qapplication.cpp:4486
#17 QApplicationPrivate::notify_helper (this=0x2631570, receiver=0x4467a60, e=0x7fad30227c70) at kernel/qapplication.cpp:4458
#18 0x00007fad7aa11291 in QApplication::notify (this=0x7fff90d522f0, receiver=0x4467a60, e=0x7fad30227c70) at kernel/qapplication.cpp:4365
#19 0x00007fad7b720126 in KApplication::notify (this=0x7fff90d522f0, receiver=0x4467a60, event=0x7fad30227c70) at ../../kdeui/kernel/kapplication.cpp:311
#20 0x00007fad7a00bafc in QCoreApplication::notifyInternal (this=0x7fff90d522f0, receiver=0x4467a60, event=0x7fad30227c70) at kernel/qcoreapplication.cpp:787
#21 0x00007fad7a00f51f in sendEvent (event=0x7fad30227c70, receiver=0x4467a60) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#22 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x25cfbb0) at kernel/qcoreapplication.cpp:1428
#23 0x00007fad7a036a73 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#24 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:277
#25 0x00007fad72d3fa5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007fad72d40258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007fad72d40429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007fad7a036ed6 in QEventDispatcherGlib::processEvents (this=0x25d1250, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#29 0x00007fad7aab407e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#30 0x00007fad7a00acf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#31 0x00007fad7a00aef7 in QEventLoop::exec (this=0x7fff90d52170, flags=...) at kernel/qeventloop.cpp:201
#32 0x00007fad7a00f789 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#33 0x00000000004893fd in main (argc=1, argv=<optimized out>) at /build/buildd/digikam-2.1.1/core/digikam/main/main.cpp:232

Reported using DrKonqi
Comment 1 caulier.gilles 2011-12-14 22:34:13 UTC
Sound like a crash in KDELibs about typemime management. Not reproducible here.

Gilles Caulier
Comment 2 caulier.gilles 2011-12-18 13:54:36 UTC
Thibault,

Can you reproduce the crash with last 2.4 ?

Gilles Caulier
Comment 3 Thibault Godouet 2011-12-18 23:00:47 UTC
Hi Gilles,

As far as I know my distribution (ubuntu 11.10) doesn't have a package for Digikam 2.4.
Compiling it myself will probably be tricky, especially as I would expect my distribution not to have the right KDE library versions.
Do you have any suggestion as to how I can test this with digikam 2.4 easily on my distribution?

Regards,
Thibault.
Comment 4 Thibault Godouet 2011-12-21 09:16:29 UTC
Hi,

I ran a nightly build of the ubuntu 12.04 live CD, and installed digikam 2.4 in there to test: it doesn't crash.
However I can reproduce the crash with my digikam 2.1.1. If you can't reproduce it then it may be something on my SD card that triggers the crash. It's a big one (16GB) with personal pictures so I can't send it to you, but please let me know if I can do anything else to help you get all the information you need to locate and fix this bug.

Thanks,
Thibault.
Comment 5 caulier.gilles 2011-12-21 09:34:31 UTC
Thanks for the feedback. Crash have been fixed with 2.2.0 release.

Gilles Caulier
Comment 6 Jim Shipman 2012-07-08 06:11:49 UTC
Created attachment 72360 [details]
New crash information added by DrKonqi

digikam (2.6.0) on KDE Platform 4.8.4 (4.8.4) using Qt 4.8.2

- What I was doing when the application crashed:
1) USB camera connected.
2) Import tool up and showing thumbnails (except no thumbnails for mp4 videos).
3) selected JPEG - worked Ok
4) selected Video files - Crash!!!

-- Backtrace (Reduced):
#7  KMimeType::patterns (this=0x0) at /usr/src/debug/kdelibs-4.8.4/kdecore/services/kmimetype.cpp:586
#8  0x0000000000757db6 in Digikam::FilterComboBox::mimeWildcards (this=this@entry=0x663fd90, mime=...) at /usr/src/debug/digikam-2.6.0/core/utilities/cameragui/widgets/filtercombo.cpp:246
#9  0x000000000075832b in Digikam::FilterComboBox::matchesCurrentFilter (this=0x663fd90, item=...) at /usr/src/debug/digikam-2.6.0/core/utilities/cameragui/widgets/filtercombo.cpp:296
#10 0x0000000000760fa9 in Digikam::CameraUI::slotRefreshIconView (this=0x36b1940, map=...) at /usr/src/debug/digikam-2.6.0/core/utilities/cameragui/main/cameraui.cpp:1150
#11 0x000000339798acee in QObject::event (this=0x36b1940, e=<optimized out>) at kernel/qobject.cpp:1195
Comment 7 Marcel Wiesweg 2012-07-21 12:52:21 UTC
Git commit 7bd53c6f51ef0a68ebac6e6d55b4dcb788aa5cc0 by Marcel Wiesweg.
Committed on 21/07/2012 at 14:42.
Pushed by mwiesweg into branch 'master'.

The retrieved KMimeType::Ptr may be null if none found, check it.
FIXED-IN: 2.8.0

M  +2    -2    NEWS
M  +4    -0    utilities/cameragui/widgets/filtercombo.cpp

http://commits.kde.org/digikam/7bd53c6f51ef0a68ebac6e6d55b4dcb788aa5cc0