Bug 491227 - Alt+Shift+Selecting multiple clips on audio/video track deletes their audio/video as well or causes a crash
Summary: Alt+Shift+Selecting multiple clips on audio/video track deletes their audio/v...
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: User Interface & Miscellaneous (other bugs)
Version First Reported In: 24.05.2
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-03 18:06 UTC by Bibido
Modified: 2025-03-13 11:44 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Selecting only the clips on the video track (98.80 KB, image/jpeg)
2024-08-03 18:06 UTC, Bibido
Details
Crash when selecting only clips from and outside the group (1.43 MB, video/mp4)
2024-08-03 18:08 UTC, Bibido
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bibido 2024-08-03 18:06:58 UTC
Created attachment 172256 [details]
Selecting only the clips on the video track

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
When having a video with audio that are normally grouped together, Kdenlive cannot keep them apart if you delete just the audio/video part and the audio/video part of one or more clips selected with Alt+Shift. And if you have two audio/video clips in a single group, i.e. one audio+video clip grouped with another audio+video clip, you can crash Kdenlive if you Alt+Shift+Select just their video clips (or audio) as well as one or more audio/video clip on the same track.

STEPS TO REPRODUCE
1. Have any video with audio cut into two or more clips on the same or different tracks
2. Select just the clips on the video tracks, not audio, using the "Alt" + "Shift" keys and press "Del" key to delete them
3. To make Kdenlive crash, join two audio/video clips together in one single group. Select just their audios/videos with Alt+Shift and another audio/video on another clip that is not part of the original group.

OBSERVED RESULT
All clips on the video track are removed, including their audio until the last selected clip, which is retained. When two audio/video clips are joint into a single a single group and you delete them independently, Kdenlive crashes.

EXPECTED RESULT
If I choose to remove only specific elements in the video track I don't expect Kdenlive to delete their corresponding audio, and I don't expect it to crash when clips are grouped together.

SOFTWARE/OS VERSIONS
Windows: 10 Pro
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version:
Comment 1 Bibido 2024-08-03 18:08:18 UTC
Created attachment 172257 [details]
Crash when selecting only clips from and outside the group
Comment 2 Jean-Baptiste Mardelle 2024-08-08 10:39:39 UTC
Thanks for your report.
Unselected clips being deleted should now be fixed with for 24.08.0 with this commit:
https://invent.kde.org/multimedia/kdenlive/-/commit/73e6dc2d89c4749c42e981c8f5c31e71be16d2e2

I could not reproduce the crash, would be great if you could test with the beta builds for 24.08:
https://cdn.kde.org/ci-builds/multimedia/kdenlive/release-24.08/windows/
Comment 3 Bibido 2024-08-10 06:51:34 UTC
(In reply to Jean-Baptiste Mardelle from comment #2)
> Thanks for your report.
> Unselected clips being deleted should now be fixed with for 24.08.0 with
> this commit:
> https://invent.kde.org/multimedia/kdenlive/-/commit/
> 73e6dc2d89c4749c42e981c8f5c31e71be16d2e2
> 
> I could not reproduce the crash, would be great if you could test with the
> beta builds for 24.08:
> https://cdn.kde.org/ci-builds/multimedia/kdenlive/release-24.08/windows/

Thank you. I can't reproduce the crash anymore with the latest beta build.