No context after upgrading to 2454

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

No context after upgrading to 2454

Postby Tsury » Thu Aug 20, 2015 11:13 am

Using Windows.
Upgraded from 2172 to 2454.
Using process-per-site.
(Also using CefGlue)

After upgrading, only the first browser that I open for each site will have a context (OnContextCreated). The rest will not trigger it, and are seem to not be initialized properly. To put it in other words, it looks like OnContextCreated is called only for the first browser created for some site.

When trying to open the dev tools for subsequent browsers with no context, the dev tools window is blank and doesn't respond to input. Also I've spotted this in the log:

[0820/190321:ERROR:CONSOLE(1508)] "Uncaught ReferenceError: DevToolsHost is not defined", source: chrome-devtools://devtools/devtools.js (1508)
[0820/190321:ERROR:CONSOLE(6319)] "Uncaught TypeError: Cannot read property 'frame' of undefined", source: chrome-devtools://devtools/inspector.js (6319)

Removing the process-per-site flag resolves the issue, as every browser has its own process, but is not what I want because I require to minimize browser processes and memory usage.

I'm not a very big expert in CEF so forgive me if my description is not good enough, I'm not sure what is happening. I will be more than happy to provide any information possible.
Tsury
Mentor
 
Posts: 63
Joined: Mon Jan 19, 2015 4:31 am

Re: No context after upgrading to 2454

Postby magreenblatt » Thu Aug 20, 2015 11:32 am

Tsury wrote:Using process-per-site.

This is generally not a supported/tested mode. You can file a bug in CEF but it likely won't be fixed in the near future.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: No context after upgrading to 2454

Postby Tsury » Thu Aug 20, 2015 11:39 am

Ok, Thanks, I'll stick to the default mode.
Any tips on reducing memory consumption other than using process-per-site?
Tsury
Mentor
 
Posts: 63
Joined: Mon Jan 19, 2015 4:31 am

Re: No context after upgrading to 2454

Postby magreenblatt » Thu Aug 20, 2015 11:50 am

Tsury wrote:Any tips on reducing memory consumption other than using process-per-site?

What memory problems are you experiencing? Is something crashing due to memory exhaustion? Chromium should generally reduce its memory usage if the system experiences memory pressure.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: No context after upgrading to 2454

Postby Tsury » Sun Aug 23, 2015 3:20 am

Ok, I rechecked the issue and realized what the real issue is:

In process-per-site, dev tools has a frame for only the first dev tools.
Suppose I have 2 browsers, opening the dev tools for any of them will work just fine, but opening the dev tools for the second one will result in a dev tools window with no frame (no info is displayed, doesn't respond to user input).

And of course these errors:

[0820/190321:ERROR:CONSOLE(1508)] "Uncaught ReferenceError: DevToolsHost is not defined", source: chrome-devtools://devtools/devtools.js (1508)
[0820/190321:ERROR:CONSOLE(6319)] "Uncaught TypeError: Cannot read property 'frame' of undefined", source: chrome-devtools://devtools/inspector.js (6319)

Any idea how to fix/override this issue? Thanks!
Tsury
Mentor
 
Posts: 63
Joined: Mon Jan 19, 2015 4:31 am

Re: No context after upgrading to 2454

Postby Tsury » Sun Mar 13, 2016 4:05 am

Anyone bumped into this? Also happening on newer versions of CEF, could really use any kind of help resolving this.

[0313/110234:ERROR:CONSOLE(6410)] "Uncaught TypeError: Cannot read property 'frame' of undefined", source: chrome-devtools://devtools/inspector.js (6410)
Tsury
Mentor
 
Posts: 63
Joined: Mon Jan 19, 2015 4:31 am


Return to Support Forum

Who is online

Users browsing this forum: Biohazard, Google [Bot], Majestic-12 [Bot] and 72 guests