Bug 496391 - Kdenlive crashes when clicking "Remove all keyframes after cursor"
Summary: Kdenlive crashes when clicking "Remove all keyframes after cursor"
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: Video Effects & Transitions (other bugs)
Version First Reported In: 24.08.3
Platform: Microsoft Windows Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: emohr
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2024-11-17 19:09 UTC by Bibido
Modified: 2024-11-22 12:10 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 24.12.0
Sentry Crash Report:


Attachments
crash_delete keyframe (97.14 KB, text/plain)
2024-11-18 17:18 UTC, emohr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bibido 2024-11-17 19:09:25 UTC
SUMMARY
If you have a video or color clip in the timeline and apply any effect that allows you to set keyframes, clicking "Remove all keyframes after cursor" when there are no actual keyframes after the cursor causes Kdenlive to crash.

STEPS TO REPRODUCE
1. Have a color clip and apply a Transform effect
2. Without setting any keyframe, move the cursor inside the effect to the middle of the clip
3. Click "Remove all keyframes after cursor" in the effect's options

OBSERVED RESULT
Kdenlive crashes under Windows 10.

EXPECTED RESULT
The application should not crash where there are no keyframes to remove.

SOFTWARE/OS VERSIONS
Windows: 
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: 

ADDITIONAL INFORMATION
Comment 1 emohr 2024-11-18 17:18:29 UTC
Created attachment 175925 [details]
crash_delete keyframe

Thank you for reporting. I can confirm the crash. Attached the crash report.
Comment 2 Jean-Baptiste Mardelle 2024-11-22 12:10:54 UTC
Git commit 709c41081c63eeb887733a52038e90de63251092 by Jean-Baptiste Mardelle.
Committed on 22/11/2024 at 12:09.
Pushed by mardelle into branch 'release/24.12'.

Fix crash trying to remove keyframes when there are none.
FIXED-IN: 24.12.0

M  +4    -0    src/assets/keyframes/model/keyframemodel.cpp

https://invent.kde.org/multimedia/kdenlive/-/commit/709c41081c63eeb887733a52038e90de63251092