Bug 425806 - Killed for "out of memory" when working on large project
Summary: Killed for "out of memory" when working on large project
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: Rendering & Export (show other bugs)
Version: 20.08.0
Platform: Manjaro Linux
: NOR major
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-25 20:32 UTC by Raindrops
Modified: 2021-02-25 17:23 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:
fritzibaby: timeline_corruption+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raindrops 2020-08-25 20:32:47 UTC
SUMMARY
When working on a large project with a lot of files, Kdenlive will get killed by the Linux kernel for "out of memory", consuming a total of 6 GB of RAM out of 8.
It seems to be trying to open all the files and put them in RAM, causing it to consume lots of memory when working on multiple big files (for example I was working with 200+ 4K images and hours of 720p video).

STEPS TO REPRODUCE
1. Install Kdenlive
2. Open or create a big project with a lot of files
3. Wait for Linux to kill it

OBSERVED RESULT
The whole system freeze and Kdenlive get killed because of using 6 GB of RAM.

EXPECTED RESULT
Kdenlive will consume 1 or 2 GB of RAM and edit smoothly.

SOFTWARE/OS VERSIONS
Linux: 5.4.60-2
KDE Plasma Version: 5.19.80
Kdenlive Version: 20.08.0
KDE Frameworks Version: 5.74.0
Qt Version: 5.15.0

ADDITIONAL INFORMATION
Output of 'dmesg':
[11183.714476] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice/user-1000.slice/user@1000.service,task=kdenlive,pid=65963,uid=1000
[11183.714660] Out of memory: Killed process 65963 (kdenlive) total-vm:6817836kB, anon-rss:3856256kB, file-rss:0kB, shmem-rss:5924kB, UID:1000 pgtables:9520kB oom_score_adj:0
[11184.049000] oom_reaper: reaped process 65963 (kdenlive), now anon-rss:0kB, file-rss:0kB, shmem-rss:5936kB
Comment 1 emohr 2020-08-30 15:12:13 UTC
Some optimization are done about RAM consumption. 

Try Kdenlive_Nightly_Appimage
https://binary-factory.kde.org/job/Kdenlive_Nightly_Appimage_Build/lastSuccessfulBuild/artifact/
Comment 2 Julius Künzel 2021-02-25 17:12:41 UTC
As written above this is maybe fixed. Can you please update to the latest version (https://kdenlive.org/en/download/) and report here whether this is still happening?
Comment 3 Raindrops 2021-02-25 17:23:20 UTC
I confirm it has been fixed, Kdenlive now uses around 2 or 3 GB of RAM for the same project.