b8b1f49 introduced memory leak #1694

Closed
opened 2026-11-24 19:27:47 +00:00 by phantom54 · 5 comments
phantom54 commented 2026-11-24 19:27:47 +00:00 (Migrated from github.com)
Contributor

Imported from ivall/xcl. Originally posted by phantom54 on 2026-11-24T19:27:47Z.


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

<!-- greyfinch-sync:ivall/xcl:issue:6589699198 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/1704). Originally posted by [phantom54](https://github.com/phantom54) on 2026-11-24T19:27:47Z. --- b8b1f49 and later has memory leak rolling back to 9a272d4 fixes the issue
tiagonogueiraa-bit commented 2026-11-24 21:08:50 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by tiagonogueiraa-bit on 2026-11-24T19:28:26Z.


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://github.com/xcl-dev/xcl/pull/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).

<!-- greyfinch-sync:ivall/xcl:comment:7142146888 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/1704#issuecomment-7142146888). Originally posted by [tiagonogueiraa-bit](https://github.com/tiagonogueiraa-bit) on 2026-11-24T19:28:26Z. --- 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://github.com/xcl-dev/xcl/pull/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).
b3IKK commented 2026-11-24 21:09:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by b3IKK on 2026-11-24T19:42:55Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7142486529 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/1704#issuecomment-7142486529). Originally posted by [b3IKK](https://github.com/b3IKK) on 2026-11-24T19:42:55Z. --- 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 commented 2026-11-24 21:09:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by b3IKK on 2026-11-24T19:43:00Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7142488471 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/1704#issuecomment-7142488471). Originally posted by [b3IKK](https://github.com/b3IKK) on 2026-11-24T19:43:00Z. --- 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.
phantom54 commented 2026-11-24 21:09:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by phantom54 on 2026-11-24T19:45:10Z.


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

<!-- greyfinch-sync:ivall/xcl:comment:7142539259 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/1704#issuecomment-7142539259). Originally posted by [phantom54](https://github.com/phantom54) on 2026-11-24T19:45:10Z. --- confirm: merging latest (6c89285) with suggested PR #1321 (69a892c) fixes the leak 13700F + 2070 Super (32.0.16.2114) Windows 11 26H2 (26300.10075)
ivall commented 2026-11-24 21:09:50 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by ivall on 2026-11-24T21:01:11Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7144366251 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/1704#issuecomment-7144366251). Originally posted by [ivall](https://github.com/ivall) on 2026-11-24T21:01:11Z. --- 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.
Sign in to join this conversation.
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#1694
No description provided.