Bug 469944

Summary: File--Save As crashes without saving after a source image is changed
Product: [Applications] kdenlive Reporter: Jim Henderson <jimh>
Component: Timeline & EditingAssignee: Jean-Baptiste Mardelle <jb>
Status: REPORTED ---    
Severity: crash CC: fritzibaby, jimh
Priority: NOR Keywords: triaged, usability
Version: 23.04.1   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
See Also: https://bugs.kde.org/show_bug.cgi?id=467114
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot of dialog for approval to import the new image
crash report sent to Apple. See highlighted "CRASH GUARD"
The tag that mentioned the image that I had changed, "Slide15"

Description Jim Henderson 2023-05-18 12:14:36 UTC
Created attachment 159071 [details]
Screenshot of dialog for approval to import the new image

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
***
That site says this doesn't work for Macs

STEPS TO REPRODUCE
1. Add videos and still images, saving the project XML file after each one, successfuly.
2. Notice that one of the images is inadequate.
3. Save the project and close kdenlive.
4. Replace the image with a better one, in the same folder and with the same filename.
5. Start kdenlive and load the .kdenlive file. Approve importing again the new version of the image. (see screenshot)
6. Do some more editing.
7. Do File->Save As with a new name.

OBSERVED RESULT
Program crashes with error report to Apple. (see uploaded file) Project is not saved.

EXPECTED RESULT
I expected the program to save the project in the .kdenlive file and let me continue working.

SOFTWARE/OS VERSIONS
Windows: 
macOS:  Ventura 13.3.1 (a) (Intel)
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
The crash information highlights STACK GUARD, so it seems something was trying to access memory that it shouldn't.
I edited the latest-saved .kdenlive file and deleted the tag that gave the details of the image that I had changed. I'll upload what I deleted.
I then reloaded that project file and I can now save the project again.

I reported similar behaviour at https://bugs.kde.org/show_bug.cgi?id=467114
Comment 1 Jim Henderson 2023-05-18 12:16:08 UTC
Created attachment 159073 [details]
crash report sent to Apple. See highlighted "CRASH GUARD"
Comment 2 Jim Henderson 2023-05-18 12:18:03 UTC
Created attachment 159075 [details]
The tag that mentioned the image that I had changed, "Slide15"

After I removed that section of the newest .kdenlive file, I was able to load the project and save it with a new name.