Kdenlive crashed while importing clip (Segmentation fault)

Sorry for interrupting you.

I am using Ubuntu 12.04.1 LTS.

Previously, since there was problem while rendering, I installed the newest versions of Kdenlive, MLT and FFmpeg.
I downloaded them from their official websites.

Then, I opened Kdenlive 0.9.4 and imported a clip, it crashed. The problem still existed if importing audio.

Actually I cannot think of other information that you may want. Ask me if you want. Thank you.

Here is the bug report:

Application: kdenlive (0.9.4)
KDE Platform Version: 4.9.5
Qt Version: 4.8.2
Operating System: Linux 3.2.0-36-generic-pae i686
Distribution: Ubuntu 12.04.1 LTS

-- Information about the crash:

The crash can be reproduced every time.

-- Backtrace:
Application: Kdenlive (kdenlive), signal: Segmentation fault
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0xb4501740 (LWP 7889))]

Thread 4 (Thread 0xb1f59b40 (LWP 7892)):
#0 0xb545ea80 in ?? () from /lib/i386-linux-gnu/libc.so.6
#1 0xb5442602 in poll () from /lib/i386-linux-gnu/libc.so.6
#2 0xb4e12a7b in g_poll () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3 0xb4e050ae in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4 0xb4e0556b in g_main_loop_run () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5 0xb1fb5134 in ?? () from /usr/lib/i386-linux-gnu/gio/modules/libdconfsettings.so
#6 0xb4e286b3 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#7 0xb5c1ad4c in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#8 0xb5450d3e in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 3 (Thread 0xb15c8b40 (LWP 7893)):
#0 0xb2c62d0a in ?? () from /usr/lib/i386-linux-gnu/libgio-2.0.so.0
#1 0xb4e04872 in g_main_context_prepare () from /lib/i386-linux-gnu/libglib-2.0.so.0
#2 0xb4e04faf in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3 0xb4e0556b in g_main_loop_run () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4 0xb2cca1ba in ?? () from /usr/lib/i386-linux-gnu/libgio-2.0.so.0
#5 0xb4e286b3 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#6 0xb5c1ad4c in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#7 0xb5450d3e in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 2 (Thread 0xb0bffb40 (LWP 7911)):
#0 0xb4cd2dcd in clock_gettime () from /lib/i386-linux-gnu/librt.so.1
#1 0xb5d3f3b5 in do_gettime (frac=0xb0bfefb0, sec=0xb0bfefa8) at tools/qelapsedtimer_unix.cpp:123
#2 qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3 0xb5e296f6 in QTimerInfoList::updateCurrentTime (this=0xaccddc4) at kernel/qeventdispatcher_unix.cpp:343
#4 0xb5e29a4a in QTimerInfoList::timerWait (this=0xaccddc4, tm=...) at kernel/qeventdispatcher_unix.cpp:450
#5 0xb5e282f3 in timerSourcePrepareHelper (src=, timeout=0xb0bff0bc) at kernel/qeventdispatcher_glib.cpp:136
#6 0xb5e2838d in timerSourcePrepare (source=0xaccdd90, timeout=) at kernel/qeventdispatcher_glib.cpp:169
#7 0xb4e04872 in g_main_context_prepare () from /lib/i386-linux-gnu/libglib-2.0.so.0
#8 0xb4e04faf in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#9 0xb4e05201 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#10 0xb5e28db7 in QEventDispatcherGlib::processEvents (this=0xab44ac0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#11 0xb5df467d in QEventLoop::processEvents (this=0xb0bff240, flags=...) at kernel/qeventloop.cpp:149
#12 0xb5df4919 in QEventLoop::exec (this=0xb0bff240, flags=...) at kernel/qeventloop.cpp:204
#13 0xb5cdd9ec in QThread::exec (this=0xa7ea9d0) at thread/qthread.cpp:501
#14 0xb5dd1ccd in QInotifyFileSystemWatcherEngine::run (this=0xa7ea9d0) at io/qfilesystemwatcher_inotify.cpp:248
#15 0xb5ce0e80 in QThreadPrivate::start (arg=0xa7ea9d0) at thread/qthread_unix.cpp:307
#16 0xb5c1ad4c in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#17 0xb5450d3e in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 1 (Thread 0xb4501740 (LWP 7889)):
[KCrash Handler]
#7 0x082b1a04 in KdenliveDoc::slotAddClipList (this=0x0, urls=..., data=...) at /home/dasyawn/下載/kdenlive-0.9.4/src/kdenlivedoc.cpp:1227
#8 0x0832f28d in ProjectList::slotAddClip (this=0xa566270, givenList=..., groupName=..., groupId=...) at /home/dasyawn/下載/kdenlive-0.9.4/src/projectlist.cpp:1783
#9 0x083402a5 in ProjectList::qt_static_metacall (_o=, _id=, _a=, _c=) at /home/dasyawn/下載/kdenlive-0.9.4/build/src/projectlist.moc:551
#10 0xb5e0cb81 in QMetaObject::activate (sender=0xa8f6340, m=0x84b2aa0, local_signal_index=1, argv=0xbfeb94e8) at kernel/qobject.cpp:3547
#11 0xb614a90d in QAction::triggered (this=0xa8f6340, _t1=false) at .moc/release-shared/moc_qaction.cpp:277
#12 0xb614abab in QAction::activate (this=0xa8f6340, event=QAction::Trigger) at kernel/qaction.cpp:1257
#13 0xb66579a0 in trigger (this=) at ../../include/QtGui/../../src/gui/kernel/qaction.h:218
#14 QToolButton::nextCheckState (this=0xa55f068) at widgets/qtoolbutton.cpp:1144
#15 0xb657f187 in QAbstractButtonPrivate::click (this=0xa598a60) at widgets/qabstractbutton.cpp:530
#16 0xb657f486 in QAbstractButton::mouseReleaseEvent (this=0xa55f068, e=0xbfeb9be4) at widgets/qabstractbutton.cpp:1123
#17 0xb6657a3d in QToolButton::mouseReleaseEvent (this=0xa55f068, e=0xbfeb9be4) at widgets/qtoolbutton.cpp:718
#18 0xb61abffc in QWidget::event (this=0xa55f068, event=0xbfeb9be4) at kernel/qwidget.cpp:8371
#19 0xb657e729 in QAbstractButton::event (this=0xa55f068, e=0xbfeb9be4) at widgets/qabstractbutton.cpp:1082
#20 0xb665916c in QToolButton::event (this=0xa55f068, event=0xbfeb9be4) at widgets/qtoolbutton.cpp:1160
#21 0xb6151df4 in notify_helper (e=0xbfeb9be4, receiver=0xa55f068, this=0xa213e30) at kernel/qapplication.cpp:4556
#22 QApplicationPrivate::notify_helper (this=0xa213e30, receiver=0xa55f068, e=0xbfeb9be4) at kernel/qapplication.cpp:4528
#23 0xb6157e74 in QApplication::notify (this=0xa213e30, receiver=0xa55f068, e=0xbfeb9be4) at kernel/qapplication.cpp:4099
#24 0xb74c7591 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#25 0xb5df5dde in QCoreApplication::notifyInternal (this=0xbfeba434, receiver=0xa55f068, event=0xbfeb9be4) at kernel/qcoreapplication.cpp:915
#26 0xb6152db5 in sendEvent (event=, receiver=) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#27 QApplicationPrivate::sendMouseEvent (receiver=0xa55f068, event=0xbfeb9be4, alienWidget=0xa55f068, nativeWidget=0xa5630e0, buttonDown=0xb6ae6cf4, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3167
#28 0xb61def94 in QETWidget::translateMouseEvent (this=0xa5630e0, event=0xbfeba09c) at kernel/qapplication_x11.cpp:4617
#29 0xb61ddb2d in QApplication::x11ProcessEvent (this=0xbfeba434, event=0xbfeba09c) at kernel/qapplication_x11.cpp:3732
#30 0xb620ae1c in x11EventSourceDispatch (s=0xa213dc0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#31 0xb4e04d86 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#32 0xb4e05125 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#33 0xb4e05201 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#34 0xb5e28d57 in QEventDispatcherGlib::processEvents (this=0xa1f6b98, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#35 0xb620aa1a in QGuiEventDispatcherGlib::processEvents (this=0xa1f6b98, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#36 0xb5df467d in QEventLoop::processEvents (this=0xbfeba394, flags=...) at kernel/qeventloop.cpp:149
#37 0xb5df4919 in QEventLoop::exec (this=0xbfeba394, flags=...) at kernel/qeventloop.cpp:204
#38 0xb5dfa31a in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#39 0xb614f9c4 in QApplication::exec () at kernel/qapplication.cpp:3817
#40 0x0808a09d in main (argc=138773128, argv=0xa598da0) at /home/dasyawn/下載/kdenlive-0.9.4/src/main.cpp:89


having the same problem on Opensuse 12.1

any ideas how to fix this?

Is this a crash as you load a clip into the project tree ? (Project Tree drop down> Add Clip

If you filter on the http://www.kdenlive.org/mantis/view_all_bug_page.php under crash there are a bunch of resolved defects from Feb 2013 to do with crashes. I don't think any of them are for loading clip into project tree though. But you could try getting the absolute latest kdenlive from sunabs ppa or building it yourself from source using "the build script".

You could also try some of the hints on http://www.kdenlive.org/bug-reports about playing the file you are trying to import using ffmpeg and melt to help narrow down where the problem may be.

This crash happens for me on openSUSE 12.2 because vdpau doesn't work for my graphics card (lspci says NVIDIA Corporation G71 [GeForce 7300 GS]), so I need to call kdenlive like so:

$ MLT_NO_VDPAU=1 kdenlive

to disable vdpau support in melt.