GPU: write faults read the bytes they save without the guard lock #3033

Closed
liandraraiane wants to merge 4 commits from upstream-pr/3035 into main
liandraraiane commented 2026-11-26 04:17:28 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by liandraraiane on 2026-11-26T04:17:28Z.


Problem

Issue #400 measures the guard lock of crates/victory-gpu/src/watch.rs held about 600 ms a world frame on an RTX 2080, with write faults taking about 450 µs each, mostly waiting for it. When a write faults on a page a tracker is armed for, the handler saves the page's 64 KiB before opening it, and it did that (a 64 KiB allocation and a ReadProcessMemory) while holding the guard lock, so every other title thread's fault, every take and every kernel write (writing) queued behind the copy.

Change

The fault reads the bytes it will save with the lock released, then takes the lock again and keeps them only if the page stayed guarded meanwhile. A guarded page's bytes can only change once it is opened, and open is the only place that removes a page from the guard set, so a count per page (folded onto 4,096 counters) is bumped there under the lock and compared when the lock is taken again. If it moved, or the page is no longer guarded, the bytes are read under the lock exactly as before. The bytes read ahead go only to the faulting page's own save, never to an alias's. No protection call moves out of the lock (an earlier attempt that made pages read-only outside it was slower: the protection calls cost more while writers keep running).

Benchmark

guard_lock_contention_bench (new, #[ignore]d): writer threads fault on 256 guarded pages, a submission thread arms every other tracker and takes all of them in rounds, and a kernel-writer thread opens 8-page ranges with writing every 200 µs. Ryzen 7 5700G (16 threads), Windows 11, release. Base = the same benchmark without the change. 15 runs alternated, median with the interquartile range.

Writers working 50 µs between writes (GUARD_BENCH_SPIN_US=50; a title faults far less often than this):

writers faults/s fault p99 µs take round µs 8-page writing p99 µs
4 52,125 → 53,432 202.5 → 202.8 266.4 [264–268] → 224.8 [224–227] 497.4 → 442.6
8 83,372 → 86,820 303.7 [300–306] → 291.0 [289–292] 315.6 [310–318] → 278.9 [277–282] 603.0 [591–622] → 479.4 [471–493]
15 102,795 → 111,712 481.1 [478–485] → 410.3 [409–413] 470.0 [459–481] → 355.3 [351–358] 1038.6 [978–1050] → 739.3 [736–752]

Writers writing back to back (saturated):

writers faults/s fault p50 µs fault p99 µs 8-page writing p99 µs
4 154,499 → 148,130 21.9 → 22.4 290.2 → 290.8 508.0 → 492.2
8 155,385 → 150,264 43.9 → 44.9 345.1 → 344.3 631.8 → 580.0
15 174,479 → 171,551 75.1 → 75.4 475.2 → 465.1 1009.5 → 784.1

In the saturated case a fault that saves takes the lock twice, and throughput drops 2–4 %; the tail of kernel writes still improves.

Tests

  • New saved_bytes_are_the_page_as_taken_under_concurrent_faults: 12 writers fault on armed pages while the main thread takes, copies and arms in rounds; whatever a tracker saved of a page must equal the copy taken of it. With the opened-count check removed it fails 10/10 release runs; with this change it passes 20/20.
  • New concurrent_writes_and_takes_lose_no_write: no write lost between a take's guard and its copy, no stray fault (it caught a race in the rejected attempt above, 2/10 runs); 20/20 here.
  • cargo test -p victory-gpu --lib: all pass except the two tests that fail on NVIDIA on main as well (dynamic_slots_are_held_until_released, lists_share_a_table_and_copies_keep_their_views, the capped view heap). cargo clippy --workspace --all-targets -- -D warnings: clean. rustfmt --check reports the same 39 differences in watch.rs as on main, none in the new code.
  • Flakiness, 100 full victory-gpu runs each, interleaved: descriptor::host views_bound_while_another_slot_gets_its_texture_do_not_wait (base 4, this 7) and a_slot_rewritten_while_its_view_is_prepared_views_the_new_record (2, 4) fail now and then on both, and on unmodified main too (1 of 25 each). shadow::tests::partial_refresh_under_marked_range_updates_saved_bytes failed once in about 160 full runs of this change (0 in 100 interleaved runs here, 0 in about 170 of the base); I could not reproduce it or find a path that explains it, so I am reporting it.

Not tested

The title (no game data here). AMD GPUs. The benchmark is synthetic: the fault rate, page counts and arming pattern are made up, and a title's VirtualProtect calls cost much more than here.

AI use

Claude Code (Claude Opus 5.5) wrote the change, tests and benchmark, ran every measurement above on this machine and drafted this description; I reviewed and approved it.

🤖 Generated with Claude Code

https://claude.ai/code/session_01SLrhrPRF9pqyeEQtcgYu3x

<!-- greyfinch-sync:Marvisak/VIctory:issue:5503898689 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3035). Originally posted by [liandraraiane](https://github.com/liandraraiane) on 2026-11-26T04:17:28Z. --- ## Problem Issue #400 measures the guard lock of `crates/victory-gpu/src/watch.rs` held about 600 ms a world frame on an RTX 2080, with write faults taking about 450 µs each, mostly waiting for it. When a write faults on a page a tracker is armed for, the handler saves the page's 64 KiB before opening it, and it did that (a 64 KiB allocation and a `ReadProcessMemory`) **while holding the guard lock**, so every other title thread's fault, every take and every kernel write (`writing`) queued behind the copy. ## Change The fault reads the bytes it will save with the lock released, then takes the lock again and keeps them only if the page stayed guarded meanwhile. A guarded page's bytes can only change once it is opened, and `open` is the only place that removes a page from the guard set, so a count per page (folded onto 4,096 counters) is bumped there under the lock and compared when the lock is taken again. If it moved, or the page is no longer guarded, the bytes are read under the lock exactly as before. The bytes read ahead go only to the faulting page's own save, never to an alias's. No protection call moves out of the lock (an earlier attempt that made pages read-only outside it was slower: the protection calls cost more while writers keep running). ## Benchmark `guard_lock_contention_bench` (new, `#[ignore]`d): writer threads fault on 256 guarded pages, a submission thread arms every other tracker and takes all of them in rounds, and a kernel-writer thread opens 8-page ranges with `writing` every 200 µs. Ryzen 7 5700G (16 threads), Windows 11, release. Base = the same benchmark without the change. 15 runs alternated, median with the interquartile range. **Writers working 50 µs between writes** (`GUARD_BENCH_SPIN_US=50`; a title faults far less often than this): | writers | faults/s | fault p99 µs | take round µs | 8-page `writing` p99 µs | |---|---|---|---|---| | 4 | 52,125 → 53,432 | 202.5 → 202.8 | 266.4 [264–268] → **224.8** [224–227] | 497.4 → **442.6** | | 8 | 83,372 → 86,820 | 303.7 [300–306] → **291.0** [289–292] | 315.6 [310–318] → **278.9** [277–282] | 603.0 [591–622] → **479.4** [471–493] | | 15 | 102,795 → **111,712** | 481.1 [478–485] → **410.3** [409–413] | 470.0 [459–481] → **355.3** [351–358] | 1038.6 [978–1050] → **739.3** [736–752] | **Writers writing back to back** (saturated): | writers | faults/s | fault p50 µs | fault p99 µs | 8-page `writing` p99 µs | |---|---|---|---|---| | 4 | 154,499 → 148,130 | 21.9 → 22.4 | 290.2 → 290.8 | 508.0 → 492.2 | | 8 | 155,385 → 150,264 | 43.9 → 44.9 | 345.1 → 344.3 | 631.8 → **580.0** | | 15 | 174,479 → 171,551 | 75.1 → 75.4 | 475.2 → 465.1 | 1009.5 → **784.1** | In the saturated case a fault that saves takes the lock twice, and throughput drops 2–4 %; the tail of kernel writes still improves. ## Tests - New `saved_bytes_are_the_page_as_taken_under_concurrent_faults`: 12 writers fault on armed pages while the main thread takes, copies and arms in rounds; whatever a tracker saved of a page must equal the copy taken of it. With the opened-count check removed it fails 10/10 release runs; with this change it passes 20/20. - New `concurrent_writes_and_takes_lose_no_write`: no write lost between a take's guard and its copy, no stray fault (it caught a race in the rejected attempt above, 2/10 runs); 20/20 here. - `cargo test -p victory-gpu --lib`: all pass except the two tests that fail on NVIDIA on `main` as well (`dynamic_slots_are_held_until_released`, `lists_share_a_table_and_copies_keep_their_views`, the capped view heap). `cargo clippy --workspace --all-targets -- -D warnings`: clean. `rustfmt --check` reports the same 39 differences in `watch.rs` as on `main`, none in the new code. - Flakiness, 100 full `victory-gpu` runs each, interleaved: `descriptor::host` `views_bound_while_another_slot_gets_its_texture_do_not_wait` (base 4, this 7) and `a_slot_rewritten_while_its_view_is_prepared_views_the_new_record` (2, 4) fail now and then on both, and on unmodified `main` too (1 of 25 each). `shadow::tests::partial_refresh_under_marked_range_updates_saved_bytes` failed once in about 160 full runs of this change (0 in 100 interleaved runs here, 0 in about 170 of the base); I could not reproduce it or find a path that explains it, so I am reporting it. ## Not tested The title (no game data here). AMD GPUs. The benchmark is synthetic: the fault rate, page counts and arming pattern are made up, and a title's `VirtualProtect` calls cost much more than here. ## AI use Claude Code (Claude Opus 5.5) wrote the change, tests and benchmark, ran every measurement above on this machine and drafted this description; I reviewed and approved it. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01SLrhrPRF9pqyeEQtcgYu3x
kotekompotek commented 2026-11-26 04:42:18 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by kotekompotek on 2026-11-26T04:42:18Z.

Review: APPROVED


LGTM — verified the race argument: a protected page can't be written without faulting, every unguard path goes through open() which bumps OPENED, so still-protected + unchanged counter on re-lock proves the read was pre-write. take_if hands bytes to one tracker, others fall back to under-lock reads. Lock order g→changed→saved consistent throughout. The 12-writer stress test is a real check.

<!-- greyfinch-sync:Marvisak/VIctory:review:6068645879 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3035#pullrequestreview-6068645879). Originally posted by [kotekompotek](https://github.com/kotekompotek) on 2026-11-26T04:42:18Z. **Review:** APPROVED --- LGTM — verified the race argument: a protected page can't be written without faulting, every unguard path goes through open() which bumps OPENED, so still-protected + unchanged counter on re-lock proves the read was pre-write. take_if hands bytes to one tracker, others fall back to under-lock reads. Lock order g→changed→saved consistent throughout. The 12-writer stress test is a real check.
fyernald commented 2026-11-26 05:04:10 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fyernald on 2026-11-26T05:04:10Z.

Review: APPROVED


Ran 9e0eaa8 on Windows 10 22H2 with a Ryzen 7 5700X (8 cores / 16 threads, close to your 5700G), release build. For the base, I copied your new tests and the benchmark onto main 63bcca4's watch.rs without the change.

Correctness, 20 runs each:

base this PR
concurrent_writes_and_takes_lose_no_write 20/20 20/20
saved_bytes_are_the_page_as_taken_under_concurrent_faults 20/20 20/20
watch:: 17 passed 17 passed

guard_lock_contention_bench, 7 runs per build, alternated, medians:

GUARD_BENCH_SPIN_US=50

writers faults/s fault p99 µs take round µs 8-page writing p99 µs
4 45,521 → 48,053 270.4 → 266.8 464.9 → 371.4 475.2 → 382.1
8 69,687 → 72,738 465.2 → 455.2 565.3 → 469.2 801.3 → 662.5
15 81,451 → 86,496 694.1 → 619.3 748.9 → 557.3 1,181.1 → 905.5

Saturated (GUARD_BENCH_SPIN_US=0)

writers faults/s fault p50 µs fault p99 µs 8-page writing p99 µs
4 86,946 → 91,901 38.0 → 36.6 405.7 → 381.1 818.2 → 620.3
8 89,959 → 95,125 53.1 → 51.0 586.2 → 522.9 1,147.0 → 762.7
15 93,839 → 98,881 62.8 → 72.4 937.3 → 812.7 1,491.4 → 1,144.3

One difference from your numbers: saturated throughput goes up 5–6% here instead of down 2–4%, though the 15-writer fault p50 is up 15%. Faults are slower here than in your table at saturation (38 µs p50 at 4 writers vs your 22 µs), so the second lock taking may cost less than the read it moves out of the lock on this machine.

On the code: open is the only place a page leaves protected, and it bumps the count. Copy-backs and kernel writes reach it through writing, and remaps through changed → open_guarded. So bytes kept after the recheck can't include a write, and I found no path that changes a guarded page's bytes without opening it.

The two descriptor::host flakes you list (views_bound_while_another_slot_gets_its_texture_do_not_wait, a_slot_rewritten_while_its_view_is_prepared_views_the_new_record) are the ones #2585 fixes. It's test-only: their hook was one global shared by tests running in parallel.

<!-- greyfinch-sync:Marvisak/VIctory:review:6068811201 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3035#pullrequestreview-6068811201). Originally posted by [fyernald](https://github.com/fyernald) on 2026-11-26T05:04:10Z. **Review:** APPROVED --- Ran `9e0eaa8` on Windows 10 22H2 with a Ryzen 7 5700X (8 cores / 16 threads, close to your 5700G), release build. For the base, I copied your new tests and the benchmark onto `main` `63bcca4`'s `watch.rs` without the change. **Correctness, 20 runs each:** | | base | this PR | |---|---|---| | `concurrent_writes_and_takes_lose_no_write` | 20/20 | 20/20 | | `saved_bytes_are_the_page_as_taken_under_concurrent_faults` | 20/20 | 20/20 | | `watch::` | 17 passed | 17 passed | **`guard_lock_contention_bench`**, 7 runs per build, alternated, medians: `GUARD_BENCH_SPIN_US=50` | writers | faults/s | fault p99 µs | take round µs | 8-page `writing` p99 µs | |---|---|---|---|---| | 4 | 45,521 → 48,053 | 270.4 → 266.8 | 464.9 → **371.4** | 475.2 → **382.1** | | 8 | 69,687 → 72,738 | 465.2 → 455.2 | 565.3 → **469.2** | 801.3 → **662.5** | | 15 | 81,451 → **86,496** | 694.1 → **619.3** | 748.9 → **557.3** | 1,181.1 → **905.5** | Saturated (`GUARD_BENCH_SPIN_US=0`) | writers | faults/s | fault p50 µs | fault p99 µs | 8-page `writing` p99 µs | |---|---|---|---|---| | 4 | 86,946 → 91,901 | 38.0 → 36.6 | 405.7 → 381.1 | 818.2 → **620.3** | | 8 | 89,959 → 95,125 | 53.1 → 51.0 | 586.2 → **522.9** | 1,147.0 → **762.7** | | 15 | 93,839 → 98,881 | 62.8 → 72.4 | 937.3 → **812.7** | 1,491.4 → **1,144.3** | One difference from your numbers: saturated throughput goes up 5–6% here instead of down 2–4%, though the 15-writer fault p50 is up 15%. Faults are slower here than in your table at saturation (38 µs p50 at 4 writers vs your 22 µs), so the second lock taking may cost less than the read it moves out of the lock on this machine. On the code: `open` is the only place a page leaves `protected`, and it bumps the count. Copy-backs and kernel writes reach it through `writing`, and remaps through `changed` → `open_guarded`. So bytes kept after the recheck can't include a write, and I found no path that changes a guarded page's bytes without opening it. The two `descriptor::host` flakes you list (`views_bound_while_another_slot_gets_its_texture_do_not_wait`, `a_slot_rewritten_while_its_view_is_prepared_views_the_new_record`) are the ones #2585 fixes. It's test-only: their hook was one global shared by tests running in parallel.
pickles976 commented 2026-11-26 05:04:16 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pickles976 on 2026-11-26T04:45:56Z.


Wine/NVIDIA cross-check of the two new concurrency tests — both pass on a different host class. Head 9e0eaa811e7f1c2924eab406941705434e593d43, Linux + Wine 11.0 (vkd3d-proton 3.2.0, NVIDIA 590.48.1), RTX 4060 Laptop GPU, i.e. neither the 5700G/Windows nor the 2080 that motivated #400. Wrapper-injected --locked --target x86_64-pc-windows-msvc, one test thread, fresh Compiling victory-gpu .../VIctory-pr3035/... provenance.

  • watch::tests::saved_bytes_are_the_page_as_taken_under_concurrent_faults — 1/1 pass (0.31 s): the 12-writer take/copy/arm rounds saved exactly the taken bytes on this host too.
  • watch::tests::concurrent_writes_and_takes_lose_no_write — 1/1 pass (1.19 s): no write lost between a take's guard and its copy, no stray fault.

Scope: correctness of the lock-release scheme on this host only. I did not run the #[ignore]d guard_lock_contention_bench, so no throughput/latency numbers from here — the author's 5700G tables stand unchallenged, and the saturated-case 2–4 % fault-throughput trade-off remains their measurement. Wine's VirtualProtect/exception path differs from Windows', so a pass here is cross-platform robustness evidence, not a preview of the Windows win. No title run.

Local logs: .compat-runtime/logs/verify-pr3035-wine-saved-bytes.log, verify-pr3035-wine-no-lost-write.log. AI-assisted verification and report (OpenAI Codex).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7182882820 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3035#issuecomment-7182882820). Originally posted by [pickles976](https://github.com/pickles976) on 2026-11-26T04:45:56Z. --- **Wine/NVIDIA cross-check of the two new concurrency tests — both pass on a different host class.** Head `9e0eaa811e7f1c2924eab406941705434e593d43`, Linux + Wine 11.0 (vkd3d-proton 3.2.0, NVIDIA 590.48.1), RTX 4060 Laptop GPU, i.e. neither the 5700G/Windows nor the 2080 that motivated #400. Wrapper-injected `--locked --target x86_64-pc-windows-msvc`, one test thread, fresh `Compiling victory-gpu .../VIctory-pr3035/...` provenance. - `watch::tests::saved_bytes_are_the_page_as_taken_under_concurrent_faults` — **1/1 pass** (0.31 s): the 12-writer take/copy/arm rounds saved exactly the taken bytes on this host too. - `watch::tests::concurrent_writes_and_takes_lose_no_write` — **1/1 pass** (1.19 s): no write lost between a take's guard and its copy, no stray fault. Scope: correctness of the lock-release scheme on this host only. I did not run the `#[ignore]`d `guard_lock_contention_bench`, so no throughput/latency numbers from here — the author's 5700G tables stand unchallenged, and the saturated-case 2–4 % fault-throughput trade-off remains their measurement. Wine's `VirtualProtect`/exception path differs from Windows', so a pass here is cross-platform robustness evidence, not a preview of the Windows win. No title run. Local logs: `.compat-runtime/logs/verify-pr3035-wine-saved-bytes.log`, `verify-pr3035-wine-no-lost-write.log`. AI-assisted verification and report (OpenAI Codex).
pawrenity commented 2026-11-26 05:04:18 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pawrenity on 2026-11-26T05:04:10Z.


VERIFY-3035: verified 9e0eaa8 on NVIDIA GeForce RTX 4070, Windows 11 (MSVC). No defects found.

Tests

  • cargo test -p victory-gpu --lib at head: 231 passed, 2 ignored, 2 failed. With --features diagnostics: 246 passed, 2 failed. The two failures are dynamic_slots_are_held_until_released and lists_share_a_table_and_copies_keep_their_views, which also fail on main on this card.
  • watch:: in release (both new tests included): 20/20 passes. shadow:: in release: 10/10 passes, including partial_refresh_under_marked_range_updates_saved_bytes.
  • Mutation at head: with the opened(page) == before comparison in the handler replaced by true, saved_bytes_are_the_page_as_taken_under_concurrent_faults fails 10/10 release runs (page 9 saved other bytes than taken). The test does catch the race the counter guards against.
  • The two new tests, applied alone to origin/main 63bcca4, pass 5/5 in release. They check properties that main already holds, so they are not regression tests for a defect on main.
  • cargo clippy -p victory-gpu --all-targets -- -D warnings is clean, with and without --features diagnostics.
  • Trial merge onto origin/main 63bcca4 is clean.

Benchmark (guard_lock_contention_bench, release, GUARD_BENCH_SPIN_US=50 GUARD_BENCH_MS=1000, 3 runs each alternating base/PR; few samples, so indicative only):

writers faults/s base -> PR fault p99 us take round p50 us 8-page writing p99 us
8 77.4k-81.4k -> 83.4k-84.8k 347-386 -> 342-348 354-417 -> 318-330 636-685 -> 503-534
15 95.2k-104.0k -> 106.1k-113.3k 540-644 -> 491-537 513-585 -> 391-416 891-986 -> 730-763

At 1, 2 and 4 writers the runs overlap. This agrees in direction with the PR's 5700G tables. I did not run the saturated (spin 0) case.

Review (reading only)

  • Lock ordering: would_save keeps c.0 locked while it takes c.1, because the shadowed guard is not dropped until the end of the function. It is called with the guard lock held, so its order is guards -> c.0 -> c.1. take_split and Tracked::taken use the same order (guards -> c.0 -> Changed::taken's c.1). The other paths (save, arm, unarm, disarm, saved, refreshed) take only c.1, and none takes the guard lock or c.0 while holding it. I found no inversion.
  • Counter invariant: open() (watch.rs:480) is the only place that removes from protected, and it is the only PAGE_READWRITE call. Tracked::drop, writing and its drop, title_memory_remapped, title_memory_aliased and the handler all reach it through open. Every way a page stops being guarded therefore bumps OPENED. Both the bump and the loads happen under the guard lock, so Relaxed is enough. When the page is guarded at both ends and the count is unchanged, the read lies inside one continuously read-only interval. Any holder that has the page un-changed at re-lock took it inside that interval, so giving the read-ahead to the first saving holder (which may not be the one would_save matched) is still correct.
  • Interleavings checked: a take by another holder during the unlocked read (no open, so the bytes stay valid); refreshed running between the read and the insert (it finds no saved entry, as on main, and its bytes equal memory); the tracker being dropped meanwhile (changed() reads holders again, and an unused read is freed); the page opened and guarded again (the count moves, so it falls back to the read under the lock).
  • Assumption carried over from main: a write that bypasses both the handler and writing (for example through an alias mapping that is not guarded) is not seen. The read-ahead window does not make this worse, because main read at fault time with the same exposure.

AI-assisted (Claude Code).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7183151878 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3035#issuecomment-7183151878). Originally posted by [pawrenity](https://github.com/pawrenity) on 2026-11-26T05:04:10Z. --- VERIFY-3035: verified `9e0eaa8` on NVIDIA GeForce RTX 4070, Windows 11 (MSVC). No defects found. Tests - `cargo test -p victory-gpu --lib` at head: 231 passed, 2 ignored, 2 failed. With `--features diagnostics`: 246 passed, 2 failed. The two failures are `dynamic_slots_are_held_until_released` and `lists_share_a_table_and_copies_keep_their_views`, which also fail on main on this card. - `watch::` in release (both new tests included): 20/20 passes. `shadow::` in release: 10/10 passes, including `partial_refresh_under_marked_range_updates_saved_bytes`. - Mutation at head: with the `opened(page) == before` comparison in the handler replaced by `true`, `saved_bytes_are_the_page_as_taken_under_concurrent_faults` fails 10/10 release runs (`page 9 saved other bytes than taken`). The test does catch the race the counter guards against. - The two new tests, applied alone to origin/main `63bcca4`, pass 5/5 in release. They check properties that main already holds, so they are not regression tests for a defect on main. - `cargo clippy -p victory-gpu --all-targets -- -D warnings` is clean, with and without `--features diagnostics`. - Trial merge onto origin/main `63bcca4` is clean. Benchmark (`guard_lock_contention_bench`, release, `GUARD_BENCH_SPIN_US=50 GUARD_BENCH_MS=1000`, 3 runs each alternating base/PR; few samples, so indicative only): | writers | faults/s base -> PR | fault p99 us | take round p50 us | 8-page `writing` p99 us | |---|---|---|---|---| | 8 | 77.4k-81.4k -> 83.4k-84.8k | 347-386 -> 342-348 | 354-417 -> 318-330 | 636-685 -> 503-534 | | 15 | 95.2k-104.0k -> 106.1k-113.3k | 540-644 -> 491-537 | 513-585 -> 391-416 | 891-986 -> 730-763 | At 1, 2 and 4 writers the runs overlap. This agrees in direction with the PR's 5700G tables. I did not run the saturated (spin 0) case. Review (reading only) - Lock ordering: `would_save` keeps `c.0` locked while it takes `c.1`, because the shadowed guard is not dropped until the end of the function. It is called with the guard lock held, so its order is guards -> `c.0` -> `c.1`. `take_split` and `Tracked::taken` use the same order (guards -> `c.0` -> `Changed::taken`'s `c.1`). The other paths (`save`, `arm`, `unarm`, `disarm`, `saved`, `refreshed`) take only `c.1`, and none takes the guard lock or `c.0` while holding it. I found no inversion. - Counter invariant: `open()` (watch.rs:480) is the only place that removes from `protected`, and it is the only `PAGE_READWRITE` call. `Tracked::drop`, `writing` and its drop, `title_memory_remapped`, `title_memory_aliased` and the handler all reach it through `open`. Every way a page stops being guarded therefore bumps `OPENED`. Both the bump and the loads happen under the guard lock, so `Relaxed` is enough. When the page is guarded at both ends and the count is unchanged, the read lies inside one continuously read-only interval. Any holder that has the page un-changed at re-lock took it inside that interval, so giving the read-ahead to the first saving holder (which may not be the one `would_save` matched) is still correct. - Interleavings checked: a take by another holder during the unlocked read (no open, so the bytes stay valid); `refreshed` running between the read and the insert (it finds no saved entry, as on main, and its bytes equal memory); the tracker being dropped meanwhile (`changed()` reads `holders` again, and an unused read is freed); the page opened and guarded again (the count moves, so it falls back to the read under the lock). - Assumption carried over from main: a write that bypasses both the handler and `writing` (for example through an alias mapping that is not guarded) is not seen. The read-ahead window does not make this worse, because main read at fault time with the same exposure. AI-assisted (Claude Code).
fuzeofficlal commented 2026-11-26 05:21:17 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T05:21:17Z.

Review: APPROVED


Static review of 9e0eaa81 (crates/victory-gpu/src/watch.rs).

The lock-splitting design looks sound:

  • Capturing opened = OPENED.load(Acquire) before dropping GUARDS and rechecking g.protected.contains(&page) + OPENED after reading the page (while keeping the page read-only during read_into) prevents ABA across reopens, aliases, and remaps — open() bumps OPENED under GUARDS before VirtualProtect restores write access, so any concurrent unprotect/write forces a retry or sees the page already open.
  • Only holders with an armed tracker trigger a save, and saved is populated after re-acquiring GUARDS only if the page stayed protected.

Two minor non-blocking notes:

  • In Changed::would_save, let saved = ... shadows the earlier MutexGuard rather than explicitly dropping self.0 before locking self.1 (the lock order changed.0 -> changed.1 is still consistent with the rest of watch.rs, so no deadlock, just slightly subtle).
  • In Changed::save, read.take_if(...) moves the snapshot buffer into the first armed tracker; when multiple armed trackers share the same page, subsequent trackers clone as intended.
<!-- greyfinch-sync:Marvisak/VIctory:review:6068937123 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3035#pullrequestreview-6068937123). Originally posted by [fuzeofficlal](https://github.com/fuzeofficlal) on 2026-11-26T05:21:17Z. **Review:** APPROVED --- Static review of `9e0eaa81` (`crates/victory-gpu/src/watch.rs`). The lock-splitting design looks sound: - Capturing `opened = OPENED.load(Acquire)` before dropping `GUARDS` and rechecking `g.protected.contains(&page)` + `OPENED` after reading the page (while keeping the page read-only during `read_into`) prevents ABA across reopens, aliases, and remaps — `open()` bumps `OPENED` under `GUARDS` before `VirtualProtect` restores write access, so any concurrent unprotect/write forces a retry or sees the page already open. - Only `holders` with an armed tracker trigger a save, and `saved` is populated after re-acquiring `GUARDS` only if the page stayed protected. Two minor non-blocking notes: - In `Changed::would_save`, `let saved = ...` shadows the earlier `MutexGuard` rather than explicitly dropping `self.0` before locking `self.1` (the lock order `changed.0 -> changed.1` is still consistent with the rest of `watch.rs`, so no deadlock, just slightly subtle). - In `Changed::save`, `read.take_if(...)` moves the snapshot buffer into the first armed tracker; when multiple armed trackers share the same page, subsequent trackers clone as intended.
Dukestar69 commented 2026-11-26 06:48:16 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Dukestar69 on 2026-11-26T06:48:16Z.

Review: APPROVED


Tested locally merged onto origin/main (63bcca4) on Windows 11 x64:

  • Diff review: Reading guarded 64 KiB page bytes outside the guard lock and validating against the per-page OPENED generation counter + guarded state once back under the lock cleanly avoids holding the global guard lock across 64 KiB copies on write faults while falling back safely if the page was opened meanwhile.
  • cargo test -p victory-gpu watch::tests -- --test-threads=1: all tests passed.
  • cargo clippy -p victory-gpu --all-targets -- -D warnings: clean.
  • cargo xtask policy: 191 files ok.

Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:Marvisak/VIctory:review:6069671193 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3035#pullrequestreview-6069671193). Originally posted by [Dukestar69](https://github.com/Dukestar69) on 2026-11-26T06:48:16Z. **Review:** APPROVED --- Tested locally merged onto `origin/main` (`63bcca4`) on Windows 11 x64: - Diff review: Reading guarded 64 KiB page bytes outside the guard lock and validating against the per-page `OPENED` generation counter + guarded state once back under the lock cleanly avoids holding the global guard lock across 64 KiB copies on write faults while falling back safely if the page was opened meanwhile. - `cargo test -p victory-gpu watch::tests -- --test-threads=1`: all tests passed. - `cargo clippy -p victory-gpu --all-targets -- -D warnings`: clean. - `cargo xtask policy`: 191 files ok. Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
Marvisak commented 2026-11-26 07:01:48 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-26T06:18:35Z.


Automated triage for the maintainers.

In crates/victory-gpu/src/watch.rs, the write-fault handler now reads the 64 KiB it is about to save without holding the guard lock. It keeps those bytes only if, back under the lock, the page is still guarded and its OPENED count has not moved. Otherwise it reads under the lock as before (Changed::save, page_bytes). I checked the invariant this relies on: at this head, open() is the only place that removes a page from protected and the only PAGE_READWRITE call, and it bumps the count under the guard lock. So bytes read while the page stayed guarded cannot include a write. The bytes read ahead are used only for the faulting page's own save. Alias pages and other holders still read under the lock. All other callers of changed pass &mut None, so their behaviour does not change. This is a host-side locking change with measured benefit (#400 and the benchmark tables), not a change to emulated behaviour. The new tests pass on main too, so they are guards against regressions rather than reproductions of a bug. An independent run in this thread showed that the concurrent-faults test fails when the count check is removed.

CI: check passing.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7184302394 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3035#issuecomment-7184302394). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-26T06:18:35Z. --- <!-- victory-triage v1 head=9e0eaa811e7f1c2924eab406941705434e593d43 verdict=merge-candidate at=2026-11-26T06:25:00Z --> Automated triage for the maintainers. In `crates/victory-gpu/src/watch.rs`, the write-fault handler now reads the 64 KiB it is about to save without holding the guard lock. It keeps those bytes only if, back under the lock, the page is still guarded and its `OPENED` count has not moved. Otherwise it reads under the lock as before (`Changed::save`, `page_bytes`). I checked the invariant this relies on: at this head, `open()` is the only place that removes a page from `protected` and the only `PAGE_READWRITE` call, and it bumps the count under the guard lock. So bytes read while the page stayed guarded cannot include a write. The bytes read ahead are used only for the faulting page's own save. Alias pages and other holders still read under the lock. All other callers of `changed` pass `&mut None`, so their behaviour does not change. This is a host-side locking change with measured benefit (#400 and the benchmark tables), not a change to emulated behaviour. The new tests pass on `main` too, so they are guards against regressions rather than reproductions of a bug. An independent run in this thread showed that the concurrent-faults test fails when the count check is removed. CI: `check` passing. --- _Generated by [Claude Code](https://claude.ai/code)_
MeMako commented 2026-11-26 07:01:51 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by MeMako on 2026-11-26T06:28:55Z.


Verified #3035 (9e0eaa8) on Windows 11 (10.0.26200, Ryzen 9 7950X, RX 9070 XT, driver 32.0.32029.2010, 32 GB RAM).

Tests

  • cargo clippy -p victory-gpu --all-targets --locked -- -D warnings: clean.
  • victory-gpu: 272/272 passed (including saved_bytes_are_the_page_as_taken_under_concurrent_faults and concurrent_writes_and_takes_lose_no_write, with 0 lost writes in the stress tests).

Live Title Verification (RX 9070 XT)

  • Setup: Local integration branch (main 63bcca4 + #2051 + #2472 + #2918 + #1010 + #2130 with VRAM upload flags off + #3055 + #2914), adding #2985 + #2849 + #3035 together in the same live run (n=54 world frames / n=38 heavy frames vs. n=51 / n=38 baseline).
  • Result: 0 crashes or visible corruptions through the intro and opening world scene.
  • Subsystem metrics (steady tail, last 20 heavy frames — 6,186 draws vs. 5,290 draws in baseline):
    • prep → deferred: 92.7 → 71.8 ms (-20.9 ms / -22.5%)
    • copy_back → marks: 71.6 → 63.5 ms (27.2 → 25.8 µs/page)
    • Total copy_back: 99.2 → 75.5 ms (-23.7 ms / -23.9%)
    • (Both watch.rs timers reflect #3035 and #2849 combined; #2985 affects texture detile/upload separately.)
  • Combined frame-time delta (all three PRs #2985 + #2849 + #3035 together): steady-tail frame time dropped 453.3 → 423.6 ms (2.20 → 2.40 fps), even with +17% more draws.

Merge Note with #2849 & #2918

  • When combined with #2849 (batched open_range), placing #3035's opened(page).fetch_add(1, Ordering::Relaxed) inside open_range's if g.protected.remove(&page) loop keeps every page open counted under GUARDS.
  • When combined with #2918, #3035's new test saved_bytes_are_the_page_as_taken_under_concurrent_faults just adapts t.saved(page) to Finished::Saved(bytes) = t.finish(page).

Hardware runs were performed by me on my 7950X / RX 9070 XT; comment drafted with Antigravity.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7184471385 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3035#issuecomment-7184471385). Originally posted by [MeMako](https://github.com/MeMako) on 2026-11-26T06:28:55Z. --- Verified `#3035` (`9e0eaa8`) on Windows 11 (`10.0.26200`, Ryzen 9 7950X, RX 9070 XT, driver `32.0.32029.2010`, 32 GB RAM). ### Tests - `cargo clippy -p victory-gpu --all-targets --locked -- -D warnings`: clean. - `victory-gpu`: **272/272 passed** (including `saved_bytes_are_the_page_as_taken_under_concurrent_faults` and `concurrent_writes_and_takes_lose_no_write`, with 0 lost writes in the stress tests). ### Live Title Verification (RX 9070 XT) - **Setup:** Local integration branch (`main` `63bcca4` + `#2051` + `#2472` + `#2918` + `#1010` + `#2130` with VRAM upload flags off + `#3055` + `#2914`), adding `#2985` + `#2849` + `#3035` together in the same live run (`n=54` world frames / `n=38` heavy frames vs. `n=51` / `n=38` baseline). - **Result:** 0 crashes or visible corruptions through the intro and opening world scene. - **Subsystem metrics (steady tail, last 20 heavy frames — `6,186` draws vs. `5,290` draws in baseline):** - `prep → deferred`: **92.7 → 71.8 ms** (**-20.9 ms / -22.5%**) - `copy_back → marks`: **71.6 → 63.5 ms** (**27.2 → 25.8 µs/page**) - Total `copy_back`: **99.2 → 75.5 ms** (**-23.7 ms / -23.9%**) - *(Both `watch.rs` timers reflect `#3035` and `#2849` combined; `#2985` affects texture detile/upload separately.)* - **Combined frame-time delta (all three PRs `#2985` + `#2849` + `#3035` together):** steady-tail frame time dropped **453.3 → 423.6 ms** (**2.20 → 2.40 fps**), even with +17% more draws. ### Merge Note with `#2849` & `#2918` - When combined with `#2849` (batched `open_range`), placing `#3035`'s `opened(page).fetch_add(1, Ordering::Relaxed)` inside `open_range`'s `if g.protected.remove(&page)` loop keeps every page open counted under `GUARDS`. - When combined with `#2918`, `#3035`'s new test `saved_bytes_are_the_page_as_taken_under_concurrent_faults` just adapts `t.saved(page)` to `Finished::Saved(bytes) = t.finish(page)`. *Hardware runs were performed by me on my 7950X / RX 9070 XT; comment drafted with Antigravity.*
KainanP commented 2026-11-27 12:40:26 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by KainanP on 2026-11-27T12:40:26Z.


Contention numbers for this PR from a shared benchmark (for #3425).

Method. The benchmark guard_contention and the check refreshes_under_writes_lose_nothing from #3516, split out as a standalone test-only commit (KainanP/VIctory perf/guard-bench: no behaviour change, guards() only times a lock it finds taken in test builds), applied unchanged to this PR's head (9e0eaa8) and to main (63bcca4). 256 MB write-watched pool in 64 KiB pages, copies of 32 pages, 1,400 pages dirtied before each refresh, title threads writing a random word every 20 µs while the copies are taken and copied. Release builds, i7-14650HX (24 threads), Windows 11. 31 rounds, builds interleaved and rotated each round, each run = median of 5 refreshes after a warm-up; table = medians over the 31 runs, plus the median (and quartiles) of the per-round PR/main ratio. Foreign load: other agents' rustc jobs were running (≈8 % of the CPU in a spot sample); the paired ratio is what to read.

Config Refresh ms (main → PR) Writers in their writes, ms Writers waiting for GUARDS, ms PR/main, writes PR/main, wait
1 writer 17.4 → 17.4 5.1 → 5.4 2.8 → 2.8 1.05 (0.96–1.15) 1.06 (0.97–1.13)
4 writers 29.1 → 29.5 37.8 → 37.6 24.3 → 23.7 1.04 (0.93–1.11) 1.02 (0.92–1.09)
4 writers, refresh on 4 threads 9.2 → 9.0 28.3 → 28.0 25.7 → 25.4 1.01 (0.97–1.09) 1.02 (0.96–1.09)
4 writers, twin views (aliased) 30.2 → 31.4 56.4 → 61.3 40.1 → 43.1 1.07 (0.95–1.21) 1.07 (0.97–1.20)
4 writers, copies armed (first writes save the page) 43.2 → 39.7 145.3 → 108.9 119.4 → 64.6 0.75 (0.71–0.83) 0.55 (0.51–0.60)

Reading. The one PR here that moves the contention, and only where pages are saved: with the copies armed, the writers' wait for GUARDS drops to 0.55× of main (quartiles 0.51–0.60), their time in writes to 0.75×, and the refresh's own wait from 8.7 ms to 0.05 ms. Unarmed, nothing changes (0.96–1.07, within noise; the would_save look is cheap). The twin-view run reads 1.07× for both but with quartiles 0.95–1.21, so I wouldn't call it a regression without more runs.

Correctness. refreshes_under_writes_lose_nothing passes on this head (3 × 1,000 rounds), as do the existing watch:: tests including yours.

AI use: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7218536546 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3035#issuecomment-7218536546). Originally posted by [KainanP](https://github.com/KainanP) on 2026-11-27T12:40:26Z. --- Contention numbers for this PR from a shared benchmark (for #3425). **Method.** The benchmark `guard_contention` and the check `refreshes_under_writes_lose_nothing` from #3516, split out as a standalone test-only commit ([KainanP/VIctory `perf/guard-bench`](https://github.com/KainanP/VIctory/commit/ab96ee44e6bf35ec1dc5cd97c0f059797950b2e8): no behaviour change, `guards()` only times a lock it finds taken in test builds), applied unchanged to this PR's head (`9e0eaa8`) and to `main` (`63bcca4`). 256 MB write-watched pool in 64 KiB pages, copies of 32 pages, 1,400 pages dirtied before each refresh, title threads writing a random word every 20 µs while the copies are taken and copied. Release builds, i7-14650HX (24 threads), Windows 11. 31 rounds, builds interleaved and rotated each round, each run = median of 5 refreshes after a warm-up; table = medians over the 31 runs, plus the median (and quartiles) of the per-round PR/main ratio. Foreign load: other agents' `rustc` jobs were running (≈8 % of the CPU in a spot sample); the paired ratio is what to read. | Config | Refresh ms (main → PR) | Writers in their writes, ms | Writers waiting for `GUARDS`, ms | PR/main, writes | PR/main, wait | |---|---|---|---|---|---| | 1 writer | 17.4 → 17.4 | 5.1 → 5.4 | 2.8 → 2.8 | 1.05 (0.96–1.15) | 1.06 (0.97–1.13) | | 4 writers | 29.1 → 29.5 | 37.8 → 37.6 | 24.3 → 23.7 | 1.04 (0.93–1.11) | 1.02 (0.92–1.09) | | 4 writers, refresh on 4 threads | 9.2 → 9.0 | 28.3 → 28.0 | 25.7 → 25.4 | 1.01 (0.97–1.09) | 1.02 (0.96–1.09) | | 4 writers, twin views (aliased) | 30.2 → 31.4 | 56.4 → 61.3 | 40.1 → 43.1 | 1.07 (0.95–1.21) | 1.07 (0.97–1.20) | | 4 writers, copies armed (first writes save the page) | 43.2 → 39.7 | 145.3 → 108.9 | 119.4 → 64.6 | 0.75 (0.71–0.83) | 0.55 (0.51–0.60) | **Reading.** The one PR here that moves the contention, and only where pages are saved: with the copies armed, the writers' wait for `GUARDS` drops to 0.55× of `main` (quartiles 0.51–0.60), their time in writes to 0.75×, and the refresh's own wait from 8.7 ms to 0.05 ms. Unarmed, nothing changes (0.96–1.07, within noise; the `would_save` look is cheap). The twin-view run reads 1.07× for both but with quartiles 0.95–1.21, so I wouldn't call it a regression without more runs. **Correctness.** `refreshes_under_writes_lose_nothing` passes on this head (3 × 1,000 rounds), as do the existing `watch::` tests including yours. _AI use: Claude Code (Claude Opus 5.5)._
neonbyte1 commented 2026-11-27 13:57:42 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by neonbyte1 on 2026-11-27T13:57:42Z.


Tested in game on an RTX 5090 (driver 620.73.04), Linux, GE-Proton11-14 Wine with its vkd3d-proton, GTA VI's opening prison yard, warm caches. Base: main plus the unmerged PRs this setup needs (listed in #3425), including copy-back in page runs under one lease; this PR merged on top (head 9e0eaa81). 420 s runs, medians of the last 30 frame-rate lines, candidate and control adjacent.

control with this PR
frame 196.1 ms 188.6 ms
fastest 5 s block 191.8 ms 179.5 ms
preparing (CPU) 75.8 ms 68.4 ms
time in the guard fault handler, per frame ~58 ms 50.0 ms
title threads waiting to write views, per frame ~78 ms 71.1 ms

One pair so far, but frame, fastest block and the handler counter move together, which matches what the PR changes. @KainanP's contention bench in #3425 found the same: this is the one open PR that shortens the writers' wait when trackers are armed. No crash, no device removal. Pictures at frames 1700 and 2048 show the same scene and lighting as the control (mean luma 31.9 vs 31.5); the pixel differences are the camera framing and the hint timing at that frame number, not rendering.

One extra case on stacks that open guarded pages outside open(). Our base opens a whole run of guarded pages with one VirtualProtect and removes them from protected directly (copy-back in runs). There, a fault's unlocked read can straddle a complete lease (pages opened, copy-back writes them, pages guarded again) and find the page guarded with an unchanged OPENED count, so it would keep stale bytes. On our tree the fix is to bump OPENED for each page such a lease opens; that, plus the bumps at the four places that change a guarded page's bytes without opening it (writing, remaps, aliased writes, alias copy-backs), is commit 3a2aa2fc on our branch. On main every opening goes through open(), so this PR as it stands is fine there; it only matters for whichever lands second of this and a run-based copy-back.

AI-assisted (Claude); measured on my machine, no game data shared.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7220158345 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3035#issuecomment-7220158345). Originally posted by [neonbyte1](https://github.com/neonbyte1) on 2026-11-27T13:57:42Z. --- Tested in game on an RTX 5090 (driver 620.73.04), Linux, GE-Proton11-14 Wine with its vkd3d-proton, GTA VI's opening prison yard, warm caches. Base: `main` plus the unmerged PRs this setup needs (listed in #3425), including copy-back in page runs under one lease; this PR merged on top (head `9e0eaa81`). 420 s runs, medians of the last 30 frame-rate lines, candidate and control adjacent. | | control | with this PR | |---|---|---| | frame | 196.1 ms | **188.6 ms** | | fastest 5 s block | 191.8 ms | 179.5 ms | | preparing (CPU) | 75.8 ms | 68.4 ms | | time in the guard fault handler, per frame | ~58 ms | **50.0 ms** | | title threads waiting to write views, per frame | ~78 ms | 71.1 ms | One pair so far, but frame, fastest block and the handler counter move together, which matches what the PR changes. @KainanP's contention bench in #3425 found the same: this is the one open PR that shortens the writers' wait when trackers are armed. No crash, no device removal. Pictures at frames 1700 and 2048 show the same scene and lighting as the control (mean luma 31.9 vs 31.5); the pixel differences are the camera framing and the hint timing at that frame number, not rendering. **One extra case on stacks that open guarded pages outside `open()`.** Our base opens a whole run of guarded pages with one `VirtualProtect` and removes them from `protected` directly (copy-back in runs). There, a fault's unlocked read can straddle a complete lease (pages opened, copy-back writes them, pages guarded again) and find the page guarded with an unchanged `OPENED` count, so it would keep stale bytes. On our tree the fix is to bump `OPENED` for each page such a lease opens; that, plus the bumps at the four places that change a guarded page's bytes without opening it (`writing`, remaps, aliased writes, alias copy-backs), is commit [`3a2aa2fc`](https://github.com/neonbyte1/VIctory/commit/3a2aa2fc) on our branch. On `main` every opening goes through `open()`, so this PR as it stands is fine there; it only matters for whichever lands second of this and a run-based copy-back. _AI-assisted (Claude); measured on my machine, no game data shared._

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
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.

Reference
Marvisak/VIctory!3033
No description provided.