remotion-dev / template-three

⚛️ 🎥 3️⃣ A minimal boilerplate for Remotion + React Three Fiber
https://www.remotion.dev/templates/three
MIT License
71 stars 9 forks source link

Memory leak while rendering video #12

Open gulzar1996 opened 1 month ago

gulzar1996 commented 1 month ago

I've encountered memory leak while rendering threeJs template video for 10min

Step to reproduce

Rendering doesn't complete since it runs out of memory

error


Error: Could not take a screenshot because Google Chrome ran out of memory or disk space. Decrease the concurrency to use less RAM.
    at screenshotTask (/Users/gulzar/Documents/GitHub/template-three/node_modules/@remotion/renderer/dist/screenshot-task.js:91:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

attaching a memory reference screenshot

Image

JonnyBurger commented 4 weeks ago

It sucks, but there is a memory leak in Chrome when using angle :(

You have to use the slower non-angle OpenGL renderers to prevent the memory leak.

https://www.remotion.dev/docs/gl-options#using-the-gpu