xmem tests fail on Windows 11 26H2 (build 26300.9974) / RX 7900 GRE: 5 tests in victory-hle #8
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD#8
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@BeTiNSz on GitHub · 2026-11-25 11:32 UTC · original
Summary
cargo test -p victory-hle --libfails 5 tests, all inmodules::xmem, on my machine. The failures are deterministic: they are identical with--test-threads=1, so this is not interference between parallel tests.Everything else passes (97 passed, 5 failed, 1 ignored). I have not run the game; this is only the test suite and a release build.
Environment
4cbe9d7Steps to reproduce
Failing tests
modules::xmem::tests::a_run_keeps_the_placeholders_it_spansmodules::xmem::tests::a_run_maps_across_two_placeholdersmodules::xmem::tests::a_run_maps_again_after_a_partial_unmapmodules::xmem::tests::mapping_no_pages_changes_nothingmodules::xmem::tests::physical_pages_map_alias_and_unmapActual output
a_run_maps_across_two_placeholders(xmem.rs:1549): left 4096, right 8192a_run_maps_again_after_a_partial_unmap(xmem.rs:1524): left 4096, right 8192physical_pages_map_alias_and_unmap(xmem.rs:1330): left 4096, right 8192a_run_keeps_the_placeholders_it_spans(xmem.rs:1578): left (0x1000b0000, 131072), right (0x1000d0000, 131072)mapping_no_pages_changes_nothing(xmem.rs:1382): assertion failed:map_alias(at as u64, a as u64, 0)Four tests expect 8192 bytes (2 pages) but get 4096 (1 page). In the fifth, the address is 0x20000 lower than expected. The addresses differ slightly between runs, the 4096 vs 8192 values do not.
Full output attached: teste.txt
Notes
xtaskalso has one failing test,policy::tests::repository_passes_policy, becausecrates/victory-shader/src/emit/lower.rsis 630652 bytes (limit 524288). The README already lists this as a known problem, so I am not reporting it here.cargo build --release -p victoryfinishes without errors (4 dead-code warnings).Question
Is this expected on Windows builds other than the one the fork was developed on, or does it point to a bug in how
xmemmaps physical pages / placeholders? I can run extra diagnostics if useful.@MamaLeVrai on GitHub · 2026-11-25 11:43 UTC · original
The same five failures are in #2 (RX 6950 XT, Windows 11 build 26300 too), with the cause found there; two things that may save you time:
xmem.rs:1330,1524and1549the assertions comparequery(..).host.StatewithMEM_RESERVE: 4096 isMEM_COMMIT(0x1000) and 8192 isMEM_RESERVE(0x2000). So these tests find a page still committed where they expect it back to a reservation after an unmap.map_whole(added infa07481) shows a reservation as long as its section with one view, and the tests reserve exactly the section's length. With a local one-line change that makesmap_wholereturn false, all 14xmemtests pass (details in #2).AI-assisted (Claude Code); no game data.
@blpeters67 on GitHub · 2026-11-27 00:36 UTC · original
Status check against the current code (no local test run, just the code, history and CI):
4f62c2a): still has map_whole, the cause identified above. PR #14 fixes it: reservations under 16 MiB stay off the whole-view path, and zero-length map_alias is a no-op. That covers all five failures, and the PR adds two tests.4eb6cfd): the xmem rewrite removed map_whole. 3 of the 5 failing tests no longer exist. CI #385 on this commit is green on Windows, includingcargo test --workspaceand clippy with -D warnings.So this looks resolved on a-publier, and resolved on main once #14 merges. @BeTiNSz @MamaLeVrai, could you rerun
cargo test -p victory-hle --libon a-publier with build 26300 to confirm?