Bug 355259

Summary: invalid
Product: [Applications] kdenlive Reporter: qubodup
Component: User InterfaceAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED NOT A BUG    
Severity: minor CC: paul
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: movit-git gdb backtrace

Description qubodup 2015-11-12 17:17:26 UTC
catalyst-hook 15.9-6
catalyst-libgl 15.9-2
catalyst-utils 15.9-2
kdenlive-git 15.09.0.r6518.96705d7-1
mlt-git r4132.v0.9.2.354.g4f22f28-1
movit 1.2.0-1

With proprietary AMD graphics drivers and GPU-acceleration enabled, Kdenlive crashes when trying to work with the timeline/project bin.

Steps to reproduce:
1. Start Kdenlive
2. Enable GPU acceleration for playback
3. Restart Kdenlive
4. Left-click Project Bin
5. Left-click Timeline

(You can also first click Timeline, then Project Bin)

Expected result:
1. Nothing should happen really, the project is empty after all

Actual result:
1. Kdenlive crashes.

gdb output:
<pre>
Starting program: /usr/bin/kdenlive 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffe2de5700 (LWP 4228)]
[New Thread 0x7fffc40bc700 (LWP 4229)]
[New Thread 0x7fffbcfca700 (LWP 4231)]
[New Thread 0x7fffb7fff700 (LWP 4232)]
[New Thread 0x7fffb6ffe700 (LWP 4233)]
[New Thread 0x7fffb5664700 (LWP 4234)]
[New Thread 0x7fffb4e63700 (LWP 4235)]
[New Thread 0x7fffa6fff700 (LWP 4236)]
[New Thread 0x7fffa67fe700 (LWP 4237)]
[New Thread 0x7fffa4ffd700 (LWP 4238)]
[Thread 0x7fffa4ffd700 (LWP 4238) exited]
[New Thread 0x7fffa4ffd700 (LWP 4239)]
[New Thread 0x7fff93fff700 (LWP 4240)]
[New Thread 0x7fff90ffb700 (LWP 4241)]
[New Thread 0x7fff83ffd700 (LWP 4242)]
[Thread 0x7fff83ffd700 (LWP 4242) exited]
[Thread 0x7fffa4ffd700 (LWP 4239) exited]
[Thread 0x7fff90ffb700 (LWP 4241) exited]
[Thread 0x7fff93fff700 (LWP 4240) exited]
[New Thread 0x7fff93fff700 (LWP 4243)]
[Thread 0x7fff93fff700 (LWP 4243) exited]
[New Thread 0x7fff93fff700 (LWP 4244)]
[New Thread 0x7fff90ffb700 (LWP 4245)]
Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fff90ffb700 (LWP 4245)]
0x00007ffff05885f8 in raise () from /usr/lib/libc.so.6
#0  0x00007ffff05885f8 in raise () from /usr/lib/libc.so.6
#1  0x00007ffff0589a7a in abort () from /usr/lib/libc.so.6
#2  0x00007fffd00ff813 in GlslManager::render_frame_texture(movit::EffectChain*, mlt_frame_s*, int, int, unsigned char**) ()
   from /usr/lib/mlt/libmltopengl.so
#3  0x00007fffd0102626 in ?? () from /usr/lib/mlt/libmltopengl.so
#4  0x00007ffff6fb2068 in mlt_frame_get_image ()
   from /usr/lib/libmlt.so.6
#5  0x00007ffff6fc7e29 in ?? () from /usr/lib/libmlt.so.6
#6  0x00007ffff6fb2017 in mlt_frame_get_image ()
   from /usr/lib/libmlt.so.6
#7  0x00007ffff6fc5694 in ?? () from /usr/lib/libmlt.so.6
#8  0x000000000076682d in RenderThread::run() ()
#9  0x00007ffff103496e in ?? () from /usr/lib/libQt5Core.so.5
#10 0x00007fffeede64a4 in start_thread ()
   from /usr/lib/libpthread.so.0
#11 0x00007ffff063e13d in clone () from /usr/lib/libc.so.6
</pre>

Kdenlive output:
<pre>
GL error 0x501 at filter_glsl_manager.cpp:381
</pre>
Comment 1 qubodup 2015-12-11 04:12:47 UTC
Created attachment 95990 [details]
movit-git gdb backtrace

Update: I was using movit 1.2 - now I got -git

Kdenlive still crashes but the error seems a bit different (see attached).

kdenlive-git v15.11.90-74-g134730c master
catalyst-libgl 15.11-1
ffmpeg 1:2.8.3-1
ffmpeg-compat 1:0.10.16-4
libx264 2:148.20150725-1
mlt-git r4145.v0.9.2.367.g0de91fe-1
mlt-python-bindings 0.9.8-3
movit-git r713.20c2ca7-1
qt5-base 5.5.1-3
x264 2:148.20150725-1
xorg-server 1.16.4-1
Comment 2 qubodup 2015-12-13 23:11:10 UTC
Update: with a HD 7750 with ...
kdenlive-git v15.11.90-83-g95d6603 master
catalyst-libgl 15.11-1
ffmpeg 1:2.8.3-1
ffmpeg-compat 1:0.10.16-4
frei0r-plugins 1.4-3
libx264 2:148.20150725-1
mlt-git r4148.v0.9.2.370.g1065fda-1
mlt-python-bindings 0.9.8-4
movit-git r720.813bc3b-1
qt5-base 5.5.1-5
x264 2:148.20150725-1
xorg-server 1.16.4-1
... I can use GPU acceleration. My mind is blown! Such smooth playback, such smooth blurs... beautiful...

Works:
1. Adding video to project bin
2. Dragging video from bin to timeline
3. Playing back clip in timeline
4. Clicking around the timeline quickly
5. Adding any of the GPU effects

Doesn't work (after starting fresh Kdenlive project):
1. click on clip monitor, then click project monitor:
http://codepad.org/Iz5gnc4U
2. import video, drag to timeline, play it back, click on project bin white space
http://codepad.org/UATIGKel

Video of the two crashes above:
https://youtu.be/wvJ2gfr9m_c

Can't reproduce, I probably didn't document small steps that contributed to the crash. I'm including this in case the gdb/bt output is useable nonetheless:
1. clicking on the clip monitor (while one clip is in the bin and being used in timeline):
http://codepad.org/snQkdVq7
2. clicking on the project monitor in an empty project:
http://codepad.org/qAWxCLli
3. clicking the timeline in an empty project:
http://codepad.org/W0Y9Nes0
4. clicking empty space in the project bin while one clip is loaded:
http://codepad.org/kSyzp1Dl

Not tested:
1. Rendering
2. Loading projects
3. Many more things
Comment 3 qubodup 2015-12-14 04:04:25 UTC
I installed mlt-git with 
--enable-debug 

and kdenlive-git with
-DCMAKE_BUILD_TYPE=Debug 

but all I get is this:
http://codepad.org/h4CczpbV
Comment 4 qubodup 2015-12-14 04:05:09 UTC
PS: this is when reproducing "click on clip monitor, then click project monitor"
Comment 5 qubodup 2015-12-14 05:57:43 UTC
*** Removed by KDE Sysadmin at the request of 'Steinar' of Movit who was quoted without their permission ***
Comment 6 qubodup 2015-12-16 23:07:07 UTC
Whoever has the ability to delete comments, please delete this and my previous comment, as I quoted without permission. thank you
Comment 7 Paul Konecny 2016-01-06 22:20:08 UTC
I would suggest using radeonsi. Works like a charm.
Comment 8 qubodup 2016-01-30 22:03:24 UTC
A comment above states that its comment was deleted based on a person's request and states that person's name.

This is incorrect. I requested the change but this website's admin(?) (not this project's developers) insisted on following procedure over protecting 3rd party privacy rights.

For this reason the title is changed to not appear in searches and the ticket is marked as resolved to not appear in lists of current tickets.

Should the issue resurface, please start a new ticket.