Bug 506835

Summary: Crash when drag media file from file manager to subtitle track
Product: [Applications] kdenlive Reporter: red_Arti <jijiliu35>
Component: User Interface & MiscellaneousAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 25.04.3   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 25.08.0
Sentry Crash Report:
Attachments: crash-video

Description red_Arti 2025-07-10 03:37:20 UTC
SUMMARY
When a subtitle is selected, dran & drop a media file  (.wav) from file manager to the subtitle track of timeline, kdenlive crashes

STEPS TO REPRODUCE
1. Add a subtitle
2. Select the subtitle 
3. dran & drop a media (a .wav file) from file manager to the subtitle track of timeline

OBSERVED RESULT
crash

log:
====== OPENING CLIP:  "bb.wav"
TRACK NOT IN TARGET :  2  =  QList(2)
ACTION:  "&My Custom job"  =  "custom;"
:::: COMPARING ACTIONTYPE:  ""  =  ClipType::Audio
ACTION:  "&Automatic Scene Split…"  =  "scenesplit;v"
:::: COMPARING ACTIONTYPE:  "v"  =  ClipType::Audio
ACTION:  "&Stabilize"  =  "stabilize;v"
:::: COMPARING ACTIONTYPE:  "v"  =  ClipType::Audio
ACTION:  "&Duplicate Clip with Speed Change…"  =  "timewarp;av"
:::: COMPARING ACTIONTYPE:  "av"  =  ClipType::Audio
ACTION:  "&Configure Clip Jobs…"  =  ""
:::: COMPARING ACTIONTYPE:  ""  =  ClipType::Audio
callback  "4"   -2 , MAXIMUM SPACE:  -1
terminate called after throwing an instance of 'std::out_of_range'
  what():  unordered_map::at
   (core dumped)

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Kdenlive 25.04.3 AppImage on Linux

ADDITIONAL INFORMATION
One subtitle has  to be selected to reproduce the but
Drop the media file to the timeline's subtitle track to reproduce bug
Comment 1 red_Arti 2025-07-10 03:38:42 UTC
Created attachment 183114 [details]
crash-video
Comment 2 Jean-Baptiste Mardelle 2025-07-10 04:51:05 UTC
Git commit cd4b10e86a46676628766384a74d109d7a3b0e35 by Jean-Baptiste Mardelle.
Committed on 10/07/2025 at 04:50.
Pushed by mardelle into branch 'release/25.08'.

Fix crash dropping media file on subtitle track
FIXED-IN: 25.08.0

M  +1    -1    src/timeline2/view/timelinecontroller.cpp

https://invent.kde.org/multimedia/kdenlive/-/commit/cd4b10e86a46676628766384a74d109d7a3b0e35