mayocream/koharu

App crashes instantly on startup with AMD RDNA 4 (RX 9070) + ROCm 7.1 due to ZLUDA crash

Chiusa

#754 aperta il 4 giu 2026

 (2 commenti) (0 reazioni) (0 assegnatari)Rust (257 fork)github user discovery
amdhelp wantedzluda

Metriche repository

Star
 (4568 stelle)
Metriche merge PR
 (Merge medio 5g 11h) (15 PR mergiate in 30 g)

Descrizione

Describe the bug

Koharu crashes instantly (closes immediately without showing the GUI or logging Rust panics) when launched on a system with the new AMD RX 9070 (RDNA 4) and HIP SDK 7.1.

The issue is caused by the bundled ZLUDA version attempting to initialize the CUDA context on an unsupported driver (ROCm 7.1), resulting in a fatal Access Violation (0xc0000005) deep inside the AMD/ZLUDA JIT compiler.

Workaround Found

Since the crash happens before Rust can catch it (Hard Crash in C/C++ libraries), the app just dies. I had to manually compile a custom build of Koharu setting false in zluda.rs package_enabled function and enabling CPU multithreading (RAYON_NUM_THREADS="16") to make the app usable.

Feature Request

Please implement a hardware/driver check before blindly injecting ZLUDA. If hipInfo detects an RDNA 4 card (gfx12xx) or ROCm 7+, Koharu should automatically fallback to the CPU backend instead of attempting to load ZLUDA and crashing the entire application.

Bonus

Reported issue to ZLUDA https://github.com/vosen/ZLUDA/issues/646

Environment

  • OS: Windows 11
  • Koharu Version: 0.59.2
  • GPU: AMD Radeon RX 9070 16GB

Guida contributor