-
-
Notifications
You must be signed in to change notification settings - Fork 250
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
Silent crash on startup #1486
Comments
@hotpockette Thanks for filing a bug report. I'd like to help resolve the issue, but unfortunately I'm unable to reproduce the crash locally. Can you please create a process core dump for diagnosis and send it to me privately. You can create a dump by first applying the registry edit found in this Zip file: xemu_dump_registry_config.zip This registry edit will configure Windows to create a dump whenever xemu crashes. The dump will be stored at Then, please download and run the debug build of xemu found at: https://github.com/xemu-project/xemu/releases/download/v0.7.99/xemu-win-debug.zip |
@hotpockette Thanks for your assistance. I've investigated the crash a bit. Apparently the Control Flow Guard platform security feature is somehow mistakenly being enabled when xemu.exe is loaded, causing an eventual crash in jump buffer validation at From the crash we can see that CFG is enabled as
However, CFG is not supported for the mingw64 build of xemu and accordingly the flag which indicates CFG support is not set. At this point I suspect there is a bug with this version of Windows, not with xemu itself. On a Windows 11 Pro 22H2 22621.1992 install, I'm unable to reproduce this particular issue, and I have verified that when this function is called, As a workaround, please try creating a rule to disable Control Flow Guard security for xemu.exe specifically via Start > Windows Security > App & browser control > Exploit protection settings > Program settings > Add program to customize > By name > xemu.exe > Override system settings and disable CFG. |
I can't believe the fix was so simple-- xemu works perfectly after setting the CFG override. |
Someone reported this same problem on Discord with Win11 22H2, and the same workaround got them going. |
Bug Description
The Windows build of xemu works correctly on first boot and allows me to specify system files, but any subsequent launches will cause xemu to not respond and immediately close. The timing can sometimes vary by a few seconds, hanging on a "Guest has not initialized display (yet)" screen, but the outcome is consistent. (GIF example)
The crash also occurs with portable mode.
The log file (below, in additional context) does not specify an error message and indicates nothing out of the ordinary.
I have also provided an error report from Event Viewer.
Reproduction of issue:
1.) Launch xemu.
2.) Specify file path to BIOS, etc.
3.) Exit & restart xemu.
4.) xemu will crash.
Expected Behavior
xemu should launch after providing valid system file directories (or at least log an error upon crashing).
xemu Version
v0.7.99 - 158cc0d (latest at time of writing)
System Information
OS: Windows 11 Insider Build 23H2
CPU: 12th Gen Intel(R) Core(TM) i9-12900K
GPU: NVIDIA GeForce RTX 3080 Ti/PCIe/SSE2
GPU Driver: 4.0.0 NVIDIA 536.67
Windows & GPU drivers are both up-to-date at the time of writing.
Additional Context
xemu log file:
Event Viewer error info:
I am using the latest xemu release build at the time of writing: v0.7.99
This issue also affects all previous releases of xemu in my testing.
The only assessment I received from the #help channel of the xemu Discord server was that the crash is occurring "somewhere in the c runtime". A cursory search of the channel's message history led me to try adding windows defender & firewall exceptions to the xemu executable, but this did not work. Another suggestion was having an audio device setup, which I do have.
The text was updated successfully, but these errors were encountered: