Quick answer: Exception code 0xc000001d is STATUS_ILLEGAL_INSTRUCTION: the processor reached an opcode it does not implement. In a game that almost always means code compiled for AVX, AVX2, FMA or SSE4.2 running on a CPU without it, from your own compiler flags or a third-party library. Confirm it by disassembling the instruction at the fault offset, then build for a documented baseline, select faster paths at run time, and check the CPU at startup so unsupported machines get a message.

The crash reports all look alike: same module, same offset, exception code 0xc000001d, and every affected player turns out to own an older or budget processor. The game runs on everything in your office. This is the signature of a CPU feature mismatch: somewhere in the build there is an instruction the player’s processor has never heard of. It is also one of the few crashes you can eliminate completely once you find where the instruction came from. Below: how to confirm the diagnosis from a single report, which part of the build is responsible, and the three fixes that together make sure no player ever sees this code.

The exact error

In Event Viewer > Windows Logs > Application, as an Application Error (event ID 1000):

Faulting application name: MyGame.exe, version: 1.4.0.0, time stamp: 0x6712c9e4
Faulting module name: PhysicsLib.dll, version: 3.1.0.0, time stamp: 0x66a0b7f1
Exception code: 0xc000001d
Fault offset: 0x000000000003c41a

The same condition on the other desktop platforms:

Linux:   Illegal instruction (core dumped)
macOS:   EXC_BAD_INSTRUCTION (SIGILL)

0xc000001d is the NTSTATUS value STATUS_ILLEGAL_INSTRUCTION. The CPU decoded the bytes at the instruction pointer, found no instruction it implements, and raised an invalid-opcode fault that nothing handled. Depending on where the instruction sits, the game dies before the first frame, or hours in, the first time one particular code path runs.

Which processors lack what

FeatureFirst available inCommon CPUs without it
SSE4.2Intel Core i series (Nehalem, 2008), AMD FX (2011)Core 2, AMD Phenom II and Athlon II
AVXIntel Sandy Bridge (2011), AMD FX (2011)First-generation Core i3/i5/i7, Phenom II, many Pentium and Celeron models, Atom-class chips
AVX2, FMA, BMI2Intel Haswell (2013), AMD Excavator (2015) and Ryzen (2017)Sandy Bridge and Ivy Bridge Core chips, AMD FX, everything in the rows above
AVX-512Some Intel server and desktop lines, AMD Zen 4Most consumer CPUs, including recent Intel Core generations

Two things in that table catch people out. Intel sold Pentium and Celeron processors without AVX for many years after its Core chips had it, and its low-power Atom-derived chips (found in cheap laptops and mini PCs) lacked it too, so “a PC from 2019” proves nothing. And a virtual machine shows the guest whatever CPU model it was configured with: a generic model such as QEMU’s qemu64 exposes roughly the original x86-64 feature set, without SSE4 or AVX, whatever the host has.

Where the instruction comes from

  1. Your compiler flags. /arch:AVX2 in MSVC, -mavx2 or -march=haswell in GCC and Clang. The classic mistake is -march=native, which targets the build machine’s CPU and bakes its feature set into every function.
  2. A prebuilt third-party library. Physics, audio, video codecs and machine-learning runtimes are often built with AVX or AVX2 for speed. TensorFlow’s official binaries, for example, have required AVX since version 1.6. A vendor’s “optimised” build of a library can have a higher floor than the engine around it.
  3. The engine’s own minimum. Unreal Engine 5 requires SSE4.2. Godot’s current documentation (4.7) lists an x86_64 CPU with SSE4.2 as the minimum for exported projects, where the 4.4 documentation listed any x86_64 CPU. Unity’s player requires only SSE2. These change between versions, so read the requirements page for the version you ship.
  4. Unity Burst targets. Burst compiles a separate copy of your jobs for each instruction set ticked under Edit > Project Settings > Burst AOT Settings > Target 64Bit CPU Architectures and picks one at run time. If SSE2 is unticked and only AVX2 remains, there is no fallback.
  5. Intrinsics without a check. MSVC lets you call _mm256_* intrinsics in a file compiled without any /arch option. It builds, and it executes AVX on every machine.
  6. Not a CPU feature at all. Execution can land on garbage after stack corruption or a call through a bad function pointer, and Clang emits the deliberately invalid ud2 instruction for __builtin_trap(). Suspect these when the affected players have modern CPUs or the offsets are scattered.

One trap in the other direction: some newer instructions do not fault on old CPUs. LZCNT and TZCNT decode as the older BSR and BSF there and return different results, so a missing check shows up as wrong behaviour, with no crash to point at it.

How to confirm it

Check the CPU. Ask for the processor model, which is on the first page of a DxDiag report, and look it up on the manufacturer’s specification page. If three reporters have a Phenom II, a first-generation Core i5 and a Pentium, you are nearly done.

Look at the instruction. With a minidump (see collecting dumps with WER LocalDumps), open it in WinDbg and disassemble at the fault:

.ecxr
u @rip L1

PhysicsLib!SolveContacts+0x4a:
00007ffb`2a13c41a c5fc28442420    vmovaps ymm0,ymmword ptr [rsp+20h]

A mnemonic starting with v and a ymm register is AVX or AVX2. Without a dump, the module and offset from Event Viewer are enough if you have the same build: open the shipped DLL with windbg -z PhysicsLib.dll and run u PhysicsLib+0x3c41a L1.

Survey the build. To see which of your binaries contain 256-bit code at all, from a Developer Command Prompt:

for %f in (*.exe *.dll) do @(dumpbin /disasm "%f" | findstr /i /c:"ymm" >nul && echo %f uses AVX registers)

A hit is not proof of a bug, since a well-behaved library guards those paths with a CPU check, but it tells you which files to ask the vendor about.

Fix 1: choose a baseline and build everything to it

Decide the oldest CPU you support and write it down. Then make every component agree.

Fix 2: select fast paths at run time

You do not have to give up AVX2 where it pays. Compile the hot function twice, in separate source files with different flags, and choose once at startup:

#include <intrin.h>
#include <immintrin.h>

static bool CpuHasAvx2()
{
    int r[4];
    __cpuid(r, 0);
    if (r[0] < 7) return false;

    __cpuid(r, 1);
    const bool osxsave = (r[2] & (1 << 27)) != 0;
    const bool avx     = (r[2] & (1 << 28)) != 0;
    if (!osxsave || !avx) return false;

    // The OS must have enabled XMM and YMM state (XCR0 bits 1 and 2).
    if ((_xgetbv(0) & 0x6) != 0x6) return false;

    __cpuidex(r, 7, 0);
    return (r[1] & (1 << 5)) != 0;      // EBX bit 5 = AVX2
}

using MixFn = void (*)(float* out, const float* in, int count);
MixFn g_mix = CpuHasAvx2() ? Mix_AVX2 : Mix_SSE2;

SSE4.2 is ECX bit 20 and POPCNT is ECX bit 23 of leaf 1. The Windows call IsProcessorFeaturePresent(PF_AVX2_INSTRUCTIONS_AVAILABLE) does the same job in one line, but that constant is only supported from Windows 10 version 2004; on older systems it returns zero even when the CPU has AVX2, so the fast path is never taken. On GCC and Clang, __builtin_cpu_supports("avx2") is the equivalent, and on Linux __attribute__((target_clones("avx2", "default"))) generates both versions and the dispatcher for you.

In Unity, Burst already does this for Burst-compiled code. Inside a Burst job you can also branch on Unity.Burst.Intrinsics.X86.Avx2.IsAvx2Supported, which is evaluated per compiled target.

Fix 3: check at startup and say so

If your baseline is above SSE2, some players will be below it. Detect that before anything else runs and tell them:

int WINAPI wWinMain(HINSTANCE, HINSTANCE, PWSTR, int)
{
    if (!CpuHasAvx2()) {
        MessageBoxW(nullptr,
            L"This game requires a processor with AVX2 "
            L"(Intel Core 4th generation, AMD Ryzen, or newer).",
            L"Unsupported processor", MB_OK | MB_ICONERROR);
        return 1;
    }
    return RunGame();
}

The check itself must not contain the instructions it is checking for. If the whole executable is compiled with /arch:AVX2, the compiler is free to use AVX in wWinMain, in the constructors of global objects that run before it, and in anything they call. Put the check in a small launcher executable built for the baseline, or in a source file compiled without the flag in a program with no heavy global constructors. Unreal Engine 5 does this itself and shows a message that the CPU does not support a required feature.

Unity’s SystemInfo has no property for instruction sets. SystemInfo.processorType returns the model string, which is worth logging but awkward to test against. If a native plugin of yours needs AVX2, export a small HasAvx2() function from a baseline-built plugin and call it before loading the fast one.

What to tell players, and the store page

  1. Ask for the processor model (Win + R, dxdiag, the Processor line).
  2. If the CPU lacks the feature, say so plainly, with the requirement and a refund pointer. No setting, driver or Windows update adds an instruction set.
  3. If the CPU does have the feature, check that the game is not running in a virtual machine or under an emulation layer that hides it, then treat it as a different bug.

Put the requirement in the minimum specification where a buyer will read it: “Processor: requires AVX2 support (Intel Core 4th generation or AMD Ryzen)”. A model name alone (“Intel Core i5”) does not communicate it. Do you need a minimum spec? covers how to choose one.

How to confirm the fix

Run the build on a CPU without the feature. Old hardware is the honest test and costs little second-hand. Failing that, Intel’s Software Development Emulator can run a program as if on an older processor (for example sde -nhm -- MyGame.exe for Nehalem) and reports instructions that CPU would not have, and QEMU accepts a named model such as -cpu Nehalem. Exercise the paths that use the optimised code, since the crash only happens where the instruction is. The test passes when a below-baseline machine shows your message and an at-baseline machine plays through.

What Bugnet shows you about affected players

An illegal instruction is a native crash, and Bugnet does not capture native crashes as stack traces or read minidumps. What it gives you here is the one field that settles the question: every report, automatic or written by a player, carries the CPU model along with OS version, GPU, RAM and game version. When the reports attached to a crash all name processors from the right-hand column of the table above, you have the diagnosis before opening a debugger. The same field, across all your reports, tells you what raising the baseline would cost before you do it. With the Unreal SDK, fatal errors that reach the engine’s error handler are filed with the engine’s message and recent log lines. A public tracker entry titled with the exception code can state the requirement for players who search for it.

Frequently asked questions

What does exception code 0xc000001d mean?

It is STATUS_ILLEGAL_INSTRUCTION. The processor tried to execute an opcode it does not implement. In games the usual reason is code compiled for AVX, AVX2, FMA or SSE4.2 running on an older or budget CPU that lacks that instruction set.

Can a player fix an illegal instruction crash by updating drivers or Windows?

No. An instruction set is part of the processor hardware. If the CPU lacks AVX2 and the game requires it, only a build of the game with a lower baseline or a runtime fallback will run on that machine.

How do I check whether my game uses AVX?

Disassemble the instruction at the fault offset in WinDbg; a mnemonic beginning with v and a ymm register means AVX or AVX2. To survey a build, run dumpbin /disasm on each binary and search the output for ymm. Then check compiler flags and third-party libraries.

Why does the game crash only on some code paths and not at startup?

The fault happens only when the unsupported instruction is actually executed. If it lives in one optimised function, such as a physics solver or audio mixer, the game runs normally until that function is first called.

Is IsProcessorFeaturePresent enough to detect AVX2?

Only on Windows 10 version 2004 and later, where the AVX2 constant is supported. On older Windows versions it returns zero regardless of the CPU. Checking with the cpuid and xgetbv intrinsics works on every version.

Write your CPU baseline down, compile everything to it, and put the check in code that was itself compiled for the baseline. A check built with AVX2 crashes before it can report anything.