XGameRuntime: XAsyncGetResultSize writes 0 while the operation is pending #1201
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1201
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1201"
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?
@Longno242 on GitHub · 2026-11-24 13:08 UTC · original
Longno242:xasync-get-result-size-pending→main· +24 −1 · 1 files · 1 commits · open
XAsyncGetResultSizereturnedE_PENDINGwithout writing*size. libHttpClient always writes*bufferSizefirst (0 while pending), so a caller's leftover sentinel could be mistaken for a real size.No open issue tracked this; checked that open XAsync PRs (#1188, #1176, #670, …) do not cover GetResultSize's pending path.
What is in it
crates/xcl/src/hle/xgameruntime/xasync.rs: write*size = 0on pending (and on finished blocks); unit test with a0xDEADsentinelTested
8b57a0d8b57a0daf1f78cd20c7478db53c65336191de540(clean tree)cargo test --workspace -- --test-threads=4: 742 passed, 0 failed, 41 ignored. SKIPPED: 2 GPU tests for no wave64 (expected on this card)SKIPPED: 2 GPU tests for no wave64 (expected on this card)Regression run
scripts/smoke.ps1from @Toons29 (RX 9070, 60 s, same title/time; blocks as printed):Not tested
cargo test --workspaceAI use
*bufferSizecontract, implemented the fix and test, opened this draft PR. Exact underlying model name not disclosed to the agent.@DavidM1911 on GitHub · 2026-11-24 13:32 UTC · original
Independent verification on current
main384f7f7(branch already contains it — clean).Machine: Windows 11, Ryzen 9 7900X; Rust stable MSVC, debug.
cargo test -p xcl --lib xasync: 16 passed, 0 failed — XAsyncGetResultSize pending-write change keeps the suite green.AI use: test runs by Devin (Cognition, SWE-2); no code changes.
@Toons29 on GitHub · 2026-11-25 03:14 UTC · original
Regression run of
8b57a0daon the retail title, for this PR's Regression run section. Both blocks are fromscripts/smoke.ps1as printed, not edited:mainon4178e888, this PR on its head commit with no uncommitted changes, same title and time.Against the limits in CONTRIBUTING.md: 101 % of
main's frames, 99 % of its peak commit, no crash, no device removal.AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; I checked the blocks before posting.@Longno242 on GitHub · 2026-11-25 12:36 UTC · original
Thanks @Toons29 — pasted both of your
xcl-smoke v1blocks under Regression run so the description check can see them.@Longno242 on GitHub · 2026-11-25 12:43 UTC · original
CI is stuck on
action_required(first-time contributor workflow approval). Smoke + PR description are green; please approve the pending CI workflow when you get a chance.@jennydeth on GitHub · 2026-11-25 13:01 UTC · original
Full workspace run (listed under Not tested).
Setup: RTX 3060 12 GB (32-lane waves, driver 32.0.16.2101), Ryzen 5 5600X, 32 GB RAM, Windows 11 build 26300, Rust 1.100.0, DXC 1.9.2609.5, debug build. Head
8b57a0d.Result: cargo test --workspace -- --test-threads=4: 742 passed, 0 failed, 41 ignored. SKIPPED: 2 GPU tests for no wave64 (expected on this card).
Not tested: live libHttpClient against the system XGameRuntime.
AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this report.
@Longno242 on GitHub · 2026-11-25 13:21 UTC · original
Thanks @jennydeth — copied your workspace counts into Tested (742 passed, 0 failed, 41 ignored. SKIPPED: 2 GPU tests for no wave64 (expected on this card)).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.