CEFClient never worked on my PC, it opens for a few seconds and then closes again without and flags and with --off-screen-rendering-enabled it behaves the same. It appears to be a problem with the configuration of the GPU process because this is what's in debug.log:
- Code: Select all
[0908/132937.799:ERROR:gpu_process_host.cc(955)] GPU process launch failed: error_code=18
[0908/132937.799:WARNING:gpu_process_host.cc(1274)] The GPU process has crashed 1 time(s)
[0908/132937.810:ERROR:gpu_process_host.cc(955)] GPU process launch failed: error_code=18
[0908/132937.811:WARNING:gpu_process_host.cc(1274)] The GPU process has crashed 2 time(s)
[0908/132937.815:ERROR:gpu_process_host.cc(955)] GPU process launch failed: error_code=18
[0908/132937.815:WARNING:gpu_process_host.cc(1274)] The GPU process has crashed 3 time(s)
[0908/132937.819:ERROR:gpu_process_host.cc(955)] GPU process launch failed: error_code=18
[0908/132937.819:WARNING:gpu_process_host.cc(1274)] The GPU process has crashed 4 time(s)
[0908/132937.824:ERROR:gpu_process_host.cc(955)] GPU process launch failed: error_code=18
[0908/132937.824:WARNING:gpu_process_host.cc(1274)] The GPU process has crashed 5 time(s)
[0908/132937.827:ERROR:gpu_process_host.cc(955)] GPU process launch failed: error_code=18
[0908/132937.828:WARNING:gpu_process_host.cc(1274)] The GPU process has crashed 6 time(s)
[0908/132937.833:ERROR:gpu_process_host.cc(955)] GPU process launch failed: error_code=18
[0908/132937.834:WARNING:gpu_process_host.cc(1274)] The GPU process has crashed 7 time(s)
[0908/132937.950:ERROR:gpu_process_host.cc(955)] GPU process launch failed: error_code=18
[0908/132937.950:WARNING:gpu_process_host.cc(1274)] The GPU process has crashed 8 time(s)
[0908/132938.125:ERROR:gpu_process_host.cc(955)] GPU process launch failed: error_code=18
[0908/132938.126:WARNING:gpu_process_host.cc(1274)] The GPU process has crashed 9 time(s)
[0908/132938.126:FATAL:gpu_data_manager_impl_private.cc(414)] GPU process isn't usable. Goodbye.
I'm using the latest build available at
https://cef-builds.spotifycdn.com/index.html#windows64, which appears to be cef_binary_93.1.11+g9e254fa+chromium-93.0.4577.63_windows64
I feel like you're gonna be tempted to blow me off until I get cefclient to work on my PC, but let's be real, this problem with the GPU process is related to rendering the page it has nothing to do with processing keyboard events, this crash with cefclient proves nothing related to the problem I'm having, so let's stay on topic. I think the question we should be asking is 'how are native keyboard events from the windows event loop sent to a browser created with CefWindowInfo::SetAsChild' because this appears to simply be a matter of bypassing the security feature mentioned on MDN, which is very likely the culprit of this problem from the behavior I have observed, and creating a browser with CefWindowInfo::SetAsChild doesn't block text field input and browser shortcuts so the solution to this problem is as simple as finding how keyboard events are handled on a browser created with CefWindowInfo::SetAsChild and using that mechanism instead of CefBrowserHost::SendKeyEvent.