mayocream/koharu

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

已关闭

#754 创建于 2026年6月4日

 (2 条评论) (0 个反应) (0 位负责人)Rust (257 个派生)github user discovery
amdhelp wantedzluda

仓库指标

星标
 (4,568 个星标)
PR 合并指标
 (平均合并 5天 11小时) (30 天内合并 15 个 PR)

描述

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

贡献者指南