Bug 392884

Summary: Application crashes constantly
Product: [Applications] kdenlive Reporter: MoonWolf <moonwolf>
Component: User InterfaceAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED DUPLICATE    
Severity: crash CC: contact, fritzibaby, kyle, sherebiahtishbi
Priority: NOR Flags: fritzibaby: MOVIT+
Version: 17.12.3   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description MoonWolf 2018-04-08 17:27:53 UTC
Qt Version: 5.9.4
Frameworks Version: 5.44.0
Operating System: Linux 4.15.14-300.fc27.x86_64 x86_64
Distribution: "Fedora release 27 (Twenty Seven)"

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

25 clips, few of them already added to the timeline.

I was adding clip to timeline. But application crashes also when for example i was trying to play clip in preview window.

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 0x7ff273af3940 (LWP 25080))]

Thread 14 (Thread 0x7ff2209df700 (LWP 25140)):
[KCrash Handler]
#6  0x00007ff26761d660 in raise () from /lib64/libc.so.6
#7  0x00007ff26761ec41 in abort () from /lib64/libc.so.6
#8  0x00007ff267615f7a in __assert_fail_base () from /lib64/libc.so.6
#9  0x00007ff267615ff2 in __assert_fail () from /lib64/libc.so.6
#10 0x00007ff235df1a1a in movit::ResourcePool::create_vec2_vao (this=0x55c690031a70, attribute_indices=std::set with 2 elements = {...}, vbo_num=<optimized out>) at resource_pool.cpp:612
#11 0x00007ff235ddc487 in movit::EffectChain::execute_phase (this=this@entry=0x7ff21000a4e0, phase=phase@entry=0x7ff211ae6c00, output_textures=std::map with 0 elements, destinations=std::vector of length 0, capacity 0, generated_mipmaps=generated_mipmaps@entry=0x7ff2209de890) at effect_chain.cpp:2252
#12 0x00007ff235de2f4c in movit::EffectChain::render (this=this@entry=0x7ff21000a4e0, dest_fbo=dest_fbo@entry=3, destinations=std::vector of length 0, capacity 0, x=0, y=0, width=1920, height=1080) at effect_chain.cpp:2057
#13 0x00007ff235de3d15 in movit::EffectChain::render_to_fbo (this=this@entry=0x7ff21000a4e0, dest_fbo=3, width=<optimized out>, width@entry=1920, height=<optimized out>, height@entry=1080) at effect_chain.cpp:1913
#14 0x00007ff23606ea8f in GlslManager::render_frame_texture (this=0x55c690823940, chain=chain@entry=0x7ff21000a4e0, frame=frame@entry=0x7ff21022b650, width=width@entry=1920, height=height@entry=1080, image=image@entry=0x7ff2209dec38) at filter_glsl_manager.cpp:404
#15 0x00007ff23607214a in movit_render (image=0x7ff2209dec38, height=1080, width=1920, output_format=mlt_image_glsl_texture, format=0x55c6910664dc, frame=0x7ff21022b650, chain=0x7ff21000a4e0) at filter_movit_convert.cpp:451
#16 convert_image (frame=0x7ff21022b650, image=0x7ff2209dec38, format=0x55c6910664dc, output_format=mlt_image_glsl_texture) at filter_movit_convert.cpp:573
#17 0x00007ff272b2978e in mlt_frame_get_image (self=self@entry=0x7ff21022b650, buffer=buffer@entry=0x7ff2209dec38, format=format@entry=0x55c6910664dc, width=width@entry=0x7ff2209dec24, height=height@entry=0x7ff2209dec28, writable=writable@entry=0) at mlt_frame.c:591
#18 0x00007ff272b3d05a in consumer_read_ahead_thread (arg=0x55c6916daec0) at mlt_consumer.c:825
#19 0x000055c68d4c9dfd in RenderThread::run (this=0x7ff1dbba2a20) at /usr/src/debug/kdenlive-17.12.3-3.fc27.x86_64/src/monitor/glwidget.cpp:1306
#20 0x00007ff26832cde2 in QThreadPrivate::start (arg=0x7ff1dbba2a20) at thread/qthread_unix.cpp:368
#21 0x00007ff265c6b50b in start_thread () from /lib64/libpthread.so.0
#22 0x00007ff2676de16f in clone () from /lib64/libc.so.6

Thread 13 (Thread 0x7ff21a658700 (LWP 25139)):
#0  0x00007ff265c7182d in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ff272b3d35b in mlt_consumer_rt_frame (self=self@entry=0x55c6916daec0) at mlt_consumer.c:1576
#2  0x00007ff23782caa3 in consumer_thread (arg=0x55c6916daec0) at consumer_sdl_audio.c:531
#3  0x00007ff265c6b50b in start_thread () from /lib64/libpthread.so.0
#4  0x00007ff2676de16f in clone () from /lib64/libc.so.6

Thread 12 (Thread 0x7ff1e7fff700 (LWP 25126)):
#0  0x00007ff265c71b5b in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ff26832d423 in QWaitConditionPrivate::wait_relative (time=30000, this=0x7ff248029ba0) at thread/qwaitcondition_unix.cpp:133
#2  QWaitConditionPrivate::wait (time=30000, this=0x7ff248029ba0) at thread/qwaitcondition_unix.cpp:141
#3  QWaitCondition::wait (this=this@entry=0x55c6918014f0, mutex=mutex@entry=0x55c69117aab0, time=30000) at thread/qwaitcondition_unix.cpp:215
#4  0x00007ff268329da2 in QThreadPoolThread::run (this=0x55c6918014e0) at thread/qthreadpool.cpp:144
#5  0x00007ff26832cde2 in QThreadPrivate::start (arg=0x55c6918014e0) at thread/qthread_unix.cpp:368
#6  0x00007ff265c6b50b in start_thread () from /lib64/libpthread.so.0
#7  0x00007ff2676de16f in clone () from /lib64/libc.so.6

Thread 11 (Thread 0x7ff1fd83f700 (LWP 25098)):
#0  0x00007ff25ffcce0e in g_source_iter_next () from /lib64/libglib-2.0.so.0
#1  0x00007ff25ffcf7d1 in g_main_context_check () from /lib64/libglib-2.0.so.0
#2  0x00007ff25ffcfe40 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#3  0x00007ff25ffcffac in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#4  0x00007ff268529c4b in QEventDispatcherGlib::processEvents (this=0x7ff1f8000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007ff2684d796a in QEventLoop::exec (this=this@entry=0x7ff1fd83ec60, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#6  0x00007ff2683288ca in QThread::exec (this=<optimized out>) at thread/qthread.cpp:515
#7  0x00007ff26832cde2 in QThreadPrivate::start (arg=0x55c690079db0) at thread/qthread_unix.cpp:368
#8  0x00007ff265c6b50b in start_thread () from /lib64/libpthread.so.0
#9  0x00007ff2676de16f in clone () from /lib64/libc.so.6

Thread 10 (Thread 0x7ff2198af700 (LWP 25097)):
#0  0x00007ff265c7182d in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ff26832d53b in QWaitConditionPrivate::wait (time=18446744073709551615, this=0x55c691fedb40) at thread/qwaitcondition_unix.cpp:143
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x55c6925cc130, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:215
#3  0x00007ff269b17428 in QSGRenderThread::processEventsAndWaitForMore() () from /lib64/libQt5Quick.so.5
#4  0x00007ff269b1788a in QSGRenderThread::run() () from /lib64/libQt5Quick.so.5
#5  0x00007ff26832cde2 in QThreadPrivate::start (arg=0x55c6925cc0b0) at thread/qthread_unix.cpp:368
#6  0x00007ff265c6b50b in start_thread () from /lib64/libpthread.so.0
#7  0x00007ff2676de16f in clone () from /lib64/libc.so.6

Thread 9 (Thread 0x7ff21b219700 (LWP 25095)):
#0  0x00007ff2676cf738 in read () from /lib64/libc.so.6
#1  0x00007ff2600140a0 in g_wakeup_acknowledge () from /lib64/libglib-2.0.so.0
#2  0x00007ff25ffcf9a8 in g_main_context_check () from /lib64/libglib-2.0.so.0
#3  0x00007ff25ffcfe40 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#4  0x00007ff25ffcffac in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#5  0x00007ff268529c4b in QEventDispatcherGlib::processEvents (this=0x7ff20c000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007ff2684d796a in QEventLoop::exec (this=this@entry=0x7ff21b218c60, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#7  0x00007ff2683288ca in QThread::exec (this=<optimized out>) at thread/qthread.cpp:515
#8  0x00007ff26832cde2 in QThreadPrivate::start (arg=0x7ff208157fd0) at thread/qthread_unix.cpp:368
#9  0x00007ff265c6b50b in start_thread () from /lib64/libpthread.so.0
#10 0x00007ff2676de16f in clone () from /lib64/libc.so.6

Thread 8 (Thread 0x7ff21ba1a700 (LWP 25093)):
#0  0x00007ff265c7182d in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ff26832d53b in QWaitConditionPrivate::wait (time=18446744073709551615, this=0x55c6925b7590) at thread/qwaitcondition_unix.cpp:143
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x7ff248035f80, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:215
#3  0x00007ff269b17428 in QSGRenderThread::processEventsAndWaitForMore() () from /lib64/libQt5Quick.so.5
#4  0x00007ff269b1788a in QSGRenderThread::run() () from /lib64/libQt5Quick.so.5
#5  0x00007ff26832cde2 in QThreadPrivate::start (arg=0x7ff248035f00) at thread/qthread_unix.cpp:368
#6  0x00007ff265c6b50b in start_thread () from /lib64/libpthread.so.0
#7  0x00007ff2676de16f in clone () from /lib64/libc.so.6

Thread 7 (Thread 0x7ff22298b700 (LWP 25087)):
#0  0x00007ff2600153f4 in g_mutex_unlock () from /lib64/libglib-2.0.so.0
#1  0x00007ff25ffcfe8e in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#2  0x00007ff25ffcffac in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007ff268529c4b in QEventDispatcherGlib::processEvents (this=0x7ff214000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007ff2684d796a in QEventLoop::exec (this=this@entry=0x7ff22298ac40, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#5  0x00007ff2683288ca in QThread::exec (this=<optimized out>) at thread/qthread.cpp:515
#6  0x00007ff269652e75 in QQmlThreadPrivate::run() () from /lib64/libQt5Qml.so.5
#7  0x00007ff26832cde2 in QThreadPrivate::start (arg=0x55c690e61e90) at thread/qthread_unix.cpp:368
#8  0x00007ff265c6b50b in start_thread () from /lib64/libpthread.so.0
#9  0x00007ff2676de16f in clone () from /lib64/libc.so.6

Thread 6 (Thread 0x7ff2237ff700 (LWP 25086)):
#0  0x00007ff265c71b5b in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ff26832d423 in QWaitConditionPrivate::wait_relative (time=30000, this=0x55c69117abe0) at thread/qwaitcondition_unix.cpp:133
#2  QWaitConditionPrivate::wait (time=30000, this=0x55c69117abe0) at thread/qwaitcondition_unix.cpp:141
#3  QWaitCondition::wait (this=this@entry=0x55c6908af3a0, mutex=mutex@entry=0x55c69117aab0, time=30000) at thread/qwaitcondition_unix.cpp:215
#4  0x00007ff268329da2 in QThreadPoolThread::run (this=0x55c6908af390) at thread/qthreadpool.cpp:144
#5  0x00007ff26832cde2 in QThreadPrivate::start (arg=0x55c6908af390) at thread/qthread_unix.cpp:368
#6  0x00007ff265c6b50b in start_thread () from /lib64/libpthread.so.0
#7  0x00007ff2676de16f in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7ff229377700 (LWP 25084)):
#0  0x00007ff2676d3c6b in poll () from /lib64/libc.so.6
#1  0x00007ff25ffcfe99 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#2  0x00007ff25ffcffac in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007ff268529c4b in QEventDispatcherGlib::processEvents (this=0x7ff224000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007ff2684d796a in QEventLoop::exec (this=this@entry=0x7ff229376c40, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#5  0x00007ff2683288ca in QThread::exec (this=<optimized out>) at thread/qthread.cpp:515
#6  0x00007ff269652e75 in QQmlThreadPrivate::run() () from /lib64/libQt5Qml.so.5
#7  0x00007ff26832cde2 in QThreadPrivate::start (arg=0x55c690f06850) at thread/qthread_unix.cpp:368
#8  0x00007ff265c6b50b in start_thread () from /lib64/libpthread.so.0
#9  0x00007ff2676de16f in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7ff245f72700 (LWP 25083)):
#0  0x00007ff2676cf738 in read () from /lib64/libc.so.6
#1  0x00007ff2600140a0 in g_wakeup_acknowledge () from /lib64/libglib-2.0.so.0
#2  0x00007ff25ffcf9a8 in g_main_context_check () from /lib64/libglib-2.0.so.0
#3  0x00007ff25ffcfe40 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#4  0x00007ff25ffcffac in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#5  0x00007ff268529c4b in QEventDispatcherGlib::processEvents (this=0x7ff240000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007ff2684d796a in QEventLoop::exec (this=this@entry=0x7ff245f71c20, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#7  0x00007ff2683288ca in QThread::exec (this=this@entry=0x7ff26e12a060 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:515
#8  0x00007ff26deb6449 in QDBusConnectionManager::run (this=0x7ff26e12a060 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
#9  0x00007ff26832cde2 in QThreadPrivate::start (arg=0x7ff26e12a060 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:368
#10 0x00007ff265c6b50b in start_thread () from /lib64/libpthread.so.0
#11 0x00007ff2676de16f in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7ff24e70c700 (LWP 25082)):
#0  0x00007ff2676d3c6b in poll () from /lib64/libc.so.6
#1  0x00007ff2648cdfe7 in _xcb_conn_wait () from /lib64/libxcb.so.1
#2  0x00007ff2648cfdda in xcb_wait_for_event () from /lib64/libxcb.so.1
#3  0x00007ff25086ebf9 in QXcbEventReader::run() () from /lib64/libQt5XcbQpa.so.5
#4  0x00007ff26832cde2 in QThreadPrivate::start (arg=0x55c68f992790) at thread/qthread_unix.cpp:368
#5  0x00007ff265c6b50b in start_thread () from /lib64/libpthread.so.0
#6  0x00007ff2676de16f in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7ff2582e7700 (LWP 25081)):
#0  0x00007ff265c7182d in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ff267fb6e0c in std::condition_variable::wait(std::unique_lock<std::mutex>&) () from /lib64/libstdc++.so.6
#2  0x00007ff26c1eabb7 in bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::threadRunLoop() () from /lib64/libQt5WebKit.so.5
#3  0x00007ff26c1eacf9 in bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::threadEntryPoint(bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*) () from /lib64/libQt5WebKit.so.5
#4  0x00007ff267fbd14f in execute_native_thread_routine () from /lib64/libstdc++.so.6
#5  0x00007ff265c6b50b in start_thread () from /lib64/libpthread.so.0
#6  0x00007ff2676de16f in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7ff273af3940 (LWP 25080)):
#0  0x00007ff2676d3c6b in poll () from /lib64/libc.so.6
#1  0x00007ff25ffcfe99 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#2  0x00007ff25ffcffac in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007ff268529c4b in QEventDispatcherGlib::processEvents (this=0x55c68f9cfeb0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007ff2684d796a in QEventLoop::exec (this=this@entry=0x7ffe9a5ce120, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#5  0x00007ff2684e0094 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1289
#6  0x000055c68d21f6fd in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kdenlive-17.12.3-3.fc27.x86_64/src/main.cpp:163
Comment 1 MoonWolf 2018-04-09 21:54:31 UTC
Turning off GPU processing stopped crashing.
Comment 2 emohr 2018-10-15 19:14:24 UTC
GPU acceleration is still for testing.
Comment 3 Clint Moyer 2018-10-16 18:35:06 UTC
For what it is worth, it looks like almost all of the Movit effects are blacklisted, so I'm not sure there is any benefit to enabling GPU processing right now.

https://cgit.kde.org/kdenlive.git/tree/data/blacklisted_effects.txt?h=v18.08.2#n77
Comment 4 Christoph Feck 2018-11-07 21:44:59 UTC
*** Bug 400812 has been marked as a duplicate of this bug. ***
Comment 5 Christoph Feck 2018-11-07 21:45:40 UTC
*** Bug 393739 has been marked as a duplicate of this bug. ***
Comment 6 emohr 2018-11-10 14:05:35 UTC

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