Bug 403867

Summary: kdenlive immediately crashes upon project open
Product: [Applications] kdenlive Reporter: Adam Spiers <kde-bugs>
Component: User InterfaceAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED FIXED    
Severity: crash CC: fritzibaby, leyfer.kirill, snd.noise
Priority: NOR Flags: fritzibaby: Brainstorm+
fritzibaby: timeline_corruption+
Version: 19.04.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: STDOUT/STDERR from 19.03.70-bf29ac9 AppImage run
stdout/stderr
.kdenlive project file leading to the crash on kdenlive-19.04.2f-x86_64.appimage

Description Adam Spiers 2019-02-02 16:46:21 UTC
SUMMARY

kdenlive crashes immediately after opening a project.

STEPS TO REPRODUCE
1. Launch kdenlive-19.03.70-bf29ac9-x86_64.appimage (downloaded from https://binary-factory.kde.org/job/Kdenlive_Nightly_Appimage_Build/lastSuccessfulBuild/artifact/ build #71)
2. Open my project

OBSERVED RESULT

Immediate crash with the attached output to STDOUT/ERR.  Final lines of log are:

MOVING CLIP FROM:  -1  ==  87
Inserted clip in track 87 at  12429
terminate called after throwing an instance of 'std::out_of_range'
  what():  _Map_base::at
/tmp/.mount_kdenli3NznCc/AppRun: line 25: 29834 Aborted                 (core dumped) kdenlive --config kdenlive-appimagerc $@

EXPECTED RESULT

Doesn't crash :)

SOFTWARE/OS VERSIONS

Linux: openSUSE Leap 15.0
KDE Plasma Version: not shown
KDE Frameworks Version: 5.51.0
Qt Version: 5.11.2 (built against 5.11.2)
Comment 1 Adam Spiers 2019-02-02 16:48:04 UTC
Created attachment 117787 [details]
STDOUT/STDERR from 19.03.70-bf29ac9 AppImage run
Comment 2 Jean-Baptiste Mardelle 2019-02-11 19:56:05 UTC
Could you attach the .kdenlive project file or mail it to me?
Comment 3 leyfer.kirill 2019-06-30 09:59:37 UTC
I can confirm this issue, it also occured on kdenlive-19.04.2f-x86_64.appimage.

It loads the project to 49% and then crashes.
Comment 4 leyfer.kirill 2019-06-30 10:00:14 UTC
Created attachment 121229 [details]
stdout/stderr
Comment 5 leyfer.kirill 2019-06-30 10:01:08 UTC
Created attachment 121230 [details]
.kdenlive project file leading to the crash on kdenlive-19.04.2f-x86_64.appimage
Comment 6 emohr 2019-06-30 10:32:23 UTC
Confirmed. I opened issue: https://invent.kde.org/kde/kdenlive/issues/281
Comment 7 Jean-Baptiste Mardelle 2019-06-30 13:57:27 UTC
Git commit 0bcf22b0e6469827cc083f1b3998adeaa367010d by Jean-Baptiste Mardelle.
Committed on 30/06/2019 at 13:57.
Pushed by mardelle into branch 'master'.

Try to recover a clip if it's parent id cannot be found in the project bin (use url)

M  +14   -2    src/timeline2/model/builders/meltBuilder.cpp

https://invent.kde.org/kde/kdenlive/commit/0bcf22b0e6469827cc083f1b3998adeaa367010d
Comment 8 farid 2021-03-11 23:47:01 UTC
Thanks for your report. This seems to be fixed please try with latest version and reopen if you find any issues.