-
Notifications
You must be signed in to change notification settings - Fork 470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GPU process crashes inside of gl::CreateWindowsOnThread #3765
Comments
How does your app differ from the CEF sample apps? |
I don't know really. I've tried to find this difference which could be causing this issue and failed. The only I can say is that my app's GPU process is launched using this command line:
while the cefclient's one is launched using this one:
Maybe this is caused by |
It looks like you're running with Can you reproduce the issue in CEF sample apps using |
Closing this issue as WontFix for the following reasons:
|
No, I can't. |
The GPU process crashes on windows for some reason when we compile with MSVC but not when we compile with MinGW (maybe stdlib-related?). Happens in libcef in a call to CreateWindowsOnThread, which is being used by chrome for something directx-related. The debugger says CreateWindowEx returns NULL but that GetLastError() is ERROR_SUCCESS, suggesting something wrong with the WndProc. https://chromium.googlesource.com/chromium/src/+/refs/heads/main/ui/gl/child_window_win.cc#108 chromiumembedded/cef#3765
Hello, the CEF CAPI example project appears to be affected by this bug. This is not using the alloy bootstrap (I don't think the alloy bootstrap is an option in 129?). The crash happens in the same place mentioned by @alervd. The debugger shows that I am able to reproduce on a Windows 10 computer with an NVidia graphics card, compiling the example project under Visual Studio 2022. cefsimple does not have the same bug, nor does the CAPI example project when compiling under MinGW. Another bizarre difference between the two compilers is that only the MinGW build respects the system dark mode preference, but I don't know if that's related, since You can test this using my fork of the CAPI example project by commenting out the line in |
|
Thanks a bunch! Adding a manifest seems to have fixed the issue. I'm not sure how I would have figured that out on my own, though. Is this requirement documented somewhere? |
@amaitland Thank you! This solves issue. |
The compatibility.manifest is included as part of the CEF binary distribution and mentioned in the Tutorial. |
In my project, I've updated CEF from 3.1979 (2015 year) to the latest 127.1.5.3024 (35f74cc).
And now GPU process is crashing with the following stack trace:
So, it's crashing itself on a purpose here: https://chromium.googlesource.com/chromium/src/+/refs/heads/main/ui/gl/child_window_win.cc#108. Because
CreateWindowEx
returns NULL due to an unknown reason.I've tried to use
--use-angle
command line switch and it works fine now.Unfortunately, this issue can't be reproduced using cefclient/cefsimple projects. Maybe it's some setting inside of my app which causes CEF to behave so weirdly. Unfortunately, I was not able to find it out.
Anyway, I still do believe that it's some sort of CEF/Chromium bug. Any ideas why CreateWindowEx fails to create a window? It's very weird. Is it possible that cefclient/cefsimple projects uses some setting which avoids the use of this CreateWindowEx?
Versions (please complete the following information):
I'm using CEF Automated Builds (Standard Distribution). (https://cef-builds.spotifycdn.com/index.html).
The text was updated successfully, but these errors were encountered: