[GH-ISSUE #15059] Crash on Windows: Exception 0xc0000005 in MLX during startup #9665

Closed
opened 2026-04-12 22:33:19 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @Picutz on GitHub (Mar 25, 2026).
Original GitHub issue: https://github.com/ollama/ollama/issues/15059

What is the issue?

Description

Ollama crashes immediately on startup (or when running any command like ollama --version) with an access violation error (0xc0000005). The crash appears to originate from the MLX image generation module.

This prevents the application from starting at all.

Steps to Reproduce

  • Install Ollama on Windows

  • Run: ollama or ollama --version

  • Observe crash

Actual Behavior

Immediate crash with the following error:
`Exception 0xc0000005 0x8 0x7fff05cecb12 0x7fff05cecb12
PC=0x7fff05cecb12
signal arrived during external code execution

runtime.cgocall(...)
github.com/ollama/ollama/x/imagegen/mlx._Cfunc_mlx_random_key(...)
github.com/ollama/ollama/x/imagegen/mlx.RandomKey(...)
...`

Environment
OS: Windows 10 (22H2)
CPU: I7-14700KF
GPU: AMD RX 9070 XT

Relevant log output


OS

Windows

GPU

AMD

CPU

Intel

Ollama version

No response

Originally created by @Picutz on GitHub (Mar 25, 2026). Original GitHub issue: https://github.com/ollama/ollama/issues/15059 ### What is the issue? **Description** Ollama crashes immediately on startup (or when running any command like ollama --version) with an access violation error (0xc0000005). The crash appears to originate from the MLX image generation module. This prevents the application from starting at all. **Steps to Reproduce** - Install Ollama on Windows - Run: ollama or ollama --version - Observe crash **Actual Behavior** Immediate crash with the following error: `Exception 0xc0000005 0x8 0x7fff05cecb12 0x7fff05cecb12 PC=0x7fff05cecb12 signal arrived during external code execution runtime.cgocall(...) github.com/ollama/ollama/x/imagegen/mlx._Cfunc_mlx_random_key(...) github.com/ollama/ollama/x/imagegen/mlx.RandomKey(...) ...` **Environment** OS: Windows 10 (22H2) CPU: I7-14700KF GPU: AMD RX 9070 XT ### Relevant log output ```shell ``` ### OS Windows ### GPU AMD ### CPU Intel ### Ollama version _No response_
GiteaMirror added the bug label 2026-04-12 22:33:19 -05:00
Author
Owner

@Picutz commented on GitHub (Mar 25, 2026):

Image
<!-- gh-comment-id:4128801158 --> @Picutz commented on GitHub (Mar 25, 2026): <img width="1659" height="929" alt="Image" src="https://github.com/user-attachments/assets/75ac47ac-c2c1-43f0-bf85-3ea19d3eb9ec" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#9665