Bug 506835 - Crash when drag media file from file manager to subtitle track
Summary: Crash when drag media file from file manager to subtitle track
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: User Interface & Miscellaneous (other bugs)
Version First Reported In: 25.04.3
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-10 03:37 UTC by red_Arti
Modified: 2025-07-10 04:51 UTC (History)
0 users

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


Attachments
crash-video (302.18 KB, video/mp4)
2025-07-10 03:38 UTC, red_Arti
Details

Note You need to log in before you can comment on or make changes to this bug.
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