[Kdenlive-devel] Adding clip crashes (was Re: Head crashes)

Matthew D. Fuller fullermd at over-yonder.net
Sat Aug 28 07:00:22 UTC 2010


On Fri, Aug 27, 2010 at 11:12:02PM -0700 I heard the voice of
Dan Dennedy, and lo! it spake thus:
> 
> (it seems to want you to "trust the man" where kde=man),

WE control the horizontal; WE control the vertical!

/me racks up reason 11,794 to not run KDE   8-}


> Try playing the clip with 'melt' on the command line.

Works peachy.


Long rambling background story:

When I first installed kdenlive (0.7.7.1), I had issues with
rendering.  Doing stuff _in_ kdenlive worked, but trying to render,
melt crashed, every time (0.5.4?).  This was built against ffmpeg
0.5.something.

When building everything instead against a devel version of ffmpeg
(this would be something like early June), the issues reversed;
rendering worked fine, but anything touching video in kdenlive died
(adding clip, loading existing project...  pretty much anything that
starts showing a video/thumbnail).  So, I ended up putting together
the somewhat ugly hack of having a local install of ffmpeg(-devel) and
mlt in ~/tmp or somewhere, and config'ing kdenlive to call THAT melt
for rendering, while using the system-wide ffmpeg for the in-kdenlive
displaying.

This fell apart about a month ago when ffmpeg was upgraded to the 0.6
release.  I would _guess_ that the rendering side works fine now,
since it did against shortly-pre-0.6 devel, but as expected/feared,
kdenlive now falls apart any time I do something that makes it want to
display something video-related.  It SEGV's down in libswscale (see
some attached backtracing, from git version).

So it seems like my best bet to get it actually working is to build a
local mlt against the previous ffmpeg version, and get kdenlive to
link in those mlt/avformat libs, while using the system-wide
melt/avformat for rendering.  Furrfu.   :|


-- 
Matthew Fuller     (MF4839)   |  fullermd at over-yonder.net
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/
           On the Internet, nobody can hear you scream.
-------------- next part --------------
(gdb) bt
#0  0x0000000811b93810 in ?? ()
#1  0x000000080a975c33 in sws_rgb2rgb_init ()
   from /usr/local/lib/libswscale.so.1
#2  0x000000080a97a788 in sws_scale_ordered ()
   from /usr/local/lib/libswscale.so.1
#3  0x000000080a979cdd in sws_scale () from /usr/local/lib/libswscale.so.1
#4  0x0000000809aee2ae in convert_image (frame=0x811b19a60, 
    image=0x7fffffff9940, format=0x7fffffff9bfc, 
    output_format=mlt_image_rgb24a) at filter_avcolour_space.c:84
#5  0x0000000800a9d536 in mlt_frame_get_image (this=0x811b19a60, 
    buffer=0x7fffffff9940, format=0x7fffffff9bfc, width=0x7fffffff9754, 
    height=0x7fffffff9750, writable=0) at mlt_frame.c:396
#6  0x000000080c5b13e7 in filter_get_image (this=0x811b19a60, 
    image=0x7fffffff9940, format=0x7fffffff9bfc, width=0x7fffffff988c, 
    height=0x7fffffff9888, writable=0) at filter_rescale.c:218
#7  0x0000000800a9d4cc in mlt_frame_get_image (this=0x811b19a60, 
    buffer=0x7fffffff9940, format=0x7fffffff9bfc, width=0x7fffffff988c, 
    height=0x7fffffff9888, writable=0) at mlt_frame.c:389
#8  0x000000080c5b18c2 in filter_get_image (this=0x811b19a60, 
    image=0x7fffffff9940, format=0x7fffffff9bfc, width=0x7fffffff9bf8, 
    height=0x7fffffff9bf4, writable=0) at filter_resize.c:262
#9  0x0000000800a9d4cc in mlt_frame_get_image (this=0x811b19a60, 
    buffer=0x7fffffff9940, format=0x7fffffff9bfc, width=0x7fffffff9bf8, 
    height=0x7fffffff9bf4, writable=0) at mlt_frame.c:389
#10 0x0000000800bc691e in Mlt::Frame::get_image (this=0x810996d60, 
    format=@0x7fffffff9bfc, w=@0x7fffffff9bf8, h=@0x7fffffff9bf4, writable=0)
    at MltFrame.cpp:59
#11 0x00000000004c7375 in Render::getFileProperties (this=0x810174dc0, xml=Variable "xml" is not available.
)
    at /home/fullermd/src/kdenlive/kdenlive.git/src/renderer.cpp:758
#12 0x00000000004cea15 in Render::qt_metacall (this=0x810174dc0, _c=Variable "_c" is not available.
)
    at renderer.moc:147
#13 0x00000008031bca48 in QMetaObject::activate ()
   from /usr/local/lib/qt4/libQtCore.so.4
#14 0x000000000048b878 in ProjectList::getFileProperties (this=Variable "this" is not available.
)
    at projectlist.moc:268
#15 0x0000000000496f20 in ProjectList::slotProcessNextClipInQueue (
    this=0x807ab6380)
    at /home/fullermd/src/kdenlive/kdenlive.git/src/projectlist.cpp:987
#16 0x000000000049a8c2 in ProjectList::slotAddClip (this=Variable "this" is not available.
)
    at /home/fullermd/src/kdenlive/kdenlive.git/src/projectlist.cpp:956
#17 0x00000000004a3019 in ProjectList::qt_metacall (this=0x807ab6380, 
    _c=QMetaObject::InvokeMetaMethod, _id=Variable "_id" is not available.
) at projectlist.moc:209
#18 0x00000008031bca48 in QMetaObject::activate ()
   from /usr/local/lib/qt4/libQtCore.so.4
#19 0x00000000004ebdfe in KdenliveDoc::addProjectClip (this=Variable "this" is not available.
)
    at kdenlivedoc.moc:152
#20 0x00000000004fd6a7 in KdenliveDoc::addClip (this=0x81035eb00, 
    elem=@0x7fffffffbc40, clipId=@0x7fffffffbc30, createClipItem=true)
    at /home/fullermd/src/kdenlive/kdenlive.git/src/kdenlivedoc.cpp:935
#21 0x000000000044cf35 in AddClipCommand::redo (this=0x811ba9fd0)
    at /home/fullermd/src/kdenlive/kdenlive.git/src/addclipcommand.cpp:49
#22 0x0000000803e4ebe1 in QUndoCommand::redo ()
   from /usr/local/lib/qt4/libQtGui.so.4
#23 0x0000000803e4ff83 in QUndoStack::push ()
   from /usr/local/lib/qt4/libQtGui.so.4
#24 0x00000000005d43dc in ClipManager::slotAddClipList (this=0x810966e00, urls=Variable "urls" is not available.

) at /home/fullermd/src/kdenlive/kdenlive.git/src/clipmanager.cpp:328
#25 0x00000000004ecaa3 in KdenliveDoc::slotAddClipList (this=0x81035eb00, urls=Variable "urls" is not available.

) at /home/fullermd/src/kdenlive/kdenlive.git/src/kdenlivedoc.cpp:1040
#26 0x000000000049c668 in ProjectList::slotAddClip (this=0x807ab6380, 
    givenList=@0x7fffffffc7a0, groupName=@0x7fffffffc790, 
    groupId=@0x7fffffffc780)
    at /home/fullermd/src/kdenlive/kdenlive.git/src/projectlist.cpp:1132
#27 0x00000000004a33da in ProjectList::qt_metacall (this=0x807ab6380, 
    _c=QMetaObject::InvokeMetaMethod, _id=Variable "_id" is not available.
) at projectlist.moc:222
#28 0x00000008031bca48 in QMetaObject::activate ()
   from /usr/local/lib/qt4/libQtCore.so.4

[... mostly QT/KDE event loop stack up from here ...]



(gdb) bt full
#0  0x0000000811b93810 in ?? ()
No symbol table info available.
#1  0x000000080a975c33 in sws_rgb2rgb_init ()
   from /usr/local/lib/libswscale.so.1
No symbol table info available.
#2  0x000000080a97a788 in sws_scale_ordered ()
   from /usr/local/lib/libswscale.so.1
No symbol table info available.
#3  0x000000080a979cdd in sws_scale () from /usr/local/lib/libswscale.so.1
No symbol table info available.
#4  0x0000000809aee2ae in convert_image (frame=0x811b19a60, 
    image=0x7fffffff9940, format=0x7fffffff9bfc, 
    output_format=mlt_image_rgb24a) at filter_avcolour_space.c:84
        in_fmt = 1
        out_fmt = 28
        size = 307200
        output = (uint8_t *) 0x817407010 '?' <repeats 200 times>...
        properties = Variable "properties" is not available.



More information about the Kdenlive mailing list