Giter Site home page Giter Site logo

Cog memory leak about cog HOT 6 CLOSED

igalia avatar igalia commented on August 23, 2024
Cog memory leak

from cog.

Comments (6)

aperezdc avatar aperezdc commented on August 23, 2024

There's definitely something fishy going on here. Given that you are experiencing this when new frames are constantly being rendered and displayed (i.e. the image carousel, the transforms) what comes to my mind is something related to the code that runs on ever frame update.

Which resolution does your screen have, and how fast your animations are? I see from you graph that memory usage increases by 100 MiB in ~4 hours (that is: ~25 MiB/hour, ~420 KiB/minute, or ~7 KiB/second), so it does not look like buffers with rendered frames are being leaked (because for example a 960x540 screen in true color would take a bit inder 2 MiB per rendered frame) — but I would like to confirm my suspicion.

from cog.

lilveg avatar lilveg commented on August 23, 2024

Hello Adrian,

The screen is 1280x1024. The canvas-based carousel runs at between 20 and 30 FPS, depending on how many images are on the screen.

from cog.

lilveg avatar lilveg commented on August 23, 2024

I ran a test over the weekend, on the site that uses CSS transformations. Curiously, Cog consumes memory in a steep curve until it reaches 300 MB, then flattens out. This flattening corresponds with the system running very low on available memory, yet the fact that the memory consumption becomes so flat leads me to wonder if some kind of memory limit has been reached in Cog.

cog

Near the end of the graph, WPEWebProcss seems to crash, and the screen was blank this morning. I assume this happened to due lack of memory.

from cog.

aperezdc avatar aperezdc commented on August 23, 2024

A small leak was fixed in the FDO backend recently (see Igalia/WPEBackend-fdo#31), I wonder if it might be related 🤔

@lilveg Is there any chance you could re-run your test with the patch applied? Note that the fix is also available in the wpebackend-fdo-1.0 branch, which I think is the version you were (are?) probably using.

from cog.

aperezdc avatar aperezdc commented on August 23, 2024

I am going to close this issue for now, as it looks like the issue is gone—or at least nobody has been able to reproduce it anymore. If @lilveg or someone else can still hit the problem with current versions, we can always reopen this issue later 😺

from cog.

vnd avatar vnd commented on August 23, 2024

There's a memory leak during video playback with recent cog/wpewebkit on i.MX6DL platform:
WebPlatformForEmbedded/WPEWebKit#1191

(not sure which project is better suited for opening that issue, so just referencing it here)

from cog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.