Intel i9-12900K crashes with 0xC000001D illegal instruction when launching a game #216

Closed
opened 2026-11-26 04:15:46 +00:00 by github-bot · 3 comments
Owner

@⁠tactileteamrob on GitHub · 2026-11-23 21:10 UTC · original

i didnt know how to word it soo yes i used chatgpt....

Intel i9-12900K crashes with 0xC000001D illegal instruction when launching a game

XCL Version

v0.1.0-mod.6

System Specifications

CPU: Intel Core i9-12900K

GPU: NVIDIA GeForce RTX 5070

RAM: 32GB DDR4

OS: Windows 11 25H2

Problem Description

When launching the game through XCL, it initially starts loading and eventually displays a purple background. The game's startup voice narration also plays, but it is extremely stuttery. After remaining on this screen briefly, the game crashes and closes.

Crash Details

The XCL log reports:

Exception: 0xC000001D (Illegal Instruction)

Executable: game_scarlett_master.exe

Crash offset: +0x2e7ff1

Instruction bytes: F2 0F 78 C1

The same crash occurs consistently at the same executable offset, even though the time before the crash varies.

Troubleshooting Already Attempted

Enabled automatic Windows virtual memory management.

Increased available memory by adjusting virtual memory settings.

Confirmed that the system has 32GB of RAM.

Retested after memory usage improved, but the same crash persisted.

Question

Could this be an unsupported CPU instruction, specifically AMD SSE4a EXTRQ, that is not being emulated by XCL on Intel processors?

Is there a workaround or a possible fix for this instruction compatibility issue?

I provided the complete XCL logs and crash report for further investigation.

report.json
xcl.log

**@⁠tactileteamrob** on GitHub · 2026-11-23 21:10 UTC · [original](https://github.com/xcl-dev/xcl/issues/216) *i didnt know how to word it soo yes i used chatgpt*.... Intel i9-12900K crashes with 0xC000001D illegal instruction when launching a game XCL Version v0.1.0-mod.6 System Specifications CPU: Intel Core i9-12900K GPU: NVIDIA GeForce RTX 5070 RAM: 32GB DDR4 OS: Windows 11 25H2 Problem Description When launching the game through XCL, it initially starts loading and eventually displays a purple background. The game's startup voice narration also plays, but it is extremely stuttery. After remaining on this screen briefly, the game crashes and closes. Crash Details The XCL log reports: Exception: 0xC000001D (Illegal Instruction) Executable: game_scarlett_master.exe Crash offset: +0x2e7ff1 Instruction bytes: F2 0F 78 C1 The same crash occurs consistently at the same executable offset, even though the time before the crash varies. Troubleshooting Already Attempted Enabled automatic Windows virtual memory management. Increased available memory by adjusting virtual memory settings. Confirmed that the system has 32GB of RAM. Retested after memory usage improved, but the same crash persisted. Question Could this be an unsupported CPU instruction, specifically AMD SSE4a EXTRQ, that is not being emulated by XCL on Intel processors? Is there a workaround or a possible fix for this instruction compatibility issue? I provided the complete XCL logs and crash report for further investigation. [report.json](https://github.com/user-attachments/files/35299413/report.json) [xcl.log](https://github.com/user-attachments/files/35299412/xcl.log)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:15:46 +00:00
Author
Owner

@⁠Kalmarv on GitHub · 2026-11-23 21:13 UTC · original

Yes: F2 0F 78 C1 is AMD's SSE4a INSERTQ xmm0, xmm1, imm8, imm8. Zen 2 (the console's CPU) has it, and no Intel CPU does. #151 (merged) emulates the other console-only instructions but not SSE4a. Open PR #209 emulates INSERTQ and EXTRQ, and its test decodes exactly these bytes (F2 0F 78 C1 10 10, insertq xmm0, xmm1, 16, 16).

If you can build #209's branch and run the game with it, a reply on #209 saying whether the crash at +0x2e7ff1 is gone (or a new illegal-instruction line with other bytes appears) would tell the maintainer what he needs.

AI use: Claude Code, Claude Opus 5.5. Decoded from the bytes in your report and #209's diff; not run on an Intel CPU.

**@⁠Kalmarv** on GitHub · 2026-11-23 21:13 UTC · [original](https://github.com/xcl-dev/xcl/issues/216#issuecomment-7114162363) Yes: `F2 0F 78 C1` is AMD's SSE4a `INSERTQ xmm0, xmm1, imm8, imm8`. Zen 2 (the console's CPU) has it, and no Intel CPU does. #151 (merged) emulates the other console-only instructions but not SSE4a. Open PR #209 emulates `INSERTQ` and `EXTRQ`, and its test decodes exactly these bytes (`F2 0F 78 C1 10 10`, `insertq xmm0, xmm1, 16, 16`). If you can build #209's branch and run the game with it, a reply on #209 saying whether the crash at `+0x2e7ff1` is gone (or a new illegal-instruction line with other bytes appears) would tell the maintainer what he needs. AI use: Claude Code, Claude Opus 5.5. Decoded from the bytes in your report and #209's diff; not run on an Intel CPU.
Author
Owner

@⁠ivall on GitHub · 2026-11-23 21:14 UTC · original

Thanks for the report - F2 0F 78 C1 is SSE4a's INSERTQ, an AMD-only instruction the console's Zen 2 has and Intel CPUs lack; #151 covered CLZERO / MONITORX / MWAITX / RDPRU / RDPID / CLWB but not SSE4a. Fixed on main in 0cd0a53: EXTRQ and INSERTQ (both the immediate and the register forms) are emulated in the exception handler. Note that v0.1.0-mod.6 is a fork's build (theaustinayers/xcl), not this repository's - please build current main (or wait for that fork to pick the commit up) and reopen if it still happens. An instruction emulated through an exception is slow, so if this one sits in a hot loop (the stuttery voice you describe may be that), the log line "Insertq ... emulated" will say where.

**@⁠ivall** on GitHub · 2026-11-23 21:14 UTC · [original](https://github.com/xcl-dev/xcl/issues/216#issuecomment-7114201163) Thanks for the report - `F2 0F 78 C1` is SSE4a's INSERTQ, an AMD-only instruction the console's Zen 2 has and Intel CPUs lack; #151 covered CLZERO / MONITORX / MWAITX / RDPRU / RDPID / CLWB but not SSE4a. Fixed on main in 0cd0a53: EXTRQ and INSERTQ (both the immediate and the register forms) are emulated in the exception handler. Note that v0.1.0-mod.6 is a fork's build (theaustinayers/xcl), not this repository's - please build current main (or wait for that fork to pick the commit up) and reopen if it still happens. An instruction emulated through an exception is slow, so if this one sits in a hot loop (the stuttery voice you describe may be that), the log line "Insertq ... emulated" will say where.
Author
Owner

@⁠Kalmarv on GitHub · 2026-11-23 21:19 UTC · original · edited 2026-11-23 21:22 UTC

af20b4b matches native SSE4a on a Ryzen 9 9950X (Zen 5) in all 73,773 cases tried (both forms, every length and index, upper quadword, prefix and REX edge cases). One leftover outside SSE4a, CLZERO with a 0x67 prefix using RAX instead of EAX, is fixed in #227.

AI use: Claude Code, Claude Opus 5.5

**@⁠Kalmarv** on GitHub · 2026-11-23 21:19 UTC · [original](https://github.com/xcl-dev/xcl/issues/216#issuecomment-7114304820) · edited 2026-11-23 21:22 UTC af20b4b matches native SSE4a on a Ryzen 9 9950X (Zen 5) in all 73,773 cases tried (both forms, every length and index, upper quadword, prefix and REX edge cases). One leftover outside SSE4a, CLZERO with a 0x67 prefix using RAX instead of EAX, is fixed in #227. AI use: Claude Code, Claude Opus 5.5
This discussion has been locked. Commenting is limited to contributors.
No description provided.