remotion icon indicating copy to clipboard operation
remotion copied to clipboard

Memory usage grows indefinitely when rendering large video segments loaded from OPFS

Open HaiShin opened this issue 1 year ago • 1 comments

We're running into a severe out-of-memory (OOM) error when using Remotion. The issue occurs after segmenting a video stored in the OPFS (Origin Private File System) on the Remotion timeline and then refreshing the page.

It appears that Remotion attempts to load data from the localStorage itrack after reload, which I suspect leads to duplicate video copies being loaded into memory, ultimately exhausting the browser's resources.

HaiShin avatar Sep 27 '25 15:09 HaiShin

Thanks for reporting this!

I'm unsure what the issue relates to - we do not store any media in localStorage, we do store thumbnails for the timeline in the Remotion Studio in IndexedDB though.

Are you referring to this? Have you had any concrete findings where IndexedDB becomes full? Does showInTimeline={false} for the videos solve the issue?

JonnyBurger avatar Oct 02 '25 15:10 JonnyBurger