[GH-ISSUE #4336] [Engine] Windows HIP gfx1201 (R9700): strata-device --selftest exits 0xC0000005 on engines 0.1.50 and 0.1.52; 0.1.48 passes on the same PC #1913

Closed
opened 2026-11-04 01:55:16 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @sagilen on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4336

Area
[Engine]

Desktop app, Terminal or source?
Source (START-HERE.bat checkout); the same crash comes from the Terminal's own test start during strata update.

What happened
Strata 0.2.7 on Windows 11, one AMD GPU. Engines newer than 0.1.48 die a few seconds after start with an access violation and print nothing else. No model is involved: the crash reproduces from strata-device.exe --selftest alone.

Engine strata-device --selftest Engine start
0.1.48 (6f8800aefe) exit 0, selftest OK serves Qwen IQ3_S at 262144 ctx for hours
0.1.50 (1aff6d1411) exit -1073741819 (0xC0000005) 0xC0000005 after memory guard, before the PCIe probe
0.1.52 (a42cc3d7df) exit -1073741819 (0xC0000005) same
0.1.52 prints these three lines on stderr and nothing on stdout:

代码块

strata: hipMemGetInfo failed (invalid argument); retrying once after 250 ms
strata: hipMemGetInfo retry: ok
strata: Windows budgets 30693 of this card's 32624 MiB for this process; free VRAM is counted within that (STRATA_WDDM_BUDGET=0: off)
0.1.48 on the same PC prints only the third line: it never hits the hipMemGetInfo failure.

--list-devices works on 0.1.52 (device 0: AMD Radeon AI PRO R9700 / arch gfx1201, 31.9 GiB, wave32), so enumeration is fine; the crash is in the selftest / first-kernel-launch stage, right after the retried hipMemGetInfo (the retry comes from #873).

The stderr lines and the exit code are byte-identical to #3828 (RX 6800 XT / gfx1030: 0.1.47 and 0.1.48 break there, 0.1.44.1 works). Which build breaks depends on the machine; the signature is the same.

Smallest steps or command that reproduce it
bat

set PATH=\rocm\bin;;%PATH%
cd /d
strata-device.exe --selftest
0.1.52: exit -1073741819 (0xC0000005), stdout empty, the three lines above.
0.1.48: exit 0, strata-device selftest OK.
Through Strata: strata update --no-control refuses 0.1.52 with "The new engine 0.1.52 did not start correctly on this computer, so it was not installed."

Reproduction status
Reproduced locally, deterministic (5+ selftest runs). Variants that still crash on 0.1.52: STRATA_WDDM_BUDGET=0, HIP_VISIBLE_DEVICES=0, STRATA_GFX12_DEFAULTS=0, STRATA_PLE_AUTO_RAM=0, 4096 context, vision off.

Strata version
Source checkout v0.2.7 (5e8a4cca), Terminal 0.2.7. Engine packages: strata-engine-0.1.52-windows-x86_64-hip-rx9070.tar.gz, sha256 9ae13a5146c73a2328a3db3b55b190c93b9a138cd56b1df337d942836137f19b (BUILD.json: hip / windows-x64 / rocm 10.2.0a20260930 / hipblaslt 100500 / gfx1200, gfx1201).

Graphics card, memory and system
AMD Radeon AI PRO R9700 32 GB, gfx1201, the only GPU · driver 32.0.32015.7029 · Windows 11 Pro build 26200 · Ryzen 7 5700X · 128 GiB RAM.

Model, size and settings
Qwen3.8-Flash-Next "Swift 1.5" IQ3_S abliterated, 262144 ctx, --kv int8 --kv-resident 32768, MTP, --spec 4, CPU vision, STRATA_HIPBLASLT_TUNING=tools/hip/gfx1201-hipblaslt-100500.txt. The same config runs on 0.1.48; the 0.1.52 crash is before any of it is touched.

Logs
Engine start of 0.1.52, tail (nothing follows; process exit 0xC0000005):

代码块

strata: gfx12 (RDNA4): 9 exact speed switches on by default (...): GDN_HEAD GDN_PP GDN_CONVL2 GDN_NOY CVEC_FUSE ATTN_LANECELL ATTN_MERGE_V2 TSUM EXPDEC
strata generate: memory guard: limit 127.9 GiB (source: meminfo), current 18.6 GiB, reclaimable cache credited 0.0 GiB; available 109.3 GiB (MemAvailable 109.3 GiB), floor 2560 MiB
Related
#3828 (same signature) · #873 (the hipMemGetInfo retry this build prints) · #3884, #1898, #1785 (earlier R9700 + Windows reports)

What would help
Is the first hipMemGetInfo "invalid argument" expected on Windows/WDDM, and is the crash known to sit right after the retry?
Any switch that makes the selftest take the 0.1.48 code path, to confirm the retry is the trigger and not a symptom?
If a Windows AMD build with that retry disabled can be produced, I can test it here: 0.1.48 serves this PC for hours, so the machine is otherwise clean.

Originally created by @sagilen on GitHub (Oct 27, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4336 Area [Engine] Desktop app, Terminal or source? Source (START-HERE.bat checkout); the same crash comes from the Terminal's own test start during strata update. What happened Strata 0.2.7 on Windows 11, one AMD GPU. Engines newer than 0.1.48 die a few seconds after start with an access violation and print nothing else. No model is involved: the crash reproduces from strata-device.exe --selftest alone. Engine strata-device --selftest Engine start 0.1.48 (6f8800aefe27) exit 0, selftest OK serves Qwen IQ3_S at 262144 ctx for hours 0.1.50 (1aff6d14117b) exit -1073741819 (0xC0000005) 0xC0000005 after memory guard, before the PCIe probe 0.1.52 (a42cc3d7df70) exit -1073741819 (0xC0000005) same 0.1.52 prints these three lines on stderr and nothing on stdout: 代码块 strata: hipMemGetInfo failed (invalid argument); retrying once after 250 ms strata: hipMemGetInfo retry: ok strata: Windows budgets 30693 of this card's 32624 MiB for this process; free VRAM is counted within that (STRATA_WDDM_BUDGET=0: off) 0.1.48 on the same PC prints only the third line: it never hits the hipMemGetInfo failure. --list-devices works on 0.1.52 (device 0: AMD Radeon AI PRO R9700 / arch gfx1201, 31.9 GiB, wave32), so enumeration is fine; the crash is in the selftest / first-kernel-launch stage, right after the retried hipMemGetInfo (the retry comes from #873). The stderr lines and the exit code are byte-identical to #3828 (RX 6800 XT / gfx1030: 0.1.47 and 0.1.48 break there, 0.1.44.1 works). Which build breaks depends on the machine; the signature is the same. Smallest steps or command that reproduce it bat set PATH=<engine>\rocm\bin;<engine>;%PATH% cd /d <engine> strata-device.exe --selftest 0.1.52: exit -1073741819 (0xC0000005), stdout empty, the three lines above. 0.1.48: exit 0, strata-device selftest OK. Through Strata: strata update --no-control refuses 0.1.52 with "The new engine 0.1.52 did not start correctly on this computer, so it was not installed." Reproduction status Reproduced locally, deterministic (5+ selftest runs). Variants that still crash on 0.1.52: STRATA_WDDM_BUDGET=0, HIP_VISIBLE_DEVICES=0, STRATA_GFX12_DEFAULTS=0, STRATA_PLE_AUTO_RAM=0, 4096 context, vision off. Strata version Source checkout v0.2.7 (5e8a4cca), Terminal 0.2.7. Engine packages: strata-engine-0.1.52-windows-x86_64-hip-rx9070.tar.gz, sha256 9ae13a5146c73a2328a3db3b55b190c93b9a138cd56b1df337d942836137f19b (BUILD.json: hip / windows-x64 / rocm 10.2.0a20260930 / hipblaslt 100500 / gfx1200, gfx1201). Graphics card, memory and system AMD Radeon AI PRO R9700 32 GB, gfx1201, the only GPU · driver 32.0.32015.7029 · Windows 11 Pro build 26200 · Ryzen 7 5700X · 128 GiB RAM. Model, size and settings Qwen3.8-Flash-Next "Swift 1.5" IQ3_S abliterated, 262144 ctx, --kv int8 --kv-resident 32768, MTP, --spec 4, CPU vision, STRATA_HIPBLASLT_TUNING=tools/hip/gfx1201-hipblaslt-100500.txt. The same config runs on 0.1.48; the 0.1.52 crash is before any of it is touched. Logs Engine start of 0.1.52, tail (nothing follows; process exit 0xC0000005): 代码块 strata: gfx12 (RDNA4): 9 exact speed switches on by default (...): GDN_HEAD GDN_PP GDN_CONVL2 GDN_NOY CVEC_FUSE ATTN_LANECELL ATTN_MERGE_V2 TSUM EXPDEC strata generate: memory guard: limit 127.9 GiB (source: meminfo), current 18.6 GiB, reclaimable cache credited 0.0 GiB; available 109.3 GiB (MemAvailable 109.3 GiB), floor 2560 MiB Related #3828 (same signature) · #873 (the hipMemGetInfo retry this build prints) · #3884, #1898, #1785 (earlier R9700 + Windows reports) What would help Is the first hipMemGetInfo "invalid argument" expected on Windows/WDDM, and is the crash known to sit right after the retry? Any switch that makes the selftest take the 0.1.48 code path, to confirm the retry is the trigger and not a symptom? If a Windows AMD build with that retry disabled can be produced, I can test it here: 0.1.48 serves this PC for hours, so the machine is otherwise clean.
Author
Owner

@bob-u commented on GitHub (Oct 27, 2026):

Did you try running w/o Vision?

<!-- gh-comment-id:6449161050 --> @bob-u commented on GitHub (Oct 27, 2026): Did you try running w/o Vision?
Author
Owner

@sagilen commented on GitHub (Oct 27, 2026):

  1. Did you try running w/o Vision?

Yes — and this crash does not involve Vision at all.

Two runs, both with Vision completely removed, both exit the same way:

  1. strata-device.exe --selftest — no model, no server, no vision (the device test never starts the vision reader):

    • 0.1.52: exit -1073741819 (0xC0000005), stdout empty
    • 0.1.48: exit 0, strata-device selftest OK
  2. Full engine start with Vision removed — no --vision flag and the vision block deleted from the run config,
    262144 ctx, --kv int8 --kv-resident 32768:

    strata: gfx12 (RDNA4): 9 exact speed switches on by default (...)
    strata generate: memory guard: limit 127.9 GiB (source: meminfo), current 100.0 GiB, ... floor 2560 MiB

    then exit 0xC0000005. The engine log contains zero lines mentioning vision or strata-vision.

Earlier I also tried 4096 context, no --kv-resident, no vision: same exit code at the same point.

So this is not the vision reader: strata-vision.exe is a separate process (the subject of #3921), and here strata.exe
itself dies before loading anything, while the selftest does not start any vision binary at all.

The only observable difference from the working build is one line: 0.1.52 prints

strata: hipMemGetInfo failed (invalid argument); retrying once after 250 ms
strata: hipMemGetInfo retry: ok

and 0.1.48 on the same PC does not (it prints only the Windows budgets ... line and passes).

If you can produce a 0.1.52 Windows AMD build with that retry disabled, or without the vision module compiled in,
I will test it here within minutes — 0.1.48 serves this machine for hours, so the hardware is otherwise clean.

<!-- gh-comment-id:6455433073 --> @sagilen commented on GitHub (Oct 27, 2026): > 1. Did you try running w/o Vision? Yes — and this crash does not involve Vision at all. Two runs, both with Vision completely removed, both exit the same way: 1. `strata-device.exe --selftest` — no model, no server, no vision (the device test never starts the vision reader): - 0.1.52: exit -1073741819 (0xC0000005), stdout empty - 0.1.48: exit 0, `strata-device selftest OK` 2. Full engine start with Vision removed — no `--vision` flag and the `vision` block deleted from the run config, 262144 ctx, `--kv int8 --kv-resident 32768`: strata: gfx12 (RDNA4): 9 exact speed switches on by default (...) strata generate: memory guard: limit 127.9 GiB (source: meminfo), current 100.0 GiB, ... floor 2560 MiB then exit 0xC0000005. The engine log contains zero lines mentioning vision or strata-vision. Earlier I also tried 4096 context, no `--kv-resident`, no vision: same exit code at the same point. So this is not the vision reader: strata-vision.exe is a separate process (the subject of #3921), and here strata.exe itself dies before loading anything, while the selftest does not start any vision binary at all. The only observable difference from the working build is one line: 0.1.52 prints strata: hipMemGetInfo failed (invalid argument); retrying once after 250 ms strata: hipMemGetInfo retry: ok and 0.1.48 on the same PC does not (it prints only the `Windows budgets ...` line and passes). If you can produce a 0.1.52 Windows AMD build with that retry disabled, or without the vision module compiled in, I will test it here within minutes — 0.1.48 serves this machine for hours, so the hardware is otherwise clean.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1913
No description provided.