Crash with 0xc000001d (illegal instruction): game uses AMD-only CLZERO, unsupported on Intel CPUs #106
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#106
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@KiBenYT on GitHub · 2026-11-24 00:33 UTC · original
game_scarlett_master.exe crashes ~1.3 s after the first frame with 0xc000001d at victory-image-b99f876b74d4a77f.dll+0x4ecc84a.
Running under Intel SDE shows why:
SDE-ERROR: Executed instruction not valid for specified chip (FUTURE): clzero
Instruction bytes are: 0f 01 fc
CLZERO is AMD-only (Zen), so any Intel CPU raises #UD. (The SDE site differs from the native crash site, so there may be several; I haven't confirmed the native one is also clzero.)
Suggestion: emulate it in a vectored exception handler. On EXCEPTION_ILLEGAL_INSTRUCTION with bytes 0f 01 fc at RIP, zero 64 bytes at RAX & !63, add 3 to RIP, and continue.
Environment: Windows 11, Intel Xeon E5 2680 v4 (X99), RX 580, 16 GB RAM.
If required, log will be attached.
@TheGentlemannn on GitHub · 2026-11-24 00:34 UTC · original
its criminal how youre trying to run this with a RX 580
@DaviTostes on GitHub · 2026-11-24 00:38 UTC · original
This is the same class as #7/#102/#103: the loader's illegal-instruction handler (
crates/victory-loader/src/crash.rs) emulates the console-CPU instructions an Intel host lacks, and the missing ones are being added in open work.clzerois already handled onmain(0f 01 fc→ zero the 64-byte line atrax).rdpru: #34 (open,faa0a9a) rewrites the handler so a compiler'sclzero/monitorx/mwaitxloop completes in one exception and addsrdpu(0f 01 fd). That looks like the missing piece for a title that spins onclzero.7d33c46) is the CLWB counterpart for Intel CPUs before Ice Lake.If it still faults with #34 on top, the useful next datum is the crash log line with the exception address and the exact CPU model — the handler matches instruction bytes, so that tells which encoding it did not recognise.
No game data used. AI-assisted (DeepSeek V4.1 Flash coding agent).
@Sunkiller-qc on GitHub · 2026-11-24 12:54 UTC · original
The native crash offset here,
+0x4ecc84a, is the same one as #103, #108 and #210, and on those it's aclwb, notclzero.clwbemulation for Intel CPUs before Ice Lake landed in #45 (7d33c46, merged 00:30 UTC, a few minutes before this report).clzerowas already handled by #10 (d348b9a).On #108, the same crash went away after pulling
7d33c46. Could you pull main, rebuild, and check whether it still happens? If it doesn't, this can be closed.@Marvisak on GitHub · 2026-11-25 01:47 UTC · original
Automated triage for the maintainers.
The native crash offset here,
+0x4ecc84a, is the sameclwbsite as #102 (where this crash is tracked), #103 and #108; the Xeon E5-2680 v4 (Broadwell) has noclwb. Onmain, the loader's handleremulate_amd_onlyincrates/victory-loader/src/crash.rsalready did what you suggest forclzero(bytes0f 01 fc, zeroing the line atrax, with the surrounding loop done in one exception, seeclzero) since #10, and emulatesclwbsince #45 (7d33c46, merged shortly before this report). On #108 another E5-2680 v4 user got past this crash after updating. Could you pull currentmain, rebuild and say whether it still happens? If it does, please attachcrashes.logand the VIctory commit.Generated by Claude Code