Chrome Runtime: Network service crashed, restarting service

Having problems with building or using the CefGlue .NET/Mono binding? Ask your questions here.

Moderator: fddima

Chrome Runtime: Network service crashed, restarting service

Postby heldergoncalves » Mon Apr 21, 2025 11:57 am

I'm working on the CefGlue bump to support CEF M134.
However, on Windows, I'm facing a runtime issue that starts to happen when we use the new Chrome Runtime.

CefGlue was previously using the Alloy bootstrap on ver M120. It was deprecated on M128.
I replicated this issue by using M126. Everything is fine when we have the Alloy Bootstrap. However, when I set the: "ChromeRuntime = true" in the CEFSettings I also have this issue.

Code: Select all
[25008:19100:0421/171306.620:ERROR:network_service_instance_impl.cc(612)] Network service crashed, restarting service.
[25008:19100:0421/171307.459:ERROR:network_service_instance_impl.cc(612)] Network service crashed, restarting service.
[25008:19100:0421/171309.434:ERROR:network_service_instance_impl.cc(612)] Network service crashed, restarting service.
[25008:19100:0421/171310.320:ERROR:network_service_instance_impl.cc(612)] Network service crashed, restarting service.
[25008:19100:0421/171312.430:ERROR:network_service_instance_impl.cc(612)] Network service crashed, restarting service.
[25008:19100:0421/171313.258:ERROR:network_service_instance_impl.cc(612)] Network service crashed, restarting service.


Found a similar issue in this forum: https://magpcss.org/ceforum/viewtopic.php?f=6&t=19932
But the root cause seems completely different.
---------------------------------

Do you have any idea why the new Chrome Runtime bootstrap is triggering this issue, or do you have an idea on how to fix it?
Working on this PR: https://github.com/OutSystems/CefGlue/pull/208
heldergoncalves
Newbie
 
Posts: 2
Joined: Mon Apr 21, 2025 11:16 am

Re: Chrome Runtime: Network service crashed, restarting serv

Postby magreenblatt » Mon Apr 21, 2025 1:09 pm

magreenblatt
Site Admin
 
Posts: 13054
Joined: Fri May 29, 2009 6:57 pm

Re: Chrome Runtime: Network service crashed, restarting serv

Postby heldergoncalves » Tue Apr 22, 2025 12:27 pm

Unfortunately, it doesn't seem to fix the issue.
For context, I run:
Code: Select all
 .\Xilium.CefGlue.Demo.Avalonia.exe
    --browser-subprocess-path="...\Xilium.CefGlue.BrowserProcess.exe"
    --no-sandbox
    --lang=en-US
    --uncaught-exception-stack-size=100
    --disable-features=EnableHangWatcher
    --disable-features=NetworkServiceSandbox

And then 3 BrowserProcesses are started before the crash:
Code: Select all
.\BrowserProcess.exe
    --type=gpu-process
    --no-sandbox
    --no-pre-read-main-dll
    --start-stack-profiler
    --user-data-dir="C:\Users\user\AppData\Local\Temp\CefGlue_14adf9e372094dd9af728f0ae3ec7164"
    --custom-scheme=test||89
    --parent-pid=15632
    --disable-features=NetworkServiceSandbox
    /prefetch:2

.\BrowserProcess.exe
    --type=utility
    --utility-sub-type=network.mojom.NetworkService
    --lang=en-US
    --service-sandbox-type=none
    --no-sandbox
    --no-pre-read-main-dll
    --start-stack-profiler
    --user-data-dir=\"C:\\Users\\user\\AppData\\Local\\Temp\\CefGlue_6e0a89d978eb40fc97f1bafd820a901f\"
    --custom-scheme=test||89
    --parent-pid=15632
    --disable-features=NetworkServiceSandbox
    /prefetch:3"

 .\BrowserProcess.exe
    --type=utility
    --utility-sub-type=storage.mojom.StorageService
    --lang=en-US
    --service-sandbox-type=service
    --no-sandbox
    --no-pre-read-main-dll
    --user-data-dir=\"C:\\Users\\hgo\\AppData\\Local\\Temp\\CefGlue_6e0a89d978eb40fc97f1bafd820a901f\"
    --custom-scheme=test||89
    --parent-pid=22384
    --disable-features=NetworkServiceSandbox
    /prefetch:8

Not sure if it's relevant, but right now I'm using the Chrome Bootstrap, but the browser is using the Alloy Runtime Style.
Do you have any idea about the best way to figure out what may be going on?
heldergoncalves
Newbie
 
Posts: 2
Joined: Mon Apr 21, 2025 11:16 am


Return to CefGlue Forum

Who is online

Users browsing this forum: No registered users and 51 guests