Browser getting white after navigation and some SPA actions

Having problems with building or using the JCEF Java binding? Ask your questions here.

Re: Browser getting white after navigation and some SPA acti

Postby ndesktop » Thu May 07, 2026 8:58 am

I have seen this as well, mainly WM_PAINT related (but I am using a completely unrelated UI so I don't know how relevant this is), although my /STACKSIZE is even higher than 0x80000.
ndesktop
Virtuoso
 
Posts: 1002
Joined: Thu Dec 03, 2015 10:10 am

Re: Browser getting white after navigation and some SPA acti

Postby Phylanx » Thu May 07, 2026 9:30 am

Checked the difference of the command lines:

cefclient.exe
Code: Select all
"C:\dev\other\CEF\7499\target\chromium\src\out\Release_GN_x86\cefclient.exe" --type=renderer --enable-dinosaur-easter-egg-alt-images --origin-trial-disabled-features=CanvasTextNg|WebAssemblyCustomDescriptors --no-pre-read-main-dll --user-data-dir="C:\Users\Johann.Scheiterbauer\AppData\Local\CEF\User Data" --video-capture-use-gpu-memory-buffer --lang=en-US --device-scale-factor=1 --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=10 --time-ticks-at-unix-epoch=-1777445426074323 --launch-time-ticks=716873771605 --metrics-shmem-handle=5100,i,18382299523681791953,12699670339846898511,2097152 --field-trial-handle=1832,i,12514319520834200309,14429425564990040452,262144 --disable-features=GlicActorUi,LensOverlay --variations-seed-version --trace-process-track-uuid=1188252717 --enable-logging=handle --log-file=5080 --mojo-platform-channel-handle=5068 /prefetch:1


jcef
Code: Select all
"C:\builds\HEAD_CI\bin\win_x32\jcef_helper.exe" --type=renderer --enable-dinosaur-easter-egg-alt-images --origin-trial-disabled-features=CanvasTextNg|WebAssemblyCustomDescriptors --no-pre-read-main-dll --user-data-dir="C:\Users\Johann.Scheiterbauer\AppData\Local\CEF\User Data" --libcef-path="C:\builds\HEAD_CI\bin\win_x32\libcef.dll" --no-sandbox --video-capture-use-gpu-memory-buffer --lang=en-US --device-scale-factor=1 --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=9 --time-ticks-at-unix-epoch=-1777445426074323 --launch-time-ticks=717452829216 --metrics-shmem-handle=6516,i,5906824570606736074,9697680411562406798,2097152 --field-trial-handle=3996,i,8576447527959882310,10767279217820668713,262144 --disable-features=EnableHangWatcher,GlicActorUi,LensOverlay --variations-seed-version --trace-process-track-uuid=2320163559 --enable-logging=handle --log-file=6272 --mojo-platform-channel-handle=6276 /prefetch:1


The differences are:

cefclient.exe
Code: Select all
--disable-features=GlicActorUi,LensOverlay


jcef
Code: Select all
--libcef-path="C:\builds\HEAD_CI\bin\win_x32\libcef.dll" --no-sandbox --disable-features=EnableHangWatcher,GlicActorUi,LensOverlay


First thing catching my eye is the no-sandbox mode of JCEF which is different to CEF/Chromium/Chrome.
Some time ago we had problems with SVG drawn radio buttons in that mode.
Also will check the additionally disabled feature for jcef (EnableHangWatcher).
Phylanx
Expert
 
Posts: 274
Joined: Thu Aug 11, 2016 8:17 am

Re: Browser getting white after navigation and some SPA acti

Postby Phylanx » Mon May 11, 2026 9:44 am

After some testing and fooling around with parameters the following change did the trick:

We took the jcef.sln and changed the linker option for the STACK size from "0x80000" to "0xC0000" which is then 12 instead of 8 MB.
That worked.

Has anybody experience about good values for this configuration?

ndesktop: You mentioned something, which value do you use?
I have seen this as well, mainly WM_PAINT related (but I am using a completely unrelated UI so I don't know how relevant this is), although my /STACKSIZE is even higher than 0x80000.
Phylanx
Expert
 
Posts: 274
Joined: Thu Aug 11, 2016 8:17 am

Re: Browser getting white after navigation and some SPA acti

Postby ndesktop » Mon May 11, 2026 10:21 am

Phylanx wrote:After some testing and fooling around with parameters the following change did the trick:
ndesktop: You mentioned something, which value do you use?

/STACK:0x00120000
ndesktop
Virtuoso
 
Posts: 1002
Joined: Thu Dec 03, 2015 10:10 am

Re: Browser getting white after navigation and some SPA acti

Postby Phylanx » Tue May 12, 2026 12:56 am

ndesktop wrote:
Phylanx wrote:After some testing and fooling around with parameters the following change did the trick:
ndesktop: You mentioned something, which value do you use?

/STACK:0x00120000


OK, so you increased it from 512 kB to a bit more than 1 MB, correct?
Did you observe any side effects?
Phylanx
Expert
 
Posts: 274
Joined: Thu Aug 11, 2016 8:17 am

Re: Browser getting white after navigation and some SPA acti

Postby ndesktop » Tue May 12, 2026 6:06 am

Phylanx wrote:
ndesktop wrote:
Phylanx wrote:After some testing and fooling around with parameters the following change did the trick:
ndesktop: You mentioned something, which value do you use?

/STACK:0x00120000


OK, so you increased it from 512 kB to a bit more than 1 MB, correct?

Correct.

Phylanx wrote:Did you observe any side effects?

Not really. As I said, I have sporadic stack overflows but they are not specific to 32-bit, and usually the cause is the UI layer (sciter) and not something CEF or Chromium-related.
ndesktop
Virtuoso
 
Posts: 1002
Joined: Thu Dec 03, 2015 10:10 am

Re: Browser getting white after navigation and some SPA acti

Postby Phylanx » Tue May 26, 2026 1:54 am

We are now using an increased stack size of /STACK:0x100000.
Tests look promising, we hope the best :D

Thx for your support!
Phylanx
Expert
 
Posts: 274
Joined: Thu Aug 11, 2016 8:17 am

Previous

Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 24 guests