Bug 384199 - kdenlive is really slow to open a large project
Summary: kdenlive is really slow to open a large project
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: User Interface (show other bugs)
Version: git-master
Platform: Debian unstable Linux
: NOR wishlist
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-30 20:26 UTC by mikko.rapeli
Modified: 2022-03-21 10:13 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 21.12.3


Attachments
backtrace 1 (14.49 KB, text/plain)
2017-08-30 22:09 UTC, mikko.rapeli
Details
backtrace 2 (16.02 KB, text/plain)
2017-08-30 22:10 UTC, mikko.rapeli
Details
backtrace 3 (15.23 KB, text/plain)
2017-08-30 22:10 UTC, mikko.rapeli
Details
backtrace 4 (15.23 KB, text/plain)
2017-08-30 22:10 UTC, mikko.rapeli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mikko.rapeli 2017-08-30 20:26:07 UTC
In my large project I have around 408 clips and photos. Open the project takes over 10 minutes on an i686 with 2 gigs of ram and a fast SSD.

I think this is a bit too much. Checking strace output during loading of the project, when btw the popup dialog is not updated at all, shows that for example all JPG files are opened and checked multiple times:

strace -ttt -e open -p 5786
1504124281.861213 open("/home/mcfrisk/Videos/20170205_bayerische_wald_nesselwang
_ski_tour/nesselwang/DSC08454_taksi_ok.JPG", O_RDONLY|O_LARGEFILE) = 21
1504124282.802752 open("/home/mcfrisk/Videos/20170205_bayerische_wald_nesselwang
_ski_tour/nesselwang/DSC08454_taksi_ok.JPG", O_RDONLY|O_LARGEFILE) = 21
1504124283.295829 open("/home/mcfrisk/Videos/20170205_bayerische_wald_nesselwang
_ski_tour/nesselwang/DSC08454_taksi_ok.JPG", O_RDONLY) = 21
1504124283.309766 open("/home/mcfrisk/Videos/20170205_bayerische_wald_nesselwang
_ski_tour/nesselwang/DSC08455_j.JPG", O_RDONLY|O_LARGEFILE) = 21
1504124284.242783 open("/home/mcfrisk/Videos/20170205_bayerische_wald_nesselwang_ski_tour/nesselwang/DSC08455_j.JPG", O_RDONLY|O_LARGEFILE) = 21
1504124284.731773 open("/home/mcfrisk/Videos/20170205_bayerische_wald_nesselwang_ski_tour/nesselwang/DSC08455_j.JPG", O_RDONLY) = 21

Surely it would be enough to open and check the file only once.

For videos for which I'm using tiny proxy files, opening seems to be faster.

Also, the project loading is not utilizing multiple CPU's and GUI is not updated. Would be nice to have multiple processes or threads handling the file checks, and to have some kind of updated progress meter when doing work for several minutes.
Comment 1 mikko.rapeli 2017-08-30 22:09:50 UTC
Created attachment 107600 [details]
backtrace 1
Comment 2 mikko.rapeli 2017-08-30 22:10:09 UTC
Created attachment 107601 [details]
backtrace 2
Comment 3 mikko.rapeli 2017-08-30 22:10:28 UTC
Created attachment 107602 [details]
backtrace 3
Comment 4 mikko.rapeli 2017-08-30 22:10:48 UTC
Created attachment 107603 [details]
backtrace 4
Comment 5 mikko.rapeli 2017-08-30 22:12:38 UTC
I set breakpoints to open() with gdb when kdenlive is opening my large project. Attached traces show that a single JPG file is opened four times with different backtraces.
Comment 6 Julius Künzel 2021-04-23 21:26:29 UTC
Thanks for your report! Can you please update to the latest version (https://kdenlive.org/en/download/) or rebuild from master and check if this is still relevant?
Comment 7 Bug Janitor Service 2021-05-08 04:33:31 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 8 Bug Janitor Service 2021-05-23 04:33:46 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now 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

Thank you for helping us make KDE software even better for everyone!
Comment 9 farid 2021-07-15 16:44:18 UTC
Can you try to reproduce this issue with latest master version please?
Comment 10 Julius Künzel 2022-03-21 10:13:48 UTC
This is likely fixed in 21.12.3 and since there was no feedback recently I am going to close. Feel free to reopen if still relevant.