Page 1 of 1

Crash on startup

Posted: Thu Jul 23, 2020 9:17 am
by khfos
Hello,

some of our customers can't start our application. The bug-report they sent to us contains only the following information:

Code: Select all

A breakpoint has been reached.

Module: libcef.dll
Code: 80000003 (EXCEPTION_BREAKPOINT)
Address: 11F0C22A (0258C22A).


[11F0C22A] libcef.IsSandboxedProcess
[1150A52E] libcef.cef_string_utf16_to_upper [114E0B93] libcef.cef_string_utf16_to_upper [74F96357] KERNEL32.BaseThreadInitThunk
Unfortunately we can not reproduce this error and we don't know where is the problem and how to fix it.
Do you have any ideas?

We use Delphi Rio. The libcef.dll has version 79.1.36.0.

Thanks in advance

Re: Crash on startup

Posted: Thu Jul 23, 2020 9:47 am
by salvadordf
Judging by that report I can't tell what's going on.

Perhaps there's a hardware incompatibility with Chromium and those users need to run the app with GlobalCEFApp.EnableGPU set to FALSE.

It would be helpful if you could send those users some kind of a "system checker" application to create a more detailed report which includes a CEF log in verbose mode.

Another possibility : Are those users running the application from a local network drive?

Re: Crash on startup

Posted: Thu Sep 29, 2022 7:18 am
by fneumann
We did not spend more time on solving the problem as it occured very rarely. Since we updated our CEF component some weeks ago, however, we receive some bugreports per day. In order to find the problem we have recently enabled CEF logging (so far only down to INFO loglevel). I post some information for you. Maybe we can make a remote maintenance with one of the affected customers and set loglevel to verbose if you need more information.

We did not explicitely enable GPU and it is false by default as far as I saw. The application runs on the local hard drive. The error occured 30 seconds after starting the application. We are using two webbrowsers on our main form. Both webbrowsers should display HTML files stored locally on the customers hard drive. At the time the error occured, one webbrowser has already shown the expected content. The other webbrowser did not show anything.

libcef.dll version: 100.0.14.0

Error-Message and Callstack:

Code: Select all

A breakpoint has been reached.

Code: 80000003 (EXCEPTION_BREAKPOINT)
Address: (0631A3F9){libcef.dll         } [667AA3F9] libcef.RelaunchChromeBrowserWithNewCommandLineIfNeeded + $52AD49.


[667AA3F9] libcef.RelaunchChromeBrowserWithNewCommandLineIfNeeded
[7778BF1A] ntdll.RtlWow64GetProcessMachines [7778BDA7] ntdll.RtlQueryPerformanceCounter [7778BE56] ntdll.RtlQueryPerformanceCounter [7778BDA7] ntdll.RtlQueryPerformanceCounter [7778BE56] ntdll.RtlQueryPerformanceCounter [7589FA27] KERNEL32.BaseThreadInitThunk
Log-File (loglevel INFO):
[0928/164802.499:INFO:CEF4Delphi(1)] PID: 13376, TID: 13964, PT: Renderer - Called OnWebKitInitialized from SubProcess
[0928/164802.499:INFO:CEF4Delphi(1)] PID: 10772, TID: 8868, PT: Renderer - Called OnWebKitInitialized from SubProcess
[0928/164802.499:INFO:CEF4Delphi(1)] PID: 2804, TID: 2356, PT: Renderer - Called OnWebKitInitialized from SubProcess
[0928/164802.500:INFO:CEF4Delphi(1)] PID: 10772, TID: 8868, PT: Renderer - Registered CEF extension with name "uc_extension"
[0928/164802.500:INFO:CEF4Delphi(1)] PID: 13376, TID: 13964, PT: Renderer - Registered CEF extension with name "uc_extension"
[0928/164802.500:INFO:CEF4Delphi(1)] PID: 2804, TID: 2356, PT: Renderer - Registered CEF extension with name "uc_extension"
[0928/164804.945:INFO:CONSOLE(84)] "Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')", source: file:///C:/Program%20Files%20(x86)/Client/Resources/Html/Pim/Startpage/Content/web/images/main.js (84)
[0928/164830.017:INFO:CEF4Delphi(1)] PID: 532, TID: 15700, PT: Renderer - Called OnWebKitInitialized from SubProcess
[0928/164830.017:INFO:CEF4Delphi(1)] PID: 532, TID: 15700, PT: Renderer - Registered CEF extension with name "uc_extension"
[0928/165221.012:INFO:CEF4Delphi(1)] PID: 12644, TID: 12648, PT: Renderer - Called OnWebKitInitialized from SubProcess
[0928/165221.012:INFO:CEF4Delphi(1)] PID: 12644, TID: 12648, PT: Renderer - Registered CEF extension with name "uc_extension"
[0928/165221.018:INFO:CEF4Delphi(1)] PID: 12636, TID: 12640, PT: Renderer - Called OnWebKitInitialized from SubProcess
[0928/165221.018:INFO:CEF4Delphi(1)] PID: 12636, TID: 12640, PT: Renderer - Registered CEF extension with name "uc_extension"
[0928/165221.064:INFO:CEF4Delphi(1)] PID: 12772, TID: 12776, PT: Renderer - Called OnWebKitInitialized from SubProcess
[0928/165221.064:INFO:CEF4Delphi(1)] PID: 12772, TID: 12776, PT: Renderer - Registered CEF extension with name "uc_extension"
[0928/165225.141:ERROR:frame_impl.cc(514)] Connection timeout for frame 17179869185 [4,1]
[0928/165225.394:ERROR:frame_impl.cc(514)] Connection timeout for frame 21474836481 [5,1]
[0928/165226.143:INFO:frame_impl.cc(474)] Connection retry 1/3 for frame 17179869185 [4,1]
[0928/165226.397:INFO:frame_impl.cc(474)] Connection retry 1/3 for frame 21474836481 [5,1]
[0928/165230.154:ERROR:frame_impl.cc(514)] Connection timeout for frame 17179869185 [4,1]
[0928/165230.409:ERROR:frame_impl.cc(514)] Connection timeout for frame 21474836481 [5,1]
[0928/165231.160:INFO:frame_impl.cc(474)] Connection retry 2/3 for frame 17179869185 [4,1]
[0928/165231.416:INFO:frame_impl.cc(474)] Connection retry 2/3 for frame 21474836481 [5,1]
[0928/165235.175:ERROR:frame_impl.cc(514)] Connection timeout for frame 17179869185 [4,1]
[0928/165235.424:ERROR:frame_impl.cc(514)] Connection timeout for frame 21474836481 [5,1]
[0928/165236.188:INFO:frame_impl.cc(474)] Connection retry 3/3 for frame 17179869185 [4,1]
[0928/165236.438:INFO:frame_impl.cc(474)] Connection retry 3/3 for frame 21474836481 [5,1]
[0928/165240.195:ERROR:frame_impl.cc(514)] Connection timeout for frame 17179869185 [4,1]
[0928/165240.195:FATAL:frame_impl.cc(547)] Connection retry failure for frame 17179869185 [4,1]
[0928/165240.446:ERROR:frame_impl.cc(514)] Connection timeout for frame 21474836481 [5,1]
[0928/165240.446:FATAL:frame_impl.cc(547)] Connection retry failure for frame 21474836481 [5,1]
[0928/165245.009:ERROR:interface_endpoint_client.cc(659)] Message 3 rejected by interface blink.mojom.Widget
[0928/165245.009:ERROR:interface_endpoint_client.cc(659)] Message 6 rejected by interface blink.mojom.WidgetHost
[0928/165245.009:ERROR:interface_endpoint_client.cc(659)] Message 7 rejected by interface blink.mojom.WidgetHost
[0928/165245.012:ERROR:interface_endpoint_client.cc(659)] Message 1204442840 rejected by interface blink.mojom.FrameWidgetHost
[0928/165245.016:ERROR:interface_endpoint_client.cc(659)] Message 3 rejected by interface blink.mojom.Widget
[0928/165245.016:ERROR:interface_endpoint_client.cc(659)] Message 6 rejected by interface blink.mojom.WidgetHost
[0928/165245.016:ERROR:interface_endpoint_client.cc(659)] Message 7 rejected by interface blink.mojom.WidgetHost
[0928/165245.021:ERROR:interface_endpoint_client.cc(659)] Message 1204442840 rejected by interface blink.mojom.FrameWidgetHost
[0928/165245.085:INFO:CEF4Delphi(1)] PID: 14172, TID: 13000, PT: Renderer - Called OnWebKitInitialized from SubProcess
[0928/165245.085:INFO:CEF4Delphi(1)] PID: 14172, TID: 13000, PT: Renderer - Registered CEF extension with name "uc_extension"
[0928/165552.986:INFO:CEF4Delphi(1)] PID: 12300, TID: 12304, PT: Renderer - Called OnWebKitInitialized from SubProcess
[0928/165552.987:INFO:CEF4Delphi(1)] PID: 12300, TID: 12304, PT: Renderer - Registered CEF extension with name "uc_extension"
[0928/165552.999:INFO:CEF4Delphi(1)] PID: 12292, TID: 12296, PT: Renderer - Called OnWebKitInitialized from SubProcess
[0928/165552.999:INFO:CEF4Delphi(1)] PID: 12292, TID: 12296, PT: Renderer - Registered CEF extension with name "uc_extension"
[0928/165553.035:INFO:CEF4Delphi(1)] PID: 12368, TID: 12372, PT: Renderer - Called OnWebKitInitialized from SubProcess
[0928/165553.035:INFO:CEF4Delphi(1)] PID: 12368, TID: 12372, PT: Renderer - Registered CEF extension with name "uc_extension"
[0928/165557.000:ERROR:frame_impl.cc(514)] Connection timeout for frame 17179869185 [4,1]
[0928/165557.336:ERROR:frame_impl.cc(514)] Connection timeout for frame 21474836481 [5,1]
[0928/165558.006:INFO:frame_impl.cc(474)] Connection retry 1/3 for frame 17179869185 [4,1]
[0928/165558.340:INFO:frame_impl.cc(474)] Connection retry 1/3 for frame 21474836481 [5,1]
[0928/165602.008:ERROR:frame_impl.cc(514)] Connection timeout for frame 17179869185 [4,1]
[0928/165602.343:ERROR:frame_impl.cc(514)] Connection timeout for frame 21474836481 [5,1]
[0928/165603.012:INFO:frame_impl.cc(474)] Connection retry 2/3 for frame 17179869185 [4,1]
[0928/165603.348:INFO:frame_impl.cc(474)] Connection retry 2/3 for frame 21474836481 [5,1]
[0928/165607.016:ERROR:frame_impl.cc(514)] Connection timeout for frame 17179869185 [4,1]
[0928/165607.352:ERROR:frame_impl.cc(514)] Connection timeout for frame 21474836481 [5,1]
[0928/165608.024:INFO:frame_impl.cc(474)] Connection retry 3/3 for frame 17179869185 [4,1]
[0928/165608.359:INFO:frame_impl.cc(474)] Connection retry 3/3 for frame 21474836481 [5,1]
[0928/165612.035:ERROR:frame_impl.cc(514)] Connection timeout for frame 17179869185 [4,1]
[0928/165612.035:FATAL:frame_impl.cc(547)] Connection retry failure for frame 17179869185 [4,1]
[0928/165612.371:ERROR:frame_impl.cc(514)] Connection timeout for frame 21474836481 [5,1]
[0928/165612.371:FATAL:frame_impl.cc(547)] Connection retry failure for frame 21474836481 [5,1]
[0928/165618.212:ERROR:interface_endpoint_client.cc(659)] Message 3 rejected by interface blink.mojom.Widget
[0928/165618.225:ERROR:interface_endpoint_client.cc(659)] Message 1204442840 rejected by interface blink.mojom.FrameWidgetHost
[0928/165618.227:ERROR:interface_endpoint_client.cc(659)] Message 6 rejected by interface blink.mojom.WidgetHost
[0928/165618.227:ERROR:interface_endpoint_client.cc(659)] Message 7 rejected by interface blink.mojom.WidgetHost
[0928/165618.228:ERROR:interface_endpoint_client.cc(659)] Message 3 rejected by interface blink.mojom.Widget
[0928/165618.228:ERROR:interface_endpoint_client.cc(659)] Message 6 rejected by interface blink.mojom.WidgetHost
[0928/165618.228:ERROR:interface_endpoint_client.cc(659)] Message 7 rejected by interface blink.mojom.WidgetHost
[0928/165618.232:ERROR:interface_endpoint_client.cc(659)] Message 1204442840 rejected by interface blink.mojom.FrameWidgetHost
[0928/165618.301:INFO:CEF4Delphi(1)] PID: 9820, TID: 9824, PT: Renderer - Called OnWebKitInitialized from SubProcess
[0928/165618.301:INFO:CEF4Delphi(1)] PID: 9820, TID: 9824, PT: Renderer - Registered CEF extension with name "uc_extension"
Do you have an idea what is going on here? Do you require any further information?

Re: Crash on startup

Posted: Thu Sep 29, 2022 8:19 am
by salvadordf
Hi,

Without code I can only give some suggestions :
  • Check that the extension code in OnWebKitInitialized is always correct.
  • Check that the antivirus didn't delete some file from the CEF binaries.
  • Use TChromium.OnRenderProcessTerminated to detect if the render process has crashed and create a new browser in that case.
  • You should be able to create several browsers at the same time but in this case I would also try to create them sequentially after the GlobalCEFApp.OnContextInitialized event.

Re: Crash on startup

Posted: Mon Oct 17, 2022 2:17 pm
by fneumann
Hi,
  • The extension code in OnWebKitInitialized is always the same. As the error occurs only sometimes we excluded this as error source
  • If the antivirus deleted some files there should be an error on initialization of the CEF component at all which is already logged by our software. So we also excluded this as error source
  • The call of TChromium.OnRenderProcessTerminated is only a symptom of the error and not the error itself
  • Initializing two webbrowsers at the same time seems to be the only reasonable cause of the error for me. So we changed our implementation such that the second webbrowser is initialized after the initialization of the first webbrowser is finished. Since releasing the code change, there were no more bugreports sent. It looks like that this change solved the problem.
Thanks for your suggestions.