[GH-ISSUE #2798] [strata] the engine stopped unexpectedly (exit code -15). Unrecoverable native verification failure: verify: timed out at layer 26; its GPU waits were released and the GPU finished (#267) #1123

Closed
opened 2026-11-04 01:48:43 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @VinterSolen on GitHub (Oct 16, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2798

Hi, i just-ish installed strata on my MXLinux on kernel 6.12.107+deb13-amd64.
KDE 6 / Wayland.

System:

AMD Ryzen 7 7800X3D (16) @ 5.05 GHz
AMD Radeon RX 7800 XT [Discrete]
14.10 GiB / 62.44 GiB (23%)
221.58 GiB / 1.82 TiB (12%) - btrfs
1.45 TiB / 1.86 TiB (78%) - btrfs
50.48 GiB / 1.86 TiB (3%) - btrfs

At first install, i used all default values suggested by the installer.
The second try, i only changed context to 32k instead of suggested 64k

Is there some settings i might could change to make it work for my system?
I am not familiar with all the settings, what that could cause the crash and that stuff.

I have looked on the two other thread that seems similar-esque to my problem, but could not figure out what would be relevant to my case.

The run command: ./setup.sh --setup --backend hip --vram-reserve-mib 3072

strata-iq3_s.log

bench_results.json

Originally created by @VinterSolen on GitHub (Oct 16, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/2798 Hi, i just-ish installed strata on my MXLinux on kernel 6.12.107+deb13-amd64. KDE 6 / Wayland. System: ``` AMD Ryzen 7 7800X3D (16) @ 5.05 GHz AMD Radeon RX 7800 XT [Discrete] 14.10 GiB / 62.44 GiB (23%) 221.58 GiB / 1.82 TiB (12%) - btrfs 1.45 TiB / 1.86 TiB (78%) - btrfs 50.48 GiB / 1.86 TiB (3%) - btrfs ``` At first install, i used all default values suggested by the installer. The second try, i only changed context to 32k instead of suggested 64k Is there some settings i might could change to make it work for my system? I am not familiar with all the settings, what that could cause the crash and that stuff. I have looked on the two other thread that seems similar-esque to my problem, but could not figure out what would be relevant to my case. The run command: `./setup.sh --setup --backend hip --vram-reserve-mib 3072` [strata-iq3_s.log](https://github.com/user-attachments/files/33566779/strata-iq3_s.log) [bench_results.json](https://github.com/user-attachments/files/33566796/bench_results.json)
Author
Owner

@Fr8106 commented on GitHub (Oct 17, 2026):

Same family as #267. On this box (RTX 5090, 64 GB RAM, IQ3_S, tier-ordered arena, pcie_frac path) we traced, bisected and reproduced the root cause standalone (t17.cu): the tier-ordered arena's non-fixed run starts at ceil4k(off+nfix), up to 4095 bytes after the first non-fixed blob, yet that blob still got a device alias (blob_dev_ = d + (bo - ns), a negative offset). The pcie_frac GPU-direct path dereferences it, lands outside the registered range (and after the fixed tier's release, on a page with no device mapping at all), the layer's kernel stops — dmesg Xid 31 MMU Fault FAULT_PTE VIRT_READ — and the verify doorbell burns its 20 s: the request dies as #267. Only the tiered build has an intra-layer registration boundary (P0 is one whole-arena run), only windows that pick the boundary expert over PCIe trip it (random layer: 4/42, sometimes fine), and a bigger fixed tier hides the expert.

The fix we run locally (commit 64ff01e, never pushed upstream):

  • register the fixed run up to floor4k(off+nfix) — the shared page stays unregistered, and any copy crossing the boundary runs registered|pageable|registered, which the driver accepts (t17 case C) even though adjacent registrations refuse it (t16/t17 case B);
  • alias only blobs wholly inside the registered run (bo >= ns); the ≤1 boundary expert per layer takes the CPU path instead (pinned() reports false);
  • surface cudaMemcpyAsync failures in Verifier::fetch_dma (they used to be silent).

Verified on 0.1.42+: the 100K→160K sequence that died 5/5 times now passes 3/3 (160K in 39–40 s, zero verify timeouts, zero copy failures) with every startup invariant intact. Since 64ff01e is not in any release tag, 0.1.44.1 still carries the bug — which matches what this report shows. Happy to send the patch if useful.

<!-- gh-comment-id:6234862877 --> @Fr8106 commented on GitHub (Oct 17, 2026): Same family as #267. On this box (RTX 5090, 64 GB RAM, IQ3_S, tier-ordered arena, pcie_frac path) we traced, bisected and reproduced the root cause standalone (t17.cu): the tier-ordered arena's non-fixed run starts at ceil4k(off+nfix), up to 4095 bytes after the first non-fixed blob, yet that blob still got a device alias (blob_dev_ = d + (bo - ns), a negative offset). The pcie_frac GPU-direct path dereferences it, lands outside the registered range (and after the fixed tier's release, on a page with no device mapping at all), the layer's kernel stops — dmesg Xid 31 MMU Fault FAULT_PTE VIRT_READ — and the verify doorbell burns its 20 s: the request dies as #267. Only the tiered build has an intra-layer registration boundary (P0 is one whole-arena run), only windows that pick the boundary expert over PCIe trip it (random layer: 4/42, sometimes fine), and a bigger fixed tier hides the expert. The fix we run locally (commit 64ff01e, never pushed upstream): - register the fixed run up to floor4k(off+nfix) — the shared page stays unregistered, and any copy crossing the boundary runs registered|pageable|registered, which the driver accepts (t17 case C) even though adjacent registrations refuse it (t16/t17 case B); - alias only blobs wholly inside the registered run (bo >= ns); the ≤1 boundary expert per layer takes the CPU path instead (pinned() reports false); - surface cudaMemcpyAsync failures in Verifier::fetch_dma (they used to be silent). Verified on 0.1.42+: the 100K→160K sequence that died 5/5 times now passes 3/3 (160K in 39–40 s, zero verify timeouts, zero copy failures) with every startup invariant intact. Since 64ff01e is not in any release tag, 0.1.44.1 still carries the bug — which matches what this report shows. Happy to send the patch if useful.
Author
Owner

@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:

  1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6271267002 --> @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: 1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Author
Owner

@Fr8106 commented on GitHub (Oct 20, 2026):

Following up with the repro and the patch, as asked:

  • Standalone repro: https://github.com/Fr8106/Strata/blob/fix-267-boundary-alias/tools/repro/t17.cu — registers two adjacent runs like the engine's tier layout, then tries cross-boundary HtoD copies. Result: with the shared page in the middle, both the synchronous and the asynchronous cross-boundary zero-copy copy are refused (that is case B, the driver constraint the engine hits); with a gap page between the registrations, or via a pinned bounce buffer, the same copy passes; registered|pageable|registered is accepted (case C, which is what the fix routes boundary crossings through). Build: plain nvcc, one .cu, no engine needed.
  • Patch branch (the fix on our 0.1.42 line): https://github.com/Fr8106/Strata/tree/fix-267-boundary-alias — register the fixed run to floor4k so the shared page stays unregistered, alias only blobs wholly inside a registered run, surface cudaMemcpyAsync failures in Verifier::fetch_dma. It will not cherry-pick onto 0.1.42 cleanly — the fix lives inside the tier-ordered arena code, which upstream does not have; the three paragraphs above are the whole idea.

We have not re-tested on 0.2.0-beta yet, so we are not reopening on our side; if the arena/tier code is upstream now, a re-test on that would be the first step.

<!-- gh-comment-id:6296418179 --> @Fr8106 commented on GitHub (Oct 20, 2026): Following up with the repro and the patch, as asked: - Standalone repro: https://github.com/Fr8106/Strata/blob/fix-267-boundary-alias/tools/repro/t17.cu — registers two adjacent runs like the engine's tier layout, then tries cross-boundary HtoD copies. Result: with the shared page in the middle, both the synchronous and the asynchronous cross-boundary zero-copy copy are refused (that is case B, the driver constraint the engine hits); with a gap page between the registrations, or via a pinned bounce buffer, the same copy passes; registered|pageable|registered is accepted (case C, which is what the fix routes boundary crossings through). Build: plain nvcc, one .cu, no engine needed. - Patch branch (the fix on our 0.1.42 line): https://github.com/Fr8106/Strata/tree/fix-267-boundary-alias — register the fixed run to floor4k so the shared page stays unregistered, alias only blobs wholly inside a registered run, surface cudaMemcpyAsync failures in Verifier::fetch_dma. It will not cherry-pick onto 0.1.42 cleanly — the fix lives inside the tier-ordered arena code, which upstream does not have; the three paragraphs above are the whole idea. We have not re-tested on 0.2.0-beta yet, so we are not reopening on our side; if the arena/tier code is upstream now, a re-test on that would be the first step.
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#1123
No description provided.