Bug 454236

Summary: Crash when using a clip that was changed on the filesystem.
Product: [Applications] kdenlive Reporter: Vitaly "_Vi" Shukela <vi0oss>
Component: Video Display & ExportAssignee: Jean-Baptiste Mardelle <jb>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: git-master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Vitaly "_Vi" Shukela 2022-05-22 20:51:07 UTC
Encounted a crash:

...
::: REGISTERING CLIP TO BIN:::::
::::::::::::::::::::::
REGISTRATION  35 ptr count 8
qml: loaded clip:  3143 , ID:  35 , index:  0 , TYPE: Video
qml: loaded clip with Astream:  -1
terminate called after throwing an instance of 'std::out_of_range'
  what():  _Map_base::at

[1]+  Aborted                 /opt/kdenlive-master-208-linux-64-gcc.AppImage

when re-adding a video clip from bin to timeline where the clip was repeatedly changed on filesystem. The video got replaced by one-second video, then back to original length.
I saw the clip's segment shrink to 1 second in the timeline, but after deleting and attempting to re-add it Kdenlive crashed.
Comment 1 Vitaly "_Vi" Shukela 2022-05-22 21:00:57 UTC
After Kdenlive restart it offered to recover session. Repeating the actions in the recovered session worked properly.