← Back to team overview

linux-traipu team mailing list archive

[Bug 1469845] Re: Memory leaking when export video

 

This bug is old but it looks like I am having the same issue.

I am running Openshot 2,5,1-dev2 on ubuntu 18.04.4, with 6GB memory and
2GB swap. I used OpenShot to pull in a series of short video and audio
clips to make a 35-minute video. The process went fine until trying to
export the result. After working for about an hour, it would get to
about 75% complete and then freeze the system, with the disk light on
full time. If I waited long enough it would eventually come out of the
freeze, but OpenShot closed without finishing the export. I tried
several different output formats, but it didn't change the outcome.

Since I had access to a Macbook, I installed the Mac version of
OpenShot, and copied over the folder from the ubuntu system with all of
the files to the Mac. The Mac has 8GB of memory. The export ran fine on
the Mac and I got my video done. Success!

As an experiment I tried it again on another Ubuntu system with 16GB
memory and 20GB swap. It still crashed at the same point as before,
despite having acres of RAM. The system log report is as follows:

[ 5401.109711] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/,task=openshot-qt,pid=2469,uid=1000
[ 5401.109852] Out of memory: Killed process 2469 (openshot-qt) total-vm:40318340kB, anon-rss:15581236kB, file-rss:0kB, shmem-rss:488kB
[ 5402.989441] oom_reaper: reaped process 2469 (openshot-qt), now anon-rss:0kB, file-rss:0kB, shmem-rss:456kB

So it looks like the linux version has a memory leak that is not present
in the MacOS version. I like OpenShot and I'm hoping you guys can fix
it.

-- 
You received this bug notification because you are a member of UBUNTU -
AL - BR, which is subscribed to OpenShot Video Editor.
https://bugs.launchpad.net/bugs/1469845

Title:
  Memory leaking when export video

Status in OpenShot Video Editor:
  Confirmed

Bug description:
  I created a project with 56 tracks. Each track included one clip from 10 to 15 seconds and one 3 second transition (blinds sliding). Resolution of the clips were 2304 x 1296 (H.264 / AVC, 25 frames per second). When I started exporting video to AVI(h.264) HD720p 25 fps I faced with memory leaking. System monitor showed a constant growth of memory usage up to 100 percent. 
  I found a solution but I hope that my letter will help you to fix your program.

  Solution was the next. I had to split my project into three parts,
  export them separately and then merge them together. I also mentioned
  that there was no memory leaking when I merged video clips without
  changing resolutions. So that may be a good idea to work always with
  converted versions of the clips.

  Environment:
  64 bits, 
  ubuntu 14.04 LTS (OS is not installed, starts from flash disk without swap partition)
  Openshot 1.4.3
  PC with AMD FX(tm)-6300 Six-Core Processor × 6, 8GB RAM

To manage notifications about this bug go to:
https://bugs.launchpad.net/openshot/+bug/1469845/+subscriptions


References