Bug 468999 - Loading saved projects gives "Could not recover corrupted file" error
Summary: Loading saved projects gives "Could not recover corrupted file" error
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: User Interface (show other bugs)
Version: 23.04.0
Platform: Ubuntu Linux
: NOR critical
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-26 11:33 UTC by Darwin McGrath
Modified: 2023-05-17 16:35 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Corrupted File (114.00 KB, application/x-kdenlive)
2023-04-28 12:32 UTC, Darwin McGrath
Details
Screenshot of Crash (211.21 KB, image/png)
2023-05-02 00:43 UTC, Robert
Details
Missing File Issue after reloading upgraded project file (33.35 KB, image/png)
2023-05-17 16:31 UTC, Darwin McGrath
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Darwin McGrath 2023-04-26 11:33:06 UTC
SUMMARY
***
Loading saved projects results in "Could not recover corrupted file" error
***


STEPS TO REPRODUCE
1. Create and save a project
2. Close kdenlive
3.  Try to open project to continue work

OBSERVED RESULT
Project starts to open, loading clips in the project window then...
Error - kdenlive
Could not recover corrupted file

Continuing opens kdenlive with a blank project

EXPECTED RESULT
kdenlive should not corrupt the file
and/or
Project should open
or at the very least
Project should give more details on where the corruption occurs in the file as it is not at the beginning of the loading process

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma:  Ubuntu 22.04.2 LTS
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Project folder is Parent of Project file
Comment 1 emohr 2023-04-27 16:20:35 UTC
Thank you for reporting. Seems to be similar to Bug 469040
Comment 2 Darwin McGrath 2023-04-27 16:35:54 UTC
(In reply to emohr from comment #1)
> Thank you for reporting. Seems to be similar to Bug 469040
Thanks
Looks exactly the same.
Funny, I didn't come across other bug reports. I guess I don't know how to filter properly.
Mine has a little bit more detail if that helps.

Same frustration level...I lost a project and have had to revert to another open source editing software that shall go unnamed for the time being as rolling back caused other problems.
Comment 3 emohr 2023-04-27 18:17:55 UTC
Never change the video editor version during a project (even not on other video editors). 

Version 23.04.0 has a new project file version which is not backwards compatible. 

I just realized we don’t have mentioned that.
Comment 4 Darwin McGrath 2023-04-27 18:44:58 UTC
(In reply to emohr from comment #3)
> Never change the video editor version during a project (even not on other
> video editors). 
> 
> Version 23.04.0 has a new project file version which is not backwards
> compatible. 
> 
> I just realized we don’t have mentioned that.

Excellent advice.
I think it came through the Ubuntu update. I'm going to make sure I don't confirm the update without checking the content from now on.

Actually, as the version went from 22 to 23 I had a thought there might be file compatibility issues. But that wasn't the main problem. When I used the flatpak to downgrade I couldn't save without crashing. I could open the corrupted file in the older version even though it said corrupted in 23.04.0 but the timeline was empty so it wasn't helpful.

Hopefully 23.04.1 fixes this. It's a really risky thing to try though. Corrupted save files means you can't trust making a project on the software.
Comment 5 emohr 2023-04-27 19:10:01 UTC
This is the reason why we provide all Kdenlive versions ever published in the attic (https://docs.kdenlive.org/en/getting_started/installation.html). And you have always an AppImage or a Windows standalone version which you can save together with the project.
Comment 6 Darwin McGrath 2023-04-27 20:16:18 UTC
(In reply to emohr from comment #5)
> This is the reason why we provide all Kdenlive versions ever published in
> the attic (https://docs.kdenlive.org/en/getting_started/installation.html).
> And you have always an AppImage or a Windows standalone version which you
> can save together with the project.

Apologies,
I meant the 22.04.03 appimage, not flatpak, from the attic crashed when saving projects.
The idea of saving the appimage is good though, if it worked for me.
I tried flatpak installs instead of deb, and downgrading using synaptic package manager (to 21.?.?). All had issues of some sort or another.
Essentially, I can't install an older version that works.
I'm more interested in switching back to 23.04.? when it's working in any case.
Comment 7 Jean-Baptiste Mardelle 2023-04-28 09:17:59 UTC
Sorry for this poor experience . Could you please attach a .kdenlive project file that doesn't open correctly to this bug report ? Thanks
Comment 8 Darwin McGrath 2023-04-28 12:32:41 UTC
Created attachment 158514 [details]
Corrupted File

Here is a link to a screencast video showing the creation of this corrupted file

https://youtu.be/Qfjp2bolxgM
Comment 9 Darwin McGrath 2023-04-28 12:36:46 UTC
(In reply to Jean-Baptiste Mardelle from comment #7)
> Sorry for this poor experience . Could you please attach a .kdenlive project
> file that doesn't open correctly to this bug report ? Thanks

Hi
I've attached the file and have also linked a video showing its creation.
Additionlly, in the video you can see the problem described in Bug 468998 where kdenlive moves the goPro LRV files to the proxy save location.

Corrupting the file required closing and opening it twice, however there was a proxy error on the first save.
Comment 10 Robert 2023-05-02 00:43:34 UTC
Created attachment 158610 [details]
Screenshot of Crash

This attachment shows what KDENLive looks like when it crashes. Project Bin is populated and Loading Clips reaches 46% before the "Could not recover corrupted file" error pops up.
Comment 11 Robert 2023-05-02 00:44:09 UTC
I'm encountering this same issue, I'm running Archlinux which is fully up to date. I am unable to open files created on the previous version of KDENLive. When opening a project file, it looks like it successfully loads all of the clips into the Project Bin, it then asks if I want to rebuild proxies (I tried deleting the cache for the project). When I click okay, it process for a moment before dying at 46% on the "Loading Clips" dialogue box. While the Project Bin is populated, the Project Timeline is completely empty.
Comment 12 Bug Janitor Service 2023-05-17 03:46:03 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 13 Jean-Baptiste Mardelle 2023-05-17 06:57:10 UTC
Unfortunately an undetected regression caused major issues in Kdenlive 23.04.0, including the described errors. This should now be fixed with Kdenlive 23.04.1, you should now be able to open and recover your project files.
Comment 14 Robert 2023-05-17 15:02:04 UTC
Confirmed that the problem appears to be resolved. Upgraded to KDENLIVE 23.04.1 and opened a file created in 22.12.3 and it opened as it should. Thank you for addressing the problem!
Comment 15 Darwin McGrath 2023-05-17 16:31:44 UTC
Created attachment 159036 [details]
Missing File Issue after reloading upgraded project file
Comment 16 Darwin McGrath 2023-05-17 16:35:25 UTC
It seems to be fixed!
Created a new project and opened and closed several times without errors.
Opened an older project. Made a small change and saved. A backup was created due to the project format upgrade.

Odd behaviour: Opened up the resaved old project and had to search for one video file recursively (?). The file hadn't been moved. Was not the first file or the last. See attachment for image of error. There seems to be an incorrect path duplication.

Once file is recursively found project seems to work fine on reloads.