salvadordf/CEF4Delphi

Subprocess accidently shutdown and not restore.

duchengle opened this issue · 1 comments

When use subprocess mode, main process usually start up 4 subprocesses.
After conducting a long time running test (96 hours +), sometimes there are only two subprocesses left, and application crash with no responding error.
In this case, does browser process crash? Cause other subprocess would restore from force exit. And what is the most likely cause?

Hi,

It's not possible to know what happened without some code to reproduce this error on my computer but I can recommend a few things :

  1. Use the TChromiumCore.OnRenderProcessTerminated event and check the status parameter to know when a render process crashes.
  2. Enable the debug log. Set the GlobalCEFApp.LogFile and GlobalCEFApp.LogSeverity properties before the GlobalCEFApp.StartMainProcess and GlobalCEFApp.StartSubProcess calls. Use LOGSEVERITY_VERBOSE or LOGSEVERITY_ERROR severity level. LOGSEVERITY_VERBOSE will generate a huge log, specially if you run the demo for more than 96 hours.
  3. If your application is 32 bits then check that it uses the IMAGE_FILE_LARGE_ADDRESS_AWARE flag in the DPR file.
  4. Check that the application follows the destruction steps specified in the code comments of the demo you used as a template for your application.
  5. Add OutputDebugMessage calls in your code to log some details of your tests. It would be helpful if you add log entries for each test step. You will need to build the application in debug mode.

Please, use our forum for more questions. If you have problems registering just let me know the username and I'll activate the account manually.