mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2781] [BUG] Engine crashes with 0xC0000005 in hipModuleLoad on first request — AMD RX 9070 XT (gfx1201) on Windows, Strata 0.1.44.1 #1116
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#1116
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 @jx839842046 on GitHub (Oct 16, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2781
Summary
On Windows + AMD Radeon RX 9070 XT (gfx1201), the engine starts cleanly to
session is upbut crashes on the first user request with an access violation (0xC0000005) insideamdhip64_7.dll→libtensilelite-host.dll→libhipblaslt.dll hipblasLtMatmul→rocblas_gemm_ex. The crash is at thehipModuleLoadboundary on every code-object load — not specific to one kernel. The bundled ROCm (engine/amdhip64_7.dll,engine/rocm/bin/*) appears to have a Windows + gfx1201 incompatibility in the hipBLASLt / TensileLite path.Environment
qwen3.8-flash-next-iq2_xs(the recommended--family qwen --model IQ2_XSon 48 GB RAM)0.1.44.1(latest onmainat the time of this report;MIN_ENGINE = (0, 1, 44, 1))32.0.31036.15— AMD Software: PRO Edition 26.Q3 (released 2026-08-12). This is the latest PRO Edition for this card; the consumer Adrenalin 26.9.2 (Optional) is also available but I have not installed it.AMD Radeon(TM) Graphics(gfx1036, the Ryzen APU) — not used by Strata (it's not in the engine's gfx list);engine/strata-device.exe --list-devicescorrectly picks GPU 0 (9070 XT).Repro steps
START-HERE.bat --yes --family qwen --model IQ2_XS --no-start.run-iq2_xs.bat. Engine starts, reachessession is up (engine 0.1.44.1).http://127.0.0.1:8080) and send any message (e.g. "hello").the engine stopped unexpectedly (exit code 3221225477)(= 0xC0000005 in signed form).Crash stack (verbatim, from
strata-iq2_xs.log)The crash consistently appears at the
hipModuleLoad → TensileLite → hipBLASLt → rocBLASboundary. Last full stack:The same stack appeared earlier as
hipModuleUnload failed: unspecified launch failure+Exception Code: 0xC00000FD(stack overflow) — that's the same path beforeROCBLAS_WORKSPACE_STACK_SIZEwas raised; the underlying fault is inhipModuleLoad, not in stack exhaustion. Once the rocBLAS worker threads had enough stack, the crash turned into the clean 0xC0000005 inhipModuleLoaditself.Engine output before crash
The engine always reaches "VRAM free with everything loaded" then dies before the first prefill. Speed numbers are reachable only via the first request of an engine instance — i.e. never, in practice.
Things I tried (none helped)
Removed the
--control-vector-scaled ... --cvec-mode projectlines fromstrata-iq2_xs.json(no longer needs thedata/Huihui-Qwen3.8-Flash-Next-refusal-direction-r.ggufsteering vector). Same crash, different stack frame ordering but samehipModuleLoadtop.Reduced
--max-contextfrom 131072 to 32768. Same crash.Set
ROCBLAS_WORKSPACE_STACK_SIZE=33554432andHIPBLASLT_WORKSPACE_STACK_SIZE=33554432in the config's"env"field (passed throughserve/server.py:child_env→strata.exe). The earlierException Code: 0xC00000FD(STATUS_STACK_OVERFLOW) disappeared and became the0xC0000005you see above. So the rocBLAS stack fix does work; the remaining crash is insidehipModuleLoaditself.Set
STRATA_GFX12_DEFAULTS=0in"env"— confirmed byarch_defaults.cppreadinggetenv("STRATA_GFX12_DEFAULTS")(engine no longer prints the"5 exact speed switches on by default"line). The fiveSTRATA_GDN_*/STRATA_CVEC_FUSEdefaults are now off. No effect on the crash.Set
STRATA_WDDM_BUDGET=0. No effect on the crash (used ~11 GiB of expert cache regardless).Verified
engine/strata-device.exe --list-devicessees the card correctly:(device 1 is the integrated gfx1036 APU which the bundled ROCm was not built for, as expected — Strata picks device 0 only.)
Side observations
expert arena: large pages refused for 35456548864 B (GetLargePageMinimum=2097152, VirtualAlloc error 1450); using 4 KB pages— the bundled ROCm explicitly falls back to 4 KB pages on Windows. This may contribute to the code-object load path being exercised on every request (no in-RAM code cache shared across invocations?).engine/rocm/bin/*does deep template instantiation inrocblas_internal_gemm_grouped_batched_ex_template<H>which on Windows + gfx1201 is right at the limit of the 8 MiB default thread stack. Even withROCBLAS_WORKSPACE_STACK_SIZEraised, the launch eventually falls over insidehipModuleLoad.STRATA_GFX12_DEFAULTS=0, the crash surfaced asprefill mmq: iota: unspecified launch failure(a different failure point but in the same launch family) — toggling the gfx12 defaults moves the failure around but does not eliminate it.Suggestion
The bundled ROCm (
engine/rocm/bin/*,engine/amdhip64_7.dll,libtensilelite-host.dll,libhipblaslt.dll,rocblas.dll,hipblas.dll) on Windows appears not to be combined with a shipped code-object cache (the equivalent of~/.cache/hipblaslton Linux). On Windows + gfx1201 this means every first request of every engine instance triggers a freshhipModuleLoad→ TensileLite JIT path. If there is an opt-in env var to disable hipBLASLt and force a non-JIT path on Windows, or to keep the code-object cache warm across requests, that may be the fix.Files / logs
E:\AI\Strata\strata-iq2_xs.log— approximately 1840 lines, multiple crashes; the last crash block ends at the line before the next[strata] ... engine started:.E:\AI\Strata\strata-iq2_xs.jsonandE:\AI\Strata\run-iq2_xs.bat— the config I ran.strata-iq2_xs.log
strata-iq2_xs.json
Environment summary one-liner
Win10 64-bit · AMD Radeon RX 9070 XT · 32.0.31036.15 (PRO 26.Q3) · Strata 0.1.44.1 · Qwen3.8-Flash-Next IQ2_XS · crash in hipModuleLoad on first request@nghia1930mmm-cmd commented on GitHub (Oct 16, 2026):
Setup PG quyết chiến tiền thưởng chơi là thắng cỗng Llwin.com
@tomsun66-star commented on GitHub (Oct 16, 2026):
Check if your GPU works properly under windows, unfortunately the last windows update destroyed the RDNA4 support, even a DDU and a fresh install of the AMD Driver set and preventing windows from touching the GPU drivers doesn't work, make a test with a Linux install it works perfectly , as far as i know it is not a STRATA issue.
@jx839842046 commented on GitHub (Oct 16, 2026):
Hi @tomsun66-star, thanks a lot for the diagnosis.
My GPU works properly under windows.
Your observation matches what I'm seeing here exactly: the same engine binary boots fine to session is up on my machine, but the first request blows up inside hipModuleLoad on amdhip64_7.dll. The fact that you can reproduce this on a clean DDU install and that Linux runs perfectly on the same card strongly points at the recent Windows / RDNA4 driver regression rather than Strata itself.
I'm leaving the issue open for now in case the maintainers want to add a note to docs/AMD_HIP.md or docs/INSTALL.md (something along the lines of "Windows + RDNA4 is currently broken until AMD ships a fixed driver — Linux is the working path"). That would save the next person with a 9070 XT a few hours of digging.
Appreciate you taking the time to chime in.
@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.