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

Closed
opened 2026-11-23 21:10:44 +00:00 by tactileteamrob · 3 comments
tactileteamrob commented 2026-11-23 21:10:44 +00:00 (Migrated from github.com)
Contributor

Imported from ivall/xcl. Originally posted by tactileteamrob on 2026-11-23T21:10:44Z.


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

<!-- greyfinch-sync:ivall/xcl:issue:6568908584 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/216). Originally posted by [tactileteamrob](https://github.com/tactileteamrob) on 2026-11-23T21:10:44Z. --- *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)
Kalmarv commented 2026-11-24 07:04:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-23T21:13:02Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7114162363 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/issues/216#issuecomment-7114162363). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-11-23T21:13:02Z. --- 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.
ivall commented 2026-11-24 07:04:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by ivall on 2026-11-23T21:14:46Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7114201163 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/issues/216#issuecomment-7114201163). Originally posted by [ivall](https://github.com/ivall) on 2026-11-23T21:14:46Z. --- 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.
Kalmarv commented 2026-11-24 07:04:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-23T21:19:23Z.


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

<!-- greyfinch-sync:ivall/xcl:comment:7114304820 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/issues/216#issuecomment-7114304820). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-11-23T21:19:23Z. --- 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
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl#213
No description provided.