Bug 369582 - Overlay/Alpha/...-transition lead to crash while previewing or cancel of rendering
Summary: Overlay/Alpha/...-transition lead to crash while previewing or cancel of rend...
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: Video Display & Export (show other bugs)
Version: 16.08.1
Platform: Mint (Ubuntu based) Linux
: NOR crash
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL: http://etc.pascalschneider.eu/2016/09...
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-30 19:29 UTC by Pascal
Modified: 2016-10-27 20:44 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pascal 2016-09-30 19:29:13 UTC
When applying transitions with alpha or overlay:

If i try to preview the transition, the program crashes.
When rendering, it stops to render when the effect in the timeline is "arrived". First, I had to install LADSPA-plugins, it told me. Now it just stops rendering.

When I start kdenlive via terminal, it tells me something about OpenGLES and ThumbCreator (see URL).

Reproducible: Always

Steps to Reproduce:
1. add for example "overlay"-transition between two clips
2 a. start preview - crash OR
2 b. render - rendering stops (no crash).

Actual Results:  
crash

Expected Results:  
show the effect or render the video

I tried it with installing  ladspa-sdk and swh-plugins packages.
Topic on this site: https://forum.kde.org/viewtopic.php?f=272&t=127270
Comment 1 Jean-Baptiste Mardelle 2016-09-30 23:14:40 UTC
it looks like the recent issue in frei0r that we fixed last week. Where did you get your kdenlive package? Are you using our PPA :
https://launchpad.net/~kdenlive/+archive/ubuntu/kdenlive-stable
Comment 2 Pascal 2016-10-01 05:28:09 UTC
Hello,

Yes, I am using this ppa and kdenlive is up-to-date.
Comment 3 Aurelia 2016-10-02 21:01:42 UTC
Hi all! 

I was on my way to create on new bug report, but I think I am faceting the same issue as Pascal.

First:
I am running a Ubuntu Studio 16.04 up to date.

I updated kdenlive from your PPA:
Kdenlive: 
Version: 16.08.1
Using:
KDE Frameworks 5.18.0
Qt 5.5.1 (built against 5.5.1)
The xcb windowing system

I can reproduce the following issue:
I add 2 clips on a brand new project, then add a transition, when I click on preview => kdenlive crashes.
As Pascal , the rendering stops when the transition came without crash . When I remove the transition the rendering is good until the end.

I also reproduced this issue on 2 differents computer (one using a virtualbox).

Always reproductible except some transitions: 

diaporama: ok
affine : ok
transition par balayage : ok
dissoudre: ok 

I ran kdenlive with gdb and got the following stack traces:

addition :
Thread 65 "RenderThread" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff8a5c6700 (LWP 1859)]
0x00007fffae46830d in addition::update(double, unsigned int*, unsigned int const*, unsigned int const*) () from /usr/lib/frei0r-1/addition.so

alphaatop:
Thread 15 "RenderThread" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff8a5c6700 (LWP 1884)]
0x00007fff88e4428f in alphaatop::update(double, unsigned int*, unsigned int const*, unsigned int const*) () from /usr/lib/frei0r-1/alphaatop.so

alphain:
Thread 15 "RenderThread" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff8a5c6700 (LWP 1911)]
0x00007fff88fc227f in alphain::update(double, unsigned int*, unsigned int const*, unsigned int const*) () from /usr/lib/frei0r-1/alphain.so

burn:
Thread 15 "RenderThread" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff8a5c6700 (LWP 1942)]
0x00007fff88fc2276 in burn::update(double, unsigned int*, unsigned int const*, unsigned int const*) () from /usr/lib/frei0r-1/burn.so

cairo affine blend
Thread 14 "RenderThread" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff8ede1700 (LWP 1970)]
0x00007fff8ede385f in frei0r_cairo_premultiply_rgba ()
   from /usr/lib/frei0r-1/cairoaffineblend.so

difference
Thread 14 "RenderThread" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff8eddf700 (LWP 2001)]
0x00007fff8ede4292 in difference::update(double, unsigned int*, unsigned int const*, unsigned int const*) () from /usr/lib/frei0r-1/difference.so

softlight:
Thread 26 "RenderThread" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff89fcc700 (LWP 2038)]
0x00007fff8812d286 in softlight::update(double, unsigned int*, unsigned int const*, unsigned int const*) () from /usr/lib/frei0r-1/softlight.so

saturation:
Thread 14 "RenderThread" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff8edde700 (LWP 2062)]
0x00007fff8ede3ad7 in saturation::update(double, unsigned int*, unsigned int const*, unsigned int const*) () from /usr/lib/frei0r-1/saturation.so

Hope my comment will help to resolve this issue!
Fell free to ask me to do some additionnals tests.

Aurélia
Comment 4 Wegwerf 2016-10-03 15:10:53 UTC
I'm actually seeing similar spurious crashes with recent git master Kdenlive installed from Kdenlive's ppa's. It's still unclear to me what causes these crashes. When I compile the same Kdenlive version from git master sources, I can run it without any crashes (neither LADSPA nor transition crashes).
Comment 5 Wegwerf 2016-10-03 15:32:14 UTC
Aurelia, can you please try to *re*install the frei0r package(s)? In my case a corrupted shared library file was causing my crashes. So to make sure that this isn't the cause on your system, can you please be so kind as to reinstall your frei0r packages? Thank you very much!
Comment 6 Aurelia 2016-10-03 20:53:36 UTC
Hi Wegwerf!
Thank you very much for your answer!
Where did you download the frei0r packages?
In my case i dwonloaded here: https://files.dyne.org/frei0r/   frei0r-plugins-1.5.0.tar.gz
I will retry from the same link.
and I'll tell you.
Thanks!
Comment 7 Aurelia 2016-10-03 22:04:30 UTC
I tried to reinstall  (aptitude reinstall frei0r-plugins) -> same issue.

I tried to build frei0r-plugins-1.5.0.tar.gz (after removing frei0r-plugins from ubuntu package, aptitude purge frei0r-plugins), I get the following error (running kdenlive with gdb):

Thread 17 "RenderThread" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff95100700 (LWP 26436)]
burn::update (in3=<optimized out>, in2=<optimized out>, in1=<optimized out>, out=<optimized out>, time=<optimized out>, this=<optimized out>)
    at /home/toto/Téléchargements/frei0r-plugins-1.5.0/src/mixer2/burn/burn.cpp:65
65                dst[b] = (uint8_t) CLAMP0255(255 - tmp);
Comment 8 Aurelia 2016-10-03 22:06:06 UTC
thank for your help...
Comment 9 Wegwerf 2016-10-04 06:34:30 UTC
Thank you for your helpful report! Now I'm wondering what went wrong. First, to be sure, did you use the burn effect? I'm asking to make sure that this is not some library mismatch with calls running wild. Second, can you check if when the segmentation fault happens in line 65, is dst 0? And has b some sane value, within widt*height*4 I assume?
Comment 10 Aurelia 2016-10-04 20:31:28 UTC
Hi Wegwerf, thank again for your answer.

I will try to answer you as well as I can because I feel a little "lost" ;-) !

First: " First, to be sure, did you use the burn effect": I tried to use the "Burn" transition--->crash (with the error that I past) but the crash happen also with the other transition the same as my first post... Only a few of them function : dissolve, affine, diaporama...

Second : "can you check if when the segmentation fault happens in line 65, is dst 0"
 How can I check this ?

Third: "has b some sane value, within widt*height*4 I assume?" 
I can't find this item in the shell, where can I find this?
Tell me more please !
I'm really want to find what's wrong....
Thank you very much again!


This evening with my computer I try again , I past here the bug when I ran Kdenlive with gdb, this time with "overlay" transition:


aurelia@aurelia-desktop:~$ gdb /usr/bin/kdenlive
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
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-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 /usr/bin/kdenlive...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/kdenlive 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe234d700 (LWP 3734)]
[New Thread 0x7fffd42f5700 (LWP 3735)]
[New Thread 0x7fffd3af4700 (LWP 3736)]
[New Thread 0x7fffbd0d4700 (LWP 3737)]
no more csLADSPA plugins
[New Thread 0x7fffafab1700 (LWP 3741)]
[New Thread 0x7fffaeab0700 (LWP 3742)]
[New Thread 0x7fffae2af700 (LWP 3743)]
[New Thread 0x7fffad2ae700 (LWP 3744)]
Removing cache at "/home/aurelia/.cache/kdenlive-thumbs.kcache"
[New Thread 0x7fff9f61d700 (LWP 3746)]
OpenGL vendor:  "NVIDIA Corporation"
OpenGL renderer:  "GeForce 7025 / nForce 630a/integrated/SSE2"
OpenGL Threaded:  true
OpenGL ARG_SYNC:  true
OpenGL OpenGLES:  false
[New Thread 0x7fff9ec1c700 (LWP 3747)]
[New Thread 0x7fff9e3d0700 (LWP 3748)]
[Thread 0x7fffbd0d4700 (LWP 3737) exited]
[Thread 0x7fff9e3d0700 (LWP 3748) exited]
Removing cache at "/home/aurelia/.cache/kdenlive-thumbs.kcache"
 // / processing file open
 // / processing file open: validate
Opening a document with version  0.95  /  0.95
 // / processing file validate ok
***********
FOUND GUIDES:  0 
**********
[Thread 0x7fffaeab0700 (LWP 3742) exited]
[New Thread 0x7fffaeab0700 (LWP 3751)]
[Thread 0x7fffaeab0700 (LWP 3751) exited]
[New Thread 0x7fffaeab0700 (LWP 3752)]
[New Thread 0x7fff9e3d0700 (LWP 3753)]
[New Thread 0x7fff8aba1700 (LWP 3754)]
[New Thread 0x7fff8a3a0700 (LWP 3755)]
[New Thread 0x7fff89b9f700 (LWP 3756)]
[New Thread 0x7fff72ffb700 (LWP 3757)]
[New Thread 0x7fff725fa700 (LWP 3758)]
[New Thread 0x7fff71df9700 (LWP 3759)]
[New Thread 0x7fff715f8700 (LWP 3760)]
[New Thread 0x7fff6affd700 (LWP 3761)]

Thread 15 "RenderThread" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff9e3d0700 (LWP 3753)]
0x00007fff8aba6256 in overlay::update(double, unsigned int*, unsigned int const*, unsigned int const*) () from /usr/lib/frei0r-1/overlay.so
(gdb)
Comment 11 Wegwerf 2016-10-04 21:16:26 UTC
If you run kdenlive from gdb, and it crashes, then you should be able to print the parameters. However, what is puzzling: you get crashes all the time, but in different places. Something's really broken here. But what?
Comment 12 Aurelia 2016-10-05 09:48:59 UTC
Hello Wegwerf!
maybe I find the command line to print backtrace from GDB : here http://web.mit.edu/gnu/doc/html/gdb_8.html
I will test this evening.

However, you said that for you the transition do not crash ...I'm asking my self with whitch version of Ubuntu are you ? How do you install kdenlive and do the update and upgrade in the aim of do the same as you ....
For my part  I run Ubuntu studio 16.04 is it the problem ?

Am I the only one in this case?

Tell me more .

Thank and have a good day !
Comment 13 Wegwerf 2016-10-05 19:07:04 UTC
Kubuntu 16.04LTS, but others are also running stable with Ubuntu 16.04LTS.
Comment 14 Aurelia 2016-10-06 20:50:19 UTC
Hi, 

I tried to use testing packages, so I did the following:
Change "http://ppa.launchpad.net/kdenlive/kdenlive-stable/ubuntu xenial main" to "http://ppa.launchpad.net/kdenlive/kdenlive-testing/ubuntu xenial main" in /etc/apt/sources.list.d/kdenlive-ubuntu-kdenlive-stable-xenial.list

run aptitude update && aptitude safe-upgrade

The following packages were updated:
libvidstab1.1
libmlt6 (6.3.0+git201608140258~ubuntu16.04.1 to 6.3.0+git201609270616~ubuntu16.04.1)
libmlt-data (6.3.0+git201608140258~ubuntu16.04.1 to 6.3.0+git201609270616~ubuntu16.04.1)
libmlt++3 (6.3.0+git201608140258~ubuntu16.04.1 to 6.3.0+git201609270616~ubuntu16.04.1)
python-mlt (6.3.0+git201608140258~ubuntu16.04.1 to 6.3.0+git201609270616~ubuntu16.04.1)

After this upgrade, Kdenlive does not crash anymore.
I am going to do some additional tests and keep you updated.

Regards,
Aurélia