Summary: | git master 2016-03-28:Movit: Application crash when applying layout | ||
---|---|---|---|
Product: | [Applications] kdenlive | Reporter: | Evert Vorster <evorster> |
Component: | User Interface & Miscellaneous | Assignee: | Jean-Baptiste Mardelle <jb> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | fritzibaby, me, sephiroth_pk |
Priority: | NOR | Flags: | fritzibaby:
Brainstorm+
fritzibaby: MOVIT+ |
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
Backtrace of crash
stacktrace of crash on opening project monitor GDB Backtrace Valgrind log of the failure |
Description
Evert Vorster
2016-03-28 12:01:46 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.
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. 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). Nope, I still get this error when I run kdenlive with movit enabled. 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 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.
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 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. Created attachment 99343 [details]
stacktrace of crash on opening project monitor
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 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 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 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. 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 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 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. 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 Created attachment 100384 [details]
GDB Backtrace
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.
Still an issue as of 2016-08-09 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). 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! Changed to REPORTED. Currently unable to trigger the bug as kdenlive segfaults before getting to this position on an unrelated issue. I can now apply layouts at will, without Kdenlive crashing and movit enabled |