Cef Rendering Issue - Browser window is blank with "process-per-site" flag

Issue #2365 duplicate
Aasma Garg created an issue

On configuring CEF with "process-per-site" flag, browser window is coming out to be blank. For more information, please see : http://magpcss.org/ceforum/viewtopic.php?f=6&t=15547&p=37156#p37156

Issue : After debugging, it was found that this is happening because of blocked renderer process while waiting for reply of get new browser info from browser process. The scenario where it ended blocking renderer process is caused by a race condition.. There is a browser info list that is accessed across two threads in CefBrowserInfoManager, the CreateBrowserInfo() is responsible for adding new entry into the list whereas the OnGetNewBrowserInfo() queries the list and in case the lookup succeeds, returns a reply back from browser process to the renderer process which was waiting on it. Under usual circumstances, the renderer's request is processed in the browser only after the list entry has been added, however since the operations happen across two diferent threads, in some circumstance, the lookup preceds the entry into list as such a reply is never sent back subsequent to which renderer blocks indefinitely.

Comments (4)

  1. Abhijit Apte

    @magreenblatt pending_new_browser_info_list_ is already being used in CefBrowserInfoManager::CreatePopupBrowserInfo() however, not sure why it was not used in CefBrowserInfoManager::CreateBrowserInfo() so far. Is there any specific reason for this?

  2. Log in to comment