Bug 352418 - kdenlive 15.04.2 crashes randomly
Summary: kdenlive 15.04.2 crashes randomly
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: User Interface & Miscellaneous (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-08 02:08 UTC by Roger
Modified: 2016-08-08 18:59 UTC (History)
5 users (show)

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


Attachments
kdenlive bt full (15.17 KB, text/plain)
2015-09-12 06:31 UTC, Mihai RUSU
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roger 2015-09-08 02:08:08 UTC
Running LXQT, Ubuntu vivid.

Crashes occur seemingly at random, and after random times of usage. Sometimes the crash simply kills kdenlive. Other times it freezes it, and "apport" begins running at 100% CPU.

I've been simply putting up with it, because I can usually restart the program and edit video for minutes before the next crash.

However, I finally ran it under gdb, so here's the last few lines of gdb output before the crash, and then a bt. I'm not exactly certain what's going on -- I'm using .mkv files as clips. There shouldn't be issues with that; they're being cut apart within kdenlive. This particular one happened when I clicked in the timeline of a 3-clip sequence, each clip in a separate track, separated by seconds from one another. Each clip has a title clip that goes with it. This particular crash has happened before, and in much the same way.


= = =

[h264 @ 0x41b5a20] missing picture in access unit                                                                                                                  
[h264 @ 0x41b5a20] missing picture in access unit                                                                                                                  
[h264 @ 0x41b5a20] missing picture in access unit                                                                                                                  
[h264 @ 0x41b5a20] missing picture in access unit                                                                                                                  
[h264 @ 0x41b5a20] missing picture in access unit                                                                                                                  
[avi @ 0x41b52a0] max_analyze_duration 5000000 reached                                                                                                             
[h264 @ 0x7fffbc00a0e0] reference picture missing during reorder                                                                                                   
[h264 @ 0x7fffbc00a0e0] reference picture missing during reorder                                                                                                   
[h264 @ 0x7fffbc00a0e0] reference picture missing during reorder                                                                                                   
[h264 @ 0x7fffbc00a0e0] reference picture missing during reorder                                                                                                   
[h264 @ 0x7fffbc00a0e0] Missing reference picture                                                                                                                  
[h264 @ 0x7fffbc00a0e0] decode_slice_header error                                                                                                                  
[h264 @ 0x7fffbc00ba60] Missing reference picture                                                                                                                  
[h264 @ 0x7fffbc00ba60] Missing reference picture                                                                                                                  
[h264 @ 0x7fffbc001400] reference picture missing during reorder                                                                                                   
[h264 @ 0x7fffbc001400] Missing reference picture                                                                                                                  
[h264 @ 0x7fffbc002de0] mmco: unref short failure                                                                                                                  
[h264 @ 0x7fffbc002de0] mmco: unref short failure                                                                                                                  
0x41ec670 void QWindowPrivate::setTopLevelScreen(QScreen*, bool) ( QScreen(0xd32190) ): Attempt to set a screen on a child window.                                 
0x41f8950 void QWindowPrivate::setTopLevelScreen(QScreen*, bool) ( QScreen(0xd32190) ): Attempt to set a screen on a child window.
0x41f4550 void QWindowPrivate::setTopLevelScreen(QScreen*, bool) ( QScreen(0xd32190) ): Attempt to set a screen on a child window.
0x41edc70 void QWindowPrivate::setTopLevelScreen(QScreen*, bool) ( QScreen(0xd32190) ): Attempt to set a screen on a child window.
0x41eed60 void QWindowPrivate::setTopLevelScreen(QScreen*, bool) ( QScreen(0xd32190) ): Attempt to set a screen on a child window.
0x41ee5e0 void QWindowPrivate::setTopLevelScreen(QScreen*, bool) ( QScreen(0xd32190) ): Attempt to set a screen on a child window.
0x41f46d0 void QWindowPrivate::setTopLevelScreen(QScreen*, bool) ( QScreen(0xd32190) ): Attempt to set a screen on a child window.
0x41f4e50 void QWindowPrivate::setTopLevelScreen(QScreen*, bool) ( QScreen(0xd32190) ): Attempt to set a screen on a child window.
0x41fb150 void QWindowPrivate::setTopLevelScreen(QScreen*, bool) ( QScreen(0xd32190) ): Attempt to set a screen on a child window.
[h264 @ 0x7fff90003520] reference picture missing during reorder
[h264 @ 0x7fff90003520] reference picture missing during reorder                                                                                                   
[h264 @ 0x7fff90003520] reference picture missing during reorder                                                                                                   
[h264 @ 0x7fff90003520] reference picture missing during reorder                                                                                                   
[h264 @ 0x7fff90003520] Missing reference picture                                                                                                                  
[h264 @ 0x7fff90003520] decode_slice_header error                                                                                                                  
[h264 @ 0x7fff90067220] Missing reference picture                                                                                                                  
[h264 @ 0x7fff90067220] Missing reference picture                                                                                                                  
[h264 @ 0x7fff90121560] reference picture missing during reorder                                                                                                   
[h264 @ 0x7fff90121560] Missing reference picture                                                                                                                  
[h264 @ 0x7fff9017e8a0] mmco: unref short failure                                                                                                                  
[h264 @ 0x7fff9017e8a0] mmco: unref short failure                                                                                                                  
0x41e40a0 void QWindowPrivate::setTopLevelScreen(QScreen*, bool) ( QScreen(0xd32190) ): Attempt to set a screen on a child window.                                 
0x41e54c0 void QWindowPrivate::setTopLevelScreen(QScreen*, bool) ( QScreen(0xd32190) ): Attempt to set a screen on a child window.
0x41e6020 void QWindowPrivate::setTopLevelScreen(QScreen*, bool) ( QScreen(0xd32190) ): Attempt to set a screen on a child window.
0x41e5ee0 void QWindowPrivate::setTopLevelScreen(QScreen*, bool) ( QScreen(0xd32190) ): Attempt to set a screen on a child window.
0x35f8130 void QWindowPrivate::setTopLevelScreen(QScreen*, bool) ( QScreen(0xd32190) ): Attempt to set a screen on a child window.
0x3614410 void QWindowPrivate::setTopLevelScreen(QScreen*, bool) ( QScreen(0xd32190) ): Attempt to set a screen on a child window.
0x35bca70 void QWindowPrivate::setTopLevelScreen(QScreen*, bool) ( QScreen(0xd32190) ): Attempt to set a screen on a child window.
0x36141a0 void QWindowPrivate::setTopLevelScreen(QScreen*, bool) ( QScreen(0xd32190) ): Attempt to set a screen on a child window.
0x3608cc0 void QWindowPrivate::setTopLevelScreen(QScreen*, bool) ( QScreen(0xd32190) ): Attempt to set a screen on a child window.
0x36738f0 void QWindowPrivate::setTopLevelScreen(QScreen*, bool) ( QScreen(0xd32190) ): Attempt to set a screen on a child window.
QGraphicsItem::ungrabKeyboard: not a keyboard grabber
QGraphicsItem::ungrabKeyboard: not a keyboard grabber
QGraphicsItem::ungrabKeyboard: not a keyboard grabber
QGraphicsItem::ungrabKeyboard: not a keyboard grabber
QGraphicsItem::ungrabKeyboard: not a keyboard grabber
[h264 @ 0x7fff90366520] mmco: unref short failure
[New Thread 0x7fffb27fc700 (LWP 3555)]                                                                                                                             
[New Thread 0x7fff56ff5700 (LWP 3568)]
[New Thread 0x7fff577f6700 (LWP 3567)]
[New Thread 0x7fff57ff7700 (LWP 3566)]
[New Thread 0x7fff587f8700 (LWP 3565)]
[New Thread 0x7fff58ff9700 (LWP 3564)]
[New Thread 0x7fff597fa700 (LWP 3563)]
[New Thread 0x7fff59ffb700 (LWP 3562)]
[New Thread 0x7fff5a7fc700 (LWP 3561)]
[New Thread 0x7fff5affd700 (LWP 3560)]
[New Thread 0x7fffb2ffd700 (LWP 3556)]
[New Thread 0x7fff8affd700 (LWP 3545)]
[New Thread 0x7fff80ff9700 (LWP 3472)]
[New Thread 0x7fff817fa700 (LWP 3471)]
[New Thread 0x7fff81ffb700 (LWP 3470)]
[New Thread 0x7fff827fc700 (LWP 3469)]
[New Thread 0x7fff82ffd700 (LWP 3468)]
[New Thread 0x7fff837fe700 (LWP 3467)]
[New Thread 0x7fff83fff700 (LWP 3466)]
[New Thread 0x7fff88ff9700 (LWP 3465)]
[New Thread 0x7fff897fa700 (LWP 3464)]
[New Thread 0x7fff8a7fc700 (LWP 3462)]
[New Thread 0x7fffb8988700 (LWP 3461)]
[New Thread 0x7fffb9189700 (LWP 3460)]
[New Thread 0x7fffb998a700 (LWP 3459)]
[New Thread 0x7fffba18b700 (LWP 3458)]
[New Thread 0x7fffba98c700 (LWP 3457)]
[New Thread 0x7fffc11be700 (LWP 3456)]
[New Thread 0x7fffb3fff700 (LWP 3455)]
[New Thread 0x7fffb37fe700 (LWP 3454)]
[New Thread 0x7fffcbaec700 (LWP 3372)]
[New Thread 0x7fffd06c7700 (LWP 3371)]
[New Thread 0x7fffe452e700 (LWP 3368)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffb27fc700 (LWP 3555)]
0x00007fffe6ad321c in QFontEngineFT::shouldUseDesignMetrics(QFlags<QFontEngine::ShaperFlag>) const ()
   from /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so

(gdb) bt
#0  0x00007fffe6ad321c in QFontEngineFT::shouldUseDesignMetrics(QFlags<QFontEngine::ShaperFlag>) const ()
   from /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so
#1  0x00007fffe6ad6383 in QFontEngineFT::recalcAdvances(QGlyphLayout*, QFlags<QFontEngine::ShaperFlag>) const ()
   from /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so
#2  0x00007ffff2a6c379 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#3  0x00007fffec346596 in ?? () from /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0
#4  0x00007fffec32bd4a in hb_shape_plan_execute () from /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0
#5  0x00007fffec32b237 in hb_shape_full () from /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0
#6  0x00007ffff29ac131 in QTextEngine::shapeTextWithHarfbuzzNG(QScriptItem const&, unsigned short const*, int, QFontEngine*, QVector<unsigned int> const&, bool) const () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#7  0x00007ffff29afefc in QTextEngine::shapeText(int) const () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#8  0x00007ffff29b0c31 in QTextEngine::shape(int) const () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#9  0x00007ffff29b65c4 in QTextEngine::shapeLine(QScriptLine const&) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#10 0x00007ffff29b8d8b in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#11 0x00007ffff29be305 in QTextLine::draw(QPainter*, QPointF const&, QTextLayout::FormatRange const*) const () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#12 0x00007ffff29bf875 in QTextLayout::draw(QPainter*, QPointF const&, QVector<QTextLayout::FormatRange> const&, QRectF const&) const ()
   from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#13 0x00007ffff2a01b64 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#14 0x00007ffff2a0a2d4 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#15 0x00007ffff2a09de8 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#16 0x00007ffff2a0d32a in QTextDocumentLayout::draw(QPainter*, QAbstractTextDocumentLayout::PaintContext const&) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#17 0x00007ffff48d504c in QWidgetTextControl::drawContents(QPainter*, QRectF const&, QWidget*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007ffff49f84aa in QGraphicsTextItem::paint(QPainter*, QStyleOptionGraphicsItem const*, QWidget*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007ffff4a37ac6 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007ffff4a38c35 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007ffff4a3941a in QGraphicsScene::drawItems(QPainter*, int, QGraphicsItem**, QStyleOptionGraphicsItem const*, QWidget*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007ffff4a23913 in QGraphicsScene::render(QPainter*, QRectF const&, QRectF const&, Qt::AspectRatioMode) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00007fffdb50bfe5 in drawKdenliveTitle () from /usr/lib/mlt/libmltqt.so
---Type <return> to continue, or q <return> to quit---
#24 0x00007fffdb501928 in ?? () from /usr/lib/mlt/libmltqt.so
#25 0x00007ffff5104657 in mlt_frame_get_image () from /usr/lib/libmlt.so.6
#26 0x00007fffcf00dec1 in ?? () from /usr/lib/mlt/libmltxine.so
#27 0x00007ffff5104657 in mlt_frame_get_image () from /usr/lib/libmlt.so.6
#28 0x00007fffcebeaaa7 in ?? () from /usr/lib/mlt/libmltcore.so
#29 0x00007ffff5104657 in mlt_frame_get_image () from /usr/lib/libmlt.so.6
#30 0x00007fffcebe96be in ?? () from /usr/lib/mlt/libmltcore.so
#31 0x00007ffff5104657 in mlt_frame_get_image () from /usr/lib/libmlt.so.6
#32 0x00007fffcebeed92 in ?? () from /usr/lib/mlt/libmltcore.so
#33 0x00007ffff5104657 in mlt_frame_get_image () from /usr/lib/libmlt.so.6
#34 0x00007fffcebef563 in ?? () from /usr/lib/mlt/libmltcore.so
#35 0x00007ffff5104657 in mlt_frame_get_image () from /usr/lib/libmlt.so.6
#36 0x00007ffff5104657 in mlt_frame_get_image () from /usr/lib/libmlt.so.6
#37 0x00007fffe0ae1016 in ?? () from /usr/lib/mlt/libmltplus.so
#38 0x00007ffff5104657 in mlt_frame_get_image () from /usr/lib/libmlt.so.6
#39 0x00007ffff511a529 in ?? () from /usr/lib/libmlt.so.6
#40 0x00007ffff5104657 in mlt_frame_get_image () from /usr/lib/libmlt.so.6
#41 0x00007fffe2f78c35 in ?? () from /usr/lib/mlt/libmltsdl.so
#42 0x00007ffff0e496aa in start_thread (arg=0x7fffb27fc700) at pthread_create.c:333
#43 0x00007ffff17b3eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109


Reproducible: Always
Comment 1 Mihai RUSU 2015-09-12 06:29:38 UTC
I am running into this crash on both 15.08.0 and latest kdenlive-git, both built on Arch Linux, QT 5.5.0. I will add that this crash happens almost every 5-10 minutes while working with kdenlive which makes it almost unusable. Please someone either suggest a workaround for it (that doesn't mean to stop using title clips) or fix this quickly, in my eyes it's a critical problem.

Backtrace with symbols:
#0  QFontEngineFT::shouldUseDesignMetrics (this=this@entry=0x7fff88040760, flags=...) at ../gui/text/qfontengine_ft.cpp:1562
#1  0x00007fffe2280fbb in QFontEngineFT::recalcAdvances (this=this@entry=0x7fff88040760, glyphs=glyphs@entry=0x7fffacd68dc0, flags=...) at ../gui/text/qfontengine_ft.cpp:1571
#2  0x00007ffff1605649 in _hb_qt_font_get_glyph_h_advance (font=<optimized out>, font_data=0x7fff88040760, glyph=363) at text/qharfbuzzng.cpp:440
#3  0x00007fffe87649a7 in ?? () from /usr/lib/libharfbuzz.so.0
#4  0x00007fffe874715a in hb_shape_plan_execute () from /usr/lib/libharfbuzz.so.0
#5  0x00007fffe87465c1 in hb_shape_full () from /usr/lib/libharfbuzz.so.0
#6  0x00007ffff1546631 in QTextEngine::shapeTextWithHarfbuzzNG (this=this@entry=0x7fff88035420, si=..., string=string@entry=0x7fff74dd05b8, itemLength=itemLength@entry=13, fontEngine=0x7fff880456f0, itemBoundaries=..., kerningEnabled=true) at text/qtextengine.cpp:1175
#7  0x00007ffff1549981 in QTextEngine::shapeText (this=this@entry=0x7fff88035420, item=item@entry=0) at text/qtextengine.cpp:1061
#8  0x00007ffff154a54f in QTextEngine::shape (this=this@entry=0x7fff88035420, item=item@entry=0) at text/qtextengine.cpp:1494
#9  0x00007ffff154fea4 in QTextEngine::shapeLine (this=0x7fff88035420, line=...) at text/qtextengine.cpp:931
#10 0x00007ffff155263f in QTextLineItemIterator::QTextLineItemIterator (this=0x7fffacd69640, _eng=<optimized out>, _lineNum=<optimized out>, pos=..., _selection=<optimized out>) at text/qtextengine.cpp:3532
#11 0x00007ffff155a242 in QTextLine::draw (this=this@entry=0x7fffacd69d00, p=p@entry=0x7fffacd6b380, pos=..., selection=selection@entry=0x0) at text/qtextlayout.cpp:2353
#12 0x00007ffff155b6bd in QTextLayout::draw (this=this@entry=0x7fff88035400, p=p@entry=0x7fffacd6b380, pos=..., selections=..., clip=...) at text/qtextlayout.cpp:1192
#13 0x00007ffff159c89b in QTextDocumentLayoutPrivate::drawBlock (this=this@entry=0x7fff88034be0, offset=..., painter=painter@entry=0x7fffacd6b380, context=..., bl=..., inRootFrame=inRootFrame@entry=true) at text/qtextdocumentlayout.cpp:1351
#14 0x00007ffff15a4f83 in QTextDocumentLayoutPrivate::drawFlow (this=this@entry=0x7fff88034be0, offset=..., painter=painter@entry=0x7fffacd6b380, context=..., it=..., floats=..., cursorBlockNeedingRepaint=0x7fffacd6a590) at text/qtextdocumentlayout.cpp:1249
#15 0x00007ffff15a49ae in QTextDocumentLayoutPrivate::drawFrame (this=this@entry=0x7fff88034be0, offset=..., painter=painter@entry=0x7fffacd6b380, context=..., frame=frame@entry=0x7fff88034e10) at text/qtextdocumentlayout.cpp:1077
#16 0x00007ffff15a7362 in QTextDocumentLayout::draw (this=<optimized out>, painter=0x7fffacd6b380, context=...) at text/qtextdocumentlayout.cpp:2878
#17 0x00007ffff2664d5c in QWidgetTextControl::drawContents (this=0x7fff88003920, p=p@entry=0x7fffacd6b380, rect=..., widget=widget@entry=0x0) at widgets/qwidgettextcontrol.cpp:3199
#18 0x00007ffff2782aea in QGraphicsTextItem::paint (this=0x7fff8802e300, painter=0x7fffacd6b380, option=0x7fff8802d738, widget=<optimized out>) at graphicsview/qgraphicsitem.cpp:10010
#19 0x00007ffff27be577 in QGraphicsScenePrivate::draw (this=this@entry=0x7fff8802d520, item=item@entry=0x7fff8802e310, painter=painter@entry=0x7fffacd6b380, viewTransform=viewTransform@entry=0x7fffacd6b030, transformPtr=transformPtr@entry=0x7fffacd6ae80, exposedRegion=<optimized out>, widget=0x0, opacity=opacity@entry=1, effectTransform=0x0, wasDirtyParentSceneTransform=false, drawItem=true)
    at graphicsview/qgraphicsscene.cpp:4936
#20 0x00007ffff27bf5e3 in QGraphicsScenePrivate::drawSubtreeRecursive (this=this@entry=0x7fff8802d520, item=0x7fff8802e310, painter=painter@entry=0x7fffacd6b380, viewTransform=viewTransform@entry=0x7fffacd6b030, exposedRegion=exposedRegion@entry=0x0, widget=widget@entry=0x0, parentOpacity=parentOpacity@entry=1, effectTransform=0x0) at graphicsview/qgraphicsscene.cpp:4829
#21 0x00007ffff27bfd6a in QGraphicsScene::drawItems (this=<optimized out>, painter=0x7fffacd6b380, numItems=<optimized out>, items=<optimized out>, options=<optimized out>, widget=0x0) at graphicsview/qgraphicsscene.cpp:5362
#22 0x00007ffff27ad633 in QGraphicsScene::render (this=0x7fff880037d0, painter=0x7fffacd6b380, target=..., source=..., aspectRatioMode=<optimized out>) at graphicsview/qgraphicsscene.cpp:1815
#23 0x00007fffc5f04805 in drawKdenliveTitle () from /usr/lib/mlt/libmltqt.so
#24 0x00007fffc5ef9bb8 in ?? () from /usr/lib/mlt/libmltqt.so
#25 0x00007ffff6c82017 in mlt_frame_get_image () from /usr/lib/libmlt.so.6
#26 0x00007fffc346bfb1 in ?? () from /usr/lib/mlt/libmltxine.so
#27 0x00007ffff6c82017 in mlt_frame_get_image () from /usr/lib/libmlt.so.6
#28 0x00007fffc2c2ab57 in ?? () from /usr/lib/mlt/libmltcore.so
#29 0x00007ffff6c82017 in mlt_frame_get_image () from /usr/lib/libmlt.so.6
#30 0x00007fffc2c2972e in ?? () from /usr/lib/mlt/libmltcore.so
#31 0x00007ffff6c82017 in mlt_frame_get_image () from /usr/lib/libmlt.so.6
#32 0x00007fffc2c2edb2 in ?? () from /usr/lib/mlt/libmltcore.so
#33 0x00007ffff6c82017 in mlt_frame_get_image () from /usr/lib/libmlt.so.6
#34 0x00007fffc2c2f7cb in ?? () from /usr/lib/mlt/libmltcore.so
#35 0x00007ffff6c82017 in mlt_frame_get_image () from /usr/lib/libmlt.so.6
#36 0x00007ffff6c82017 in mlt_frame_get_image () from /usr/lib/libmlt.so.6
#37 0x00007fffc5cdd134 in ?? () from /usr/lib/mlt/libmltplus.so
#38 0x00007ffff6c82017 in mlt_frame_get_image () from /usr/lib/libmlt.so.6
#39 0x00007ffff6c97e29 in ?? () from /usr/lib/libmlt.so.6
#40 0x00007ffff6c82017 in mlt_frame_get_image () from /usr/lib/libmlt.so.6
#41 0x00007ffff6c95580 in ?? () from /usr/lib/libmlt.so.6
#42 0x00000000007472ed in RenderThread::run() ()
#43 0x00007ffff0d35a9e in QThreadPrivate::start (arg=0x7fff9c0046f0) at thread/qthread_unix.cpp:331
#44 0x00007fffebc414a4 in start_thread () from /usr/lib/libpthread.so.0
#45 0x00007ffff034013d in clone () from /usr/lib/libc.so.6

I tried to find the cause for a few hours and made some progress. The problem is that the "freetype->face" field is NULL. 

Using GDB watch points I was able to figure out when it becomes NULL: when the QFreetypeFace::cleanup() is being called, which happens when a thread exits. It appears that every QFontEngineFT instance references resources that are thread local. These resources are automatically cleaned up when the thread that created them ends. This means that when you instantiate a QFontEngineFT (more specifically when you call the QFontEngineFT::init() method), thread local data is being created and linked to from the "QFontEngineFT::freetype" member. Then that thread dies and those resources are cleared. Then later, the code from the crash backtrace runs in a different thread, which tries to call hb_shape_full() using a QFontEngineFT that was init()-ialized from another thread thus trying to access resources that were released.

If you go up the backtrace to QTextEngine::shapeTextWithHarfbuzzNG you can print:
(gdb) print ((QFontEngineFT*)actualFontEngine)->freetype->face
$37 = (FT_Face) 0x0
Comment 2 Mihai RUSU 2015-09-12 06:31:19 UTC
Created attachment 94514 [details]
kdenlive bt full
Comment 3 jens.verwaerde 2015-10-30 23:26:36 UTC
I'm having similar problems using Kdenlive (from the normal repositories) on Ubuntu 15.10.
Comment 4 Joshua Dunamis 2015-12-04 17:43:09 UTC
It crashes randomly also to me on Manjaro Linux KDE: Plasma 5.4.3 - kdenlive 18.08.3
Comment 5 Joshua Dunamis 2015-12-04 17:45:01 UTC
(In reply to Joshua Dunamis from comment #4)
> It crashes randomly also to me on Manjaro Linux KDE: Plasma 5.4.3 - kdenlive
> 18.08.3

Sorry, kdenlive 15.08.3
Comment 6 bass_dr 2016-03-09 05:01:35 UTC
We can reproduce issue by adding a lot of Clips, including a Title Clip. Put the cursor a bit before the Title Clip and hit play. First time it almost-never crashes, second time it always crashes.

The project that has the issue has 6 video tracks (many MTS videos + one title clip) and 3 Audio tracks. At least 3 videos are overlapping (including the title clip) when the crash usually happens.
Comment 7 Wegwerf 2016-08-07 16:46:43 UTC
Can you please check with Kdenlive 16.04.2 or current beta, as well as with MLT 6.2.0 at least? There have been fixes to the titler render module. Please be so kind as to report back your results. If the bug is fixed then please clise this report. Thanks for your cooperation!
Comment 8 Roger 2016-08-08 18:51:18 UTC
At the moment, this problem appears to be fixed (I updated as requested, using the Ubuntu ppa for kdenlive-testing (https://launchpad.net/~kdenlive/+archive/ubuntu/kdenlive-testing, if anyone needs the link).

I tested this with several hour-long video clips, cut up, multiple title clips, and it didn't crash. Long video clips with multiple cuts and overlaps seemed to be part of the issue, and that doesn't appear to trigger the crash now.

Others may still have this issue, so I will wait before closing.

Another issue may be present, but I'll report that separately if I can reproduce it.

Thanks for fixing this.

Roger
Comment 9 Wegwerf 2016-08-08 18:54:52 UTC
Roger, please be so kind as to close this bug report. We need to clear the backlog from stale reports so that the devs can focus on current bugs. As you kindly reported back, the bug is fixed for you. Thank you very much for your cooperation!
Comment 10 Roger 2016-08-08 18:59:57 UTC
Since I've been asked so nicely to close it, I'll close it.