Hi Salvador, sometimes the browser shows white screen and TChromium.OnRenderProcessTerminated is triggered with status 2 or 3
Is there any solution for this?
I am using cef_binary_101.0.15+gca159c5+chromium-101.0.4951.54. (64bits)
My CreateGlobalCEFApp is:
procedure CreateGlobalCEFApp;
begin
GlobalCEFApp := TCefApplication.create;
GlobalCEFApp.PersistSessionCookies := True;
GlobalCEFApp.PersistUserPreferences := True;
GlobalCEFApp.OnWebKitInitialized := GlobalCEFApp_OnWebKitInitialized;
GlobalCEFApp.FrameworkDirPath := frm_principal.GetSpecialFolderPath
(CSIDL_COMMON_APPDATA) + '\myapp_appdata';
GlobalCEFApp.ResourcesDirPath := frm_principal.GetSpecialFolderPath
(CSIDL_COMMON_APPDATA) + '\myapp_appdata';
GlobalCEFApp.LocalesDirPath := frm_principal.GetSpecialFolderPath
(CSIDL_COMMON_APPDATA) + '\myapp_appdata\locales';
GlobalCEFApp.RootCache := ExtractFilePath(application.ExeName) + 'cache';
GlobalCEFApp.Cache := ExtractFilePath(application.ExeName) + 'cache';
GlobalCEFApp.SitePerProcess := false;
GlobalCEFApp.DisablePDFExtension := True;
GlobalCEFApp.EnableMediaStream := false;
GlobalCEFApp.EnableSpeechInput := false;
GlobalCEFApp.DisableSiteIsolationTrials := True;
GlobalCEFApp.EnableGPU := True;
GlobalCEFApp.Locale := 'pt-BR';
GlobalCEFApp.AcceptLanguageList := 'pt-BR,pt';
end;
Thanks for some help
Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
White Screen, render process crashed
- salvadordf
- Posts: 4580
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: White Screen, render process crashed
Hi,
It's not possible to deduce what could be wrong without sample code and step by step instructions to reproduce this issue.
Set GlobalCEFApp.SingleProcess mode to true temporarily and enable the debug log. Then run your application inside Delphi and try to reproduce this issue.
Perhaps the issue is inside the GlobalCEFApp_OnWebKitInitialized procedure or perhaps the debug log has some information you could use to find the cause of all this.
It's not possible to deduce what could be wrong without sample code and step by step instructions to reproduce this issue.
Set GlobalCEFApp.SingleProcess mode to true temporarily and enable the debug log. Then run your application inside Delphi and try to reproduce this issue.
Perhaps the issue is inside the GlobalCEFApp_OnWebKitInitialized procedure or perhaps the debug log has some information you could use to find the cause of all this.
-
- Posts: 52
- Joined: Sat Dec 09, 2017 4:40 pm
Re: White Screen, render process crashed
Hi Salvador, this issue is occurring in my customer. Everything is working and suddenly, white screen.
Can antivirus cause this behavior? Does this problem occur in WebView4Delphi?
Can antivirus cause this behavior? Does this problem occur in WebView4Delphi?
- salvadordf
- Posts: 4580
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: White Screen, render process crashed
Antivirus software can block internet access or delete required files.
Without code and some instructions to reproduce this issue I don't know what's the cause of this issue and I don't know if it's also present in WebView4Delphi.
I can only suggest the usual generic things :
Without code and some instructions to reproduce this issue I don't know what's the cause of this issue and I don't know if it's also present in WebView4Delphi.
I can only suggest the usual generic things :
- Add some code in your application to enable the debug log.
- Also check that all the required files in your application are present and check that every resource is available before trying to use it. Add this information to the log too.
- If the application can stress the operating system in some way then add some limits.
- Add try..except blocks every time you use some function that raises exceptions, especially in the code that is executed in the render process.
-
- Posts: 513
- Joined: Thu Aug 10, 2017 12:40 pm
Re: White Screen, render process crashed
I had similiar issues in the past and the problem was the anti-virus forcing closing the subprocess. When you kill the subprocesses, it's exactly what happens, a blank screen.
What helped for me is to add code signing not only on my application, but also on the subprocess EXE.
What helped for me is to add code signing not only on my application, but also on the subprocess EXE.