[CRASH] Intel Arc B580 Crash after ~30s ingame #227

Open
opened 2026-11-27 19:58:41 +00:00 by github-bot · 18 comments
Owner

@⁠thxnk420 on GitHub · 2026-11-27 19:54 UTC · original

menu forks fine, but then it crashes after a cutscene with ERROR victory_gpu::host: host GPU device removed after 16 submissions sent ahead (VICTORY_RELAY=1) of 209 lists;

victory-nvidia-play-20261127-194207-12484.log

win 10, arc b580 with 9175 driver

**@⁠thxnk420** on GitHub · 2026-11-27 19:54 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/227) menu forks fine, but then it crashes after a cutscene with ERROR victory_gpu::host: host GPU device removed after 16 submissions sent ahead (VICTORY_RELAY=1) of 209 lists; [victory-nvidia-play-20261127-194207-12484.log](https://github.com/user-attachments/files/35528854/victory-nvidia-play-20261127-194207-12484.log) win 10, arc b580 with 9175 driver
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 19:58:41 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-27 20:59 UTC · original

v2026.11.27.6 is out (https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/v2026.11.27.6), with today's crash fixes: the crash after the loading screen ("Failed to allocate upload buffer"), the 0x887E0003 / D3D12SerializeVersionedRootSignature crash at start, and memory that kept growing through a session. Please try it. Intel Arc isn't tested here (this fork is built for NVIDIA), and your crash is the GPU device being removed, so it may still happen. If it does, attach the new victory-nvidia-play-*.log and crashes.log (both in %LOCALAPPDATA%\victory\logs).

**@⁠trustno1-coder** on GitHub · 2026-11-27 20:59 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/227#issuecomment-7228031289) **v2026.11.27.6** is out (https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/v2026.11.27.6), with today's crash fixes: the crash after the loading screen ("Failed to allocate upload buffer"), the 0x887E0003 / D3D12SerializeVersionedRootSignature crash at start, and memory that kept growing through a session. Please try it. Intel Arc isn't tested here (this fork is built for NVIDIA), and your crash is the GPU device being removed, so it may still happen. If it does, attach the new `victory-nvidia-play-*.log` and `crashes.log` (both in %LOCALAPPDATA%\victory\logs).
Author
Owner

@⁠Denissboss1 on GitHub · 2026-11-27 21:08 UTC · original

Bump. Same exact issue here.

The logs:

crashes.log
victory-20261127-230346-11420.crash.log
victory-nvidia-play-20261127-210218-11420.log

**@⁠Denissboss1** on GitHub · 2026-11-27 21:08 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/227#issuecomment-7228171789) Bump. Same exact issue here. The logs: [crashes.log](https://github.com/user-attachments/files/35531173/crashes.log) [victory-20261127-230346-11420.crash.log](https://github.com/user-attachments/files/35531179/victory-20261127-230346-11420.crash.log) [victory-nvidia-play-20261127-210218-11420.log](https://github.com/user-attachments/files/35531185/victory-nvidia-play-20261127-210218-11420.log)
Author
Owner

@⁠thxnk420 on GitHub · 2026-11-27 21:58 UTC · original

crashes.log

victory-nvidia-play-20261127-215043-13404.log

Still crashing with latest version

**@⁠thxnk420** on GitHub · 2026-11-27 21:58 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/227#issuecomment-7228916938) [crashes.log](https://github.com/user-attachments/files/35532607/crashes.log) [victory-nvidia-play-20261127-215043-13404.log](https://github.com/user-attachments/files/35532615/victory-nvidia-play-20261127-215043-13404.log) Still crashing with latest version
Author
Owner

@⁠serrot1005 on GitHub · 2026-11-27 22:22 UTC · original

crashes.log

victory-nvidia-20261127-191939.log

Latest build too, would love to play the game on my GPU. Still awesome work.

**@⁠serrot1005** on GitHub · 2026-11-27 22:22 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/227#issuecomment-7229267572) [crashes.log](https://github.com/user-attachments/files/35533316/crashes.log) [victory-nvidia-20261127-191939.log](https://github.com/user-attachments/files/35533320/victory-nvidia-20261127-191939.log) Latest build too, would love to play the game on my GPU. Still awesome work.
Author
Owner

@⁠gilmarcs on GitHub · 2026-11-27 23:07 UTC · original

I could find that this is because one single mesh shader that is called in the beggining, 10 minutes of gameplay here, but I'have a lot of changes to review and isolate

Arc B580

**@⁠gilmarcs** on GitHub · 2026-11-27 23:07 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/227#issuecomment-7229894765) I could find that this is because one single mesh shader that is called in the beggining, 10 minutes of gameplay here, but I'have a lot of changes to review and isolate Arc B580
Author
Owner

@⁠gilmarcs on GitHub · 2026-11-27 23:11 UTC · original

For more information:

Summary of the fix

The problem

The game hung the Arc B580 (DXGI_ERROR_DEVICE_HUNG) every time, on the first big frame of the world. In some runs it page-faulted instead, at an address that looks like a null base plus an offset. The measurements showed:

  • It is not caused by a translated shader, uploads, copies, freed resources, uninitialized descriptors, 64-bit atomics, or command lists running together.
  • The trigger is a mesh pipeline staying bound on a command list while the game records the commands that follow it (copies, clears, dispatches, barriers). No mesh draw is needed; binding the PSO is enough.
  • The pipeline's contents don't matter. A fully synthetic mesh pipeline (trivial shaders, empty root signature, minimal state) hangs the same way.
  • The failure is probabilistic: the more mesh PSO binds, the more likely it is.
  • The same command pattern does not reproduce outside the game. The best explanation is a race in the Intel driver's mesh path (driver 32.0.101.9175). This is not proven.

The fix (a workaround)

VICTORY_MESH_UNBIND, in crates/victory-gpu/src/draw.rs (DrawState::mesh_unbind). It runs right after every mesh draw, direct (DispatchMesh) or indirect (ExecuteIndirect):

  • Level 1: rebinds the last vertex pipeline that was used, so no mesh PSO stays bound over the commands that follow.
  • Level 2: first inserts a global UAV barrier (no specific resource), then rebinds.

The next mesh draw binds its own pipeline again as usual. The host records the last vertex pipeline and marks the rebound one as current, so no binds are wasted.

Results on the normal scene:

Configuration Runs Failures
no workaround every run today TDR every time
level 1 2 (~10 min total) no TDR; 1 page fault at 5 min
level 2 2 (~18 min total) none

What it can affect

  1. Performance. Each mesh draw now costs two extra PSO switches and, at level 2, a global barrier, across thousands of mesh draws per frame. The barrier stops back-to-back mesh draws from overlapping on the GPU. End-of-run FPS matched the runs without mesh draws, but those runs had VICTORY_GPU_TIMING=1, which already serializes the GPU. The real cost is not measured yet.
  2. Batched indirect draws. Indirect draws batched in "windows" were designed to run back to back with nothing between them. The workaround now puts a PSO switch, and at level 2 a barrier, between them. This is valid D3D12, but it reduces the benefit of batching.
  3. Rendering. The workaround only adds state changes and barriers after a draw, so the image should not change. This has not been checked visually.
  4. Global state. The last vertex pipeline is kept in a process-wide static and held alive with list.keep. Each later draw binds its own pipeline, but this assumes a single host device. Before any vertex pipeline has been bound, the workaround does nothing.
  5. Other GPUs. It is opt-in, so nothing changes unless the variable is set. Turning it on by default should be limited to Intel hardware.
  6. It hides the bug rather than fixing it. If the cause is a driver race, a newer driver may fix it and make the workaround unnecessary. The rare page fault might still show up in longer sessions.

Other changes made along the way (diagnostic, opt-in unless noted)

  • Affects every run, not opt-in: the host now queries OPTIONS9/OPTIONS11 for 64-bit atomics, and the translator refuses 64-bit image atomics on hosts that lack them (set_host_atomic64). Because the result is part of the shader cache key, the cache is retranslated once. The B580 supports them.
  • Experiment switches: VICTORY_MESH_TEST=one|prepare|clamp|bind|states, VICTORY_MESH_BIND, VICTORY_MESH_BIND_RANGE, VICTORY_MESH_EMPTY, VICTORY_MESH_SYNTH / _ROOT / _STATE, VICTORY_SUBMIT_EACH, VICTORY_RECORD_UNTIL_HANG.
  • A hardware repro test, mesh_pipeline_switch (ignored by default), plus a test-only render-target override in emit/host.rs.
  • The investigation write-up, appended to docs/investigacao-hang-gpu-arc.md.

Still to do

  • More long runs with level 2.
  • Visual check of the frame.
  • Measuring the cost with GPU timing off.
  • Trying fewer barriers: only after indirect mesh draws, or only at the end of each run of mesh draws.
  • Testing a newer Intel driver.
**@⁠gilmarcs** on GitHub · 2026-11-27 23:11 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/227#issuecomment-7229942923) For more information: ## Summary of the fix ### The problem The game hung the Arc B580 (`DXGI_ERROR_DEVICE_HUNG`) every time, on the first big frame of the world. In some runs it page-faulted instead, at an address that looks like a null base plus an offset. The measurements showed: - It is not caused by a translated shader, uploads, copies, freed resources, uninitialized descriptors, 64-bit atomics, or command lists running together. - The trigger is **a mesh pipeline staying bound on a command list** while the game records the commands that follow it (copies, clears, dispatches, barriers). No mesh draw is needed; binding the PSO is enough. - The pipeline's contents don't matter. A fully synthetic mesh pipeline (trivial shaders, empty root signature, minimal state) hangs the same way. - The failure is probabilistic: the more mesh PSO binds, the more likely it is. - The same command pattern does not reproduce outside the game. The best explanation is a race in the Intel driver's mesh path (driver 32.0.101.9175). This is not proven. ### The fix (a workaround) `VICTORY_MESH_UNBIND`, in `crates/victory-gpu/src/draw.rs` (`DrawState::mesh_unbind`). It runs right after every mesh draw, direct (`DispatchMesh`) or indirect (`ExecuteIndirect`): - **Level 1:** rebinds the last vertex pipeline that was used, so no mesh PSO stays bound over the commands that follow. - **Level 2:** first inserts a global UAV barrier (no specific resource), then rebinds. The next mesh draw binds its own pipeline again as usual. The host records the last vertex pipeline and marks the rebound one as current, so no binds are wasted. **Results on the normal scene:** | Configuration | Runs | Failures | |---|---|---| | no workaround | every run today | TDR every time | | level 1 | 2 (~10 min total) | no TDR; 1 page fault at 5 min | | **level 2** | 2 (~18 min total) | **none** | ### What it can affect 1. **Performance.** Each mesh draw now costs two extra PSO switches and, at level 2, a global barrier, across thousands of mesh draws per frame. The barrier stops back-to-back mesh draws from overlapping on the GPU. End-of-run FPS matched the runs without mesh draws, but those runs had `VICTORY_GPU_TIMING=1`, which already serializes the GPU. **The real cost is not measured yet.** 2. **Batched indirect draws.** Indirect draws batched in "windows" were designed to run back to back with nothing between them. The workaround now puts a PSO switch, and at level 2 a barrier, between them. This is valid D3D12, but it reduces the benefit of batching. 3. **Rendering.** The workaround only adds state changes and barriers after a draw, so the image should not change. **This has not been checked visually.** 4. **Global state.** The last vertex pipeline is kept in a process-wide static and held alive with `list.keep`. Each later draw binds its own pipeline, but this assumes a single host device. Before any vertex pipeline has been bound, the workaround does nothing. 5. **Other GPUs.** It is opt-in, so nothing changes unless the variable is set. Turning it on by default should be limited to Intel hardware. 6. **It hides the bug rather than fixing it.** If the cause is a driver race, a newer driver may fix it and make the workaround unnecessary. The rare page fault might still show up in longer sessions. ### Other changes made along the way (diagnostic, opt-in unless noted) - **Affects every run, not opt-in:** the host now queries `OPTIONS9`/`OPTIONS11` for 64-bit atomics, and the translator refuses 64-bit image atomics on hosts that lack them (`set_host_atomic64`). Because the result is part of the shader cache key, the cache is retranslated once. The B580 supports them. - Experiment switches: `VICTORY_MESH_TEST=one|prepare|clamp|bind|states`, `VICTORY_MESH_BIND`, `VICTORY_MESH_BIND_RANGE`, `VICTORY_MESH_EMPTY`, `VICTORY_MESH_SYNTH` / `_ROOT` / `_STATE`, `VICTORY_SUBMIT_EACH`, `VICTORY_RECORD_UNTIL_HANG`. - A hardware repro test, `mesh_pipeline_switch` (ignored by default), plus a test-only render-target override in `emit/host.rs`. - The investigation write-up, appended to `docs/investigacao-hang-gpu-arc.md`. ### Still to do - More long runs with level 2. - Visual check of the frame. - Measuring the cost with GPU timing off. - Trying fewer barriers: only after indirect mesh draws, or only at the end of each run of mesh draws. - Testing a newer Intel driver.
Author
Owner

@⁠gilmarcs on GitHub · 2026-11-27 23:13 UTC · original

Seems to be an Intel Driver problem, with proton nothing of this is needed

**@⁠gilmarcs** on GitHub · 2026-11-27 23:13 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/227#issuecomment-7229971820) Seems to be an Intel Driver problem, with proton nothing of this is needed
Author
Owner

@⁠serrot1005 on GitHub · 2026-11-27 23:44 UTC · original

@⁠gilmarcs , could you create a fork with your modifications? I’m not very knowledgeable about this, but given that the issue doesn’t occur on Linux—only with the Windows driver—does that mean an effective solution would require an update to the Intel driver itself? Or would it be possible to work around this within the translation layer?

**@⁠serrot1005** on GitHub · 2026-11-27 23:44 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/227#issuecomment-7230375196) @⁠gilmarcs , could you create a fork with your modifications? I’m not very knowledgeable about this, but given that the issue doesn’t occur on Linux—only with the Windows driver—does that mean an effective solution would require an update to the Intel driver itself? Or would it be possible to work around this within the translation layer?
Author
Owner

@⁠gilmarcs on GitHub · 2026-11-27 23:59 UTC · original · edited 2026-11-28 00:22 UTC

I'll do the fork and PR when I found another way to fix it without an workaround, but you could try clone the repo and apply the patch and
enable before execute with:

$env:VICTORY_MESH_UNBIND = '1'

victory-mesh-unbind-level1.patch (made after the commit 64d4931b3d)

**@⁠gilmarcs** on GitHub · 2026-11-27 23:59 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/227#issuecomment-7230565179) · edited 2026-11-28 00:22 UTC I'll do the fork and PR when I found another way to fix it without an workaround, but you could try clone the repo and apply the patch and enable before execute with: ```psh $env:VICTORY_MESH_UNBIND = '1' ``` [victory-mesh-unbind-level1.patch](https://github.com/user-attachments/files/35535015/victory-mesh-unbind-level1.patch) (made after the commit 64d4931b3dd90305134512b805fc98f04119fb6e)
Author
Owner

@⁠gilmarcs on GitHub · 2026-11-28 00:02 UTC · original

8 minutes at 2 FPS, I'm cooking 😎

**@⁠gilmarcs** on GitHub · 2026-11-28 00:02 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/227#issuecomment-7230598694) 8 minutes at 2 FPS, I'm cooking 😎
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-28 00:42 UTC · original

Thanks @⁠gilmarcs, that's excellent work. A mesh pipeline left bound being enough to hang the Arc driver explains a lot. A pull request with the VICTORY_MESH_UNBIND switch (off by default) would be welcome when you're happy with it. This stays open for Arc.

**@⁠trustno1-coder** on GitHub · 2026-11-28 00:42 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/227#issuecomment-7231137247) Thanks @⁠gilmarcs, that's excellent work. A mesh pipeline left bound being enough to hang the Arc driver explains a lot. A pull request with the `VICTORY_MESH_UNBIND` switch (off by default) would be welcome when you're happy with it. This stays open for Arc.
Author
Owner

@⁠gilmarcs on GitHub · 2026-11-28 00:46 UTC · original

The PR #546 will auto-enable for Intel GPUs and will unbind only if the type of pipeline changes from mesh to another one, the first patch was unbinding every time...

**@⁠gilmarcs** on GitHub · 2026-11-28 00:46 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/227#issuecomment-7231187057) The PR #546 will auto-enable for Intel GPUs and will unbind only if the type of pipeline changes from mesh to another one, the first patch was unbinding every time...
Author
Owner

@⁠serrot1005 on GitHub · 2026-11-28 00:49 UTC · original

@⁠gilmarcs I managed to test it with the patch, and it was the first build I could actually play—thank you so much for that. I hope you’re able to resolve the issue with the Arc B580. On my end, it hovered around 8 fps (still inside the prison) before crashing after about 5 minutes.

**@⁠serrot1005** on GitHub · 2026-11-28 00:49 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/227#issuecomment-7231220836) @⁠gilmarcs I managed to test it with the patch, and it was the first build I could actually play—thank you so much for that. I hope you’re able to resolve the issue with the Arc B580. On my end, it hovered around 8 fps (still inside the prison) before crashing after about 5 minutes.
Author
Owner

@⁠gilmarcs on GitHub · 2026-11-28 00:51 UTC · original

Go test with the PR version too

**@⁠gilmarcs** on GitHub · 2026-11-28 00:51 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/227#issuecomment-7231244441) Go test with the PR version too
Author
Owner

@⁠serrot1005 on GitHub · 2026-11-28 00:59 UTC · original

It also works

**@⁠serrot1005** on GitHub · 2026-11-28 00:59 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/227#issuecomment-7231342016) It also works
Author
Owner

@⁠gilmarcs on GitHub · 2026-11-28 01:26 UTC · original

Please, check the memory consumption when the crash occurs

**@⁠gilmarcs** on GitHub · 2026-11-28 01:26 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/227#issuecomment-7231663909) Please, check the memory consumption when the crash occurs
Author
Owner

@⁠gilmarcs on GitHub · 2026-11-28 01:27 UTC · original

Mine is full...

image
**@⁠gilmarcs** on GitHub · 2026-11-28 01:27 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/227#issuecomment-7231680456) Mine is full... <img width="1075" height="624" alt="image" src="https://github.com/user-attachments/assets/1ec8e75e-46a0-4342-bb40-7c7f58fef119" />
Author
Owner

@⁠serrot1005 on GitHub · 2026-11-28 02:32 UTC · original

Mine too

image

(Legal saber que você também é br kkkkkk)

**@⁠serrot1005** on GitHub · 2026-11-28 02:32 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/227#issuecomment-7232428575) Mine too <img width="613" height="386" alt="image" src="https://github.com/user-attachments/assets/1af7a163-6787-4e7c-915f-5f3dfcfe70e2" /> (Legal saber que você também é br kkkkkk)
This discussion has been locked. Commenting is limited to contributors.
No milestone
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
github/trustno1-coder--VIctory-NVIDIA#227
No description provided.