xcl run: recover retail packet stream capacity assert at +0x4dcbc9d (#723, #695) #1224

Open
Lum7nt wants to merge 2 commits from upstream-pr/1233 into main
Lum7nt commented 2026-11-24 13:27:11 +00:00 (Migrated from github.com)

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 unconditional int 3 assert at title+0x4dcbc9d (0x80000003), terminating the process within ~30 s.

What is in it

  • crates/xcl/src/eh.rs:
    • handle_thread_stream_assert: handles 0x8000_0003 in VEH when rip & 0xFFF == 0xC9D within the main module pointing to 0xCC (int 3).
    • Reads the 40-byte stream slot object via safe unaligned access (read_unaligned/write_unaligned) to avoid faults on unaligned slot pointers.
    • Expands buffer capacity up to 16 MiB ((capacity * 8).max(1 MiB).min(16 MiB)), allocates a new buffer via VirtualAlloc, copies active cursor data, updates dataBase and capacity, and rewinds Rip to the capacity check re-entry point at (rip & !0xFFF) | 0xC47 so the enqueue completes normally without dropped packets.
    • Fallback: when growth is disabled (XCL_GROW_THREAD_STREAM=0), when memory allocation fails, or when the 16 MiB ceiling is reached, advances Rip += 1 to land on +0xC9E (jmp +0xC8A, the title's own packet-dropped branch), continuing execution smoothly without crashing.
    • Unit test eh::tests::thread_stream_assert_growth_ceiling_and_unaligned_slot covering initial 4 KiB -> 1 MiB expansion with cursor preservation, retry jump to +0xC47, 16 MiB ceiling boundary enforcement, and unaligned slot pointer handling.

Tested

  • Host: Windows 11 x64 (26100), NVIDIA GeForce RTX 3060 (12115 MiB VRAM), DXC 1.8.2502.11
  • cargo test -p xcl --lib eh::tests: 7 passed, 0 failed
  • python -m unittest discover -s scripts -v: 9 passed, 0 failed

Regression run

main:

xcl-smoke v1
commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3
gpu: NVIDIA GeForce RTX 3060
title: RetailGAME
seconds: 60
exit: 0x0
frames shown: 1184 (PresentX 1184)
presents per 2 s (last 3): 45 59 46
device removals: 0
crashes: 0
peak commit: 8777 MB

PR:

xcl-smoke v1
commit: 488feb4cd2240b661f9568f3d157532cd7ade193
gpu: NVIDIA GeForce RTX 3060
title: RetailGAME
seconds: 60
exit: 0x0
frames shown: 1196 (PresentX 1196)
presents per 2 s (last 3): 50 55 60
device removals: 0
crashes: 0
peak commit: 8775 MB

Not tested

  • AMD or Intel GPUs.
  • Other titles (this assert is specific to the retail package's telemetry stream).

AI use

  • Google Antigravity (Gemini 3.8 Flash High): implemented the VEH stream recovery, unaligned slot field access, 16 MiB ceiling, and unit tests, and executed the live retail smoke benchmark.
<!-- greyfinch-sync:ivall/xcl:issue:5473035456 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1233). Originally posted by [Lum7nt](https://github.com/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 unconditional `int 3` assert at `title+0x4dcbc9d` (`0x80000003`), terminating the process within ~30 s. **What is in it** - `crates/xcl/src/eh.rs`: - `handle_thread_stream_assert`: handles `0x8000_0003` in VEH when `rip & 0xFFF == 0xC9D` within the main module pointing to `0xCC` (`int 3`). - Reads the 40-byte stream slot object via safe unaligned access (`read_unaligned`/`write_unaligned`) to avoid faults on unaligned slot pointers. - Expands buffer capacity up to 16 MiB (`(capacity * 8).max(1 MiB).min(16 MiB)`), allocates a new buffer via `VirtualAlloc`, copies active cursor data, updates `dataBase` and `capacity`, and rewinds `Rip` to the capacity check re-entry point at `(rip & !0xFFF) | 0xC47` so the enqueue completes normally without dropped packets. - Fallback: when growth is disabled (`XCL_GROW_THREAD_STREAM=0`), when memory allocation fails, or when the 16 MiB ceiling is reached, advances `Rip += 1` to land on `+0xC9E` (`jmp +0xC8A`, the title's own packet-dropped branch), continuing execution smoothly without crashing. - Unit test `eh::tests::thread_stream_assert_growth_ceiling_and_unaligned_slot` covering initial 4 KiB -> 1 MiB expansion with cursor preservation, retry jump to `+0xC47`, 16 MiB ceiling boundary enforcement, and unaligned slot pointer handling. **Tested** - Host: Windows 11 x64 (26100), NVIDIA GeForce RTX 3060 (12115 MiB VRAM), DXC 1.8.2502.11 - `cargo test -p xcl --lib eh::tests`: 7 passed, 0 failed - `python -m unittest discover -s scripts -v`: 9 passed, 0 failed **Regression run** main: ``` xcl-smoke v1 commit: 47efa2ecea0a12934719ae69b81930cf02a4b1c3 gpu: NVIDIA GeForce RTX 3060 title: RetailGAME seconds: 60 exit: 0x0 frames shown: 1184 (PresentX 1184) presents per 2 s (last 3): 45 59 46 device removals: 0 crashes: 0 peak commit: 8777 MB ``` PR: ``` xcl-smoke v1 commit: 488feb4cd2240b661f9568f3d157532cd7ade193 gpu: NVIDIA GeForce RTX 3060 title: RetailGAME seconds: 60 exit: 0x0 frames shown: 1196 (PresentX 1196) presents per 2 s (last 3): 50 55 60 device removals: 0 crashes: 0 peak commit: 8775 MB ``` **Not tested** - AMD or Intel GPUs. - Other titles (this assert is specific to the retail package's telemetry stream). **AI use** - Google Antigravity (Gemini 3.8 Flash High): implemented the VEH stream recovery, unaligned slot field access, 16 MiB ceiling, and unit tests, and executed the live retail smoke benchmark.
DavidM1911 commented 2026-11-24 14:06:41 +00:00 (Migrated from github.com)

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:

  • cargo test -p xcl --lib launcher: 5 passed, 0 failed.

Note: the full d3d12x lib filter currently aborts with 0xc0000005 on unmodified main too (pre-existing, unrelated to this PR); the PR's own tests were run by name and pass.

<!-- greyfinch-sync:ivall/xcl:comment:7133340543 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1233#issuecomment-7133340543). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T13:47:26Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - cargo test -p xcl --lib launcher: 5 passed, 0 failed. Note: the full `d3d12x` lib filter currently aborts with 0xc0000005 on unmodified `main` too (pre-existing, unrelated to this PR); the PR's own tests were run by name and pass.
NWProgramming00 commented 2026-11-25 14:10:10 +00:00 (Migrated from github.com)

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 488feb4 merges cleanly onto current main 1a0bbe3 (merge commit ebff0e1, local only).

  • cargo test --release -p xcl --lib eh::tests on the merged tree: 7 passed, 0 failed, including thread_stream_assert_growth_ceiling_and_unaligned_slot.
  • scripts/smoke.ps1 -Seconds 60, same title, same card. On main the run ends with the 0x80000003 assert at the address from #695, as every run on this machine has since yesterday. With this PR merged, it reaches the end:

main 1a0bbe3:

xcl-smoke v1
commit: 1a0bbe3a2ba91ea8f5b6fc29130a053868d3c9e6
gpu: NVIDIA GeForce RTX 5070 Ti
title: title-a
seconds: 60
exit: 0x80000003
frames shown: none logged (the run did not reach its end)
presents per 2 s (last 3): 0 0 1
device removals: 0
crashes: 2
peak commit: 12603 MB

main + this PR (ebff0e1):

xcl-smoke v1
commit: ebff0e1c6fb9c11636cf1ebe89864c96d6037928
gpu: NVIDIA GeForce RTX 5070 Ti
title: title-a
seconds: 60
exit: 0x0
frames shown: 772 (PresentX 773)
presents per 2 s (last 3): 26 28 27
device removals: 0
crashes: 0
peak commit: 15657 MB

Not tested

  • The Radeon iGPU, a full suite on the merged tree, and runs longer than 60 s.
<!-- greyfinch-sync:ivall/xcl:comment:7164436490 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1233#issuecomment-7164436490). Originally posted by [NWProgramming00](https://github.com/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 `488feb4` merges cleanly onto current `main` `1a0bbe3` (merge commit `ebff0e1`, local only). - `cargo test --release -p xcl --lib eh::tests` on the merged tree: 7 passed, 0 failed, including `thread_stream_assert_growth_ceiling_and_unaligned_slot`. - `scripts/smoke.ps1 -Seconds 60`, same title, same card. On `main` the run ends with the `0x80000003` assert at the address from #695, as every run on this machine has since yesterday. With this PR merged, it reaches the end: `main` `1a0bbe3`: ``` xcl-smoke v1 commit: 1a0bbe3a2ba91ea8f5b6fc29130a053868d3c9e6 gpu: NVIDIA GeForce RTX 5070 Ti title: title-a seconds: 60 exit: 0x80000003 frames shown: none logged (the run did not reach its end) presents per 2 s (last 3): 0 0 1 device removals: 0 crashes: 2 peak commit: 12603 MB ``` `main` + this PR (`ebff0e1`): ``` xcl-smoke v1 commit: ebff0e1c6fb9c11636cf1ebe89864c96d6037928 gpu: NVIDIA GeForce RTX 5070 Ti title: title-a seconds: 60 exit: 0x0 frames shown: 772 (PresentX 773) presents per 2 s (last 3): 26 28 27 device removals: 0 crashes: 0 peak commit: 15657 MB ``` **Not tested** - The Radeon iGPU, a full suite on the merged tree, and runs longer than 60 s.
throny commented 2026-11-25 17:07:24 +00:00 (Migrated from github.com)

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.

<!-- greyfinch-sync:ivall/xcl:comment:7168220964 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1233#issuecomment-7168220964). Originally posted by [throny](https://github.com/throny) on 2026-11-25T16:35:22Z. --- <!-- xcl-1607-hint:D83 --> 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.
upipibi commented 2026-11-25 21:05:30 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by upipibi on 2026-11-25T21:03:46Z.


NVIDIA test report for 488feb4 (head as is, base 47efa2e), for #1607's "one more test report" list. RTX 3070 8 GB (Ampere, 32-lane waves), driver 616.56, Windows 11, debug, after cargo 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.
  • Skipped hle::xaudio2, because its tests fail or hang on this machine on main too. The PR doesn't touch it.
  • SKIPPED lines: 2, both no wave64 on this card.

AI-assisted (Claude Code, Claude Opus 5.5). Synthetic tests only; no title run.

<!-- greyfinch-sync:ivall/xcl:comment:7174558766 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1233#issuecomment-7174558766). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-25T21:03:46Z. --- NVIDIA test report for `488feb4` (head as is, base `47efa2e`), for #1607's "one more test report" list. RTX 3070 8 GB (Ampere, 32-lane waves), driver 616.56, Windows 11, debug, after `cargo 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. - Skipped `hle::xaudio2`, because its tests fail or hang on this machine on `main` too. The PR doesn't touch it. - SKIPPED lines: 2, both `no wave64` on this card. AI-assisted (Claude Code, Claude Opus 5.5). Synthetic tests only; no title run.
DavidM1911 commented 2026-11-26 05:05:32 +00:00 (Migrated from github.com)

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

<!-- greyfinch-sync:ivall/xcl:comment:7182463040 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1233#issuecomment-7182463040). Originally posted by [DavidM1911](https://github.com/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
throny commented 2026-11-28 16:54:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T16:54:42Z.


merge-check claim
head: 488feb4cd2

<!-- greyfinch-sync:ivall/xcl:comment:7242608141 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1233#issuecomment-7242608141). Originally posted by [throny](https://github.com/throny) on 2026-11-28T16:54:42Z. --- merge-check claim head: 488feb4cd2240b661f9568f3d157532cd7ade193
throny commented 2026-11-28 17:10:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-28T17:10:38Z.


merge-check
base: db3921dc
head: 488feb4cd2
merge: 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).

<!-- greyfinch-sync:ivall/xcl:comment:7242813409 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1233#issuecomment-7242813409). Originally posted by [throny](https://github.com/throny) on 2026-11-28T17:10:38Z. --- merge-check base: db3921dc head: 488feb4cd2240b661f9568f3d157532cd7ade193 merge: 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).
saintwolf commented 2026-11-30 03:04:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by saintwolf on 2026-11-30T03:04:38Z.


@relativespace2K This has already been claimed. Do not claim

<!-- greyfinch-sync:ivall/xcl:comment:7267564890 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1233#issuecomment-7267564890). Originally posted by [saintwolf](https://github.com/saintwolf) on 2026-11-30T03:04:38Z. --- @relativespace2K This has already been claimed. Do not claim
saintwolf commented 2026-11-30 03:04:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by saintwolf on 2026-11-30T03:04:48Z.


merge-check claim
head: 488feb4cd2

<!-- greyfinch-sync:ivall/xcl:comment:7267567381 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1233#issuecomment-7267567381). Originally posted by [saintwolf](https://github.com/saintwolf) on 2026-11-30T03:04:48Z. --- merge-check claim head: 488feb4cd2240b661f9568f3d157532cd7ade193
saintwolf commented 2026-11-30 03:11:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by saintwolf on 2026-11-30T03:11:46Z.


merge-check
base: 953764d912
head: 488feb4cd2
merge: 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 953764d9 alone)
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 f905d982
hardware / 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)

<!-- greyfinch-sync:ivall/xcl:comment:7267672115 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1233#issuecomment-7267672115). Originally posted by [saintwolf](https://github.com/saintwolf) on 2026-11-30T03:11:46Z. --- merge-check base: 953764d91281c8004b4d2e325bd729009be1ff6d head: 488feb4cd2240b661f9568f3d157532cd7ade193 merge: 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 953764d9 alone) 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 f905d982 hardware / 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)
Foniass commented 2026-12-01 05:11:23 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:11:23Z.


Triage (#1607) – head 488feb4

Stacked on #579: the first commit (f905d98, strip_verbatim for UNC game folders in launcher.rs) is #579's change. Only 488feb4 (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 is rip & 0xFFF == 0xC9D on any int 3 in the main module, not rip - 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 through Rcx+8 / Rcx+0x10 and jumps to page+0xC47, or otherwise skips the int 3. This runs by default. Matching the full RVA, and the title, would limit it to the intended binary. The test also calls modules::set_main globally, 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.

<!-- greyfinch-sync:ivall/xcl:comment:7301510710 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1233#issuecomment-7301510710). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T05:11:23Z. --- **Triage (#1607)** – head 488feb4 Stacked on #579: the first commit (f905d98, `strip_verbatim` for UNC game folders in launcher.rs) is #579's change. Only 488feb4 (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 is `rip & 0xFFF == 0xC9D` on any `int 3` in the main module, not `rip - 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 through `Rcx+8` / `Rcx+0x10` and jumps to `page+0xC47`, or otherwise skips the `int 3`. This runs by default. Matching the full RVA, and the title, would limit it to the intended binary. The test also calls `modules::set_main` globally, 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.
github-actions[bot] commented 2026-12-03 07:46:16 +00:00 (Migrated from github.com)

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 marked stale and will be closed in 3 days unless it is rebased onto its base branch.

<!-- greyfinch-sync:ivall/xcl:comment:7371405123 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1233#issuecomment-7371405123). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-12-03T07:46:16Z. --- This PR has merge conflicts (`needs-rebase`) and has had no activity for 2 days, so it is marked `stale` and will be closed in 3 days unless it is rebased onto its base branch.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1233:upstream-pr/1233'
git switch 'upstream-pr/1233'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/1233'
git switch 'upstream-pr/1233'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1233'
git switch 'upstream-pr/1233'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1233'
git switch 'main'
git merge --squash 'upstream-pr/1233'
git switch 'main'
git merge --ff-only 'upstream-pr/1233'
git switch 'main'
git merge 'upstream-pr/1233'
git push origin 'main'
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
xcl-dev/xcl!1224
No description provided.