xcl run: keep the UNC path of a game folder on a network share #579

Open
github-bot wants to merge 1 commit from github-bot/gh-579 into main AGit
Owner

@⁠0klavair on GitHub · 2026-11-24 02:02 UTC · original
0klavair:xcl-run/unc-game-folder → main · +25 −3 · 2 files · 1 commits · open

xcl run cannot start a game whose folder is on a network share. The folder (a mapped drive such as W:\…, or \\server\share\…) canonicalizes to \\?\UNC\server\share\…, and resolve_location / config_root cut only the leading \\?\. That leaves the relative path UNC\server\share\…: is_dir() is false on it, the folder is taken for an exe, and the start fails:

XCL 0.1.0 – starting 'Téléchargements'
  exe:   UNC\192.168.1.254\Disque 1\Téléchargements\<game folder>
  …
xcl: failed to start the game process: CreateProcessW: error 267

Both places now use vfs::strip_verbatim, which already turns \\?\UNC\server\share back into \\server\share for the VFS roots.

What is in it

  • crates/xcl/src/launcher.rs: resolve_location and config_root go through vfs::strip_verbatim; new test game_folder_on_a_network_share_keeps_its_unc_path, which resolves a temp folder through the machine's administrative share (\\localhost\C$\…) as a folder and as an exe. It prints SKIPPED and returns when that share is not reachable.
  • crates/xcl/src/vfs.rs: strip_verbatim is pub(crate).

Tested

  • RTX 5060 8 GB (driver 621.01), Ryzen 9 5950X, 32 GB RAM, Windows 11 23H2 (22631), rustc 1.94.1.
  • cargo test --workspace -- --test-threads=4 (debug): 681 passed, 0 failed, 41 ignored. SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware (no wave64).
  • The new test fails without the change (the root comes back as UNC\localhost\C$\…) and passes with it.
  • Retail title 1.0.2.1 from a NAS share mapped as W:: main stops with CreateProcessW: error 267 as above; with this PR it starts, shows its menus at 30 fps and reaches world loading.

Regression run

This PR's head, on the title from the network share:

xcl-smoke v1
commit: 84b691af0a4e0e7da8224afaf91d92b24335008d
gpu: NVIDIA GeForce RTX 5060
title: d15f1a28
seconds: 60
exit: 0x0
frames shown: 1387 (PresentX 1388)
presents per 2 s (last 3): 60 60 28
device removals: 0
crashes: 0
peak commit: 14436 MB

main (508a0c7) on the same title and folder produces no block: the title does not start, which is the bug, and smoke.ps1 stops with XCL printed no log path after the output above. The game is 208 GB and does not fit on this machine's local disks, so I could not run main on a local copy.

Not tested

  • A main smoke block on the same title (see above).
  • AMD; titles on a local disk beyond the existing tests (the change does not alter a C:\… path: strip_verbatim leaves it as the old trim did).
  • A CI runner without the administrative share: there the new test prints SKIPPED and does not cover the change.

AI use

  • Claude Code (Claude Opus 5.5): found the cause from the failed start, wrote the change, the test and this description, and ran the tests and the smoke run above on my machine.
**@⁠0klavair** on GitHub · 2026-11-24 02:02 UTC · [original](https://github.com/xcl-dev/xcl/pull/579) `0klavair:xcl-run/unc-game-folder` → `main` · +25 −3 · 2 files · 1 commits · open `xcl run` cannot start a game whose folder is on a network share. The folder (a mapped drive such as `W:\…`, or `\\server\share\…`) canonicalizes to `\\?\UNC\server\share\…`, and `resolve_location` / `config_root` cut only the leading `\\?\`. That leaves the relative path `UNC\server\share\…`: `is_dir()` is false on it, the folder is taken for an exe, and the start fails: ``` XCL 0.1.0 – starting 'Téléchargements' exe: UNC\192.168.1.254\Disque 1\Téléchargements\<game folder> … xcl: failed to start the game process: CreateProcessW: error 267 ``` Both places now use `vfs::strip_verbatim`, which already turns `\\?\UNC\server\share` back into `\\server\share` for the VFS roots. **What is in it** - `crates/xcl/src/launcher.rs`: `resolve_location` and `config_root` go through `vfs::strip_verbatim`; new test `game_folder_on_a_network_share_keeps_its_unc_path`, which resolves a temp folder through the machine's administrative share (`\\localhost\C$\…`) as a folder and as an exe. It prints `SKIPPED` and returns when that share is not reachable. - `crates/xcl/src/vfs.rs`: `strip_verbatim` is `pub(crate)`. **Tested** - RTX 5060 8 GB (driver 621.01), Ryzen 9 5950X, 32 GB RAM, Windows 11 23H2 (22631), rustc 1.94.1. - `cargo test --workspace -- --test-threads=4` (debug): 681 passed, 0 failed, 41 ignored. SKIPPED: `gpu_geometry_wave32_prefix_count_over_a_mask` and `gpu_wave32_program_in_wave64_hardware` (no wave64). - The new test fails without the change (the root comes back as `UNC\localhost\C$\…`) and passes with it. - Retail title 1.0.2.1 from a NAS share mapped as `W:`: `main` stops with `CreateProcessW: error 267` as above; with this PR it starts, shows its menus at 30 fps and reaches world loading. **Regression run** This PR's head, on the title from the network share: ``` xcl-smoke v1 commit: 84b691af0a4e0e7da8224afaf91d92b24335008d gpu: NVIDIA GeForce RTX 5060 title: d15f1a28 seconds: 60 exit: 0x0 frames shown: 1387 (PresentX 1388) presents per 2 s (last 3): 60 60 28 device removals: 0 crashes: 0 peak commit: 14436 MB ``` `main` (`508a0c7`) on the same title and folder produces no block: the title does not start, which is the bug, and `smoke.ps1` stops with `XCL printed no log path` after the output above. The game is 208 GB and does not fit on this machine's local disks, so I could not run `main` on a local copy. **Not tested** - A `main` smoke block on the same title (see above). - AMD; titles on a local disk beyond the existing tests (the change does not alter a `C:\…` path: `strip_verbatim` leaves it as the old trim did). - A CI runner without the administrative share: there the new test prints `SKIPPED` and does not cover the change. **AI use** - Claude Code (Claude Opus 5.5): found the cause from the failed start, wrote the change, the test and this description, and ran the tests and the smoke run above on my machine.
A game folder on a mapped network drive (or given as \server\share\...)
canonicalizes to \?\UNC\server\share\...; resolve_location and
config_root cut only the leading \?\, which leaves the relative path
UNC\server\share\... . is_dir() then fails on it, the folder is taken
for an exe, and the title's process does not start:

  xcl: failed to start the game process: CreateProcessW: error 267

Both now go through vfs::strip_verbatim, which already turns
\?\UNC\server\share back into \server\share for the VFS roots.

Seen with a retail title on a NAS share mapped as W:. The new test runs
a folder through the machine's administrative share (\localhost\C$)
and fails without the change.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:26:22 +00:00
Author
Owner

@⁠MesshM on GitHub · 2026-11-24 03:33 UTC · original

Test run of 84b691af0a4e0e7da8224afaf91d92b24335008d on AMD RDNA4. I merged it onto current main 91f9a5e locally (clean merge) and tested that tree.

Tested

  • AMD Radeon RX 9060 XT 16 GB (RDNA4), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200, Rust 1.100.0 stable-x86_64-pc-windows-msvc, debug
  • cargo build --workspace + cargo test --workspace -- --test-threads=4 on the merge: 693 passed, 0 failed, 41 ignored, exit code 0; xcl lib tests 653 passed, 0 failed, 21 ignored
  • 0 SKIPPED; game_folder_on_a_network_share_keeps_its_unc_path passes (the \\localhost\C$ administrative share exists here, so it ran rather than skipped).

Review: strip_verbatim keeps \\?\UNC\server\share\… as \\server\share\… instead of cutting only the verbatim prefix and leaving a relative UNC… path. I found nothing to change.

Not tested: no retail title or regression run (I have no unpacked game), no XCL_SAMPLE_* tests, release build; the PR's head on its old base was not run, only its merge onto main.

Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.

**@⁠MesshM** on GitHub · 2026-11-24 03:33 UTC · [original](https://github.com/xcl-dev/xcl/pull/579#issuecomment-7121206769) Test run of `84b691af0a4e0e7da8224afaf91d92b24335008d` on AMD RDNA4. I merged it onto current `main` `91f9a5e` locally (clean merge) and tested that tree. **Tested** - AMD Radeon RX 9060 XT 16 GB (RDNA4), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200, Rust 1.100.0 `stable-x86_64-pc-windows-msvc`, debug - `cargo build --workspace` + `cargo test --workspace -- --test-threads=4` on the merge: **693 passed, 0 failed, 41 ignored**, exit code 0; `xcl` lib tests 653 passed, 0 failed, 21 ignored - **0 `SKIPPED`**; `game_folder_on_a_network_share_keeps_its_unc_path` passes (the `\\localhost\C$` administrative share exists here, so it ran rather than skipped). **Review:** `strip_verbatim` keeps `\\?\UNC\server\share\…` as `\\server\share\…` instead of cutting only the verbatim prefix and leaving a relative `UNC…` path. I found nothing to change. **Not tested:** no retail title or regression run (I have no unpacked game), no `XCL_SAMPLE_*` tests, release build; the PR's head on its old base was not run, only its merge onto `main`. Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
Author
Owner

@⁠JJAutoCompare on GitHub · 2026-11-25 06:43 UTC · original

Empirical test report (84b691af)

Hardware / environment

  • Commit 84b691af0a4e0e7da8224afaf91d92b24335008d on Windows 11 Enterprise Evaluation, build 26200 (10.0.26200), with an AMD Ryzen 7 3800X 8-Core Processor.
  • Rust 1.100.0 (0ef1bc386 2026-11-09), host x86_64-pc-windows-msvc. DXC 1.9.2609.5 (01b62ad47).
  • Focused tests used XCL_ADAPTER=NONE_CPU_ONLY and RUST_TEST_NOCAPTURE=1. Cargo ran directly without the Arc test wrapper. The test profile was unoptimized.

Commands and results

  • cargo test --workspace --no-run exited 0 and built the workspace test binaries without executing them.
  • cargo test -p xcl --lib launcher::tests:: exited 0 with 13 passed, 0 failed, 0 ignored, and 0 skipped.
  • cargo test -p xcl --lib vfs::tests::a_console_drive_mount_leaves_xcls_shader_cache_on_that_drive -- --exact exited 0 with 1 passed, 0 failed, 0 ignored, and 0 skipped.
  • cargo test -p xcl --test e2e launcher_uses_configured_exe_in_an_ambiguous_folder -- --exact exited 0 with 1 passed, 0 failed, 0 ignored, and 0 skipped.
  • Focused total was 15 passed, 0 failed, and 0 ignored from the Rust test summaries, with 0 case-sensitive ^SKIPPED lines in the combined output.

Observed behavior

  • The new UNC test reached its assertions through the localhost administrative share. Resolving the fixture folder preserved the UNC root, and both the folder and explicit executable inputs resolved to an existing root and executable.
  • The VFS test passed its verbatim shader-cache path check. The CLI integration test recorded the configured executable in the boot record for a folder containing two candidates.

Not tested

  • Full GPU workspace suite, live SMB/UNC network share launch of a game, and game smoke runs.

AI use

Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr579-focused.log and published.

**@⁠JJAutoCompare** on GitHub · 2026-11-25 06:43 UTC · [original](https://github.com/xcl-dev/xcl/pull/579#issuecomment-7155087729) ### Empirical test report (84b691af) **Hardware / environment** - Commit `84b691af0a4e0e7da8224afaf91d92b24335008d` on Windows 11 Enterprise Evaluation, build 26200 (10.0.26200), with an AMD Ryzen 7 3800X 8-Core Processor. - Rust `1.100.0 (0ef1bc386 2026-11-09)`, host `x86_64-pc-windows-msvc`. DXC `1.9.2609.5 (01b62ad47)`. - Focused tests used `XCL_ADAPTER=NONE_CPU_ONLY` and `RUST_TEST_NOCAPTURE=1`. Cargo ran directly without the Arc test wrapper. The test profile was unoptimized. **Commands and results** - `cargo test --workspace --no-run` exited 0 and built the workspace test binaries without executing them. - `cargo test -p xcl --lib launcher::tests::` exited 0 with 13 passed, 0 failed, 0 ignored, and 0 skipped. - `cargo test -p xcl --lib vfs::tests::a_console_drive_mount_leaves_xcls_shader_cache_on_that_drive -- --exact` exited 0 with 1 passed, 0 failed, 0 ignored, and 0 skipped. - `cargo test -p xcl --test e2e launcher_uses_configured_exe_in_an_ambiguous_folder -- --exact` exited 0 with 1 passed, 0 failed, 0 ignored, and 0 skipped. - Focused total was 15 passed, 0 failed, and 0 ignored from the Rust test summaries, with 0 case-sensitive `^SKIPPED ` lines in the combined output. **Observed behavior** - The new UNC test reached its assertions through the localhost administrative share. Resolving the fixture folder preserved the UNC root, and both the folder and explicit executable inputs resolved to an existing root and executable. - The VFS test passed its verbatim shader-cache path check. The CLI integration test recorded the configured executable in the boot record for a folder containing two candidates. **Not tested** - Full GPU workspace suite, live SMB/UNC network share launch of a game, and game smoke runs. **AI use** Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr579-focused.log and published.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 13:18 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 13:18 UTC · [original](https://github.com/xcl-dev/xcl/pull/579#issuecomment-7163587939) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/579/head:github-bot/gh-579'
git switch 'github-bot/gh-579'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-579'
git switch 'github-bot/gh-579'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-579'
git switch 'github-bot/gh-579'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-579'
git switch 'main'
git merge --squash 'github-bot/gh-579'
git switch 'main'
git merge --ff-only 'github-bot/gh-579'
git switch 'main'
git merge 'github-bot/gh-579'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.