Free | No tracking | Every fact with a source|German and English

Error / Models and files

Ollama: llama runner process has terminated: exit status 0xc0000409 (model process crashed)

The process that computes the model crashed while loading or replying, and Ollama only shows the exit code.

The message

Error: llama runner process has terminated: exit status 0xc0000409

Affects: Ollama

Why is this happening?

Ollama starts a separate compute process (runner) for each model. If it crashes, you only see an exit code like 0xc0000409, 0xc0000005, or 2. According to the Ollama developers, 0xc0000409 can mean many different causes; the real reason is in the server log. Common causes are that Ollama is too old for the model, a self-converted GGUF file is faulty, memory is not enough after increasing the context, or on Windows the Visual C++ runtime is missing.

How to fix it

  1. Update Ollama: right-click the taskbar icon and choose “Restart to update,” or install the latest version from ollama.com. Many of these crashes were fixed in newer versions.
  2. Open server.log with explorer %LOCALAPPDATA%\Ollama and read the lines directly before “exit status”. Messages like GGML_ASSERT, wrong shape, wrong number of tensors, or out of memory reveal the real cause. You can get more details by quitting the app and starting ollama serve in PowerShell with $env:OLLAMA_DEBUG="1"; ollama serve.
  3. Test with a small model, for example ollama run gemma3:1b. If that works, the problem is the large model or your settings, not Ollama itself.
  4. If you previously increased num_ctx or num_thread, undo the change or try a model with fewer parameters.
  5. Windows: Install the current Microsoft Visual C++ Redistributable (x64) and restart the PC. If that does not help, uninstall and reinstall Ollama; you do not have to delete the models for that.
  6. AMD graphics card: If you set HSA_OVERRIDE_GFX_VERSION or similar variables, check whether the value matches your card, or remove them for testing.
  7. If only a self-imported model crashes (your own GGUF file via Modelfile), the conversion is probably faulty. Use a ready-made version from the Ollama library or from Hugging Face.

Better not: Do not rely on the exit code alone: the same code stands for very different problems; the decisive clue is the line before it in server.log.

Set up from scratch again

If it still doesn’t work after that, a fresh setup step by step often helps:

Terms for this

Similar errors

Sources

Checked on Oct 27, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.