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
- 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.
- Open
server.logwithexplorer %LOCALAPPDATA%\Ollamaand read the lines directly before “exit status”. Messages likeGGML_ASSERT,wrong shape,wrong number of tensors, orout of memoryreveal the real cause. You can get more details by quitting the app and startingollama servein PowerShell with$env:OLLAMA_DEBUG="1"; ollama serve. - 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. - If you previously increased
num_ctxornum_thread, undo the change or try a model with fewer parameters. - 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.
- AMD graphics card: If you set
HSA_OVERRIDE_GFX_VERSIONor similar variables, check whether the value matches your card, or remove them for testing. - 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:
- Your own ChatGPT with Ollama and Open WebUI
Run a language model locally on Windows - with the Ollama app, suitable models for 8 to 24 GB, context length, command line, and Open WebUI…
Terms for this
Similar errors
- Open WebUI: Ollama: 500, message='Internal Server Error' (Ollama reached, but model cannot respond)
- Ollama: registry.ollama.ai/library/… does not support tools (model cannot do tool/function calling)
- Model forgets the beginning or ignores long texts (context length too small)
- Ollama: digest mismatch, file must be downloaded again (downloaded model file does not match the checksum)
- Ollama: POST predict … /completion: EOF / wsarecv: An existing connection was forcibly closed by the remote host (model process crashed in the middle of the response)
Sources
- https://github.com/ollama/ollama/issues/4572
- https://github.com/ollama/ollama/issues/8770
- https://github.com/ollama/ollama/issues/4675
- https://docs.ollama.com/troubleshooting
Checked on Oct 27, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.