b8b1f49 introduced memory leak #1704

Closed
opened 2026-11-26 05:02:07 +00:00 by github-bot · 5 comments
Owner

@⁠phantom54 on GitHub · 2026-11-24 19:27 UTC · original

b8b1f49 and later has memory leak
rolling back to 9a272d4 fixes the issue

**@⁠phantom54** on GitHub · 2026-11-24 19:27 UTC · [original](https://github.com/xcl-dev/xcl/issues/1704) b8b1f49 and later has memory leak rolling back to 9a272d4 fixes the issue
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:02:07 +00:00
Author
Owner

@⁠tiagonogueiraa-bit on GitHub · 2026-11-24 19:28 UTC · original

This is most likely #1307 / #1332. Since b8b1f49, one compute program of the retail pack translates to 148 MB of HLSL, and DXC's memory on it grows until the machine runs out: about 1–2 GB/s, with the title left at its start screen. It's not a leak in XCL's own data.

#1321 fixes it (structured code past a size bound falls back to the pc form, 148 MB → 14 MB). Several runs there show commit levelling off, e.g. an RTX 4090 at about 18 GB against 72 GB on main, and the same on AMD and Linux: #1321. If you can, a run with #1321 merged instead of the rollback would confirm it's the same thing.

Written with Claude Code (Claude Opus 5.5).

**@⁠tiagonogueiraa-bit** on GitHub · 2026-11-24 19:28 UTC · [original](https://github.com/xcl-dev/xcl/issues/1704#issuecomment-7142146888) This is most likely #1307 / #1332. Since b8b1f49, one compute program of the retail pack translates to 148 MB of HLSL, and DXC's memory on it grows until the machine runs out: about 1–2 GB/s, with the title left at its start screen. It's not a leak in XCL's own data. #1321 fixes it (structured code past a size bound falls back to the `pc` form, 148 MB → 14 MB). Several runs there show commit levelling off, e.g. an RTX 4090 at about 18 GB against 72 GB on `main`, and the same on AMD and Linux: https://git.gtahub.st/github/xcl-dev--xcl/pulls/1321. If you can, a run with #1321 merged instead of the rollback would confirm it's the same thing. Written with Claude Code (Claude Opus 5.5).
Author
Owner

@⁠b3IKK on GitHub · 2026-11-24 19:42 UTC · original

Same bisect and symptom as #1307: b8b1f49 (Recompiler: jumps to outer loop heads and into loops are structured) makes the retail title's commit grow ~1 GB/s until XCL runs out of memory before the world load. The fix under review there is #1321 (oversized structured code falls back to pc blocks); until it lands, building before b8b1f49 (9a272d4) is the workaround that also worked for you.

Closing as a duplicate of #1307 — your title, GPU and commit numbers are welcome there so the report stays in one place.

**@⁠b3IKK** on GitHub · 2026-11-24 19:42 UTC · [original](https://github.com/xcl-dev/xcl/issues/1704#issuecomment-7142486529) Same bisect and symptom as #1307: b8b1f49 (`Recompiler: jumps to outer loop heads and into loops are structured`) makes the retail title's commit grow ~1 GB/s until XCL runs out of memory before the world load. The fix under review there is #1321 (oversized structured code falls back to pc blocks); until it lands, building before b8b1f49 (9a272d4) is the workaround that also worked for you. Closing as a duplicate of #1307 — your title, GPU and commit numbers are welcome there so the report stays in one place.
Author
Owner

@⁠b3IKK on GitHub · 2026-11-24 19:43 UTC · original

Same bisect and symptom as #1307: b8b1f49 (Recompiler: jumps to outer loop heads and into loops are structured) makes the retail title's commit grow ~1 GB/s until XCL runs out of memory before the world load. The fix under review is #1321 (oversized structured code falls back to pc blocks); until it lands, building before b8b1f49 (9a272d4) is the workaround that also worked for you.

This looks like a duplicate of #1307 — your title, GPU and commit numbers are welcome there so the report stays in one place.

**@⁠b3IKK** on GitHub · 2026-11-24 19:43 UTC · [original](https://github.com/xcl-dev/xcl/issues/1704#issuecomment-7142488471) Same bisect and symptom as #1307: b8b1f49 (`Recompiler: jumps to outer loop heads and into loops are structured`) makes the retail title's commit grow ~1 GB/s until XCL runs out of memory before the world load. The fix under review is #1321 (oversized structured code falls back to pc blocks); until it lands, building before b8b1f49 (9a272d4) is the workaround that also worked for you. This looks like a duplicate of #1307 — your title, GPU and commit numbers are welcome there so the report stays in one place.
Author
Owner

@⁠phantom54 on GitHub · 2026-11-24 19:45 UTC · original · edited 2026-11-24 20:07 UTC

confirm: merging latest (6c89285) with suggested PR #1321 (69a892c) fixes the leak
13700F + 2070 Super (32.0.16.2114)
Windows 11 26H2 (26300.10075)

**@⁠phantom54** on GitHub · 2026-11-24 19:45 UTC · [original](https://github.com/xcl-dev/xcl/issues/1704#issuecomment-7142539259) · edited 2026-11-24 20:07 UTC confirm: merging latest (6c89285) with suggested PR #1321 (69a892c) fixes the leak 13700F + 2070 Super (32.0.16.2114) Windows 11 26H2 (26300.10075)
Author
Owner

@⁠ivall on GitHub · 2026-11-24 21:01 UTC · original

Fixed on main by #1321, merged as e9e94ce. One compute program had grown to about 150 MB of source since b8b1f49, and DXC's memory on it kept growing. It is back at 15 MB.

Thank you for the bisect and for confirming the fix. Closing; if the memory still grows on e9e94ce or later, please reopen this with the commit and the numbers.

AI use: Claude Code (Claude Opus 5.5) wrote this comment.

**@⁠ivall** on GitHub · 2026-11-24 21:01 UTC · [original](https://github.com/xcl-dev/xcl/issues/1704#issuecomment-7144366251) Fixed on `main` by #1321, merged as `e9e94ce`. One compute program had grown to about 150 MB of source since b8b1f49, and DXC's memory on it kept growing. It is back at 15 MB. Thank you for the bisect and for confirming the fix. Closing; if the memory still grows on `e9e94ce` or later, please reopen this with the commit and the numbers. AI use: Claude Code (Claude Opus 5.5) wrote this comment.
This discussion has been locked. Commenting is limited to contributors.
No description provided.