Bug 483713 - KDENLIVE application is Suspended by MS Windows when opening a project with lots of sequences
Summary: KDENLIVE application is Suspended by MS Windows when opening a project with l...
Status: CONFIRMED
Alias: None
Product: kdenlive
Classification: Applications
Component: Project Bin & Import (show other bugs)
Version: 24.02.0
Platform: Microsoft Windows Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords: qt6, triaged
Depends on:
Blocks:
 
Reported: 2024-03-16 00:28 UTC by SMERKIN 5000
Modified: 2024-10-27 09:13 UTC (History)
1 user (show)

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


Attachments
Project with 112 open sequences (2.71 MB, application/xml)
2024-03-16 22:19 UTC, SMERKIN 5000
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SMERKIN 5000 2024-03-16 00:28:49 UTC
KDENLIVE application is Suspended by MS Windows when opening a project with lots of sequences

SUMMARY
When opening a project with lots of open sequences, KDENLIVE application is Suspended by MS Windows during the process of opening each sequence. 


STEPS TO REPRODUCE
1. Create a project with 100 sequences that are all open
2. Save the project and close it 
3. Open Windows Task Manager to the processes tab
3. Open the project and KDENLIVE will start to open each of the sequences
4. Eventually KDENLIVE will stall and Task Manager will show KDENLIVE as being suspended
5. The only thing you can do now is kill the process 

OBSERVED RESULT
* I opened my project file in a text editor and found the property "kdenlive:docproperties.opensequences". 
* I had 112 entries here and it would repeatedly stall on the 96th entry
* If I cleared the contents of the opensequences property and saved the file I was successfully able to open it in KDENLIVE as it's not loading each sequence on startup.
* As a test I removed (using the text editor) the first 63 sequences which left me with the last 49. KDENLIVE successfully opened the project, concluding that it was not stalling on a corrupted sequence.
* During project opening, the computer was only using 25% CPU and 14GB ram (50 free)

EXPECTED RESULT
* Perhaps KDENLIVE needs some mechanism from preventing it from becoming suspended by Windows during this phase of opening sequences.
* A user who does not know they can edit their file in a text editor and remove the values in the opensequences property essentially ends up with a bricked project file.


SOFTWARE/OS VERSIONS
Windows: 10 19045.4170
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2 (built against 6.6.2)

ADDITIONAL INFORMATION
* I admit that having 112 sequences open is excessive and I now close a sequence if I am finished editing it
Comment 1 emohr 2024-03-16 17:15:33 UTC
Thank you for reporting. If it’s possible for you, please upload here your project file with 112 sequences so we can make some test.
Comment 2 SMERKIN 5000 2024-03-16 22:19:59 UTC
Created attachment 167346 [details]
Project with 112 open sequences
Comment 3 SMERKIN 5000 2024-03-16 22:21:50 UTC
No worries, I hope it reproduces on your end.
Comment 4 emohr 2024-03-17 11:08:57 UTC
 Thank you for the project-file. I can confirm the issue. Loading the project, I get in 2 cases a crash and in 2 cases a freeze on about 41% of building the sequences (around sequence #40).