Victory 7900XTX fork: send-ahead crash fix on the RX 6800 XT #113

Open
opened 2026-11-26 05:24:46 +00:00 by github-bot · 2 comments
Owner

@⁠scrubber81 on GitHub · 2026-11-26 04:02 UTC · original

Base: D:\BigGame\VIctory-7900XTX-main (untouched). Working copy: D:\BigGame\VIctory-7900XTX-trace. Built exe: D:\BigGame\team\qa-bin\fork7900relayfix-b27a6276b7cc\.

The fix (all in crates\victory-gpu\src)

host.rs, fn land(): release every landed flight at once. Don't hold back bury_lag() of them: let n = line.landed.len(); (was len().saturating_sub(bury_lag() as usize)).

list.rs, in impl Detached:

pub(crate) fn tables_done(&mut self) { self._state.tables_done(); }

host.rs, new function beside land():

fn tables_back(landed: &mut [(Vec<crate::list::Detached>, Vec<usize>)]) {
    for (lists, order) in landed {
        for &i in order.iter() {
            if let Some(list) = lists.get_mut(i) { list.tables_done(); }
        }
    }
}

Call tables_back(&mut landed); just before if last > 0 { FINISHED.store(..); bury(last); } in BOTH settle and relay_land.

In the working copy these are behind a switch: latesync.rs (plus mod latesync; in lib.rs), VICTORY_LATE_AS_SYNC=lag,tables. The steps above make them permanent instead.

Build

cargo build --locked --profile diag -p victory --features diagnostics

Run (working copy, switch version)

& 'D:\BigGame\VIctory-7900XTX-trace\scripts\play.ps1' -Exe 'D:\BigGame\GTA\game_scarlett_master.exe' -Safe -More @{VICTORY_COPIES_IN_PLACE='0';VICTORY_LATE_AS_SYNC='lag,tables'}

Not needed for the fix (off by default in the working copy)

sendtrace.rs and its hooks, VICTORY_SENDTRACE(_HOLD), VICTORY_CARD_AWAKE_ALWAYS, VICTORY_RESUBMIT_TRACE, the other LATE_AS_SYNC names, and VICTORY_RESUBMIT_FIX (fixes a separate real bug: re-submitted lists run empty with send-ahead; it did not stop this crash).

Status

Stable with relay off (runs 26, 27). Relay on (run 28): user reports it worked; log not reviewed. Why the delayed release crashes is unknown, and lag vs tables was never tested separately. Log: D:\BigGame\debug-logs\fork7900-run28-relay-lag-tables.log. Nothing is committed.

Claude Used , God Speed

**@⁠scrubber81** on GitHub · 2026-11-26 04:02 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/113) ### Base: `D:\BigGame\VIctory-7900XTX-main` (untouched). Working copy: `D:\BigGame\VIctory-7900XTX-trace. Built exe: D:\BigGame\team\qa-bin\fork7900relayfix-b27a6276b7cc\.` ### The fix (all in crates\victory-gpu\src) host.rs, fn land(): release every landed flight at once. Don't hold back bury_lag() of them: let n = line.landed.len(); (was len().saturating_sub(bury_lag() as usize)). ### list.rs, in impl Detached: `pub(crate) fn tables_done(&mut self) { self._state.tables_done(); }` ### host.rs, new function beside land(): ``` fn tables_back(landed: &mut [(Vec<crate::list::Detached>, Vec<usize>)]) { for (lists, order) in landed { for &i in order.iter() { if let Some(list) = lists.get_mut(i) { list.tables_done(); } } } } ``` Call tables_back(&mut landed); just before if last > 0 { FINISHED.store(..); bury(last); } in BOTH settle and relay_land. In the working copy these are behind a switch: latesync.rs (plus mod latesync; in lib.rs), VICTORY_LATE_AS_SYNC=lag,tables. The steps above make them permanent instead. ### Build `cargo build --locked --profile diag -p victory --features diagnostics` ### Run (working copy, switch version) `& 'D:\BigGame\VIctory-7900XTX-trace\scripts\play.ps1' -Exe 'D:\BigGame\GTA\game_scarlett_master.exe' -Safe -More @{VICTORY_COPIES_IN_PLACE='0';VICTORY_LATE_AS_SYNC='lag,tables'}` ### Not needed for the fix (off by default in the working copy) sendtrace.rs and its hooks, VICTORY_SENDTRACE(_HOLD), VICTORY_CARD_AWAKE_ALWAYS, VICTORY_RESUBMIT_TRACE, the other LATE_AS_SYNC names, and VICTORY_RESUBMIT_FIX (fixes a separate real bug: re-submitted lists run empty with send-ahead; it did not stop this crash). ### Status Stable with relay off (runs 26, 27). Relay on (run 28): user reports it worked; log not reviewed. Why the delayed release crashes is unknown, and lag vs tables was never tested separately. Log: D:\BigGame\debug-logs\fork7900-run28-relay-lag-tables.log. Nothing is committed. Claude Used , God Speed
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:24:46 +00:00
Author
Owner

@⁠scrubber81 on GitHub · 2026-11-26 04:05 UTC · original

Tested on one PC only (RX 6800 XT), using -Safe and VICTORY_COPIES_IN_PLACE=0. Tested using the VICTORY_LATE_AS_SYNC=lag,tables switch; the permanent edit below hasn't been built or tested. Stable in two runs with the relay off. One relay-on run was reported working, but its log wasn't reviewed. The root cause is unknown, and lag and tables weren't tested separately.

**@⁠scrubber81** on GitHub · 2026-11-26 04:05 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/113#issuecomment-7182291346) Tested on one PC only (RX 6800 XT), using -Safe and VICTORY_COPIES_IN_PLACE=0. Tested using the VICTORY_LATE_AS_SYNC=lag,tables switch; the permanent edit below hasn't been built or tested. Stable in two runs with the relay off. One relay-on run was reported working, but its log wasn't reviewed. The root cause is unknown, and lag and tables weren't tested separately.
Author
Owner

@⁠weikiboy-tech on GitHub · 2026-11-26 11:56 UTC · original

RX 6800 XT (16 GB, RDNA2) test on commit 9576c45, 26 November 2026. System: Ryzen 5 5600X, 32 GB RAM, Windows 11 build 26200, AMD Adrenalin 26.11.2.

We started the story prologue twice. At 10:52 CET with the optimized profile, the opening cutscene showed a gray screen and the process exited with 0x887A0005 (DXGI_ERROR_DEVICE_REMOVED). The reported removal reason was 0x887A0007 (DXGI_ERROR_DEVICE_RESET). At 10:56 CET with the Safe profile, cutscene audio played, but the image remained gray at about 0.9 FPS before the same exit code. Neither run reached controllable gameplay.

These results are for the build above. We have not tested the patch proposed in this issue.

**@⁠weikiboy-tech** on GitHub · 2026-11-26 11:56 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/113#issuecomment-7191372044) RX 6800 XT (16 GB, RDNA2) test on commit `9576c45`, 26 November 2026. System: Ryzen 5 5600X, 32 GB RAM, Windows 11 build 26200, AMD Adrenalin 26.11.2. We started the story prologue twice. At 10:52 CET with the optimized profile, the opening cutscene showed a gray screen and the process exited with `0x887A0005` (DXGI_ERROR_DEVICE_REMOVED). The reported removal reason was `0x887A0007` (DXGI_ERROR_DEVICE_RESET). At 10:56 CET with the Safe profile, cutscene audio played, but the image remained gray at about 0.9 FPS before the same exit code. Neither run reached controllable gameplay. These results are for the build above. We have not tested the patch proposed in this issue.
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/avatarmanz--VIctory-7900XTX#113
No description provided.