mayocream/koharu

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

クローズ

#754 opened on 2026/06/04

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)Rust (257 件のフォーク)github user discovery
amdhelp wantedzluda

Repository metrics

Stars
 (4,568 個のスター)
PR merge metrics
 (平均マージ 5d 11h) (30d で 15 merged PRs)

説明

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

コントリビューターガイド