Bug 503227 - Invalid sequence of clips prevents opening of project.
Summary: Invalid sequence of clips prevents opening of project.
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: User Interface & Miscellaneous (other bugs)
Version First Reported In: unspecified
Platform: Manjaro Linux
: NOR critical
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-23 12:50 UTC by antimidia
Modified: 2025-04-25 13:41 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot of error. (36.03 KB, image/png)
2025-04-23 12:50 UTC, antimidia
Details
Buggy project file (554.27 KB, application/zip)
2025-04-23 12:52 UTC, antimidia
Details
Corrected project file (837.87 KB, application/zip)
2025-04-23 13:49 UTC, Jean-Baptiste Mardelle
Details

Note You need to log in before you can comment on or make changes to this bug.
Description antimidia 2025-04-23 12:50:39 UTC
Created attachment 180569 [details]
Screenshot of error.

When I try to open the project I'm working on I get and "invalid sequence of clips" and the window in the attached screenshot pops up.

I was using Kdenlive 25.04.01 from flatpak repositories on Manjaro. The app crashed and this error started appearing.

If I try to restore a backup I get the same error.

I'm desperate since this is a big project.
Comment 1 antimidia 2025-04-23 12:52:50 UTC
Created attachment 180570 [details]
Buggy project file
Comment 2 Jean-Baptiste Mardelle 2025-04-23 13:32:52 UTC
Thanks for your report and sorry for this bad experience. Did you start the project with an older version of Kdenlive ? This kind of corruption sometimes happened with the 23.12 and 24.03 and 24.05 versions but I haven't seen it in a long time.

I am working on better handling this kind of issue on project opening and will get back to you soon.
Comment 3 Jean-Baptiste Mardelle 2025-04-23 13:49:19 UTC
Created attachment 180572 [details]
Corrected project file
Comment 4 Jean-Baptiste Mardelle 2025-04-23 13:51:57 UTC
So there was indeed a corrupted sequence in the project. After updating the Kdenlive code to handle such cases, I was able to open your file. Keep in mind that a sequence clip was deleted - it looks like it was used in a few places.

Please check my attached corrected project and let me know if this is usable. If it is, I will push my changes so that Kdenlive can do this recovery operation without crashing or closing the project file.
Comment 5 antimidia 2025-04-23 18:31:31 UTC
It did work! Thanks!
Comment 6 Jean-Baptiste Mardelle 2025-04-23 18:54:51 UTC
Git commit f94d4ea3c8c17c32b8ad6be5f39c9caf842d3e08 by Jean-Baptiste Mardelle.
Committed on 23/04/2025 at 18:54.
Pushed by mardelle into branch 'release/25.04'.

Allow recovering project files with invalid sequence in bin

M  +6    -6    src/bin/projectitemmodel.cpp
M  +2    -2    src/bin/projectitemmodel.h
M  +11   -5    src/timeline2/model/builders/meltBuilder.cpp

https://invent.kde.org/multimedia/kdenlive/-/commit/f94d4ea3c8c17c32b8ad6be5f39c9caf842d3e08
Comment 7 Jean-Baptiste Mardelle 2025-04-25 13:41:45 UTC
Git commit f3c2030d4e302e6b76f8a2b89d1390c6cba78e6a by Jean-Baptiste Mardelle.
Committed on 25/04/2025 at 13:41.
Pushed by mardelle into branch 'release/25.04'.

Fix project corruption pasting sequences into another project

M  +3    -0    src/bin/bin.cpp
M  +1    -1    src/bin/projectclip.cpp
M  +6    -1    src/bin/projectitemmodel.cpp
M  +8    -2    src/mltcontroller/clipcontroller.cpp
M  +1    -1    src/mltcontroller/clipcontroller.h
M  +62   -0    src/project/projectmanager.cpp
M  +1    -0    src/project/projectmanager.h
M  +2    -1    src/timeline2/model/builders/meltBuilder.cpp
M  +141  -27   src/timeline2/model/timelinefunctions.cpp

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