Kdenlive   bug tracker Home page

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002296KdenliveFile Loadingpublic2011-08-27 16:212011-11-01 18:56
Reportermcfrisk 
Assigned Toddennedy 
PrioritynormalSeveritycrashReproducibilityalways
StatusclosedResolutionfixed 
Platform32 bit intel and alikeOSDebian LinuxOS Version4.0
Product Version 
Target VersionFixed in Version0.8.2 
Summary0002296: crash when adding clips
DescriptionWhen adding a bunch of clips to a project, kdenlive always crashes.
Additional InformationApplication: Kdenlive (kdenlive), signal: Segmentation fault
[Current thread is 1 (Thread 0xb45f3940 (LWP 18831))]

Thread 7 (Thread 0xb4259b70 (LWP 18832)):
#0 __libc_enable_asynccancel () at ../nptl/cancellation.c:44
#1 0xb549ef70 in *__GI___poll (fds=0x85e7b38, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:85
0000002 0xb51eff5b in g_poll () from /lib/libglib-2.0.so.0
0000003 0xb51df96f in ?? () from /lib/libglib-2.0.so.0
0000004 0xb51e00f3 in g_main_loop_run () from /lib/libglib-2.0.so.0
0000005 0xb4396274 in ?? () from /usr/lib/libgio-2.0.so.0
0000006 0xb5208b6f in ?? () from /lib/libglib-2.0.so.0
0000007 0xb6c40c39 in start_thread (arg=0xb4259b70) at pthread_create.c:304
0000008 0xb54ac96e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 6 (Thread 0xac7bdb70 (LWP 18837)):
#0 0xb7586fcb in ?? () from /usr/lib/libQtCore.so.4
#1 0xb7587041 in ?? () from /usr/lib/libQtCore.so.4
0000002 0xb7585883 in ?? () from /usr/lib/libQtCore.so.4
0000003 0xb758591d in ?? () from /usr/lib/libQtCore.so.4
0000004 0xb51de74e in g_main_context_prepare () from /lib/libglib-2.0.so.0
0000005 0xb51df613 in ?? () from /lib/libglib-2.0.so.0
0000006 0xb51dfce4 in g_main_context_iteration () from /lib/libglib-2.0.so.0
0000007 0xb7586357 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
0000008 0xb75570ed in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
0000009 0xb7557331 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
0000010 0xb745a69b in QThread::exec() () from /usr/lib/libQtCore.so.4
0000011 0xb7537c2d in ?? () from /usr/lib/libQtCore.so.4
0000012 0xb745d503 in ?? () from /usr/lib/libQtCore.so.4
0000013 0xb6c40c39 in start_thread (arg=0xac7bdb70) at pthread_create.c:304
0000014 0xb54ac96e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 5 (Thread 0x8a2feb70 (LWP 19702)):
#0 0xb77f9424 in __kernel_vsyscall ()
#1 0xb6c45703 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:236
0000002 0xb745d99e in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
0000003 0xb7450884 in ?? () from /usr/lib/libQtCore.so.4
0000004 0xb745d503 in ?? () from /usr/lib/libQtCore.so.4
0000005 0xb6c40c39 in start_thread (arg=0x8a2feb70) at pthread_create.c:304
0000006 0xb54ac96e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 4 (Thread 0xa2e88b70 (LWP 19703)):
#0 0xb77f9424 in __kernel_vsyscall ()
#1 0xb6c47f02 in __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/lowlevellock.S:142
0000002 0xb6c4339b in _L_lock_728 () from /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
0000003 0xb6c431c1 in __pthread_mutex_lock (mutex=0xb072c00c) at pthread_mutex_lock.c:61
0000004 0xb071cb9d in avformat_lock () from /usr/lib/mlt/libmltavformat.so
0000005 0xb071eb13 in ?? () from /usr/lib/mlt/libmltavformat.so
0000006 0xb072205f in ?? () from /usr/lib/mlt/libmltavformat.so
0000007 0xb77c1a27 in ?? () from /usr/lib/libmlt.so.4
0000008 0xb77bf8b0 in mlt_service_get_frame () from /usr/lib/libmlt.so.4
0000009 0xb77a4233 in Mlt::Service::get_frame(int) () from /usr/lib/libmlt++.so.3
0000010 0x081bbe3a in KThumb::slotCreateAudioThumbs (this=0xc106080) at /home/mcfrisk/src/kdenlive-git/src/kthumb.cpp:408
0000011 0x080e6cdc in run (this=0x97135bf8) at /usr/include/qt4/QtCore/qtconcurrentrunbase.h:120
0000012 QtConcurrent::RunFunctionTask<void>::run (this=0x97135bf8) at /usr/include/qt4/QtCore/qtconcurrentrunbase.h:114
0000013 0xb74507f1 in ?? () from /usr/lib/libQtCore.so.4
0000014 0xb745d503 in ?? () from /usr/lib/libQtCore.so.4
0000015 0xb6c40c39 in start_thread (arg=0xa2e88b70) at pthread_create.c:304
0000016 0xb54ac96e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 3 (Thread 0x852fbb70 (LWP 19927)):
#0 0xb77f9424 in __kernel_vsyscall ()
#1 0xb6c45703 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:236
0000002 0xb77c6ad7 in mlt_consumer_get_frame () from /usr/lib/libmlt.so.4
0000003 0xb77c74d1 in mlt_consumer_rt_frame () from /usr/lib/libmlt.so.4
0000004 0xb0c92bee in ?? () from /usr/lib/mlt/libmltsdl.so
0000005 0xb6c40c39 in start_thread (arg=0x852fbb70) at pthread_create.c:304
0000006 0xb54ac96e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 2 (Thread 0xabfbcb70 (LWP 19928)):
#0 0xb77f9424 in __kernel_vsyscall ()
#1 0xb6c4520a in __pthread_cond_wait (cond=0x9103028, mutex=0x9103058) at pthread_cond_wait.c:153
0000002 0xb0c922d2 in ?? () from /usr/lib/mlt/libmltsdl.so
0000003 0xb6c40c39 in start_thread (arg=0xabfbcb70) at pthread_create.c:304
0000004 0xb54ac96e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 1 (Thread 0xb45f3940 (LWP 18831)):
[KCrash Handler]
0000007 0xafad0c66 in avcodec_close (avctx=0x10e32260) at libavcodec/utils.c:883
0000008 0xb0721bf7 in ?? () from /usr/lib/mlt/libmltavformat.so
0000009 0xb77c1a27 in ?? () from /usr/lib/libmlt.so.4
0000010 0xb77bf97d in mlt_service_get_frame () from /usr/lib/libmlt.so.4
0000011 0xb77a4233 in Mlt::Service::get_frame(int) () from /usr/lib/libmlt++.so.3
0000012 0x081083a1 in Render::getFileProperties (this=0x90e9e78, xml=..., clipId=..., imageHeight=36, replaceProducer=false, selectClip=true) at /home/mcfrisk/src/kdenlive-git/src/renderer.cpp:715
0000013 0x0810cb78 in Render::qt_metacall (this=0x90e9e78, _c=QMetaObject::InvokeMetaMethod, _id=22, _a=0xa92c6f50) at /home/mcfrisk/src/kdenlive-git/build/src/cmake_bindir/renderer.moc:156
0000014 0xb755e47d in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
0000015 0xb7568dc5 in QMetaCallEvent::placeMetaCall(QObject*) () from /usr/lib/libQtCore.so.4
0000016 0xb75702df in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
0000017 0xb582a7a4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
0000018 0xb582fb32 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
0000019 0xb71ad571 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
0000020 0xb75580ce in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
0000021 0xb755b894 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
0000022 0xb755b9dc in QCoreApplication::sendPostedEvents(QObject*, int) () from /usr/lib/libQtCore.so.4
0000023 0xb7585ec4 in ?? () from /usr/lib/libQtCore.so.4
0000024 0xb51df252 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
0000025 0xb51dfa30 in ?? () from /lib/libglib-2.0.so.0
0000026 0xb51dfce4 in g_main_context_iteration () from /lib/libglib-2.0.so.0
0000027 0xb75862f7 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
0000028 0xb58df6fa in ?? () from /usr/lib/libQtGui.so.4
0000029 0xb75570ed in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
0000030 0xb7557331 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
0000031 0xb755ba8a in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
0000032 0xb5828624 in QApplication::exec() () from /usr/lib/libQtGui.so.4
0000033 0x08088d4d in main (argc=) at /home/mcfrisk/src/kdenlive-git/src/main.cpp:89
TagsNo tags attached.
Build/Install MethodManual build from SVN
Attached Files

- Relationships

-  Notes
(0007225)
mcfrisk (reporter)
2011-08-27 16:23

I noticed debugging symbols were missing from the trace in MLT although CFLAGS had -g. After adding -g to CXXFLAGS the crash is gone and I can now add the same clips to the project.
(0007226)
mcfrisk (reporter)
2011-08-27 17:06

Nope, it's happening again so -g just made it harder to hit:


#0 0xb02c6c66 in avcodec_close (avctx=0x8a59aee0) at libavcodec/utils.c:883
No locals.
#1 0xb0f17737 in producer_set_up_audio (frame=0x6e7505a8, self=0x7901a1c0)
    at producer_avformat.c:2452
        producer = 0x7ac3df88
        context = <optimized out>
        properties = 0x7ac3df88
        frame_properties = 0x6e7505a8
        index = 1
0000002 producer_get_frame (producer=0x7ac3df88, frame=0x7b57b128, index=0)
    at producer_avformat.c:2530
        service = 0x7ac3df88
        cache_item = <optimized out>
        self = 0x7901a1c0
        position = <optimized out>
0000003 0xb7fab63f in producer_get_frame (service=0x7ac3df88, frame=0x7b57b128,
    index=0) at mlt_producer.c:584
        properties = 0x7ac3df88
        eof = <optimized out>
        speed = 1
        clone = <optimized out>
        result = 1
        self = 0x7ac3df88

0000004 0xb7fa964d in mlt_service_get_frame (self=0x7ac3df88, frame=0x7b57b168,
    index=0) at mlt_service.c:481
        new_position = 1
        previous_frame = <optimized out>
        next_frame = <optimized out>
        properties = 0x7bb6e6f0
        in = 0
        out = 3096
        position = 0
        result = <optimized out>
0000005 0xb7f90213 in Mlt::Service::get_frame (this=0x7b57b1e4, index=0)
    at MltService.cpp:95
        frame = 0x7bb6e6f0
        result = 0xb7f8db37
0000006 0x081bbe3a in KThumb::slotCreateAudioThumbs (this=0xbe25758)
    at /home/mcfrisk/src/kdenlive-git/src/kthumb.cpp:408
        mlt_frame = <optimized out>
        z = 0
        producer = {<Mlt::Service> = {<Mlt::Properties> = {
              _vptr.Properties = 0xb7f971f8, instance = 0x0}, instance = 0x0},
          instance = 0x7ac3df88, parent_ = 0x0}
        __PRETTY_FUNCTION__ = "void KThumb::slotCreateAudioThumbs()"
        last_val = 0

        val = 0
        prof = {instance = 0x68bbc490}
0000007 0x080e6cdc in run (this=0x772a7218)
    at /usr/include/qt4/QtCore/qtconcurrentrunbase.h:120
No locals.
0000008 QtConcurrent::RunFunctionTask<void>::run (this=0x772a7218)
    at /usr/include/qt4/QtCore/qtconcurrentrunbase.h:114
No locals.
0000009 0xb7c3c7f1 in QThreadPoolThread::run (this=0xb8619a0)
    at concurrent/qthreadpool.cpp:106
        r = 0x772a7220
        expired = <optimized out>
        locker = {val = 193331408}
0000010 0xb7c49503 in QThreadPrivate::start (arg=0xb8619a0)
    at thread/qthread_unix.cpp:320
        __clframe = {
          __cancel_routine = 0xb7c48400 <QThreadPrivate::finish(void*)>,
          __cancel_arg = 0xb8619a0, __do_it = 1,
          __cancel_type = <optimized out>}
        thr = 0xb8619a0
        data = 0xb861af0
0000011 0xb742cc39 in start_thread (arg=0x7b57bb70) at pthread_create.c:304
        __res = <optimized out>
        __ignore1 = <optimized out>
        __ignore2 = <optimized out>
        pd = 0x7b57bb70
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {-1220292620, 0, 4001536,
                2069345336, -1792193868, -1076627156}, mask_was_saved = 0}},
          priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0,
              cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
0000012 0xb5c9896e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
No locals.
Backtrace stopped: Not enough registers or memory available to unwind further
(0007227)
mcfrisk (reporter)
2011-08-27 17:23

Previous trace repeats every time if I have mp3 playback with mplayer on the background. After stopping mplayer, the crash seems gone.

I need to be careful when adding files to the project :)
(0007228)
mcfrisk (reporter)
2011-08-27 19:06

A few patches with which I finally got all my clips included in the project.

ffmpeg:


--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -886,8 +886,8 @@ av_cold int avcodec_close(AVCodecContext *avctx)
     avctx->coded_frame = NULL;
     if (avctx->codec && avctx->codec->priv_class)
         av_opt_free(avctx->priv_data);
- av_opt_free(avctx);
     av_freep(&avctx->priv_data);
+ av_opt_free(avctx);
     if(avctx->codec && avctx->codec->encode)
         av_freep(&avctx->extradata);
     avctx->codec = NULL;

and mlt:


--- a/src/modules/avformat/producer_avformat.c
+++ b/src/modules/avformat/producer_avformat.c
@@ -2444,16 +2444,16 @@ static void producer_set_up_audio( producer_avformat sel
        }

        // Update the audio properties if the index changed
+ avformat_lock();
        if ( context && index > -1 && index != self->audio_index )
        {
                if ( self->audio_codec[ self->audio_index ] )
                {
- avformat_lock();
                        avcodec_close( self->audio_codec[ self->audio_index ] );
- avformat_unlock();
                }
                self->audio_codec[ self->audio_index ] = NULL;
        }
+ avformat_unlock();
        if ( self->audio_index != -1 )
                self->audio_index = index;
        else
(0007332)
ddennedy (developer)
2011-09-19 02:09

Hmm, the MLT change is unnecessary according to my analysis because there is no chance for race condition here (outside of avcodec_close()) because all variables are local in scope or belong to self. And self is protected by a service lock taken in the function that calls producer_get_frame(), which is calling producer_set_up_audio().

Does the following alternative change still fix it?

diff --git a/src/modules/avformat/producer_avformat.c b/src/modules/avformat/producer_avformat.c
index 58fb87c..ed9bf0c 100644
--- a/src/modules/avformat/producer_avformat.c
+++ b/src/modules/avformat/producer_avformat.c
@@ -2446,13 +2446,13 @@ static void producer_set_up_audio( producer_avformat self, mlt_frame frame )
     // Update the audio properties if the index changed
     if ( context && index > -1 && index != self->audio_index )
     {
+ avformat_lock();
         if ( self->audio_codec[ self->audio_index ] )
         {
- avformat_lock();
             avcodec_close( self->audio_codec[ self->audio_index ] );
- avformat_unlock();
         }
         self->audio_codec[ self->audio_index ] = NULL;
+ avformat_unlock();
     }
     if ( self->audio_index != -1 )
         self->audio_index = index;
(0007373)
OpenThinking (reporter)
2011-09-28 21:23

I also have this crash. Build kdenlive with the "build-kdenlive.sh" script. Only Firefox 7 running besides kdenlive. I open up a projekt with 70 clips, when I try to add 10 more clips the application crashes.

I run a newly installed Ubuntu 11.04.
_______________________________________________

Application: kdenlive (0.8.1 (rev. 5930))
KDE Platform Version: 4.6.2 (4.6.2)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-11-generic i686
Distribution: Ubuntu 11.04

-- Information about the crash:
<In detail, tell us what you were doing when the application crashed.>

The crash can be reproduced every time.

-- Backtrace:
Application: Kdenlive (kdenlive), signal: Segmentation fault
[Current thread is 1 (Thread 0xb5e1b940 (LWP 6789))]

Thread 7 (Thread 0xb5a60b70 (LWP 6790)):
#0 0x00916416 in __kernel_vsyscall ()
#1 0x04c1af76 in poll () from /lib/i386-linux-gnu/libc.so.6
0000002 0x0422184b in g_poll () from /lib/i386-linux-gnu/libglib-2.0.so.0
0000003 0x042111af in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
0000004 0x0421192b in g_main_loop_run () from /lib/i386-linux-gnu/libglib-2.0.so.0
0000005 0x02a88304 in ?? () from /usr/lib/i386-linux-gnu/libgio-2.0.so.0
0000006 0x0423a2df in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
0000007 0x058119cd in ?? () from /usr/lib/libGL.so.1
0000008 0x04c2973e in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 6 (Thread 0xb12b5b70 (LWP 6796)):
#0 0x009e9d41 in clock_gettime () from /lib/i386-linux-gnu/librt.so.1
#1 0x00cb1dd8 in ?? () from /usr/lib/libQtCore.so.4
0000002 0x00d7e4f2 in ?? () from /usr/lib/libQtCore.so.4
0000003 0x00d7cd32 in ?? () from /usr/lib/libQtCore.so.4
0000004 0x00d7cdcd in ?? () from /usr/lib/libQtCore.so.4
0000005 0x0420ffd4 in g_main_context_prepare () from /lib/i386-linux-gnu/libglib-2.0.so.0
0000006 0x04210e63 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
0000007 0x04211524 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
0000008 0x00d7d577 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
0000009 0x00d4f289 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
0000010 0x00d4f522 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
0000011 0x00c592a0 in QThread::exec() () from /usr/lib/libQtCore.so.4
0000012 0x00d30fdb in ?? () from /usr/lib/libQtCore.so.4
0000013 0x00c5bda2 in ?? () from /usr/lib/libQtCore.so.4
0000014 0x058119cd in ?? () from /usr/lib/libGL.so.1
0000015 0x04c2973e in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 5 (Thread 0xae914b70 (LWP 6948)):
#0 0x00916416 in __kernel_vsyscall ()
#1 0x00972834 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
0000002 0x00c5c3e5 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
0000003 0x00c4f8f1 in ?? () from /usr/lib/libQtCore.so.4
0000004 0x00c5bda2 in ?? () from /usr/lib/libQtCore.so.4
0000005 0x058119cd in ?? () from /usr/lib/libGL.so.1
0000006 0x04c2973e in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 4 (Thread 0xb0ab4b70 (LWP 6967)):
#0 0x00916416 in __kernel_vsyscall ()
#1 0x00972834 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
0000002 0x00c5c3e5 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
0000003 0x00c4f8f1 in ?? () from /usr/lib/libQtCore.so.4
0000004 0x00c5bda2 in ?? () from /usr/lib/libQtCore.so.4
0000005 0x058119cd in ?? () from /usr/lib/libGL.so.1
0000006 0x04c2973e in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 3 (Thread 0xb50ffb70 (LWP 6968)):
#0 0x00916416 in __kernel_vsyscall ()
#1 0x00972834 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
0000002 0x007dd82b in mlt_consumer_get_frame (self=0x918bbd0) at mlt_consumer.c:536
0000003 0x007df3a6 in mlt_consumer_rt_frame (self=0x918bbd0) at mlt_consumer.c:1329
0000004 0x05bfa03f in consumer_thread (arg=0x918bbd0) at consumer_sdl_still.c:570
0000005 0x058119cd in ?? () from /usr/lib/libGL.so.1
0000006 0x04c2973e in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 2 (Thread 0xa430cb70 (LWP 6969)):
#0 0x00916416 in __kernel_vsyscall ()
#1 0x0097248c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
0000002 0x05bf885b in consumer_thread (arg=0x90f2270) at consumer_sdl_preview.c:449
0000003 0x058119cd in ?? () from /usr/lib/libGL.so.1
0000004 0x04c2973e in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 1 (Thread 0xb5e1b940 (LWP 6789)):
[KCrash Handler]
0000007 0x00000026 in ?? ()
0000008 0x0269e8e9 in fill_buffer (s=0x96660040) at libavformat/aviobuf.c:568
0000009 0x0269f5ce in url_feof (s=0x96660040) at libavformat/aviobuf.c:283
0000010 0x026ee775 in mpegts_resync (s=0xb516d9e0, stream_index=0, ppos=0xbf979168, pos_limit=9223372036854775807) at libavformat/mpegts.c:1399
0000011 mpegts_get_pcr (s=0xb516d9e0, stream_index=0, ppos=0xbf979168, pos_limit=9223372036854775807) at libavformat/mpegts.c:1734
0000012 0x02728af1 in av_gen_search (s=0xb516d9e0, stream_index=0, target_ts=90003, pos_min=0, pos_max=-4641078726982397372, pos_limit=-1, ts_min=-9223372036854775808, ts_max=-9223372036854775808, flags=1, ts_ret=0xbf979238, read_timestamp=0x26ee540 <mpegts_get_pcr>) at libavformat/utils.c:1613
0000013 0x02728f02 in av_seek_frame_binary (s=0xb516d9e0, stream_index=0, target_ts=90003, flags=1) at libavformat/utils.c:1591
0000014 0x026eccff in read_seek (s=0xb516d9e0, stream_index=0, target_ts=90003, flags=1) at libavformat/mpegts.c:1841
0000015 0x027293d4 in av_seek_frame (s=0xb516d9e0, stream_index=0, timestamp=90003, flags=1) at libavformat/utils.c:1817
0000016 0x049e4c78 in get_basic_info (self=0x966632a8, profile=0x8ef55f8, filename=0x93cc4e58 "/mnt/nas/AVCHD/2011/2011-09-17 (Patrik & Anna Fridenfelt Brollop)/00091pumpor.MTS") at producer_avformat.c:684
0000017 0x049e50e3 in producer_open (self=0x966632a8, profile=0x8ef55f8, URL=0x966629f8 "/mnt/nas/AVCHD/2011/2011-09-17 (Patrik & Anna Fridenfelt Brollop)/00091pumpor.MTS", take_lock=1) at producer_avformat.c:790
0000018 0x049e3494 in producer_avformat_init (profile=0x8ef55f8, service=0x981d82a8 "avformat", file=0x966629f8 "/mnt/nas/AVCHD/2011/2011-09-17 (Patrik & Anna Fridenfelt Brollop)/00091pumpor.MTS") at producer_avformat.c:188
0000019 0x049e0934 in create_service (profile=0x8ef55f8, type=producer_type, id=0x981d82a8 "avformat", arg=0x966629f8) at factory.c:116
0000020 0x007e3343 in mlt_repository_create (self=0x89ba2e8, profile=0x8ef55f8, type=producer_type, service=0x981d82a8 "avformat", input=0x966629f8) at mlt_repository.c:226
0000021 0x007e29a1 in mlt_factory_producer (profile=0x8ef55f8, service=0x981d82a8 "avformat", input=0x966629f8) at mlt_factory.c:287
0000022 0x0233e37c in create_from (profile=0x8ef55f8, file=0x966629f8 "/mnt/nas/AVCHD/2011/2011-09-17 (Patrik & Anna Fridenfelt Brollop)/00091pumpor.MTS", services=0xa2e73d8 "avformat") at producer_loader.c:43
0000023 0x0233e5f7 in create_producer (profile=0x8ef55f8, file=0x966629f8 "/mnt/nas/AVCHD/2011/2011-09-17 (Patrik & Anna Fridenfelt Brollop)/00091pumpor.MTS") at producer_loader.c:98
0000024 0x0233eb04 in producer_loader_init (profile=0x8ef55f8, type=producer_type, id=0x8a3be08 "loader", arg=0x966629f8 "/mnt/nas/AVCHD/2011/2011-09-17 (Patrik & Anna Fridenfelt Brollop)/00091pumpor.MTS") at producer_loader.c:198
0000025 0x007e3343 in mlt_repository_create (self=0x89ba2e8, profile=0x8ef55f8, type=producer_type, service=0x8a3be08 "loader", input=0x966629f8) at mlt_repository.c:226
0000026 0x007e29a1 in mlt_factory_producer (profile=0x8ef55f8, service=0x8a3be08 "loader", input=0x966629f8) at mlt_factory.c:287
0000027 0x00a022ae in Mlt::Producer::Producer(Mlt::Profile&, char const*, char const*) () from /home/holm/kdenlive/20110928/lib/libmlt++.so.3
0000028 0x080f15f3 in Render::getFileProperties (this=0x901f930, xml=..., clipId=..., imageHeight=36, replaceProducer=false, selectClip=true) at /home/holm/kdenlive/src/kdenlive/src/renderer.cpp:597
0000029 0x0810a8a9 in Render::qt_metacall (this=0x901f930, _c=QMetaObject::InvokeMetaMethod, _id=22, _a=0xa7974898) at /home/holm/kdenlive/src/kdenlive/src/cmake_bindir/renderer.moc:156
0000030 0x00d566ba in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
0000031 0x00d60e16 in QMetaCallEvent::placeMetaCall(QObject*) () from /usr/lib/libQtCore.so.4
0000032 0x00d653b7 in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
0000033 0x06210d24 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
0000034 0x062158ce in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
0000035 0x0106e3ca in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
0000036 0x00d500bb in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
0000037 0x00d53c79 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
0000038 0x00d53e0d in QCoreApplication::sendPostedEvents(QObject*, int) () from /usr/lib/libQtCore.so.4
0000039 0x00d7d3c4 in ?? () from /usr/lib/libQtCore.so.4
0000040 0x04210aa8 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
0000041 0x04211270 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
0000042 0x04211524 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
0000043 0x00d7d53c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
0000044 0x062c71e5 in ?? () from /usr/lib/libQtGui.so.4
0000045 0x00d4f289 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
0000046 0x00d4f522 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
0000047 0x00d53ecc in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
0000048 0x0620e8e7 in QApplication::exec() () from /usr/lib/libQtGui.so.4
0000049 0x0809377b in main (argc=1, argv=0xbf97acb4) at /home/holm/kdenlive/src/kdenlive/src/main.cpp:89

Report to http://kdenlive.org/mantis [^]
(0007374)
OpenThinking (reporter)
2011-09-28 21:59

I added the fix suggested in (0007332) to:
src/mlt/src/modules/avformat/producer_avformat.c

But when I run the "build-kdenlive.sh" script the source code are replaced with the one from git. How can I compile just the producer_avformat.c? Sorry for a newbie question!
(0007375)
OpenThinking (reporter)
2011-09-28 22:17

I think I found a solution to the compile. I edited the "build-kdenlive.sh" script:

ACTION_GET_COMPILE_INSTALL=0
ACTION_GET_ONLY=0
ACTION_COMPILE_INSTALL=1

And runned the script. After this the source was the updated version:
src/mlt/src/modules/avformat/producer_avformat.c

But I still gets the crash in kdenlive when importing 14 clips to my project already containing about 70 clips...

-------------------------
kdenlive(29440) ClipManager::slotAddClipList: Adding clip: "/mnt/nas/AVCHD/2011/2011-09-17/00080.MTS"
kdenlive(29440) ClipManager::slotAddClipList: Adding clip: "/mnt/nas/AVCHD/2011/2011-09-17/00081.MTS"
kdenlive(29440) ClipManager::slotAddClipList: Adding clip: "/mnt/nas/AVCHD/2011/2011-09-17/00082.MTS"
kdenlive(29440) ClipManager::slotAddClipList: Adding clip: "/mnt/nas/AVCHD/2011/2011-09-17/00083.MTS"
kdenlive(29440) ClipManager::slotAddClipList: Adding clip: "/mnt/nas/AVCHD/2011/2011-09-17/00084.MTS"
kdenlive(29440) ClipManager::slotAddClipList: Adding clip: "/mnt/nas/AVCHD/2011/2011-09-17/00085.MTS"
kdenlive(29440) ClipManager::slotAddClipList: Adding clip: "/mnt/nas/AVCHD/2011/2011-09-17/00087.MTS"
kdenlive(29440) ClipManager::slotAddClipList: Adding clip: "/mnt/nas/AVCHD/2011/2011-09-17/00088.MTS"
kdenlive(29440) ClipManager::slotAddClipList: Adding clip: "/mnt/nas/AVCHD/2011/2011-09-17/00089.MTS"
kdenlive(29440) ClipManager::slotAddClipList: Adding clip: "/mnt/nas/AVCHD/2011/2011-09-17/00090.MTS"
kdenlive(29440) ClipManager::slotAddClipList: Adding clip: "/mnt/nas/AVCHD/2011/2011-09-17/00091.MTS"
kdenlive(29440) ClipManager::slotAddClipList: Adding clip: "/mnt/nas/AVCHD/2011/2011-09-17/00094.MTS"
kdenlive(29440) ClipManager::slotAddClipList: Adding clip: "/mnt/nas/AVCHD/2011/2011-09-17/00095.MTS"
kdenlive(29440) ClipManager::slotAddClipList: Adding clip: "/mnt/nas/AVCHD/2011/2011-09-17/00096.MTS"
kdenlive(29440) AddClipCommand::redo: ---- redoing action
kdenlive(29440) AddClipCommand::redo: ---- redoing action
kdenlive(29440) AddClipCommand::redo: ---- redoing action
kdenlive(29440) AddClipCommand::redo: ---- redoing action
kdenlive(29440) AddClipCommand::redo: ---- redoing action
kdenlive(29440) AddClipCommand::redo: ---- redoing action
kdenlive(29440) AddClipCommand::redo: ---- redoing action
kdenlive(29440) AddClipCommand::redo: ---- redoing action
kdenlive(29440) AddClipCommand::redo: ---- redoing action
kdenlive(29440) AddClipCommand::redo: ---- redoing action
kdenlive(29440) AddClipCommand::redo: ---- redoing action
kdenlive(29440) AddClipCommand::redo: ---- redoing action
kdenlive(29440) AddClipCommand::redo: ---- redoing action
kdenlive(29440) AddClipCommand::redo: ---- redoing action
kdenlive(29440) KThumb::getAudioThumbs: reading audio thumbs from file
kdenlive(29440) KThumb::getAudioThumbs: reading audio thumbs from file
kdenlive(29440) KThumb::getAudioThumbs: reading audio thumbs from file
kdenlive(29440) KThumb::getAudioThumbs: reading audio thumbs from file
kdenlive(29440) KThumb::getAudioThumbs: reading audio thumbs from file
kdenlive(29440) KThumb::getAudioThumbs: reading audio thumbs from file
kdenlive(29440) KThumb::getAudioThumbs: reading audio thumbs from file
kdenlive(29440) KThumb::getAudioThumbs: reading audio thumbs from file
kdenlive(29440) KThumb::getAudioThumbs: reading audio thumbs from file
kdenlive(29440) KThumb::getAudioThumbs: reading audio thumbs from file
KCrash: Application 'kdenlive' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
sock_file=/home/user/.kde/socket-computername/kdeinit4__0
QSocketNotifier: Invalid socket 28 and type 'Read', disabling...
(0007376)
ddennedy (developer)
2011-09-29 23:06

hopefully fixed in git commit 7219ccb (original reporter's problem and variation on his patch)
(0007377)
ddennedy (developer)
2011-09-29 23:07

openThinking, how many virtual cores do you have on your system?

- Issue History
Date Modified Username Field Change
2011-08-27 16:21 mcfrisk New Issue
2011-08-27 16:23 mcfrisk Note Added: 0007225
2011-08-27 17:06 mcfrisk Note Added: 0007226
2011-08-27 17:23 mcfrisk Note Added: 0007227
2011-08-27 19:06 mcfrisk Note Added: 0007228
2011-09-18 22:06 ttill Assigned To => ddennedy
2011-09-18 22:06 ttill Status new => assigned
2011-09-19 02:09 ddennedy Note Added: 0007332
2011-09-28 21:23 OpenThinking Note Added: 0007373
2011-09-28 21:59 OpenThinking Note Added: 0007374
2011-09-28 22:17 OpenThinking Note Added: 0007375
2011-09-29 23:06 ddennedy Note Added: 0007376
2011-09-29 23:06 ddennedy Status assigned => resolved
2011-09-29 23:06 ddennedy Fixed in Version => Recent git
2011-09-29 23:06 ddennedy Resolution open => fixed
2011-09-29 23:07 ddennedy Note Added: 0007377
2011-10-31 15:23 j-b-m Fixed in Version Recent git => 0.8.2
2011-11-01 18:56 j-b-m Status resolved => closed


Copyright © 2000 - 2014 MantisBT Team
Powered by Mantis Bugtracker