Bug 375713

Summary: Kdenlive crashes if GPU processing (Movit library) is enabled
Product: [Applications] kdenlive Reporter: Stolz <javi>
Component: Video Display & ExportAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED DUPLICATE    
Severity: crash CC: arthur.huillet+kdebugs, davegunnoe, dospamme, fritzibaby, krzysio.kurek, louise9841, martin.sandsmark
Priority: NOR Flags: fritzibaby: MOVIT+
Version: 16.12.1   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: New crash information added by DrKonqi

Description Stolz 2017-01-29 17:06:43 UTC
Application: kdenlive (16.12.1)

Qt Version: 5.7.1
Frameworks Version: 5.30.0
Operating System: Linux 4.9.5-gentoo x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
- What I was doing when the application crashed:

Trying to play timeline from the project monitor

- Custom settings of the application:

It only happens when "Use GPU processing (Movit library)" option is enabled in the playback settings. If I don't enable that option playback works (but very choppy)

The crash can be reproduced every time.

-- Backtrace:
Application: Kdenlive (kdenlive), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f219cd2b780 (LWP 22834))]

Thread 17 (Thread 0x7f211639c700 (LWP 31750)):
#0  0x00007f2194cf63a8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f218166cdc4 in ?? () from /usr/lib64/opengl/nvidia/lib/libGLX_nvidia.so.0
#2  0x00007f217afd5cd4 in ?? () from /usr/lib64/libnvidia-glcore.so.378.09
#3  0x00007f218166c0ac in ?? () from /usr/lib64/opengl/nvidia/lib/libGLX_nvidia.so.0
#4  0x00007f2194cf0444 in start_thread () from /lib64/libpthread.so.0
#5  0x00007f219685fabd in clone () from /lib64/libc.so.6

Thread 16 (Thread 0x7f2146ffd700 (LWP 31749)):
[KCrash Handler]
#6  0x00007f21967ab1e8 in raise () from /lib64/libc.so.6
#7  0x00007f21967ac63a in abort () from /lib64/libc.so.6
#8  0x00007f21794656a9 in movit::abort_gl_error(unsigned int, char const*, int) () from /usr/lib64/libmovit.so.5
#9  0x00007f21796eae40 in GlslManager::render_frame_rgba (this=<optimized out>, chain=chain@entry=0x7f213835df20, frame=frame@entry=0x7f213826b6b0, width=width@entry=3840, height=height@entry=2160, image=image@entry=0x7f2146ffcb70) at filter_glsl_manager.cpp:443
#10 0x00007f21796ebcc9 in movit_render (chain=0x7f213835df20, frame=0x7f213826b6b0, format=0x3b984ac, output_format=mlt_image_rgb24a, width=3840, height=2160, image=0x7f2146ffcb70) at filter_movit_convert.cpp:454
#11 0x00007f21796edc81 in convert_image (frame=0x7f213826b6b0, image=0x7f2146ffcb70, format=<optimized out>, output_format=mlt_image_rgb24a) at filter_movit_convert.cpp:573
#12 0x00007f219bf10193 in mlt_frame_get_image (self=self@entry=0x7f213826b6b0, buffer=buffer@entry=0x7f2146ffcb70, format=format@entry=0x3b984ac, width=width@entry=0x7f2146ffcb58, height=height@entry=0x7f2146ffcb5c, writable=writable@entry=0) at mlt_frame.c:591
#13 0x00007f2171744b5d in filter_get_image (this=this@entry=0x7f213826b6b0, image=image@entry=0x7f2146ffcb70, format=format@entry=0x3b984ac, width=width@entry=0x7f2146ffcb58, height=height@entry=0x7f2146ffcb5c, writable=writable@entry=0) at filter_frei0r.c:32
#14 0x00007f219bf10140 in mlt_frame_get_image (self=self@entry=0x7f213826b6b0, buffer=buffer@entry=0x7f2146ffcb70, format=format@entry=0x3b984ac, width=width@entry=0x7f2146ffcb58, height=height@entry=0x7f2146ffcb5c, writable=writable@entry=0) at mlt_frame.c:585
#15 0x00007f219bf23eb3 in get_image_b (b_frame=b_frame@entry=0x7f213826b6b0, image=image@entry=0x7f2146ffcb70, format=format@entry=0x3b984ac, width=width@entry=0x7f2146ffcb58, height=height@entry=0x7f2146ffcb5c, writable=writable@entry=0) at mlt_transition.c:366
#16 0x00007f219bf10140 in mlt_frame_get_image (self=self@entry=0x7f213826b6b0, buffer=buffer@entry=0x7f2146ffcb70, format=format@entry=0x3b984ac, width=width@entry=0x7f2146ffcb58, height=height@entry=0x7f2146ffcb5c, writable=writable@entry=0) at mlt_frame.c:585
#17 0x00007f21710e30f5 in get_image (a_frame=a_frame@entry=0x7f213833cb50, image=image@entry=0x7f2146ffce18, format=format@entry=0x3b984ac, width=width@entry=0x7f2146ffce04, height=height@entry=0x7f2146ffce08, writable=writable@entry=0) at transition_qtblend.cpp:146
#18 0x00007f219bf10140 in mlt_frame_get_image (self=self@entry=0x7f213833cb50, buffer=buffer@entry=0x7f2146ffce18, format=format@entry=0x3b984ac, width=width@entry=0x7f2146ffce04, height=height@entry=0x7f2146ffce08, writable=writable@entry=0) at mlt_frame.c:585
#19 0x00007f219bf24a6e in producer_get_image (self=self@entry=0x7f2138250c30, buffer=buffer@entry=0x7f2146ffce18, format=format@entry=0x3b984ac, width=width@entry=0x7f2146ffce04, height=height@entry=0x7f2146ffce08, writable=writable@entry=0) at mlt_tractor.c:370
#20 0x00007f219bf10140 in mlt_frame_get_image (self=self@entry=0x7f2138250c30, buffer=buffer@entry=0x7f2146ffce18, format=format@entry=0x3b984ac, width=width@entry=0x7f2146ffce04, height=height@entry=0x7f2146ffce08, writable=writable@entry=0) at mlt_frame.c:585
#21 0x00007f219bf2200f in consumer_read_ahead_thread (arg=0x403aab0) at mlt_consumer.c:825
#22 0x000000000072845d in RenderThread::run() ()
#23 0x00007f21972b382d in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#24 0x00007f2194cf0444 in start_thread () from /lib64/libpthread.so.0
#25 0x00007f219685fabd in clone () from /lib64/libc.so.6

Thread 15 (Thread 0x7f2129150700 (LWP 31731)):
#0  0x00007f2194cf63a8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f218166cdc4 in ?? () from /usr/lib64/opengl/nvidia/lib/libGLX_nvidia.so.0
#2  0x00007f217afd5cd4 in ?? () from /usr/lib64/libnvidia-glcore.so.378.09
#3  0x00007f218166c0ac in ?? () from /usr/lib64/opengl/nvidia/lib/libGLX_nvidia.so.0
#4  0x00007f2194cf0444 in start_thread () from /lib64/libpthread.so.0
#5  0x00007f219685fabd in clone () from /lib64/libc.so.6

Thread 14 (Thread 0x7f2145ffb700 (LWP 31730)):
#0  0x00007f2194cf5fff in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f219bf23030 in mlt_consumer_rt_frame (self=self@entry=0x403aab0) at mlt_consumer.c:1576
#2  0x00007f216ff60825 in consumer_thread (arg=0x403aab0) at consumer_sdl_audio.c:531
#3  0x00007f2194cf0444 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f219685fabd in clone () from /lib64/libc.so.6

Thread 13 (Thread 0x7f2116b9d700 (LWP 23989)):
#0  0x00007f2194cf63a8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f218166cdc4 in ?? () from /usr/lib64/opengl/nvidia/lib/libGLX_nvidia.so.0
#2  0x00007f217afd5cd4 in ?? () from /usr/lib64/libnvidia-glcore.so.378.09
#3  0x00007f218166c0ac in ?? () from /usr/lib64/opengl/nvidia/lib/libGLX_nvidia.so.0
#4  0x00007f2194cf0444 in start_thread () from /lib64/libpthread.so.0
#5  0x00007f219685fabd in clone () from /lib64/libc.so.6

Thread 12 (Thread 0x7f21477fe700 (LWP 23699)):
#0  0x00007f2191e2e69c in g_ptr_array_set_size () from /usr/lib64/libglib-2.0.so.0
#1  0x00007f2191e59b70 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f2191e5a60b in ?? () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f2191e5a7ec in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f21974c894b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f219746f9ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#6  0x00007f21972addfb in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#7  0x00007f21972b382d in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#8  0x00007f2194cf0444 in start_thread () from /lib64/libpthread.so.0
#9  0x00007f219685fabd in clone () from /lib64/libc.so.6

Thread 11 (Thread 0x7f2147fff700 (LWP 23624)):
#0  0x00007f2194cf63a8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f218166cdc4 in ?? () from /usr/lib64/opengl/nvidia/lib/libGLX_nvidia.so.0
#2  0x00007f217afd5cd4 in ?? () from /usr/lib64/libnvidia-glcore.so.378.09
#3  0x00007f218166c0ac in ?? () from /usr/lib64/opengl/nvidia/lib/libGLX_nvidia.so.0
#4  0x00007f2194cf0444 in start_thread () from /lib64/libpthread.so.0
#5  0x00007f219685fabd in clone () from /lib64/libc.so.6

Thread 10 (Thread 0x7f2154e12700 (LWP 23623)):
#0  0x00007f2194cf5fff in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f21972b3f4a in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQt5Core.so.5
#2  0x00007f219b7e3ccd in ?? () from /usr/lib64/libQt5Quick.so.5
#3  0x00007f219b7e45a5 in ?? () from /usr/lib64/libQt5Quick.so.5
#4  0x00007f21972b382d in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f2194cf0444 in start_thread () from /lib64/libpthread.so.0
#6  0x00007f219685fabd in clone () from /lib64/libc.so.6

Thread 9 (Thread 0x7f2155613700 (LWP 23605)):
#0  0x00007f2196856a3d in poll () from /lib64/libc.so.6
#1  0x00007f2191e5a6dc in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f2191e5a7ec in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f21974c894b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#4  0x00007f219746f9ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f21972addfb in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#6  0x00007f21972b382d in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#7  0x00007f2194cf0444 in start_thread () from /lib64/libpthread.so.0
#8  0x00007f219685fabd in clone () from /lib64/libc.so.6

Thread 8 (Thread 0x7f2155e14700 (LWP 23505)):
#0  0x00007f2194cf63a8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f218166cdc4 in ?? () from /usr/lib64/opengl/nvidia/lib/libGLX_nvidia.so.0
#2  0x00007f217afd5cd4 in ?? () from /usr/lib64/libnvidia-glcore.so.378.09
#3  0x00007f218166c0ac in ?? () from /usr/lib64/opengl/nvidia/lib/libGLX_nvidia.so.0
#4  0x00007f2194cf0444 in start_thread () from /lib64/libpthread.so.0
#5  0x00007f219685fabd in clone () from /lib64/libc.so.6

Thread 7 (Thread 0x7f2156615700 (LWP 23503)):
#0  0x00007f2194cf5fff in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f21972b3f4a in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQt5Core.so.5
#2  0x00007f219b7e3ccd in ?? () from /usr/lib64/libQt5Quick.so.5
#3  0x00007f219b7e45a5 in ?? () from /usr/lib64/libQt5Quick.so.5
#4  0x00007f21972b382d in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f2194cf0444 in start_thread () from /lib64/libpthread.so.0
#6  0x00007f219685fabd in clone () from /lib64/libc.so.6

Thread 6 (Thread 0x7f2164f7e700 (LWP 23204)):
#0  0x00007f2191ea0514 in g_mutex_unlock () from /usr/lib64/libglib-2.0.so.0
#1  0x00007f2191e5a7f6 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f21974c894b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#3  0x00007f219746f9ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#4  0x00007f21972addfb in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#5  0x00007f2197f9d325 in ?? () from /usr/lib64/libQt5Qml.so.5
#6  0x00007f21972b382d in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#7  0x00007f2194cf0444 in start_thread () from /lib64/libpthread.so.0
#8  0x00007f219685fabd in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7f21669c2700 (LWP 23160)):
#0  0x00007f2196856a3d in poll () from /lib64/libc.so.6
#1  0x00007f2191e5a6dc in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f2191e5a7ec in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f21974c894b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#4  0x00007f219746f9ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f21972addfb in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#6  0x00007f2197f9d325 in ?? () from /usr/lib64/libQt5Qml.so.5
#7  0x00007f21972b382d in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#8  0x00007f2194cf0444 in start_thread () from /lib64/libpthread.so.0
#9  0x00007f219685fabd in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f21813b4700 (LWP 22898)):
#0  0x00007f2194cf63a8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f218166cdc4 in ?? () from /usr/lib64/opengl/nvidia/lib/libGLX_nvidia.so.0
#2  0x00007f217afd5cd4 in ?? () from /usr/lib64/libnvidia-glcore.so.378.09
#3  0x00007f218166c0ac in ?? () from /usr/lib64/opengl/nvidia/lib/libGLX_nvidia.so.0
#4  0x00007f2194cf0444 in start_thread () from /lib64/libpthread.so.0
#5  0x00007f219685fabd in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f2189169700 (LWP 22861)):
#0  0x00007f2196856a3d in poll () from /lib64/libc.so.6
#1  0x00007f2191e5a6dc in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f2191e5a7ec in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f21974c894b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#4  0x00007f219746f9ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f21972addfb in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#6  0x00007f219cdca835 in ?? () from /usr/lib64/libQt5DBus.so.5
#7  0x00007f21972b382d in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#8  0x00007f2194cf0444 in start_thread () from /lib64/libpthread.so.0
#9  0x00007f219685fabd in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f218b763700 (LWP 22847)):
#0  0x00007f2196856a3d in poll () from /lib64/libc.so.6
#1  0x00007f21917c68f2 in ?? () from /usr/lib64/libxcb.so.1
#2  0x00007f21917c86f7 in xcb_wait_for_event () from /usr/lib64/libxcb.so.1
#3  0x00007f218e2fafb9 in ?? () from /usr/lib64/libQt5XcbQpa.so.5
#4  0x00007f21972b382d in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f2194cf0444 in start_thread () from /lib64/libpthread.so.0
#6  0x00007f219685fabd in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f219cd2b780 (LWP 22834)):
#0  0x00007f2194cf5fff in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f21917c6b49 in ?? () from /usr/lib64/libxcb.so.1
#2  0x00007f21917c8437 in ?? () from /usr/lib64/libxcb.so.1
#3  0x00007f21917c8541 in xcb_wait_for_reply () from /usr/lib64/libxcb.so.1
#4  0x00007f218e2fa0aa in QXcbConnection::sync() () from /usr/lib64/libQt5XcbQpa.so.5
#5  0x00007f218e318de0 in ?? () from /usr/lib64/libQt5XcbQpa.so.5
#6  0x00007f218e318eba in ?? () from /usr/lib64/libQt5XcbQpa.so.5
#7  0x00007f21979283b1 in QBackingStore::beginPaint(QRegion const&) () from /usr/lib64/libQt5Gui.so.5
#8  0x00007f2198724ee4 in ?? () from /usr/lib64/libQt5Widgets.so.5
#9  0x00007f21987252bd in ?? () from /usr/lib64/libQt5Widgets.so.5
#10 0x00007f2198743e8f in QWidgetPrivate::syncBackingStore() () from /usr/lib64/libQt5Widgets.so.5
#11 0x00007f219875bfd8 in QWidget::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#12 0x00007f219885981b in QMainWindow::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#13 0x00007f219a8bc847 in KMainWindow::event(QEvent*) () from /usr/lib64/libKF5XmlGui.so.5
#14 0x00007f219a901935 in KXmlGuiWindow::event(QEvent*) () from /usr/lib64/libKF5XmlGui.so.5
#15 0x00007f219871504c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#16 0x00007f219871c9f6 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#17 0x00007f219747133a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#18 0x00007f219747403f in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/libQt5Core.so.5
#19 0x00007f21974c88b3 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib64/libQt5Core.so.5
#20 0x00007f2191e5a4e7 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#21 0x00007f2191e5a740 in ?? () from /usr/lib64/libglib-2.0.so.0
#22 0x00007f2191e5a7ec in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#23 0x00007f21974c892f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#24 0x00007f219746f9ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#25 0x00007f219747861c in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5
#26 0x000000000048a8f1 in main ()
Comment 1 Martin Sandsmark 2017-04-04 16:09:42 UTC
Can you paste the output when running from a terminal? To see what the actual gl error is.
Comment 2 Premik 2017-09-05 22:07:47 UTC
I'm getting very similar error on Arch Linux. Simply navigating on the timeline back and forth involves a crash usualy in less than one minute giving: 
> GL error 0x502 (GL_INVALID_OPERATION) at effect_chain.cpp:1987


Application: 17.11.70 (kdenlive-git 17.11.70.r8553.fdbbf2127-1)
MLT version 6.5.0 (mlt-git r4507.1504542481.ecb09b14-1)
KDE Frameworks 5.36.0
Qt 5.9.1 (built against 5.9.1)
movit-git r815.6538edf-1

Althought the stacktrace is slightly different in my case:

#0  0x00007ff7bdb288c0 in raise () at /usr/lib/libc.so.6
#1  0x00007ff7bdb29f72 in abort () at /usr/lib/libc.so.6
#2  0x00007ff791eef54b in movit::abort_gl_error(unsigned int, char const*, int) (err=<optimized out>, filename=filename@entry=0x7ff791f5700b "effect_chain.cpp", line=line@entry=1987) at util.cpp:336
#3  0x00007ff791efec83 in movit::EffectChain::execute_phase(movit::Phase*, bool, std::map<movit::Phase*, unsigned int, std::less<movit::Phase*>, std::allocator<std::pair<movit::Phase* const, unsigned int> > >*, std::set<movit::Phase*, std::less<movit::Phase*>, std::allocator<movit::Phase*> >*) (this=this@entry=0x7ff71015a440, phase=<optimized out>, 
    phase@entry=0x7ff71015c0b0, last_phase=last_phase@entry=true, output_textures=output_textures@entry=0x7ff764eae5a0, generated_mipmaps=generated_mipmaps@entry=0x7ff764eae570) at effect_chain.cpp:1987
#4  0x00007ff791efef6f in movit::EffectChain::render_to_fbo(unsigned int, unsigned int, unsigned int) (this=this@entry=0x7ff71015a440, dest_fbo=2, width=width@entry=1920, height=height@entry=1080) at effect_chain.cpp:1839
#5  0x00007ff792180cd5 in GlslManager::render_frame_rgba(movit::EffectChain*, mlt_frame_s*, int, int, unsigned char**) (this=<optimized out>, chain=chain@entry=0x7ff71015a440, frame=frame@entry=0x7ff69d73e110, width=width@entry=1920, height=height@entry=1080, image=image@entry=0x7ff764eae8c8) at filter_glsl_manager.cpp:473
#6  0x00007ff792183ba6 in movit_render (image=0x7ff764eae8c8, height=1080, width=1920, output_format=mlt_image_rgb24a, format=0x101b5e26c, frame=0x7ff69d73e110, chain=0x7ff71015a440) at filter_movit_convert.cpp:454
#7  0x00007ff792183ba6 in convert_image(mlt_frame, uint8_t**, mlt_image_format*, mlt_image_format) (frame=0x7ff69d73e110, image=0x7ff764eae8c8, format=0x101b5e26c, output_format=mlt_image_rgb24a) at filter_movit_convert.cpp:573
#8  0x00007ff7c473f1e3 in mlt_frame_get_image (self=0x7ff69d73e110, buffer=0x7ff764eae8c8, format=0x101b5e26c, width=0x7ff764eaecf4, height=0x7ff764eaecf8, writable=1) at mlt_frame.c:623
#9  0x00007ff7c473f182 in mlt_frame_get_image (self=self@entry=0x7ff69d73e110, buffer=buffer@entry=0x7ff764eae8c8, format=format@entry=0x101b5e26c, width=width@entry=0x7ff764eaecf4, height=height@entry=0x7ff764eaecf8, writable=writable@entry=1)
    at mlt_frame.c:617
#10 0x00007ff77c065a1d in get_image(mlt_frame, uint8_t**, mlt_image_format*, int*, int*, int) (a_frame=a_frame@entry=0x7ff712fe91c0, image=image@entry=0x7ff764eaed08, format=format@entry=0x101b5e26c, width=width@entry=0x7ff764eaecf4, height=height@entry=0x7ff764eaecf8, writable=writable@entry=0) at transition_qtblend.cpp:141
#11 0x00007ff7c473f182 in mlt_frame_get_image (self=self@entry=0x7ff712fe91c0, buffer=buffer@entry=0x7ff764eaed08, format=format@entry=0x101b5e26c, width=width@entry=0x7ff764eaecf4, height=height@entry=0x7ff764eaecf8, writable=writable@entry=0)
    at mlt_frame.c:617
#12 0x00007ff7c4754e4b in producer_get_image (self=self@entry=0x7ff6cde2d790, buffer=buffer@entry=0x7ff764eaed08, format=format@entry=0x101b5e26c, width=width@entry=0x7ff764eaecf4, height=height@entry=0x7ff764eaecf8, writable=writable@entry=0)
    at mlt_tractor.c:370
#13 0x00007ff7c473f182 in mlt_frame_get_image (self=self@entry=0x7ff6cde2d790, buffer=buffer@entry=0x7ff764eaed08, format=format@entry=0x101b5e26c, width=width@entry=0x7ff764eaecf4, height=height@entry=0x7ff764eaecf8, writable=writable@entry=0)
    at mlt_frame.c:617
#14 0x00007ff77c058be6 in filter_get_image(mlt_frame, uint8_t**, mlt_image_format*, int*, int*, int) (frame=frame@entry=0x7ff6cde2d790, image=image@entry=0x7ff764eaed08, image_format=image_format@entry=0x101b5e26c, width=width@entry=0x7ff764eaecf4, height=height@entry=0x7ff764eaecf8, writable=writable@entry=0) at filter_audiowaveform.cpp:191
#15 0x00007ff7c473f182 in mlt_frame_get_image (self=self@entry=0x7ff6cde2d790, buffer=buffer@entry=0x7ff764eaed08, format=format@entry=0x101b5e26c, width=width@entry=0x7ff764eaecf4, height=height@entry=0x7ff764eaecf8, writable=writable@entry=0)
    at mlt_frame.c:617
#16 0x00007ff7c4752308 in consumer_read_ahead_thread (arg=0x10293ff80) at mlt_consumer.c:821
#17 0x000000010037c50e in RenderThread::run() (this=0x7ff7280008e0) at /tmp/makepkg/kdenlive-git/src/kdenlive/src/monitor/glwidget.cpp:1282
#18 0x00007ff7be5e115b in  () at /usr/lib/libQt5Core.so.5
#19 0x00007ff7bbbf9049 in start_thread () at /usr/lib/libpthread.so.0
#20 0x00007ff7bdbe2f0f in clone () at /usr/lib/libc.so.6
Comment 3 Dave 2018-02-23 15:23:44 UTC
I'm having a very similar experience for this. 

KDE Plasma Version: 5.11.5
KDE Framework Version: 5.40.0
Qt Version: 5.7.1
Kernel Version 4.9.76
OS: Linux 4.9.76, Gentoo, 64-bit

Using NVIDIA 390.25 on GeForce GT 710/PCIe

Running Kdenlive in a terminal, I get

GL error 0x502 at ycbcr_input.cpp:71 
KCrash: Application 'kdenlive' crashing... 
KCrash: Attempting to start /usr/lib64/libexec/drkonqi from kdeinit 
sock_file=/var/run/user/1000/kdeinit5__0 
QSocketNotifier: Invalid socket 16 and type 'Read', disabling... 
QSocketNotifier: Invalid socket 26 and type 'Read', disabling... 
QSocketNotifier: Invalid socket 72 and type 'Read', disabling... 
The X11 connection broke (error 1). Did the X11 server die? 

This occurs after enabling GPU effects and attempting to use them. Usually crashes within a few seconds after attempting playback. This occurs every time so long as GPU processing is enabled.

Everything has been compiled from source on my system but without debugging. If need be, I can rebuild with debugging or something and figure it out. If anyone has a reference on how to capture backtrace info, let me know.
Comment 4 krzysio.kurek 2018-02-28 10:00:58 UTC
Created attachment 111081 [details]
New crash information added by DrKonqi

kdenlive (18.03.70) using Qt 5.9.1

- What I was doing when the application crashed: 
Moving around timeline with various GPU effects applied
- Custom settings of the application:
GPU Acceleration (movit) enabled.

-- Backtrace (Reduced):
#6  0x00007f87d06970bb in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#7  0x00007f87d0698f5d in __GI_abort () at abort.c:90
#8  0x00007f87981a6cd9 in movit::abort_gl_error(unsigned int, char const*, int) () at /usr/lib/x86_64-linux-gnu/libmovit.so.7
#9  0x00007f87981b60ea in movit::EffectChain::execute_phase(movit::Phase*, bool, std::map<movit::Phase*, unsigned int, std::less<movit::Phase*>, std::allocator<std::pair<movit::Phase* const, unsigned int> > >*, std::set<movit::Phase*, std::less<movit::Phase*>, std::allocator<movit::Phase*> >*) () at /usr/lib/x86_64-linux-gnu/libmovit.so.7
#10 0x00007f87981b637e in movit::EffectChain::render_to_fbo(unsigned int, unsigned int, unsigned int) () at /usr/lib/x86_64-linux-gnu/libmovit.so.7
Comment 5 krzysio.kurek 2018-02-28 10:15:51 UTC
Also I've started a thread on nvidia's Dev forums and it's been confirmed that there isn't a driver bug that causes this.
https://devtalk.nvidia.com/default/topic/1019615/linux/movit-library-crash-when-used-in-kdenlive/
Comment 6 emohr 2018-11-10 14:18:22 UTC
Unfortunately MOVIT (GPU effects) is not stable and not ready for production use.

*** This bug has been marked as a duplicate of bug 380019 ***