Fluid simulation bug #2248

Open
opened 2026-11-26 04:59:51 +00:00 by github-bot · 4 comments
Owner

@⁠Naroa32 on GitHub · 2026-11-25 08:47 UTC · original

Environment & Issue Summary

  • OS / GPU / Repo: Windows 11 x64, AMD Ryzen 9 5900X, Radeon RX 7900 XT (20GB VRAM, Adrenalin 26.11.2), fxceless/victory-fork (9376fd6).
  • Problem: does not freeze or crash, but during the prologue boat chase, the boat is already sunk/submerged into the water during the cutscene (similar to the classic Assassin's Creed IV: Black Flag Jackdaw sinking ship bug). Once control is handed over, the engine immediately floods/takes on water with splashing audio and cuts off throttle, making the boat impossible to drive or steer.
  • Tested Configurations: Evaluated various resolution limits (VICTORY_WINDOW_MAX), async relay settings (VICTORY_RELAY=0/2), page sync parameters (VICTORY_PAGE_WRITES=guards/all), and shader loop limits (VICTORY_SHADER_LOOP_LIMIT), all of which reproduced the issue. Logs indicate dropped compute dispatches (pipeline=0x22c6a8c1740) and unannounced modifications on 4-tier dynamic water simulation textures (356352 -> 176128 -> 90112 -> 45056 bytes).

Note: Logs and issue report structured with the assistance of AI.

**@⁠Naroa32** on GitHub · 2026-11-25 08:47 UTC · [original](https://github.com/Marvisak/VIctory/issues/2248) ### Environment & Issue Summary - - **OS / GPU / Repo:** Windows 11 x64, AMD Ryzen 9 5900X, Radeon RX 7900 XT (20GB VRAM, Adrenalin 26.11.2), `fxceless/victory-fork` (`9376fd6`). - **Problem:** does **not** freeze or crash, but during the prologue boat chase, the boat is already sunk/submerged into the water during the cutscene (similar to the classic *Assassin's Creed IV: Black Flag* Jackdaw sinking ship bug). Once control is handed over, the engine immediately floods/takes on water with splashing audio and cuts off throttle, making the boat impossible to drive or steer. - **Tested Configurations:** Evaluated various resolution limits (`VICTORY_WINDOW_MAX`), async relay settings (`VICTORY_RELAY=0/2`), page sync parameters (`VICTORY_PAGE_WRITES=guards/all`), and shader loop limits (`VICTORY_SHADER_LOOP_LIMIT`), all of which reproduced the issue. Logs indicate dropped compute dispatches (`pipeline=0x22c6a8c1740`) and unannounced modifications on 4-tier dynamic water simulation textures (`356352` -> `176128` -> `90112` -> `45056` bytes). --- *Note: Logs and issue report structured with the assistance of AI.*
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:59:51 +00:00
Author
Owner

@⁠Naroa32 on GitHub · 2026-11-25 10:04 UTC · original

Follow-up Investigation: ShallowWaterSim Shaders Compiled Cleanly (Root Cause Narrowed Down)

Following a review of the compute shaders in shaders.rpf, the vast majority compiled cleanly, including physics shaders for ShallowWaterSim and OceanSim, while a small number of isolated visual effect shaders remain untranslated.

Potential Root Causes:

  1. Missing GPU-to-CPU Read-back: Water height and buoyancy data may not be properly transferred back to host memory.
  2. Indirect Compute Dispatch Clamping: Thread group requests exceeding D3D12 hardware limits may be truncating the workload.

(Note: Investigation and summary structured with the assistance of AI.)

**@⁠Naroa32** on GitHub · 2026-11-25 10:04 UTC · [original](https://github.com/Marvisak/VIctory/issues/2248#issuecomment-7159189291) ### Follow-up Investigation: `ShallowWaterSim` Shaders Compiled Cleanly (Root Cause Narrowed Down) Following a review of the compute shaders in `shaders.rpf`, the vast majority compiled cleanly, including physics shaders for `ShallowWaterSim` and `OceanSim`, while a small number of isolated visual effect shaders remain untranslated. **Potential Root Causes:** 1. **Missing GPU-to-CPU Read-back:** Water height and buoyancy data may not be properly transferred back to host memory. 2. **Indirect Compute Dispatch Clamping:** Thread group requests exceeding D3D12 hardware limits may be truncating the workload. *(Note: Investigation and summary structured with the assistance of AI.)*
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 15:51 UTC · original · edited 2026-11-25 18:46 UTC

Automated triage for the maintainers.

The boat sinking to the seabed in the opening scene is now reproduced on this repository's main by two AMD testers. Both report it as a rendering/simulation failure, not a crash.

  • RX 9070 XT (RDNA 4), Windows 11 26300, 67e8ae1, diag build
  • RX 7900 XT (RDNA 3), Adrenalin 26.11.2, Windows 11 26300, 13f91ca, release build

Neither log has texture to buffer copies not implemented, so the readback path (5cb63d8) is not the cause. Both runs share the same set of shaders that do not translate:

  • a lane mask read as data (compute 82a2ad6d07417d36, 90a0692af4320129)
  • v_cvt_f32_f64 (compute 5dc3b25986622949, 6f225b641c5b0708, 926c46bab3b86bd6). main decodes this opcode (crates/victory-shader/src/gfx10/opcodes.rs) but has no lowering for it.
  • v_permlanex16_b32 (compute a929109552ce1e84)
  • a descriptor read only as data (compute ceb5eb68cd99cb07)
  • barycentrics read directly (pixel 5067d502a1b4ffb4)
  • 13f91ca adds compute a10179ab7eda0dc3, which appears as the boat scene loads

Each run also has one dispatch dropped without a host pipeline. The RDNA 3 run has one mesh pipeline refused with 0x80070057 (f5e50eb2108c425b + ce3f0432a08f1d35).

Which of these compute programs drives the water simulation cannot be told from hashes alone. A maintainer would need to check whether one of the dropped compute programs feeds the boat's buoyancy. The a10179ab7eda0dc3 reason was not quoted; posting its shader does not translate line would help.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 15:51 UTC · [original](https://github.com/Marvisak/VIctory/issues/2248#issuecomment-7167370695) · edited 2026-11-25 18:46 UTC <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-25T17:46:41Z at=2026-11-25T19:10:00Z --> Automated triage for the maintainers. The boat sinking to the seabed in the opening scene is now reproduced on this repository's `main` by two AMD testers. Both report it as a rendering/simulation failure, not a crash. - RX 9070 XT (RDNA 4), Windows 11 26300, `67e8ae1`, diag build - RX 7900 XT (RDNA 3), Adrenalin 26.11.2, Windows 11 26300, `13f91ca`, release build Neither log has `texture to buffer copies not implemented`, so the readback path (5cb63d8) is not the cause. Both runs share the same set of shaders that do not translate: - `a lane mask read as data` (compute `82a2ad6d07417d36`, `90a0692af4320129`) - `v_cvt_f32_f64` (compute `5dc3b25986622949`, `6f225b641c5b0708`, `926c46bab3b86bd6`). `main` decodes this opcode (`crates/victory-shader/src/gfx10/opcodes.rs`) but has no lowering for it. - `v_permlanex16_b32` (compute `a929109552ce1e84`) - `a descriptor read only as data` (compute `ceb5eb68cd99cb07`) - `barycentrics read directly` (pixel `5067d502a1b4ffb4`) - `13f91ca` adds compute `a10179ab7eda0dc3`, which appears as the boat scene loads Each run also has one dispatch dropped without a host pipeline. The RDNA 3 run has one mesh pipeline refused with `0x80070057` (`f5e50eb2108c425b` + `ce3f0432a08f1d35`). Which of these compute programs drives the water simulation cannot be told from hashes alone. A maintainer would need to check whether one of the dropped compute programs feeds the boat's buoyancy. The `a10179ab7eda0dc3` reason was not quoted; posting its `shader does not translate` line would help. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠FrozenGuy7 on GitHub · 2026-11-25 16:29 UTC · original

Retested on current main as asked: the boat still sinks to the seabed.

Setup

  • GPU: AMD Radeon RX 9070 XT 16 GB (RDNA4), driver 32.0.32015.12012
  • Windows 11 build 26300
  • Build: main @ 67e8ae1, cargo build --profile diag -p victory --features diagnostics
  • Run: victory run game_scarlett_master.exe --execute --console series-x, VICTORY_PRESENT_TARGET=1x1:1, fresh cache dir
  • About 7 minutes in the world, ended by closing the window (no crash)

Log, main @ 67e8ae1

  • No texture to buffer copies not implemented warning, so 5cb63d8 is in and that path does not seem to be the cause.
  • No host pipeline refused lines.
  • 1 a dispatch without a host pipeline dropped warning.
  • 8 shaders do not translate:
    • compute 82a2ad6d07417d36, 90a0692af4320129: a lane mask read as data is not supported
    • compute 5dc3b25986622949, 6f225b641c5b0708, 926c46bab3b86bd6: v_cvt_f32_f64 is not supported
    • compute a929109552ce1e84: v_permlanex16_b32 is not supported
    • compute ceb5eb68cd99cb07: a descriptor read only as data is not supported
    • pixel 5067d502a1b4ffb4: barycentrics read directly is not supported
  • At the end, about 80 draws/frame were still dropped without a host pipeline (0-1 being made), 1.4 fps.

Also seen on the Belobug/VIctory-Belobug-AMD fork (01aadd1, based on 8e79c80)
The boat sinks there too. That build has 35 untranslated compute shaders (an address in an SGPR that is no root parameter is not supported), and the driver refuses one compute pipeline (f16876929fa64f9f, 0x80004005).

So the sinking happens on both builds, with very different sets of missing shaders. If one of the 8 above is a ShallowWaterSim/OceanSim kernel, the v_cvt_f32_f64 ones look like candidates, but I can't map hashes to names. Happy to run a build with shader-name logging, or anything else you'd like tested on RDNA4.

(AI-assisted: summary drafted with Claude from my run logs.)

**@⁠FrozenGuy7** on GitHub · 2026-11-25 16:29 UTC · [original](https://github.com/Marvisak/VIctory/issues/2248#issuecomment-7168076277) Retested on current `main` as asked: the boat still sinks to the seabed. **Setup** - GPU: AMD Radeon RX 9070 XT 16 GB (RDNA4), driver 32.0.32015.12012 - Windows 11 build 26300 - Build: `main` @ `67e8ae1`, `cargo build --profile diag -p victory --features diagnostics` - Run: `victory run game_scarlett_master.exe --execute --console series-x`, `VICTORY_PRESENT_TARGET=1x1:1`, fresh cache dir - About 7 minutes in the world, ended by closing the window (no crash) **Log, `main` @ `67e8ae1`** - No `texture to buffer copies not implemented` warning, so 5cb63d8 is in and that path does not seem to be the cause. - No `host pipeline refused` lines. - 1 `a dispatch without a host pipeline dropped` warning. - 8 shaders do not translate: - compute `82a2ad6d07417d36`, `90a0692af4320129`: a lane mask read as data is not supported - compute `5dc3b25986622949`, `6f225b641c5b0708`, `926c46bab3b86bd6`: `v_cvt_f32_f64` is not supported - compute `a929109552ce1e84`: `v_permlanex16_b32` is not supported - compute `ceb5eb68cd99cb07`: a descriptor read only as data is not supported - pixel `5067d502a1b4ffb4`: barycentrics read directly is not supported - At the end, about 80 draws/frame were still dropped without a host pipeline (0-1 being made), 1.4 fps. **Also seen on the `Belobug/VIctory-Belobug-AMD` fork (`01aadd1`, based on `8e79c80`)** The boat sinks there too. That build has 35 untranslated compute shaders (`an address in an SGPR that is no root parameter is not supported`), and the driver refuses one compute pipeline (`f16876929fa64f9f`, `0x80004005`). So the sinking happens on both builds, with very different sets of missing shaders. If one of the 8 above is a `ShallowWaterSim`/`OceanSim` kernel, the `v_cvt_f32_f64` ones look like candidates, but I can't map hashes to names. Happy to run a build with shader-name logging, or anything else you'd like tested on RDNA4. *(AI-assisted: summary drafted with Claude from my run logs.)*
Author
Owner

@⁠Naroa32 on GitHub · 2026-11-25 17:46 UTC · original

Retested on upstream main (13f91ca) with RX 7900 XT (RDNA3): the boat still sinks into the water during the cutscene and floods/soft-locks upon taking control.

Environment

  • OS: Windows 11 Build 26300
  • CPU: AMD Ryzen 9 5900X
  • GPU: AMD Radeon RX 7900 XT (20GB VRAM, Adrenalin 26.11.2)
  • Build: Upstream origin/main @ 13f91ca (cargo build --release -p victory)
  • Run: victory.exe run game_scarlett_master.exe --execute with VICTORY_WINDOW_MAX=1920x1080

Log Findings on 13f91ca

  • No texture to buffer copies not implemented warning appeared, confirming 5cb63d8 / ebdbcc3 are active and that path is not the cause.
  • 1 dropped dispatch warning:
    • WARN victory_gpu::draw: a dispatch without a host pipeline dropped pipeline=0x1bd4b1e3e80
  • 1 host mesh pipeline refused (0x80070057 / E_INVALIDARG):
    • WARN victory_gpu::pipeline::host: host mesh pipeline refused error=0x80070057 shaders=[mesh f5e50eb2108c425b, pixel ce3f0432a08f1d35]
  • 9 shader does not translate warnings (matches the 8 reported on RDNA4 in 67e8ae1, plus one additional compute shader a10179ab7eda0dc3 triggered right as the boat scene loads):
    • stage="compute" hash=90a0692af4320129
    • stage="compute" hash=82a2ad6d07417d36
    • stage="compute" hash=a929109552ce1e84
    • stage="compute" hash=ceb5eb68cd99cb07
    • stage="compute" hash=5dc3b25986622949
    • stage="compute" hash=6f225b641c5b0708
    • stage="compute" hash=926c46bab3b86bd6
    • stage="compute" hash=a10179ab7eda0dc3
    • stage="pixel" hash=5067d502a1b4ffb4
  • Other relevant warnings:
    • WARN victory_gpu::descriptor::host: placed unordered texture view not mirrored dimension=3
    • WARN victory_gpu::object: method not implemented object="command queue" slot=0xb8 caller="+0x24900a5"

(Note: Logs and summary structured with the assistance of AI.)

**@⁠Naroa32** on GitHub · 2026-11-25 17:46 UTC · [original](https://github.com/Marvisak/VIctory/issues/2248#issuecomment-7169985588) Retested on upstream `main` (`13f91ca`) with RX 7900 XT (RDNA3): **the boat still sinks into the water** during the cutscene and floods/soft-locks upon taking control. ### Environment - **OS:** Windows 11 Build 26300 - **CPU:** AMD Ryzen 9 5900X - **GPU:** AMD Radeon RX 7900 XT (20GB VRAM, Adrenalin 26.11.2) - **Build:** Upstream `origin/main` @ `13f91ca` (`cargo build --release -p victory`) - **Run:** `victory.exe run game_scarlett_master.exe --execute` with `VICTORY_WINDOW_MAX=1920x1080` ### Log Findings on `13f91ca` - **No `texture to buffer copies not implemented` warning** appeared, confirming `5cb63d8` / `ebdbcc3` are active and that path is not the cause. - **1 dropped dispatch warning:** - `WARN victory_gpu::draw: a dispatch without a host pipeline dropped pipeline=0x1bd4b1e3e80` - **1 host mesh pipeline refused (`0x80070057` / `E_INVALIDARG`):** - `WARN victory_gpu::pipeline::host: host mesh pipeline refused error=0x80070057 shaders=[mesh f5e50eb2108c425b, pixel ce3f0432a08f1d35]` - **9 `shader does not translate` warnings** (matches the 8 reported on RDNA4 in `67e8ae1`, plus one additional compute shader `a10179ab7eda0dc3` triggered right as the boat scene loads): - `stage="compute" hash=90a0692af4320129` - `stage="compute" hash=82a2ad6d07417d36` - `stage="compute" hash=a929109552ce1e84` - `stage="compute" hash=ceb5eb68cd99cb07` - `stage="compute" hash=5dc3b25986622949` - `stage="compute" hash=6f225b641c5b0708` - `stage="compute" hash=926c46bab3b86bd6` - `stage="compute" hash=a10179ab7eda0dc3` - `stage="pixel" hash=5067d502a1b4ffb4` - **Other relevant warnings:** - `WARN victory_gpu::descriptor::host: placed unordered texture view not mirrored dimension=3` - `WARN victory_gpu::object: method not implemented object="command queue" slot=0xb8 caller="+0x24900a5"` *(Note: Logs and summary structured with the assistance of AI.)*
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/Marvisak--VIctory#2248
No description provided.