Bug 482386 - Project saving destroys entire projects / mass-deletes effects
Summary: Project saving destroys entire projects / mass-deletes effects
Status: REPORTED
Alias: None
Product: kdenlive
Classification: Applications
Component: Project Bin & Import (other bugs)
Version First Reported In: 23.08.5
Platform: Other Linux
: NOR grave
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-04 14:29 UTC by anon
Modified: 2024-10-02 08:34 UTC (History)
2 users (show)

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


Attachments
comprehensive problem overview (395.88 KB, image/png)
2024-03-04 14:29 UTC, anon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description anon 2024-03-04 14:29:06 UTC
Created attachment 166398 [details]
comprehensive problem overview

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
Project saving destroys entire projects / mass-deletes effects 

see https://www.reddit.com/r/kdenlive/comments/1b69tls/comment/ktamks9/?context=3

STEPS TO REPRODUCE
1. Open a day-old project (5.4MiB)
2. Kdenlive by default detects changes on [manually] completely unchanged projects; do not do anything to the project
3. The project looks how it should; all proxies, effects and timeline parts are there.
4. save / save as / copy to

OBSERVED RESULT
The project goes from 5.4MiB to 8.3MiB, 11.4MiB when attempting to open and save the 8.3 version.
When creating copies of copies, every single time the project is saved it seems to add 2-3MiB, although never have been made any changes to the original / copy of the original (unchanged) project.

Now for the huge issue:
- 10-20% of all edits are wiped on-save/saveas/copyto. For me this includes mostly fades and transforms.
- The project is entirely overriden. I have been using Git VCS for the entirety of the project and I could observe a sudden 90.000+ modifications on my UNCHANGED Project!!!
- Some of the modifications seem to include changing entire proxy paths from "MyResource" to "MySystem/UserHome/CustomFolders/MyResource".
- The 2-3h long, fully edited project is unsaveable and therefore unusable. This happened at the very end of my project creation lifecycle and even my already reviewed git-ted up project state cannot be saved without jumping back to 8.4MiB.

This has existed for the entirety of my time using Kdenlive, i.e. minimum 1 year.

EXPECTED RESULT
- Project is saved
- Project after being saved has identical size
- No changes exist between the two project versions

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE neon 5.27 x86_64 
(available in About System)
KDE Plasma Version: Plasma 5.27.10 

ADDITIONAL INFORMATION
Attempted resolutions:
- "Save As", "Save", "Copy To" for basically all the steps below
- resetting project states to different states, up to months ago and retrying the entire process
- resetting Kdenlive config and retrying everything
- rebooting and retrying everything
- killing Kdenlive entirely and retrying everything
- upgrading from 08.4 to 08.5 and retrying everything
- restoring old Kdenlive configs and retrying everything
- clearing the entirety of the cache multiple times between multiple named steps and retrying everything
- re-proxying everything between multiple named steps and retrying everything
Comment 1 anon 2024-07-16 16:12:30 UTC
Hello, this still exists and keeps me questioning every day whether kden is even worth all the trouble im going through.
I've been effortlessly working on a new project, maintaining git backups.
All of the sudden, it happens again. Reached around 3.7MiB project size and was basically done, opened the project, now I must save tens of thousands of invisible project changes which will end up removing 90% of placed effects, effectively entirely ruining the project.

Beside saving the project to different git repo commits (which was useless as it overrides everything anyway), I entirely cleared the kdenlive cache and tried editing the project file (adding in the correct lines) to no use.

So basically, I can open the proper version of the project and it shows ALL effects I personally placed, but the second I try to save in any way using kdenlive, the project is gone.

So now I gotta keep running the unsaveable git version and the "current" version side by side and manually re-placing everything. 

Please fix, this makes the app completely unusable :(
it seems to be related to project size as i didnt have this for one rather short project. all of my other projects had this shit happen and it always occurs around 4MiB size.
Comment 2 anon 2024-07-16 16:14:53 UTC
I also did a memory scan and tried hard resetting to a previous git version, then re-saving the project in kdenlive under different system conditions although everything outside of kdenlive is running fine.
Comment 3 anon 2024-07-16 16:28:19 UTC
[REDACTED]$ gitcommitoverview 
 1 file changed, 23144 insertions(+), 18851 deletions(-)
[REDACTED]$ gitcommitoverview 
 1 file changed, 23226 insertions(+), 18939 deletions(-)
[REDACTED]$ gitcommitoverview 
 1 file changed, 23086 insertions(+), 18804 deletions(-)
[REDACTED]$ gitcommitoverview 
 1 file changed, 22858 insertions(+), 18581 deletions(-)

this is the result when "accepting defeat" and just trying to use the new i.e. saved kdenlive project file. I open it, there are new invisible changes, I save it, I look at a git diff. notice how I haven't ever touched the project, not a single thing changed but the git diff (and file explorer) show different file sizes literally every time.
Comment 4 anon 2024-07-16 16:31:18 UTC
Maybe another note:
When "accepting defeat", notice how when my effects are erased, the git diff doesnt show an overhwleming number of deletions but additions instead. I have no idea what the hell kdenlive is doing under the hood there