Bug 433704 - Saving while Kdenlive is still opening a project leads to "scene list is corrupted"
Summary: Saving while Kdenlive is still opening a project leads to "scene list is corr...
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: User Interface & Miscellaneous (other bugs)
Version First Reported In: 24.12.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords: needs_verification, triaged
Depends on:
Blocks:
 
Reported: 2021-02-27 14:19 UTC by Larsen
Modified: 2025-05-21 14:17 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:
fritzibaby: Brainstorm+


Attachments
Project to reproduce the problem (47.43 KB, application/xml)
2024-12-25 18:44 UTC, Larsen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Larsen 2021-02-27 14:19:08 UTC
STEPS TO REPRODUCE
1. Open a rather large project
2. Press Ctrl+S to save the project while Kdenlive is still in the process of loading (counting references of a clip as it seems)

OBSERVED RESULT
Error message "Cannot write to file c:/test.kdenlive, scene list is corrupted."

EXPECTED RESULT
Kdenlive should show a warning, wait for the project to finish loading, or simply ignore the save command.

SOFTWARE/OS VERSIONS
Windows: 10

ADDITIONAL INFORMATION
The project where I noticed this has a runtime of only 5 minutes, and only a small number of clips, but e.g. one of those is used in ~80 places. CPU is a i3-2125 so rather old (but not having any general performance problems with Kdenlive).
Comment 1 Jean-Baptiste Mardelle 2021-02-27 15:30:56 UTC
thanks for your report. indeed, save should be disabled while loading.. will work on it
Comment 2 Bernd 2024-12-24 00:53:51 UTC
Hi and thank you for your patience.

Can you please check whether this issue still exists in the latest version 24.12.0?

If yes, please update this report to reflect the new version and set the status to CONFIRMED.

If it works now like you expect it would, you may change the status of this report to RESOLVED - FIXED.

At any rate, this report will be closed if there is no activity for the next 30 days.
Comment 3 Larsen 2024-12-24 19:59:20 UTC
Problem still exists, but now crashes Kdenlive.

Is there an easier way to provide a crash report than described in https://kdenlive.org/en/bug-reports/ ?
If not, please try to reproduce yourself. I just added five random clips to a project and then inserted one region of one clip into the timeline multiple times.
Comment 4 emohr 2024-12-25 16:15:02 UTC
On Windows it’s difficult to create a crash report (back-trace) as you have to build Kdenlive by craft first.

I tried to reproduce the issue according your steps in the initial post with a large project I have. No success as Kdenlive doesn’t interrupt the loading process while hitting “Ctrl+S”.

I tried to reproduce the crash according your steps in the 3th post inserting the same clip-zone several times into the timeline. No success.

What type of clip do you use?
Does the clip type match the project settings?
Can you upload here your project file so I can have a look?
Comment 5 Larsen 2024-12-25 18:44:08 UTC
Created attachment 176876 [details]
Project to reproduce the problem
Comment 6 Larsen 2024-12-25 18:45:11 UTC
I have attached a test project (removed the unused clips). The used clip has been downloaded using 4K Video Downloader from https://www.youtube.com/watch?v=lylCYkgC63Q
Comment 7 Jean-Baptiste Mardelle 2025-05-20 07:13:52 UTC
Save seems to be correctly disabled now when opening a project, and I cannot reproduce the issue.
Could you test with the latest 25.04.1 version?
Comment 8 Larsen 2025-05-21 14:17:00 UTC
I wasn't able to reproduce the problem with 25.04.1 anymore, so this seems to have been fixed.