Bug 509005

Summary: kdenlive crashes on adding certain filters to zones
Product: [Applications] kdenlive Reporter: rlk
Component: Video Effects & TransitionsAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED FIXED    
Severity: crash CC: rlk
Priority: NOR    
Version First Reported In: 25.08.0   
Target Milestone: ---   
Platform: Flatpak   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 25.08.1
Sentry Crash Report:

Description rlk 2025-09-01 16:10:04 UTC
SUMMARY

kdenlive crashes when adding fade in or fade out (and audio normalize, and perhaps others) to a zone extracted from a clip.

The file in question is 4K 29.97 from a Canon EOS R5 mkII.  It's a .mp4 encoded in AVC that's about 85 MB and 110 minutes long.  I've split it into zones, to remove dead space between them and to allow me to fade out between them (and also to normalize the audio, as some speakers were louder than others).  If I attempt to add these filters to the full clip, there is no problem.

STEPS TO REPRODUCE
1. Insert 4K video (have not tested FHD or others) into project bin
2. Chop it up into zones (I have about a dozen zones, one for each speaker)
3. Attempt to add fade in, fade out, normalize, or normalize 2 pass filter to the stack for one of the zones

OBSERVED RESULT

kdenlive crashes.  Running it from the command line (flatpak run org.kde.kdenlive) prints no messages prior to the crash, even with `flatpak run -vv org.kde.kdenlive`

EXPECTED RESULT

Filter should be added and usable.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: openSUSE 15.6
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 5.116
Qt Version: 6.9.2

ADDITIONAL INFORMATION

Flatpak 1.16.0 (from openSUSE RPM)
kdenlive flatpak installed August 31, 2025
Comment 1 rlk 2025-09-02 14:35:41 UTC
The workaround is to split the file in question into segments.  That requires either recoding, imprecise cut positions (the master is LGOP with a keyframe every .5 second), or originally shooting all-I, and either way doubles (minus footage I did not need) the storage requirement; in this case that's an extra 68 GB; I chose the imprecise cut points which works for what I'm doing.

BTW, the original file was 85 GB, not 85 MB!
Comment 2 Jean-Baptiste Mardelle 2025-09-02 17:36:08 UTC
I am trying to find some sample clips from an EOD R5 MKII to see if I can reproduce. Could you please test with the AppImage to see if the bug also happens here ? You can download it from here:
https://download.kde.org/stable/kdenlive/25.08/linux/

Just make it executable and run it.
Thanks in advance for your feedback
Comment 3 rlk 2025-09-02 18:05:48 UTC
Not sure it needs a video file specifically from that camera.  I do have a small file from that camera, but "small" still means about 270 MB.
Comment 4 rlk 2025-09-02 18:16:28 UTC
I managed to reproduce it with https://rlk.smugmug.com/Manny-Gani-Celebration-of-Life (which I hold copyright to, and I authorize its use for this).  It always reproduces instantly.  I just set a seemingly random in point and out point, and tried to insert the zone in my project bin (ctrl-i).

I'm not used to using AppImage images; if you can't reproduce it with the above file, I will try it.
Comment 5 rlk 2025-09-02 18:32:53 UTC
Obvious correction: it extracts to the project bin just fine; it crashes when I try to apply the fade in filter.  But it isn't specific to the camera.
Comment 6 Jean-Baptiste Mardelle 2025-09-02 19:16:33 UTC
Oh, ok understood.  WHen you were talking about zones, I thought you were cutting the clip in the timeline.
Adding effects to clip zones in the project bin is not supported. Effects should normally be applied to the whole clip.
However if you double click on the effect while a clip zone is selected in Bin, I can confirm the crash. Will work on a fix, thanks.

Applying effects can be done when the zone is inserted in timeline.
Comment 7 rlk 2025-09-02 20:30:37 UTC
I see, so the idea is to do all the work in the timeline and not on the clip?  What's the purpose then in being able to add zones to the project bin?
Comment 8 Jean-Baptiste Mardelle 2025-09-02 21:03:44 UTC
Git commit 6d7eb4a3191a113831bef94edf62f739dc102f94 by Jean-Baptiste Mardelle.
Committed on 02/09/2025 at 21:03.
Pushed by mardelle into branch 'master'.

Fix crash trying to apply an effect on a subclip

M  +0    -1    src/assets/assetlist/view/assetlistwidget.cpp
M  +45   -12   src/bin/bin.cpp
M  +1    -1    src/bin/bin.h
M  +1    -1    src/mainwindow.cpp

https://invent.kde.org/multimedia/kdenlive/-/commit/6d7eb4a3191a113831bef94edf62f739dc102f94
Comment 9 Jean-Baptiste Mardelle 2025-09-02 21:04:18 UTC
Git commit fc95e6bdbc1f7570f8781e555fc22a64a98d25fd by Jean-Baptiste Mardelle.
Committed on 02/09/2025 at 21:04.
Pushed by mardelle into branch 'release/25.08'.

Fix crash trying to apply an effect on a subclip

M  +0    -1    src/assets/assetlist/view/assetlistwidget.cpp
M  +45   -12   src/bin/bin.cpp
M  +1    -1    src/bin/bin.h
M  +1    -1    src/mainwindow.cpp

https://invent.kde.org/multimedia/kdenlive/-/commit/fc95e6bdbc1f7570f8781e555fc22a64a98d25fd
Comment 10 Jean-Baptiste Mardelle 2025-09-03 05:44:23 UTC
You can perform some tasks on clip zones, like clip jobs (stablilze) and extract audio. Otherwise it's mostly a way to select the interesting sequences in a clip to use them later in timeline. With the upcoming introduction of markers with a duration, we will think again about it as there won't really be a reason to have both.