Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1233"
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?
Imported from ivall/xcl. Originally posted by Lum7nt on 2026-11-24T13:27:11Z.
Stacked on #579. Fixes #723. Fixes #695.
In retail game, the GameThread packet stream (96 KiB) fills up during the first-run account prompt because nothing on PC drains it. Once full (
capacity - cursor < requested), the title hits an unconditionalint 3assert attitle+0x4dcbc9d(0x80000003), terminating the process within ~30 s.What is in it
crates/xcl/src/eh.rs:handle_thread_stream_assert: handles0x8000_0003in VEH whenrip & 0xFFF == 0xC9Dwithin the main module pointing to0xCC(int 3).read_unaligned/write_unaligned) to avoid faults on unaligned slot pointers.(capacity * 8).max(1 MiB).min(16 MiB)), allocates a new buffer viaVirtualAlloc, copies active cursor data, updatesdataBaseandcapacity, and rewindsRipto the capacity check re-entry point at(rip & !0xFFF) | 0xC47so the enqueue completes normally without dropped packets.XCL_GROW_THREAD_STREAM=0), when memory allocation fails, or when the 16 MiB ceiling is reached, advancesRip += 1to land on+0xC9E(jmp +0xC8A, the title's own packet-dropped branch), continuing execution smoothly without crashing.eh::tests::thread_stream_assert_growth_ceiling_and_unaligned_slotcovering initial 4 KiB -> 1 MiB expansion with cursor preservation, retry jump to+0xC47, 16 MiB ceiling boundary enforcement, and unaligned slot pointer handling.Tested
cargo test -p xcl --lib eh::tests: 7 passed, 0 failedpython -m unittest discover -s scripts -v: 9 passed, 0 failedRegression run
main:
PR:
Not tested
AI use
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T13:47:26Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:Note: the full
d3d12xlib filter currently aborts with 0xc0000005 on unmodifiedmaintoo (pre-existing, unrelated to this PR); the PR's own tests were run by name and pass.Imported from ivall/xcl. Originally posted by NWProgramming00 on 2026-11-25T13:53:20Z.
Verified on Windows 11, NVIDIA GeForce RTX 5070 Ti 16 GB, Rust 1.100 MSVC, release. Same title and package as #695,
XCL_NETWORK=0.This PR's head
488feb4merges cleanly onto currentmain1a0bbe3(merge commitebff0e1, local only).cargo test --release -p xcl --lib eh::testson the merged tree: 7 passed, 0 failed, includingthread_stream_assert_growth_ceiling_and_unaligned_slot.scripts/smoke.ps1 -Seconds 60, same title, same card. Onmainthe run ends with the0x80000003assert at the address from #695, as every run on this machine has since yesterday. With this PR merged, it reaches the end:main1a0bbe3:main+ this PR (ebff0e1):Not tested
Imported from ivall/xcl. Originally posted by throny on 2026-11-25T16:35:22Z.
Two contributors checked independently and found that #887 solves the same problem (for #695) in a different way: #1607, group D83. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.
This is a hint from the community triage in #1607, not a maintainer decision.
AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
Imported from ivall/xcl. Originally posted by upipibi on 2026-11-25T21:03:46Z.
NVIDIA test report for
488feb4(head as is, base47efa2e), for #1607's "one more test report" list. RTX 3070 8 GB (Ampere, 32-lane waves), driver 616.56, Windows 11, debug, aftercargo build --workspace:cargo test --workspace --no-fail-fast -- --test-threads=4 --skip hle::xaudio2: 734 passed, 0 failed, 41 ignored. The end-to-end title tests pass.hle::xaudio2, because its tests fail or hang on this machine onmaintoo. The PR doesn't touch it.no wave64on this card.AI-assisted (Claude Code, Claude Opus 5.5). Synthetic tests only; no title run.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T04:17:21Z.
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin
Imported from ivall/xcl. Originally posted by throny on 2026-11-28T16:54:42Z.
merge-check claim
head:
488feb4cd2Imported from ivall/xcl. Originally posted by throny on 2026-11-28T17:10:38Z.
merge-check
base:
db3921dchead:
488feb4cd2merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2147 passed, 0 failed, 48 ignored (26 SKIPPED lines). Base alone at
db3921dc: 2145 passed, 0 failed, 48 ignored.review: the tests pass, but the change itself has blocking points. (1) It is a recovery for one build of one title that never identifies that build: no hash, version or title id. It acts on any breakpoint in the main module whose address has a certain page offset, takes a register as the object, writes two fields at fixed offsets of it and continues at a second fixed page offset. (2) It runs for every title and cannot be turned off: the switch only disables the growth, the step over the breakpoint stays. On another title or build, an assert that happens to sit at that page offset is swallowed, and if the register points at writable memory, that memory is written and execution continues in unrelated code. (3) main has no recovery keyed on a title's offsets; the existing ones in eh.rs are keyed on the decoded instruction. So this would be the first of its kind and needs the maintainer's decision, at the least with an identification of the build and an off switch. (4) The diff also contains the commit of #579, which is still open. Minor: the test replaces the process-wide main module with a fake one and does not restore it. No game bytes are in the diff or the test. My earlier note in the thread, that #887 addresses #695 another way, has no reply.
performance: none (only on breakpoint exceptions).
verdict: not yet: identify the build before acting and add a real off switch, take #579 out of the diff, and get the maintainer's word on title-specific recoveries.
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).
Imported from ivall/xcl. Originally posted by saintwolf on 2026-11-30T03:04:38Z.
@relativespace2K This has already been claimed. Do not claim
Imported from ivall/xcl. Originally posted by saintwolf on 2026-11-30T03:04:48Z.
merge-check claim
head:
488feb4cd2Imported from ivall/xcl. Originally posted by saintwolf on 2026-11-30T03:11:46Z.
merge-check
base:
953764d912head:
488feb4cd2merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2824 passed, 2 failed, 51 ignored; SKIPPED: 30 (22 no wave64, 3 per-lane #1426 refused, 2 no heap windows, 1 cannot disable the driver cache 0x887A002D, 1 no running 5 tests, 1 no xgameruntime.dll); failing: two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs in gpu_two_pass_cache_e2e (also fails on base
953764d9alone)review: blocking issues in the +137/-3 diff (crates/xcl/src/eh.rs, launcher.rs, vfs.rs): (1) handle_thread_stream_assert in eh.rs has no title/build identification — any STATUS_BREAKPOINT (0xCC) at page offset 0xC9D in main_module() triggers it, mutates Rcx+8/+0x10, and jumps Rip to page offset 0xC47; (2) XCL_GROW_THREAD_STREAM=0 only skips growing and still steps over the breakpoint (ctx.Rip += 1; return -1), so there is no real off switch; (3) unrelated commit
f905d982(launcher.rs / vfs.rs UNC path handling) is bundled in the PR; minor: eh::tests::thread_stream_assert_growth_ceiling_and_unaligned_slot sets process-wide modules::set_main without restoring it. Both new unit tests passed.performance: none (only runs on STATUS_BREAKPOINT at page offset 0xC9D in main module)
verdict: not yet: identify the target title/build before acting, make the off switch disable the handler completely, and drop the unrelated UNC/launcher commit
f905d982hardware / tool and model: NVIDIA GeForce RTX 4070 SUPER (32.0.16.2140), AMD Ryzen 7 7800X3D, Windows 11 Pro 26300, rustc 1.100.0, debug / Antigravity (Gemini 4 Hydrogen)
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:11:23Z.
Triage (#1607) – head
488feb4Stacked on #579: the first commit (
f905d98,strip_verbatimfor UNC game folders in launcher.rs) is #579's change. Only488feb4(eh.rs) belongs here. #887 targets the same issue #695 at its cause: it gives the title a silent audio endpoint so the stream keeps draining. This PR patches the title's assert instead, so the two take different approaches and are not duplicates.Problem in eh.rs
handle_thread_stream_assert: the match isrip & 0xFFF == 0xC9Don anyint 3in the main module, notrip - main.base == 0x4dcbc9d, and there is no title check. In any title, a breakpoint at one of 1/4096 page offsets is taken as the stream slot: the handler writes a new buffer pointer and capacity throughRcx+8/Rcx+0x10and jumps topage+0xC47, or otherwise skips theint 3. This runs by default. Matching the full RVA, and the title, would limit it to the intended binary. The test also callsmodules::set_mainglobally, which other eh tests running in parallel can see.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-12-03T07:46:16Z.
This PR has merge conflicts (
needs-rebase) and has had no activity for 2 days, so it is markedstaleand will be closed in 3 days unless it is rebased onto its base branch.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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.