Page 1 of 1

External exception E0000008

Posted: Mon Aug 17, 2020 7:10 pm
by thefunkyjoint
Hi

I just update to new version and in some machines, after some time i'm getting a blank screen, suggesting the CEF process crashed.

I activated the log and this what i found :

[0817/160653.757:ERROR:CEF4Delphi(1)] TCefApplicationCore.ExecuteProcess error : External exception E0000008

Any hints what could be causing this ?

I could not reproduce the issue on my machine, but in a machine of one of my customers it's happening.

Thanks

Re: External exception E0000008

Posted: Mon Aug 17, 2020 8:34 pm
by salvadordf
That error code used to be related to really big images loaded by a 32 bits browser. In that case the subprocess crashed because it run out of memory.

If those customers have a 32 bits application make sure you add this in the DPR file :

Code: Select all

{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}
If those customers have a 64 bits application or they already have the IMAGE_FILE_LARGE_ADDRESS_AWARE flag in the code then please provide all the details you can to reproduce that error. Preferably a step by step guide.

Re: External exception E0000008

Posted: Tue Aug 18, 2020 11:20 am
by thefunkyjoint
Great, thank you !

Do i need to add this directive only on the subprocess or also on my main exe ?

Re: External exception E0000008

Posted: Tue Aug 18, 2020 11:52 am
by salvadordf
It needs to be defined in all of them : main and subprocesses.

That constant is defined in "Winapi.Windows" (or "Windows" if you use an older Delphi version) but if you don't want to add that unit to the uses section you can also use its value directly :

Code: Select all

{$SetPEFlags $20}

Re: External exception E0000008

Posted: Fri Aug 21, 2020 11:26 am
by thefunkyjoint
Thank you Salvador, this fixed the issue. :D