Memory leak when CreateObject() objects returned to JavaScript (NEW)

Issue #2193 wontfix
Stefan Bozov created an issue
  1. Steps to reproduce

    1.1 Run cef client example

    1.2. Open DevTools and run the following script:

    for(var i = 0; i < 10000000; i++) { (function () { var test = PerfTestReturnValue(8); })() }

    1.3. Close DevTools

    1.4. Check render sub-process's memory consumption

  2. It is expected that the memory will be freed regularly. The observation is that the memory increases constantly

  3. cef_binary_3.3071.1634.g9cc59c8_windows32_client. Windows 10 (x64)

I can see that there is a resolved issue related to this problem: https://bitbucket.org/chromiumembedded/cef/issues/1278/memory-leak-when-createobject-objects

but it seems that the issue exists again.

Comments (8)

  1. Marshall Greenblatt

    JavaScript uses a garbage collector so it is not expected that memory will be freed immediately. How many times did you repeat step 1.2? What was the process memory usage over time as you repeated step 1.2? The expected result is that memory usage will eventually level out.

  2. Marshall Greenblatt

    Thanks for the video. You're executing a tight loop, not giving the GC a chance to execute, so the memory increase that you see is the expected result. Is there any CEF version where you get a different result?

  3. Log in to comment