With every associated render helper.app there is a chance that it starts consuming massive ammounts of memory. Often after a few GB the process crashes and I see something like
- Code: Select all
[0507/173057.677689:ERROR:channel.cc(507)] Invalid message size: 302285456
in the Xcode console. There are other times where the memory just keeps going up.
I dag into the chromium source and found where the massage is coming from "mojo/edk/system/channel.cc". If I understand correctly it's about the communication between the browser and render process.
The addon uses offscreen rendering, CefDoMessageLoopWork(), the most interesting source is probably this.
Also this is cross platform and I don't see this behavior on windows with the cef windows version but the same addon source files.
If anyone wants to try it out, I decribed it here. You can use "example_multi" from this branch.
This example lets you create and delete instances. In that example the first instance has always that memory behavior. There will be more after you create and delete some instances.
The funny thing is if you only change this example a little bit the first instance won't have this behavior anymore. And I'm talking about changes that seemingly have nothing to do with cef. For example when you add
- Code: Select all
ofToDataPath("html/index.html", true);
I really have no idea what's going on, I've tested this on a MacBook Pro Mid 2015 and iMac Mid 2009 both with macOS Sierra (10.12.5). Of course I've also tested different cef versions, basically every for two months and currently the "3.3071.1644.g408afd1".
Does anyone have a clue what's going on?
Thanks.