Bug 499570

Summary: Application crashes when deleting multiple items that are part of the same group at the same time. Example say if i selected two out of the four items in a group using Alt and press delete.
Product: [Applications] kdenlive Reporter: Cheddar Fox <cheddarthefox>
Component: Timeline & EditingAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED FIXED    
Severity: crash CC: fritzibaby
Priority: NOR Keywords: triaged
Version First Reported In: 24.12.1   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: crash_delete more than 1 clip in a group

Description Cheddar Fox 2025-02-05 23:06:35 UTC
SUMMARY
It used to be that if I held Alt I could select just one clip in a group to delete just that part of a group. Now when I do this it deletes the whole group even though it still visually selects just the one clip.  On top of that now if I selected multiple clips in the group at the same time to delete multiple clips from the group the application crashes. Auto recover also fails as it tries to recover the bugged save state.

Lost most of my work this afternoon.

SOFTWARE/OS VERSIONS
Kdenlive: 24.12.1
MLT: 7.28.0
FFmpeg
KDE Frameworks: 6.9.0
Qt: Using 6.8.0 and built against 6.8.0
Windows 11 Version 23H2
Build ABI: x86_64-little_endian-llp64
Kernel: winnt 10.0.22631
Comment 1 emohr 2025-02-06 17:04:01 UTC
Created attachment 178023 [details]
crash_delete more than 1 clip in a group

Thank you for reporting. I can confirm the crash. Following your steps. 

I tested it with 3 different color clips: with Alt + Shift I selected 2 of 3 clips in the timeline -> hit delete -> crash
Attached the crash log
Comment 2 Jean-Baptiste Mardelle 2025-02-06 21:55:32 UTC
Git commit e0ad3acd1297c31ee00109ec42982ecb2918735c by Jean-Baptiste Mardelle.
Committed on 06/02/2025 at 21:55.
Pushed by mardelle into branch 'master'.

Fix incorrect behavior / crash on single item deletion

M  +1    -1    src/jobs/audiolevels/generators.cpp
M  +17   -19   src/timeline2/model/timelinemodel.cpp

https://invent.kde.org/multimedia/kdenlive/-/commit/e0ad3acd1297c31ee00109ec42982ecb2918735c
Comment 3 Cheddar Fox 2025-02-06 22:14:28 UTC
Thanks 👍