Bug 434696

Summary: Rotoscope crashes KDENLIVE
Product: [Applications] kdenlive Reporter: rubypaint10
Component: Video Effects & TransitionsAssignee: Vincent PINON <vpinon>
Status: RESOLVED FIXED    
Severity: crash CC: fritzibaby, snd.noise
Priority: NOR Flags: fritzibaby: timeline_corruption+
Version First Reported In: 20.12.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: One of the pngs I use rotoscope on

Description rubypaint10 2021-03-21 04:07:15 UTC
SUMMARY
Rotoscope crashes KDENLIVE

STEPS TO REPRODUCE
1. Drag rotoscope effect to clip.
2. Apply the rotoscope shape and alpha operation.
3. Within one minute, KDENLIVE will crash.

OBSERVED RESULT
Rotoscope crashes KDENLIVE, therefore I have to open KDENLIVE again to continue editing.

EXPECTED RESULT
Rotoscope applied to clip without crashing KDENLIVE.

SOFTWARE/OS VERSIONS
Windows: KDENLIVE 20.12.0/Windows 10 Pro
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
It doesn't happen when I want to render the video, it happens after adding the rotoscope effect, making the shape, and applying the alpha operation (in my case, subtract).
I want to edit a video and I use a lot of the rotoscope effect. The bug is very inconvenient because I want to be done with this video, but I have to work with KDENLIVE crashing and me opening KDENLIVE over and over again to contiue editing.
Comment 1 farid 2021-03-23 12:29:27 UTC
I cannot reproduce. Can you please try the latest version?
Comment 2 farid 2021-03-23 12:29:59 UTC
Also do you have movit on?
Comment 3 rubypaint10 2021-03-23 12:47:01 UTC
(In reply to farid from comment #1)
> I cannot reproduce. Can you please try the latest version?

Oh, I see. Sure, I'll update sometime later.
Comment 4 rubypaint10 2021-03-23 12:48:48 UTC
(In reply to farid from comment #2)
> Also do you have movit on?

Sorry, I don't know what that is. I'll search more about it later.
Comment 5 farid 2021-03-23 12:52:50 UTC
(In reply to rubypaint10 from comment #3)
> (In reply to farid from comment #1)
> > I cannot reproduce. Can you please try the latest version?
> 
> Oh, I see. Sure, I'll update sometime later.

Ok, let us know.
Comment 6 farid 2021-03-23 12:53:11 UTC
(In reply to rubypaint10 from comment #4)
> (In reply to farid from comment #2)
> > Also do you have movit on?
> 
> Sorry, I don't know what that is. I'll search more about it later.

nevermind then.
Comment 7 rubypaint10 2021-03-23 13:51:44 UTC
(In reply to farid from comment #5)
> (In reply to rubypaint10 from comment #3)
> > (In reply to farid from comment #1)
> > > I cannot reproduce. Can you please try the latest version?
> > 
> > Oh, I see. Sure, I'll update sometime later.
> 
> Ok, let us know.

I've downloaded and reinstalled KDENLIVE to its 20.12.3 version (from the download page that says "Install 20.12.3" with the windows icon beside it). It still crashed. Do you want me to maybe record a video of the crash?
Comment 8 emohr 2021-03-24 18:11:19 UTC
It could be your graphic card driver. After you have updated Win10 you have to check for updated graphic card driver.
Comment 9 rubypaint10 2021-03-26 09:16:36 UTC
(In reply to emohr from comment #8)
> It could be your graphic card driver. After you have updated Win10 you have
> to check for updated graphic card driver.

I've now updated both my Windows 10 and graphics card driver, it still crashes.
Comment 10 emohr 2021-03-26 16:51:23 UTC
On which type of clip do you apply the rotoscope effect (MKV, MTS, and MP4)?

Does this clip have video and audio? If audio how many audio stream does the clip have?
Comment 11 rubypaint10 2021-03-27 05:18:37 UTC
(In reply to emohr from comment #10)
> On which type of clip do you apply the rotoscope effect (MKV, MTS, and MP4)?
> 
> Does this clip have video and audio? If audio how many audio stream does the
> clip have?

Oh, my bad, sorry. It's a png, not a clip, with a transparency effect (0,750) applied in the project bin.

When I'm editing the png in the timeline, I use the transform effect on it (which is fine), then I use the rotoscope (which crashes KDENLIVE). The steps to reproduce the crash is the same, just with a png, not a clip.
Comment 12 farid 2021-03-27 13:17:27 UTC
I am not able to reproduce.

1- I added a transparent png and applied a tranparency effect in the bin.
2- Moved it to the timeline and added a transform effect and then rotoscopy.
3- No crash.

Maybe try with the daily builds?
Comment 13 emohr 2021-03-27 13:20:44 UTC
I tested with your steps with a PNG (with 20.12.3 and master) on Win7: no crash. Does your PNG contain some alpha channel information? Can you upload here a PNG which leads to the crash?
Comment 14 rubypaint10 2021-03-27 13:39:30 UTC
Created attachment 137103 [details]
One of the pngs I use rotoscope on

(In reply to emohr from comment #13)
> I tested with your steps with a PNG (with 20.12.3 and master) on Win7: no
> crash. Does your PNG contain some alpha channel information? Can you upload
> here a PNG which leads to the crash?

I use a total of 4 pngs, I'll attach one of them.
Comment 15 rubypaint10 2021-03-27 13:54:04 UTC
(In reply to farid from comment #12)
> I am not able to reproduce.
> 
> 1- I added a transparent png and applied a tranparency effect in the bin.
> 2- Moved it to the timeline and added a transform effect and then rotoscopy.
> 3- No crash.
> 
> Maybe try with the daily builds?

Using the daily build made it not crash anymore, thank you!
Comment 16 rubypaint10 2021-03-27 13:55:49 UTC
(In reply to emohr from comment #13)
> I tested with your steps with a PNG (with 20.12.3 and master) on Win7: no
> crash. Does your PNG contain some alpha channel information? Can you upload
> here a PNG which leads to the crash?

I tried using the daily builds version of KDENLIVE and it doesn't crash everytime I use the rotoscope effect anymore. Thank you for trying to help me!
Comment 17 farid 2021-03-27 13:57:09 UTC
Happy to hear, the fix will be available in next release (21.04) due next month.