mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #468] v0.1.34 Windows AMD (discrete W7900): crash 0xC0000005 on first request — engine loads the driver's System32 amdhip64_7.dll #217
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#217
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @phntsm408 on GitHub (Oct 2, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/468
What happens
Fresh clone of v0.1.34, set up with
START-HERE.bat --setup --backend hip --low-ram on. The engine loads fine (all 24,576 experts in the GPU cache), then crashes on the very first request with exit code 3221225477 (0xC0000005). It happens every time, on every model.Cause
The crash is inside
C:\WINDOWS\SYSTEM32\amdhip64_7.dll(the AMD driver's HIP runtime, 10.0.3683.0), called from the bundledengine\rocm\bin\rocblas.dllviahipblasGemmEx. Windows' DLL search order picks the driver's System32 runtime ahead of the bundled ROCm, so the bundled rocBLAS/hipBLAS run on a mismatched HIP runtime.Stack (top):
#0 amdhip64_7.dll+0x2d874a (C:\WINDOWS\SYSTEM32)
#6 rocblas_zgemv (engine\rocm\bin\rocblas.dll)
#11 rocblas_gemm_ex
#12 hipblasGemmEx (engine\rocm\bin\hipblas.dll)
#13 strata.exe+0x1899da
Workaround (confirmed)
Copying a matching
amdhip64_7.dll(ROCm 10.2 nightly, 10.0.3686.0) intoengine\next tostrata.exemakes Windows load it instead of the System32 copy. The crash is gone and everything works.Suggested fix: ship the matching
amdhip64_7.dllnext tostrata.exe, or load it by full path (LoadLibraryExW) at startup before any ROCm library, so the driver's copy can't win.Results after the workaround (discrete-card data point)
win-hip-gfx1201branch on the same PC (about 80 tok/s, about 43 GB RAM)Also seen
Setup
1678de3)@Niko1221 commented on GitHub (Oct 2, 2026):
Thanks, and your workaround pointed straight at the cause. Windows looks for
amdhip64_7.dllin the program's folder first, then System32, and only then on PATH, which is where the zip'sengine\rocm\binis. Your AMD driver installs its ownamdhip64_7.dllin System32 (10.0.3683, the bundled one is 10.0.3686), so the engine loaded the driver's runtime under the bundled rocBLAS/hipBLAS, and that mix crashes on the first prompt.The fix is ready for the next release: setup copies
amdhip64_7.dllandamd_comgr.dllfromengine\rocm\binnext tostrata.exeon every start (so existing installs are fixed too), the zip ships them there, and the engine log names the runtime it loaded.Until then, from the Strata folder:
Please confirm it runs; we'll close this with the release.
@Niko1221 commented on GitHub (Oct 2, 2026):
Fixed in 0.1.35: setup puts the bundled
amdhip64_7.dllandamd_comgr.dllnext tostrata.exe(on every start, so your install is fixed by just running START-HERE.bat), the zip ships them there, and the engine log names the runtime it loaded (strata generate: HIP runtime ...). RunSTART-HERE.bat(Linux:./setup.sh) once to update. Please reopen if it still crashes, with that log line.