Bug 361086 - git master 2016-03-28:Movit: Application crash when applying layout
Summary: git master 2016-03-28:Movit: Application crash when applying layout
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: User Interface & Miscellaneous (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-28 12:01 UTC by Evert Vorster
Modified: 2019-12-02 07:57 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:
fritzibaby: Brainstorm+
fritzibaby: MOVIT+


Attachments
Backtrace of crash (13.97 KB, text/plain)
2016-03-29 10:33 UTC, Evert Vorster
Details
stacktrace of crash on opening project monitor (22.09 KB, text/plain)
2016-06-03 16:33 UTC, me
Details
GDB Backtrace (15.36 KB, text/plain)
2016-07-30 08:03 UTC, Evert Vorster
Details
Valgrind log of the failure (271.79 KB, text/plain)
2016-07-30 08:06 UTC, Evert Vorster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Evert Vorster 2016-03-28 12:01:46 UTC
I am testing a new video card on my home desktop, the very capable nVidia GTX 960. 
I have enabled movit, and this is the first bug I hit with movit enabled. 
As soon as I apply a view, kdenlive exits, and I'll post the backtrace at the end.

Using official nVida drivers, movit and mlt are both latest released versions. Kdenlive itself is from git.

Here is the backtrace:
[evert@Vorster ~]$ gdb kdenlive
GNU gdb (GDB) 7.11
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from kdenlive...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/kdenlive 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffdc81d700 (LWP 1148)]
[New Thread 0x7fffd6a5f700 (LWP 1149)]
[New Thread 0x7fffba0a1700 (LWP 1150)]
[New Thread 0x7fffb39f1700 (LWP 1152)]
[New Thread 0x7fffb28a7700 (LWP 1153)]                                                                                                                                 
[New Thread 0x7fffb1930700 (LWP 1154)]                                                                                                                                 
Removing cache at "/home/evert/.cache/kdenlive-thumbs.kcache"                                                                                                          
[New Thread 0x7fff9f665700 (LWP 1156)]                                                                                                                                 
[Thread 0x7fff9f665700 (LWP 1156) exited]                                                                                                                              
[New Thread 0x7fff9f665700 (LWP 1157)]                                                                                                                                 
[New Thread 0x7fffa3666700 (LWP 1159)]                                                                                                                                 
OpenGL vendor:  "NVIDIA Corporation"                                                                                                                                   
OpenGL renderer:  "GeForce GTX 960/PCIe/SSE2"                                                                                                                          
OpenGL ARG_SYNC:  true                                                                                                                                                 
OpenGL OpenGLES:  false                                                                                                                                                
[New Thread 0x7fffa2ce2700 (LWP 1160)]                                                                                                                                 
[New Thread 0x7fffa2243700 (LWP 1161)]                                                                                                                                 
[New Thread 0x7fffa15ef700 (LWP 1162)]                                                                                                                                 
[New Thread 0x7fffa04ce700 (LWP 1163)]                                                                                                                                 
OpenGL vendor:  "NVIDIA Corporation"                                                                                                                                   
OpenGL renderer:  "GeForce GTX 960/PCIe/SSE2"                                                                                                                          
OpenGL ARG_SYNC:  true                                                                                                                                                 
OpenGL OpenGLES:  false                                                                                                                                                
[New Thread 0x7fff9ee64700 (LWP 1164)]                                                                                                                                 
[New Thread 0x7fff9dab0700 (LWP 1165)]                                                                                                                                 
[Thread 0x7fff9dab0700 (LWP 1165) exited]                                                                                                                              
[Thread 0x7fff9f665700 (LWP 1157) exited]                                                                                                                              
[Thread 0x7fffa04ce700 (LWP 1163) exited]                                                                                                                              
[New Thread 0x7fffa04ce700 (LWP 1166)]                                                                                                                                 
[Thread 0x7fffa2243700 (LWP 1161) exited]                                                                                                                              
[Thread 0x7fffa04ce700 (LWP 1166) exited]                                                                                                                              
[New Thread 0x7fffa04ce700 (LWP 1167)]
[New Thread 0x7fffa2243700 (LWP 1168)]
kdenlive: effect_chain.cpp:1746: void movit::EffectChain::render_to_fbo(GLuint, unsigned int, unsigned int): Assertion `status == GL_FRAMEBUFFER_COMPLETE' failed.

Thread 19 "RenderThread" received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffa2243700 (LWP 1168)]
0x00007fffef8a72a8 in raise () from /usr/lib/libc.so.6
(gdb) thread apply all bt

Thread 19 (Thread 0x7fffa2243700 (LWP 1168)):
#0  0x00007fffef8a72a8 in raise () from /usr/lib/libc.so.6
#1  0x00007fffef8a872a in abort () from /usr/lib/libc.so.6
#2  0x00007fffef8a01b7 in __assert_fail_base () from /usr/lib/libc.so.6
#3  0x00007fffef8a0262 in __assert_fail () from /usr/lib/libc.so.6
#4  0x00007fffd4627392 in movit::EffectChain::render_to_fbo(unsigned int, unsigned int, unsigned int) () from /usr/lib/libmovit.so.4
#5  0x00007fffd48929af in GlslManager::render_frame_texture(movit::EffectChain*, mlt_frame_s*, int, int, unsigned char**) () from /usr/lib/mlt/libmltopengl.so
#6  0x00007fffd4895a02 in ?? () from /usr/lib/mlt/libmltopengl.so
#7  0x00007ffff6d8a058 in mlt_frame_get_image () from /usr/lib/libmlt.so.6
#8  0x00007ffff6d9ff29 in ?? () from /usr/lib/libmlt.so.6
#9  0x00007ffff6d8a007 in mlt_frame_get_image () from /usr/lib/libmlt.so.6
#10 0x00007ffff6d9d6d4 in ?? () from /usr/lib/libmlt.so.6
#11 0x00000000007013dd in ?? ()
#12 0x00007ffff0346de8 in ?? () from /usr/lib/libQt5Core.so.5
#13 0x00007fffee104424 in start_thread () from /usr/lib/libpthread.so.0
#14 0x00007fffef95bcbd in clone () from /usr/lib/libc.so.6

Thread 18 (Thread 0x7fffa04ce700 (LWP 1167)):
#0  0x00007fffee10a03f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007ffff6d9d95b in mlt_consumer_rt_frame () from /usr/lib/libmlt.so.6
#2  0x00007fffb969aa20 in ?? () from /usr/lib/mlt/libmltsdl.so
#3  0x00007fffee104424 in start_thread () from /usr/lib/libpthread.so.0
#4  0x00007fffef95bcbd in clone () from /usr/lib/libc.so.6

Thread 15 (Thread 0x7fff9ee64700 (LWP 1164)):
#0  0x00007fffef952c3d in poll () from /usr/lib/libc.so.6
#1  0x00007fffe94f1f7c in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007fffe94f208c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007ffff056fcab in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#4  0x00007ffff05186fa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007ffff0341fe4 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007ffff0346de8 in ?? () from /usr/lib/libQt5Core.so.5
#7  0x00007fffee104424 in start_thread () from /usr/lib/libpthread.so.0
#8  0x00007fffef95bcbd in clone () from /usr/lib/libc.so.6

Thread 13 (Thread 0x7fffa15ef700 (LWP 1162)):
#0  0x00007fffee10a03f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007ffff0347c8b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#2  0x00007ffff603eb8d in ?? () from /usr/lib/libQt5Quick.so.5
#3  0x00007ffff603f465 in ?? () from /usr/lib/libQt5Quick.so.5
#4  0x00007ffff0346de8 in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007fffee104424 in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007fffef95bcbd in clone () from /usr/lib/libc.so.6

Thread 11 (Thread 0x7fffa2ce2700 (LWP 1160)):
#0  0x00007fffef952c3d in poll () from /usr/lib/libc.so.6
#1  0x00007fffe94f1f7c in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007fffe94f208c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007ffff056fc8f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#4  0x00007ffff05186fa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007ffff0341fe4 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007ffff0346de8 in ?? () from /usr/lib/libQt5Core.so.5
#7  0x00007fffee104424 in start_thread () from /usr/lib/libpthread.so.0
#8  0x00007fffef95bcbd in clone () from /usr/lib/libc.so.6

Thread 10 (Thread 0x7fffa3666700 (LWP 1159)):
#0  0x00007fffee10a03f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007ffff0347c8b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#2  0x00007ffff603eb8d in ?? () from /usr/lib/libQt5Quick.so.5
#3  0x00007ffff603f465 in ?? () from /usr/lib/libQt5Quick.so.5
#4  0x00007ffff0346de8 in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007fffee104424 in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007fffef95bcbd in clone () from /usr/lib/libc.so.6

Thread 7 (Thread 0x7fffb1930700 (LWP 1154)):
---Type <return> to continue, or q <return> to quit---
#0  0x00007fffef952c3d in poll () from /usr/lib/libc.so.6
#1  0x00007fffe94f1f7c in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007fffe94f208c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007ffff056fc8f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#4  0x00007ffff05186fa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007ffff0341fe4 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007ffff1f96915 in ?? () from /usr/lib/libQt5Qml.so.5
#7  0x00007ffff0346de8 in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007fffee104424 in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007fffef95bcbd in clone () from /usr/lib/libc.so.6

Thread 6 (Thread 0x7fffb28a7700 (LWP 1153)):
#0  0x00007fffee10a3e8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007ffff0347bc6 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#2  0x00007ffff03432dc in ?? () from /usr/lib/libQt5Core.so.5
#3  0x00007ffff0346de8 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007fffee104424 in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007fffef95bcbd in clone () from /usr/lib/libc.so.6

Thread 5 (Thread 0x7fffb39f1700 (LWP 1152)):
#0  0x00007fffef952c3d in poll () from /usr/lib/libc.so.6
#1  0x00007fffe94f1f7c in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007fffe94f208c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007ffff056fc8f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#4  0x00007ffff05186fa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007ffff0341fe4 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007ffff1f96915 in ?? () from /usr/lib/libQt5Qml.so.5
#7  0x00007ffff0346de8 in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007fffee104424 in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007fffef95bcbd in clone () from /usr/lib/libc.so.6

Thread 4 (Thread 0x7fffba0a1700 (LWP 1150)):
#0  0x00007fffef952c3d in poll () from /usr/lib/libc.so.6
#1  0x00007fffbf791cbc in ?? () from /usr/lib/libusb-1.0.so.0
#2  0x00007fffee104424 in start_thread () from /usr/lib/libpthread.so.0
#3  0x00007fffef95bcbd in clone () from /usr/lib/libc.so.6

Thread 3 (Thread 0x7fffd6a5f700 (LWP 1149)):
#0  0x00007fffef952c3d in poll () from /usr/lib/libc.so.6
#1  0x00007fffe94f1f7c in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007fffe94f208c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007ffff056fcab in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#4  0x00007ffff05186fa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007ffff0341fe4 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007ffff2a24a55 in ?? () from /usr/lib/libQt5DBus.so.5
#7  0x00007ffff0346de8 in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007fffee104424 in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007fffef95bcbd in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7fffdc81d700 (LWP 1148)):
#0  0x00007fffef952c3d in poll () from /usr/lib/libc.so.6
#1  0x00007fffe73c3ae2 in ?? () from /usr/lib/libxcb.so.1
#2  0x00007fffe73c5757 in xcb_wait_for_event () from /usr/lib/libxcb.so.1
#3  0x00007fffded87a99 in ?? () from /usr/lib/libQt5XcbQpa.so.5
#4  0x00007ffff0346de8 in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007fffee104424 in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007fffef95bcbd in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7ffff7ec9800 (LWP 1144)):
#0  0x00007ffff0b094e9 in QFont::QFont(QFont const&) () from /usr/lib/libQt5Gui.so.5
#1  0x00007ffff0b3b863 in QTextEngine::font(QScriptItem const&) const () from /usr/lib/libQt5Gui.so.5
#2  0x00007ffff0b3d0f3 in QTextEngine::shapeText(int) const () from /usr/lib/libQt5Gui.so.5
#3  0x00007ffff0b3d830 in QTextEngine::shape(int) const () from /usr/lib/libQt5Gui.so.5
#4  0x00007ffff0b50d3b in QTextLine::layout_helper(int) () from /usr/lib/libQt5Gui.so.5
#5  0x00007ffff0b516db in QTextLine::setLineWidth(double) () from /usr/lib/libQt5Gui.so.5
#6  0x00007ffff0cc1636 in ?? () from /usr/lib/libQt5Gui.so.5
---Type <return> to continue, or q <return> to quit---
#7  0x00007ffff0b281ce in QFontMetrics::boundingRect(QRect const&, int, QString const&, int, int*) const () from /usr/lib/libQt5Gui.so.5
#8  0x00007ffff0b2825a in QFontMetrics::size(int, QString const&, int, int*) const () from /usr/lib/libQt5Gui.so.5
#9  0x00007fffd6cc8af2 in ?? () from /usr/lib/qt/plugins/styles/breeze.so
#10 0x00007fffd6cc7084 in ?? () from /usr/lib/qt/plugins/styles/breeze.so
#11 0x00007fffd6cc66f4 in ?? () from /usr/lib/qt/plugins/styles/breeze.so
#12 0x00007fffd6cc7907 in ?? () from /usr/lib/qt/plugins/styles/breeze.so
#13 0x00007ffff176b7ff in QToolButton::paintEvent(QPaintEvent*) () from /usr/lib/libQt5Widgets.so.5
#14 0x00007ffff15eea58 in QWidget::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#15 0x00007ffff176d5f9 in QToolButton::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#16 0x00007ffff15aa68c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#17 0x00007ffff15af8f6 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#18 0x00007ffff051a518 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#19 0x00007ffff15e79ea in QWidgetPrivate::sendPaintEvent(QRegion const&) () from /usr/lib/libQt5Widgets.so.5
#20 0x00007ffff15e8031 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) ()
   from /usr/lib/libQt5Widgets.so.5
#21 0x00007ffff15e8d0c in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQt5Widgets.so.5
#22 0x00007ffff15e8bf9 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQt5Widgets.so.5
#23 0x00007ffff15e8bf9 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQt5Widgets.so.5
#24 0x00007ffff15e7ba1 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) ()
   from /usr/lib/libQt5Widgets.so.5
#25 0x00007ffff15e8d0c in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQt5Widgets.so.5
#26 0x00007ffff15e7ba1 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) ()
   from /usr/lib/libQt5Widgets.so.5
#27 0x00007ffff15b81c3 in ?? () from /usr/lib/libQt5Widgets.so.5
#28 0x00007ffff15b8955 in ?? () from /usr/lib/libQt5Widgets.so.5
#29 0x00007ffff160af4b in ?? () from /usr/lib/libQt5Widgets.so.5
#30 0x00007ffff15aa68c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#31 0x00007ffff15af8f6 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#32 0x00007ffff051a518 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#33 0x00007ffff0a6500d in QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent*) () from /usr/lib/libQt5Gui.so.5
#34 0x00007ffff0a65bfd in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib/libQt5Gui.so.5
#35 0x00007ffff0a42d6b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Gui.so.5
#36 0x00007fffdedbbd10 in ?? () from /usr/lib/libQt5XcbQpa.so.5
#37 0x00007fffe94f1d87 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#38 0x00007fffe94f1fe0 in ?? () from /usr/lib/libglib-2.0.so.0
#39 0x00007fffe94f208c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#40 0x00007ffff056fc8f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#41 0x00007ffff05186fa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#42 0x00007ffff0520b7c in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#43 0x00000000004861ba in ?? ()
#44 0x00007fffef894710 in __libc_start_main () from /usr/lib/libc.so.6
#45 0x0000000000486839 in _start ()
(gdb)

Reproducible: Always
Comment 1 Evert Vorster 2016-03-29 10:33:15 UTC
Created attachment 98137 [details]
Backtrace of crash

Re-compiled kdenlive, movit and mlt from git, and enabled debugging symbols in all of them. 

Attached the backtrace here. 

As said before, this crash happens when loading a layout on an empty, new project.
What is notable, though, is that the layout was saved without movit enabled. When I saved a new layout with movit enabled, kdenlive crashed. However, the layout that was saved now works and does not introduce the crash.
Comment 2 Evert Vorster 2016-04-07 06:42:44 UTC
This seems to be related to Bug 355259, as kdenlive throws exactly the same error, but for some reason the bug was marked as invalid. 

Just checked today (2016-04-07) and it still fails with the same error.
Comment 3 me 2016-05-26 18:50:45 UTC
Has there been any progress with this? Because I get that exact same error message on my desktop PC. On my laptop it works just fine with a very similar OS setup (distribution, kernel and most packages are the same).
Comment 4 Evert Vorster 2016-06-01 13:51:08 UTC
Nope, I still get this error when I run kdenlive with movit enabled.
Comment 5 Evert Vorster 2016-06-02 08:42:17 UTC
Did a bit more investigation. 

I am able to use shotcut with GPU accell enabled, and this uses the same MLT and Movit. 

However, kdenlive still crashes with the same error, whenever video is updated:

kdenlive: effect_chain.cpp:1778: void movit::EffectChain::render_to_fbo(GLuint, unsigned int, unsigned int): Assertion `status == GL_FRAMEBUFFER_COMPLETE' failed.

Thread 152 "RenderThread" received signal SIGABRT, Aborted.
[Switching to Thread 0x7fff797f8700 (LWP 5433)]
0x00007fffefb59295 in raise () from /usr/lib/libc.so.6
(gdb) thread apply all bt

Thread 152 (Thread 0x7fff797f8700 (LWP 5433)):
#0  0x00007fffefb59295 in raise () from /usr/lib/libc.so.6
#1  0x00007fffefb5a6da in abort () from /usr/lib/libc.so.6
#2  0x00007fffefb52297 in __assert_fail_base () from /usr/lib/libc.so.6
#3  0x00007fffefb52342 in __assert_fail () from /usr/lib/libc.so.6
#4  0x00007fffd84d432a in movit::EffectChain::render_to_fbo (this=this@entry=0x7fff21c12010, dest_fbo=1, 
    width=<optimized out>, width@entry=1280, height=height@entry=720) at effect_chain.cpp:1778
#5  0x00007fffd873fa0f in GlslManager::render_frame_texture (this=0x1c20e90, chain=0x7fff21c12010, 
    frame=0x7fff21ed6170, width=1280, height=720, image=0x7fff797f7d98) at filter_glsl_manager.cpp:404
#6  0x00007fffd8742af0 in convert_image (frame=0x7fff21ed6170, image=0x7fff797f7d98, format=0x1c6a2fc, 
    output_format=mlt_image_glsl_texture) at filter_movit_convert.cpp:573
#7  0x00007ffff6d86058 in mlt_frame_get_image (self=self@entry=0x7fff21ed6170, 
    buffer=buffer@entry=0x7fff797f7d98, format=format@entry=0x1c6a2fc, width=width@entry=0x7fff797f7d84, 
    height=height@entry=0x7fff797f7d88, writable=writable@entry=0) at mlt_frame.c:591
#8  0x00007ffff6d9bf99 in producer_get_image (self=self@entry=0x7fff21af17a0, 
    buffer=buffer@entry=0x7fff797f7d98, format=format@entry=0x1c6a2fc, width=width@entry=0x7fff797f7d84, 
    height=height@entry=0x7fff797f7d88, writable=writable@entry=0) at mlt_tractor.c:370
#9  0x00007ffff6d86007 in mlt_frame_get_image (self=self@entry=0x7fff21af17a0, 
    buffer=buffer@entry=0x7fff797f7d98, format=format@entry=0x1c6a2fc, width=width@entry=0x7fff797f7d84, 
    height=height@entry=0x7fff797f7d88, writable=writable@entry=0) at mlt_frame.c:585
#10 0x00007ffff6d99724 in consumer_read_ahead_thread (arg=0x2cf7540) at mlt_consumer.c:825
#11 0x000000000070358d in ?? ()
#12 0x00007ffff05fd1d8 in ?? () from /usr/lib/libQt5Core.so.5
#13 0x00007fffee0cb474 in start_thread () from /usr/lib/libpthread.so.0
#14 0x00007fffefc0d69d in clone () from /usr/lib/libc.so.6
Comment 6 Evert Vorster 2016-06-03 08:21:10 UTC
Exerpt from a mail between Steinar (Movit's maintainer) and me on this bug:

On Thu, Jun 02, 2016 at 10:24:26AM +0200, Evert Vorster wrote:
> kdenlive: effect_chain.cpp:1778: void
> movit::EffectChain::render_to_fbo(GLuint, unsigned int, unsigned int):
> Assertion `status == GL_FRAMEBUFFER_COMPLETE' failed.

Yes, now the line numbers line up. It's still the same issue, and I still
believe it's unlikely to be a Movit bug.
Comment 7 Jean-Baptiste Mardelle 2016-06-03 14:41:56 UTC
Git commit c6d2a5e5b4a8d89e868a22e99d7f93b9744ea0ce by Jean-Baptiste Mardelle.
Committed on 03/06/2016 at 14:41.
Pushed by mardelle into branch 'master'.

backport some Shotcut's movit specific code

M  +7    -5    src/monitor/glwidget.cpp
M  +1    -0    src/monitor/glwidget.h

http://commits.kde.org/kdenlive/c6d2a5e5b4a8d89e868a22e99d7f93b9744ea0ce
Comment 8 me 2016-06-03 16:32:31 UTC
I don't know if this is the same error or something different, but I have build the latest git version (2016-06-03 17:56:35, SHA1 ID: 7bd4c552dbf85951878e6339998792f5a5fbc56e) and whenever I switch to the Project Monitor or click into a frame in the timeline kdenlive crashes with following log:

"This is an untested development version. Always backup your data"
Removing cache at "/home/jay/.cache/kdenlive-thumbs.kcache"
 // / processing file open
 // / processing file open: validate
OpenGL vendor:  "NVIDIA Corporation"
OpenGL renderer:  "GeForce GTX 680/PCIe/SSE2"
OpenGL ARG_SYNC:  true
OpenGL OpenGLES:  false
OpenGL vendor:  "NVIDIA Corporation"
OpenGL renderer:  "GeForce GTX 680/PCIe/SSE2"
OpenGL ARG_SYNC:  true
OpenGL OpenGLES:  false
Opening a document with version  0.94  /  0.94
 // / processing file validate ok
 * * * *TL PREVIEW NOT INITIALIZED!!!
***********
FOUND GUIDES:  0 
**********

RtApiAlsa::getDeviceInfo: snd_pcm_open error for device (hw:3,0), Device or resource busy.


RtApiAlsa::callbackEvent: audio write error, underrun.

[h264 @ 0x7faf0872e2a0] Missing reference picture, default is 0
[h264 @ 0x7faf0872e2a0] decode_slice_header error
[h264 @ 0x7faf0872e2a0] Missing reference picture, default is 0
[h264 @ 0x7faf0872e2a0] decode_slice_header error
[h264 @ 0x7faf0872e2a0] Missing reference picture, default is 0
[h264 @ 0x7faf0872e2a0] decode_slice_header error
[h264 @ 0x7faf0872e2a0] Missing reference picture, default is 0
[h264 @ 0x7faf0872e2a0] decode_slice_header error
GL error 0x501 at filter_glsl_manager.cpp:381
Aborted (core dumped)

I will attach a complete gdb stacktrace.
Comment 9 me 2016-06-03 16:33:42 UTC
Created attachment 99343 [details]
stacktrace of crash on opening project monitor
Comment 10 Evert Vorster 2016-06-03 17:21:18 UTC
Hi there, JBM. 

Thanks for looking into this bug. 
As stated earlier, I can trigger it by just switching between clip and project monitors. 

Unfortunately, the latest canges (2016-06-03) has not cured the problem. 

Here is another backtrace from the latest git. 
I have only included the backtrace of the affected thread:

kdenlive: effect_chain.cpp:1778: void movit::EffectChain::render_to_fbo(GLuint, unsigned int, unsigned int): Assertion `status == GL_FRAMEBUFFER_COMPLETE' failed.

Thread 56 "RenderThread" received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffa1805700 (LWP 20918)]
0x00007fffefb59295 in raise () from /usr/lib/libc.so.6
(gdb) thread apply all bt

Thread 56 (Thread 0x7fffa1805700 (LWP 20918)):
#0  0x00007fffefb59295 in raise () from /usr/lib/libc.so.6
#1  0x00007fffefb5a6da in abort () from /usr/lib/libc.so.6
#2  0x00007fffefb52297 in __assert_fail_base () from /usr/lib/libc.so.6
#3  0x00007fffefb52342 in __assert_fail () from /usr/lib/libc.so.6
#4  0x00007fffd84d432a in movit::EffectChain::render_to_fbo (this=this@entry=0x7fff3045b670, dest_fbo=2, width=<optimized out>, 
    width@entry=1920, height=height@entry=1080) at effect_chain.cpp:1778
#5  0x00007fffd873fa0f in GlslManager::render_frame_texture (this=0x1ce4520, chain=0x7fff3045b670, frame=0x7fff2f7df140, width=1920, 
    height=1080, image=0x7fffa1804d98) at filter_glsl_manager.cpp:404
#6  0x00007fffd8742af0 in convert_image (frame=0x7fff2f7df140, image=0x7fffa1804d98, format=0x1d7112c, 
    output_format=mlt_image_glsl_texture) at filter_movit_convert.cpp:573
#7  0x00007ffff6d86058 in mlt_frame_get_image (self=self@entry=0x7fff2f7df140, buffer=buffer@entry=0x7fffa1804d98, 
    format=format@entry=0x1d7112c, width=width@entry=0x7fffa1804d84, height=height@entry=0x7fffa1804d88, writable=writable@entry=0)
    at mlt_frame.c:591
#8  0x00007ffff6d9bf99 in producer_get_image (self=self@entry=0x7fff23be65e0, buffer=buffer@entry=0x7fffa1804d98, 
    format=format@entry=0x1d7112c, width=width@entry=0x7fffa1804d84, height=height@entry=0x7fffa1804d88, writable=writable@entry=0)
    at mlt_tractor.c:370
#9  0x00007ffff6d86007 in mlt_frame_get_image (self=self@entry=0x7fff23be65e0, buffer=buffer@entry=0x7fffa1804d98, 
    format=format@entry=0x1d7112c, width=width@entry=0x7fffa1804d84, height=height@entry=0x7fffa1804d88, writable=writable@entry=0)
    at mlt_frame.c:585
#10 0x00007ffff6d99724 in consumer_read_ahead_thread (arg=0x2d753a0) at mlt_consumer.c:825
#11 0x0000000000722bcd in RenderThread::run (this=0x7fff6c013ad0)
    at /tmp/yaourt-tmp-evert/aur-kdenlive-git/src/kdenlive/src/monitor/glwidget.cpp:1229
#12 0x00007ffff05fd1d8 in ?? () from /usr/lib/libQt5Core.so.5
#13 0x00007fffee0cb474 in start_thread () from /usr/lib/libpthread.so.0
#14 0x00007fffefc0d69d in clone () from /usr/lib/libc.so.6
Comment 11 Jean-Baptiste Mardelle 2016-06-03 18:02:33 UTC
Git commit ae4619d4c5e2e39415af3b71fc7cf4b4c58f5eb6 by Jean-Baptiste Mardelle.
Committed on 03/06/2016 at 18:02.
Pushed by mardelle into branch 'master'.

More movit fixes

M  +4    -2    src/effectslist/initeffects.cpp
M  +6    -5    src/monitor/glwidget.cpp

http://commits.kde.org/kdenlive/ae4619d4c5e2e39415af3b71fc7cf4b4c58f5eb6
Comment 12 Evert Vorster 2016-06-04 07:28:48 UTC
Tested after commit:
 ae4619d 	13 hours ago 	Jean-Baptiste Mardelle 	More movit fixes

Still fails in the same way. I don't even have to load a video, just clicking on the empty project preview is enough to bring on the crash:


[New Thread 0x7fff7d7f9700 (LWP 26505)]
kdenlive: effect_chain.cpp:1778: void movit::EffectChain::render_to_fbo(GLuint, unsigned int, unsigned int): Assertion `status == GL_FRAMEBUFFER_COMPLETE' failed.

Thread 29 "RenderThread" received signal SIGABRT, Aborted.
[Switching to Thread 0x7fff7d7f9700 (LWP 26505)]
0x00007fffefb59295 in raise () from /usr/lib/libc.so.6
(gdb) thread apply all bt

Thread 29 (Thread 0x7fff7d7f9700 (LWP 26505)):
#0  0x00007fffefb59295 in raise () from /usr/lib/libc.so.6
#1  0x00007fffefb5a6da in abort () from /usr/lib/libc.so.6
#2  0x00007fffefb52297 in __assert_fail_base () from /usr/lib/libc.so.6
#3  0x00007fffefb52342 in __assert_fail () from /usr/lib/libc.so.6
#4  0x00007fffd84d432a in movit::EffectChain::render_to_fbo (this=this@entry=0x7fff523368f0, dest_fbo=1, width=<optimized out>, 
    width@entry=1920, height=height@entry=1080) at effect_chain.cpp:1778
#5  0x00007fffd873fa0f in GlslManager::render_frame_texture (this=0x1d141d0, chain=0x7fff523368f0, frame=0x7fff52133060, width=1920, 
    height=1080, image=0x7fff7d7f8d98) at filter_glsl_manager.cpp:404
#6  0x00007fffd8742af0 in convert_image (frame=0x7fff52133060, image=0x7fff7d7f8d98, format=0x228d82c, 
    output_format=mlt_image_glsl_texture) at filter_movit_convert.cpp:573
#7  0x00007ffff6d86058 in mlt_frame_get_image (self=self@entry=0x7fff52133060, buffer=buffer@entry=0x7fff7d7f8d98, 
    format=format@entry=0x228d82c, width=width@entry=0x7fff7d7f8d84, height=height@entry=0x7fff7d7f8d88, writable=writable@entry=0)
    at mlt_frame.c:591
#8  0x00007ffff6d9bf99 in producer_get_image (self=self@entry=0x7fff51740f50, buffer=buffer@entry=0x7fff7d7f8d98, 
    format=format@entry=0x228d82c, width=width@entry=0x7fff7d7f8d84, height=height@entry=0x7fff7d7f8d88, writable=writable@entry=0)
    at mlt_tractor.c:370
#9  0x00007ffff6d86007 in mlt_frame_get_image (self=self@entry=0x7fff51740f50, buffer=buffer@entry=0x7fff7d7f8d98, 
    format=format@entry=0x228d82c, width=width@entry=0x7fff7d7f8d84, height=height@entry=0x7fff7d7f8d88, writable=writable@entry=0)
    at mlt_frame.c:585
#10 0x00007ffff6d99724 in consumer_read_ahead_thread (arg=0x2d71860) at mlt_consumer.c:825
#11 0x0000000000722c1d in RenderThread::run (this=0x7fff90000c60)
    at /tmp/yaourt-tmp-evert/aur-kdenlive-git/src/kdenlive/src/monitor/glwidget.cpp:1230
#12 0x00007ffff05fd1d8 in ?? () from /usr/lib/libQt5Core.so.5
#13 0x00007fffee0cb474 in start_thread () from /usr/lib/libpthread.so.0
#14 0x00007fffefc0d69d in clone () from /usr/lib/libc.so.6
Comment 13 me 2016-06-04 15:39:30 UTC
I have just compiled movit, mlt and kdenlive all from their respective gits and I can confirm that the error is still there and that it happens even when just switching to an empty project monitor. BTW, playback of clips in the clip monitor works just fine.
Comment 14 Vincent PINON 2016-06-07 21:46:55 UTC
Git commit c6280892da25ef125cfe6030df57366e978c5d05 by Vincent Pinon, on behalf of Jean-Baptiste Mardelle.
Committed on 07/06/2016 at 20:35.
Pushed by vpinon into branch 'Applications/16.04'.

More movit fixes

M  +4    -2    src/effectslist/initeffects.cpp
M  +6    -5    src/monitor/glwidget.cpp

http://commits.kde.org/kdenlive/c6280892da25ef125cfe6030df57366e978c5d05
Comment 15 Vincent PINON 2016-06-07 21:47:00 UTC
Git commit e4a5919bf1a4ce4adef566e35a9a0768f212af9c by Vincent Pinon, on behalf of Jean-Baptiste Mardelle.
Committed on 07/06/2016 at 20:34.
Pushed by vpinon into branch 'Applications/16.04'.

backport some Shotcut's movit specific code

M  +7    -5    src/monitor/glwidget.cpp
M  +1    -0    src/monitor/glwidget.h

http://commits.kde.org/kdenlive/e4a5919bf1a4ce4adef566e35a9a0768f212af9c
Comment 16 Evert Vorster 2016-06-08 14:43:34 UTC
Unfortunately, I am not on the hardware where I first saw the crash. 

On my current laptop, I cannot make kdenlive crash with movit enabled. Unfortunately it does not have a nVidia GPU, but an Intel one. I also get an error message on the console when trying to add a GPU effect to a clip on the timeline.

I won't be home for two months to properly check the fixes.
Comment 17 me 2016-06-08 18:43:47 UTC
I'm sorry to report, that on my desktop PC, it still crashes in the same method. I also made the observation, that on my work notebook with optimus, it works as expected.
The backtrace:

#0  0x00007fffeb974295 in raise () from /usr/lib/libc.so.6
#1  0x00007fffeb9756da in abort () from /usr/lib/libc.so.6
#2  0x00007fffeb96d297 in __assert_fail_base () from /usr/lib/libc.so.6
#3  0x00007fffeb96d342 in __assert_fail () from /usr/lib/libc.so.6
#4  0x00007fffab5e80e7 in movit::EffectChain::render_to_fbo (this=this@entry=0x7ffed9fcbbe0, dest_fbo=2, width=width@entry=1920, height=height@entry=1080) at effect_chain.cpp:1778
#5  0x00007fffab85157f in GlslManager::render_frame_texture (this=0x1f42d90, chain=0x7ffed9fcbbe0, frame=0x7fff2c12ec80, width=1920, height=1080, image=0x7fff445c3d98) at filter_glsl_manager.cpp:404
#6  0x00007fffab85447e in convert_image (frame=0x7fff2c12ec80, image=0x7fff445c3d98, format=0x2da360c, output_format=mlt_image_glsl_texture) at filter_movit_convert.cpp:573
#7  0x00007ffff66894b8 in mlt_frame_get_image (self=self@entry=0x7fff2c12ec80, buffer=buffer@entry=0x7fff445c3d98, format=format@entry=0x2da360c, width=width@entry=0x7fff445c3d84, height=height@entry=0x7fff445c3d88, writable=writable@entry=0) at mlt_frame.c:591
#8  0x00007ffff669ea59 in producer_get_image (self=self@entry=0x7ffed2fe0620, buffer=buffer@entry=0x7fff445c3d98, format=format@entry=0x2da360c, width=width@entry=0x7fff445c3d84, height=height@entry=0x7fff445c3d88, writable=writable@entry=0) at mlt_tractor.c:370
#9  0x00007ffff6689467 in mlt_frame_get_image (self=self@entry=0x7ffed2fe0620, buffer=buffer@entry=0x7fff445c3d98, format=format@entry=0x2da360c, width=width@entry=0x7fff445c3d84, height=height@entry=0x7fff445c3d88, writable=writable@entry=0) at mlt_frame.c:585
#10 0x00007ffff669c28c in consumer_read_ahead_thread (arg=0x2d99430) at mlt_consumer.c:825
#11 0x00000000007c5127 in RenderThread::run() ()
#12 0x00007fffec62e1d8 in ?? () from /usr/lib/libQt5Core.so.5
#13 0x00007fffea1b1474 in start_thread () from /usr/lib/libpthread.so.0
#14 0x00007fffeba2869d in clone () from /usr/lib/libc.so.6
Comment 18 Evert Vorster 2016-07-30 08:03:35 UTC
Created attachment 100384 [details]
GDB Backtrace
Comment 19 Evert Vorster 2016-07-30 08:06:14 UTC
Created attachment 100385 [details]
Valgrind log of the failure

Hi there. 

I am home again, and am able to make kdenlive crash with just applying a layout when movit is enabled. I have added a gdb and a valgrind log of the failure. 

Where are the profile files saved, please? I want to attach the profile that I am trying to apply as well. 
I have re-built kdenlive, mlt and movit with debugging symbols enabled.
Comment 20 Evert Vorster 2016-08-09 06:32:13 UTC
Still an issue as of 2016-08-09
Comment 21 Riccardo Robecchi 2016-09-23 11:56:31 UTC
I can confirm the issue is still present as of 2016-09-23. Kdenlive 16.08.1 from the Kdenlive PPA running on Linux Mint 18 (using a GeForce 960 GPU with NVIDIA 370.28 proprietary drivers).
Comment 22 Andrew Crouthamel 2018-09-26 22:19:00 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 23 Evert Vorster 2018-09-27 06:40:37 UTC
Changed to REPORTED.
Currently unable to trigger the bug as kdenlive segfaults before getting to this position on an unrelated issue.
Comment 24 Evert Vorster 2019-12-02 07:57:27 UTC
I can now apply layouts at will, without Kdenlive crashing and movit enabled