zhangqd / chromiumembedded

Automatically exported from code.google.com/p/chromiumembedded
0 stars 1 forks source link

Mac: CefDoMessageLoopWork seems to leak #1240

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

I am doing some tests to see if we can integrate CEF into our application.
We have our main loop so I wanted to hook CefDoMessageLoopWork into it, but it 
seems that memory keeps growing exponentially if I do that.

To repro, simply use the CefSimple example and change (in cefsimple_mac.mm)

        // Run the CEF message loop. This will block until CefQuitMessageLoop() is
        // called.
    //CefRunMessageLoop();
    //for this:
        while(1)
    {
        CefDoMessageLoopWork();
        sleep(0.5f);
    }

This is to exemplify what our application would do, call CefDoMessageLoopWork() 
from time to time and you will see the memory will climb very fast over 1 gig 
of ram for the google page...

I have tried on : 3.1846.1637 and on 3.1750.1638

What is the expected output? What do you see instead?
Memory should be stable once the page is loaded

What version of the product are you using? On what operating system?
3.1846.1637 and on 3.1750.1638 I am on Mac OS 64 10.9.2

Please provide any additional information below.

Original issue reported on code.google.com by l.vo...@gmail.com on 1 Apr 2014 at 9:55

Attachments:

GoogleCodeExporter commented 9 years ago
as discussed on the board, adding an autopool release or drain doesn't fix this 
problem.

Original comment by l.vo...@gmail.com on 4 Apr 2014 at 1:15

GoogleCodeExporter commented 9 years ago
Issue 1444 has been merged into this issue.

Original comment by magreenb...@gmail.com on 20 Nov 2014 at 5:24

GoogleCodeExporter commented 9 years ago

Original comment by magreenb...@gmail.com on 20 Nov 2014 at 5:26

GoogleCodeExporter commented 9 years ago
CEF is transitioning from Google Code to Bitbucket project hosting. If you 
would like to continue receiving notifications on this issue please add 
yourself as a Watcher at the new location: 
https://bitbucket.org/chromiumembedded/cef/issue/1240

Original comment by magreenb...@gmail.com on 14 Mar 2015 at 3:31