Bug 499531

Summary: Import Action of Motion Tracking Data Without Data in Clipboard Crashes Kdenlive
Product: [Applications] kdenlive Reporter: Jeffrey Krebs <rockinjeff>
Component: Video Effects & TransitionsAssignee: emohr <fritzibaby>
Status: RESOLVED FIXED    
Severity: crash CC: fritzibaby
Priority: NOR Keywords: triaged
Version First Reported In: 24.12.1   
Target Milestone: ---   
Platform: Other   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: crash_import empty keyframes

Description Jeffrey Krebs 2025-02-05 01:20:10 UTC
Summary: Importing motion tracking data without having any data in the clipboard causes Kdenlive to crash.

Steps to Reproduce:
1. Open Kdenlive.
2. Navigate to the motion tracking feature.
3. Attempt to import motion tracking data without any data present in the clipboard.

Observed Result: Kdenlive crashes when attempting to import motion tracking data without clipboard data.

Expected Result: Kdenlive should display a warning or error message indicating that no data is present in the clipboard, and should not crash.
Comment 1 emohr 2025-02-06 16:34:32 UTC
Created attachment 178022 [details]
crash_import empty keyframes

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

I tested it with the transform effect -> options -> import keyframe from clipboard -> crash
Attached the crash log
Comment 2 Jean-Baptiste Mardelle 2025-02-06 21:09:36 UTC
Git commit 77ec6bab5daa2f152e2c733eb6d20b0e245890f7 by Jean-Baptiste Mardelle.
Committed on 06/02/2025 at 21:09.
Pushed by mardelle into branch 'master'.

Fix crash trying to import invalid keyframe data from clipboard

M  +5    -0    src/assets/view/widgets/keyframeimport.cpp
M  +11   -1    src/assets/view/widgets/keyframewidget.cpp

https://invent.kde.org/multimedia/kdenlive/-/commit/77ec6bab5daa2f152e2c733eb6d20b0e245890f7