CEF 87: white page when navigate to some url's

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.

CEF 87: white page when navigate to some url's

Postby ebahar » Mon Jan 25, 2021 2:45 am

when navigate to some urls' , for example http://www.walla.co.il
the page is render for few second and than the page become white.

can't find any error at logs files.

just run cefclient.exe
ebahar
Techie
 
Posts: 46
Joined: Tue Nov 22, 2016 3:52 am

Re: CEF 87: white page when navigate to some url's

Postby ndesktop » Mon Jan 25, 2021 8:50 am

With 4280:

Code: Select all
$ bin\x64\Debug\cefclient --url=http://www.walla.co.il/ --enable-logging --v=1                                                                                                 
$ [0125/154039.787:VERBOSE1:pref_proxy_config_tracker_impl.cc(186)] 0000027E41C58B90: set chrome proxy config service to 0000027E3ED4A000                                       
[0125/154039.868:VERBOSE1:webrtc_internals.cc(118)] Could not get the download directory.                                                                                       
[0125/154040.623:VERBOSE1:pref_proxy_config_tracker_impl.cc(186)] 0000027E42118400: set chrome proxy config service to 0000027E420510C0                                         
[0125/154046.196:INFO:CONSOLE(83)] "[Walla Taboola] placement: [Left Rail Thumbnails] mode: [thumbnails-g]", source: https://www.walla.co.il/public/walla.js?v=d6ca30f2736ce1319
2a2 (83)                                                                                                                                                                       
[0125/154046.197:INFO:CONSOLE(83)] "[Walla Taboola] placement: [Mid Main Column Thumbnails] mode: [alternating-thumbnails-h]", source: https://www.walla.co.il/public/walla.js?v
=d6ca30f2736ce13192a2 (83)                                                                                                                                                     
[0125/154046.197:INFO:CONSOLE(83)] "[Walla Taboola] placement: [Below Article Thumbnails Home] mode: [thumbnails-home]", source: https://www.walla.co.il/public/walla.js?v=d6ca3
0f2736ce13192a2 (83)                                                                                                                                                           
[0125/154046.253:INFO:CONSOLE(752)] "ReferenceError: Notification is not defined", source: https://www.walla.co.il/public/walla.js?v=d6ca30f2736ce13192a2 (752)                 
[0125/154046.253:INFO:CONSOLE(752)] "Uncaught ReferenceError: Notification is not defined", source: https://www.walla.co.il/public/walla.js?v=d6ca30f2736ce13192a2 (752)       
...
[0125/154053.584:INFO:CONSOLE(1)] "Permutive was not initialized. No consent to run on the page", source: https://cdn.permutive.com/bdbae668-c577-4545-8fc2-4ad4eab52b2c-web.js?
d=2021-01-25 (1)                                                                                                                                                               
[0125/154053.964:INFO:CONSOLE(3)] "Didn't manage to find TRC container for R-Box with ID taboola-left-rail-thumbnails (retry=1) (Document is Ready)!", source: https://cdn.taboo
la.com/libtrc/impl.20210121-29-RELEASE.js (3)                                                                                                                                   
[0125/154053.964:INFO:CONSOLE(3)] "Invalid container provided for request Left Rail Thumbnails (null)!", source: https://cdn.taboola.com/libtrc/impl.20210121-29-RELEASE.js (3)
[0125/154053.965:INFO:CONSOLE(3)] "Didn't manage to find TRC container for R-Box with ID taboola-mid-main-column-thumbnails (retry=2) (Document is Ready)!", source: https://cdn
.taboola.com/libtrc/impl.20210121-29-RELEASE.js (3)                                                                                                                             
[0125/154053.965:INFO:CONSOLE(3)] "Invalid container provided for request Mid Main Column Thumbnails (null)!", source: https://cdn.taboola.com/libtrc/impl.20210121-29-RELEASE.j
s (3)                                                                                                                                                                           
[0125/154053.966:INFO:CONSOLE(3)] "Invalid container provided for request Below Article Thumbnails Home (null)!", source: https://cdn.taboola.com/libtrc/impl.20210121-29-RELEAS
E.js (3)                                                                                                                                                                       
[0125/154054.016:VERBOSE1:url_loader.cc(389)] To buffer: https://events.browsiprod.com/events/supply?p=7e6d3e45-c1b5-470b-99d8-6967fe1c164a                                     
[0125/154054.245:VERBOSE1:url_loader.cc(389)] To buffer: https://trc-events.taboola.com/walla/log/2/debug?tim=15%3A40%3A53.954&type=error&msg=Didn%27t%20manage%20to%20find%20TR
C%20container%20for%20R-Box%20with%20ID%20taboola-left-rail-thumbnails%20(retry%3D1)%20(Document%20is%20Ready)!&id=862&cv=20210121-29-RELEASE&lt=deflated&pct=1                 
[0125/154054.246:VERBOSE1:url_loader.cc(389)] To buffer: https://trc-events.taboola.com/walla/log/2/debug?tim=15%3A40%3A53.955&type=error&msg=Invalid%20container%20provided%20f
or%20request%20Left%20Rail%20Thumbnails%20(null)!&id=6917&cv=20210121-29-RELEASE&lt=deflated&pct=1                                                                             
[0125/154054.246:VERBOSE1:url_loader.cc(389)] To buffer: https://trc-events.taboola.com/walla/log/2/debug?tim=15%3A40%3A53.955&type=error&msg=Invalid%20container%20provided%20f
or%20request%20Mid%20Main%20Column%20Thumbnails%20(null)!&id=1538&cv=20210121-29-RELEASE&lt=deflated&pct=1                                                                     
[0125/154054.247:VERBOSE1:url_loader.cc(389)] To buffer: https://trc-events.taboola.com/walla/log/2/debug?tim=15%3A40%3A53.955&type=error&msg=Didn%27t%20manage%20to%20find%20TR
C%20container%20for%20R-Box%20with%20ID%20taboola-mid-main-column-thumbnails%20(retry%3D2)%20(Document%20is%20Ready)!&id=9941&cv=20210121-29-RELEASE&lt=deflated&pct=1         
...
[0125/154414.702:VERBOSE1:url_loader.cc(389)] To buffer: https://events.browsiprod.com/events/supply?p=fe671a90-14bc-4f4e-a1f5-0fa04a1b7af9
[0125/154417.807:VERBOSE1:CONSOLE(1)] "Main._createAppUI: 53.166748046875 ms", source: devtools://devtools/main/main.js (1)
[0125/154417.816:VERBOSE1:CONSOLE(1)] "Main._showAppUI: 9.173828125 ms", source: devtools://devtools/main/main.js (1)
[0125/154419.367:VERBOSE1:CONSOLE(1)] "Main._initializeTarget: 11.830078125 ms", source: devtools://devtools/main/main.js (1)
[0125/154419.650:VERBOSE1:CONSOLE(1)] "Main._lateInitialization: 0.8271484375 ms", source: devtools://devtools/main/main.js (1)
[0125/154432.717:WARNING:CONSOLE(1)] "One or more elements in an active-descendant relationship are not yet attached to the DOM tree.", source: devtools://devtools/ui/ui.js (1)...

There are multiple JS errors (in Chrome as well).

"ReferenceError: Notification is not defined", source: https://www.walla.co.il/public/walla.js ... 6ce13192a2
is the one causing the whole page to misbehave. I suppose is something related to the notifications, I don't know.
Anyways, body element contains a div id="root" which does not populate at all. body is height 0.
ndesktop
Master
 
Posts: 756
Joined: Thu Dec 03, 2015 10:10 am

Re: CEF 87: white page when navigate to some url's

Postby ebahar » Mon Jan 25, 2021 12:31 pm

yes, but it works well on cef 83, and working well in chrome..
ebahar
Techie
 
Posts: 46
Joined: Tue Nov 22, 2016 3:52 am

Re: CEF 87: white page when navigate to some url's

Postby ndesktop » Mon Jan 25, 2021 2:54 pm

I don't think is working well. Also, I am noticing on a pretty powerful machine I am testing it (one that can build cef, I mean) it takes a quite a time even to close cefclient; clicking on Stop button does not much as well.

The website has been flagged before as producing bugs, see, for example, issue Issue 454296: Blank pages while browsing - not all websites dating back to 2015.
The description looks familiar, especially if we replace blank with white.

27 issues were filed regarding this website only.

Anyways, only walla.js script have 137.000 lines (pretty printed) and size is 2.84 MB, which is kind of huge for a single script.
It's true, Chrome and Firefox are loading it, but they are fully fledged applications, cefclient is just a showcase app and is not written to defend against all sorts of bad behaviors.

Anyways, I remember a remotely similar issue with some 15+ scripts of 200k-1MB each, and the "solution", if I can call it this way, was to increase the stack size in the executable from 1MB to 1.25MB. That allowed a little more room for scripts to load and execute (successfully or not), but at least to not freeze the app.
I'm not sure if this qualifies as a good solution, but in my case was a banking website which was loading every JS framework known to man and I had to support it.
ndesktop
Master
 
Posts: 756
Joined: Thu Dec 03, 2015 10:10 am


Return to Support Forum

Who is online

Users browsing this forum: Majestic-12 [Bot] and 57 guests