D3D12.X: E_OUTOFMEMORY after 63 submitted command queues #1668

Open
opened 2026-11-26 05:00:58 +00:00 by github-bot · 2 comments
Owner

@⁠DEViANCEVxXXxM on GitHub · 2026-11-24 19:04 UTC · original

<html>

Description

Repeated creation, submission, synchronization, and release of D3D12 command queues reproducibly results in E_OUTOFMEMORY (0x8007000E) on the 64th iteration.

The issue is reproducible using XCL's bundled synthetic test application, without proprietary game files.

Environment

  • XCL main: c160d86

  • Windows 11 26H1, build 28000.3501

  • NVIDIA GeForce RTX 3090

  • NVIDIA driver 621.01

  • D3D12 Debug Layer enabled

Results

Test | Expected | Actual -- | -- | -- Create and release unused queues | 128 | 128 Create, submit, synchronize and release queues | 128 | 63

The same behavior was reproduced on the previous revision 9e3831e.

Investigation

The results suggest that submitted command queues remain retained longer than necessary.

An experimental implementation passed the minimal regression and additional synthetic tests, including:

  • 10/10 independent concurrent stress runs.

  • 4,096 operations in a single process.

  • 1,024 GPU copies with 1,048,576 verified values.

The experimental implementation is not yet considered production-ready.

Additional information

A minimal regression test is available. I would appreciate maintainer feedback on the preferred approach to command queue lifetime management.

No proprietary game files or crash dumps are required to reproduce this issue.

</html>

xcl-model-review74-20261124-235822-552.zip

**@⁠DEViANCEVxXXxM** on GitHub · 2026-11-24 19:04 UTC · [original](https://github.com/xcl-dev/xcl/issues/1668) <html> <body> <!--StartFragment--><h2><span>Description</span></h2><p><span>Repeated creation, submission, synchronization, and release of D3D12 command queues reproducibly results in </span><code><span>E_OUTOFMEMORY (0x8007000E)</span></code><span> on the 64th iteration.</span></p><p><span>The issue is reproducible using XCL's bundled synthetic test application, without proprietary game files.</span></p><h2><span>Environment</span></h2><ul><li><p><span>XCL main: </span><code><span>c160d86</span></code></p></li><li><p><span>Windows 11 26H1, build 28000.3501</span></p></li><li><p><span>NVIDIA GeForce RTX 3090</span></p></li><li><p><span>NVIDIA driver 621.01</span></p></li><li><p><span>D3D12 Debug Layer enabled</span></p></li></ul><h2><span>Results</span></h2> Test | Expected | Actual -- | -- | -- Create and release unused queues | 128 | 128 Create, submit, synchronize and release queues | 128 | 63 <p><span>The same behavior was reproduced on the previous revision </span><code><span>9e3831e</span></code><span>.</span></p><h2><span>Investigation</span></h2><p><span>The results suggest that submitted command queues remain retained longer than necessary.</span></p><p><span>An experimental implementation passed the minimal regression and additional synthetic tests, including:</span></p><ul><li><p><span>10/10 independent concurrent stress runs.</span></p></li><li><p><span>4,096 operations in a single process.</span></p></li><li><p><span>1,024 GPU copies with 1,048,576 verified values.</span></p></li></ul><p><span>The experimental implementation is not yet considered production-ready.</span></p><h2><span>Additional information</span></h2><p><span>A minimal regression test is available. I would appreciate maintainer feedback on the preferred approach to command queue lifetime management.</span></p><p><span>No proprietary game files or crash dumps are required to reproduce this issue.</span></p><!--EndFragment--> </body> </html> [xcl-model-review74-20261124-235822-552.zip](https://github.com/user-attachments/files/35365308/xcl-model-review74-20261124-235822-552.zip)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:00:58 +00:00
Author
Owner

@⁠gut0to on GitHub · 2026-11-24 19:18 UTC · original

Plan: trace the references that retain submitted D3D12 command queues after their work completes, then extend the bundled synthetic reproduction to cover repeated create/submit/synchronize/release cycles. I will make the smallest lifetime fix supported by the evidence and validate it with the synthetic test and the available Windows test suite.

**@⁠gut0to** on GitHub · 2026-11-24 19:18 UTC · [original](https://github.com/xcl-dev/xcl/issues/1668#issuecomment-7141903770) Plan: trace the references that retain submitted D3D12 command queues after their work completes, then extend the bundled synthetic reproduction to cover repeated create/submit/synchronize/release cycles. I will make the smallest lifetime fix supported by the evidence and validate it with the synthetic test and the available Windows test suite.
Author
Owner

@⁠Lum7nt on GitHub · 2026-11-25 18:43 UTC · original

Tested open PR #1691 (\ 71cf21) on Windows 11 (NT \10.0.22631.0) with NVIDIA GeForce RTX 3060 12 GB (driver \581.42, \XCL_ADAPTER=nvidia):

  • All three new queue-release lifetime regression tests pass (\_queue_the_title_releases_is_not_kept_alive_by_the_submit_tracking, \_tracked_queue_a_reader_holds_outlives_the_titles_release, \_released_queue_is_held_until_its_submitted_work_is_done).
  • Workspace suite: 1244 passed, 2 failed, 46 ignored (only the 2 pre-existing \GetCachedBlob()\ failures on this driver/setup), and \ 71cf21\ merges cleanly onto \origin/main\ \3ceb550\ (\git merge-tree\ exit 0).
  • Note: #1691 also catches a hazard we hit in local experiments — dropping the queue's tracking ref immediately on
    == 1\ without fencing pending GPU work causes device removal (\
**@⁠Lum7nt** on GitHub · 2026-11-25 18:43 UTC · [original](https://github.com/xcl-dev/xcl/issues/1668#issuecomment-7171306758) Tested open PR #1691 (\ 71cf21\) on Windows 11 (NT \10.0.22631.0\) with NVIDIA GeForce RTX 3060 12 GB (driver \581.42\, \XCL_ADAPTER=nvidia\): - All three new queue-release lifetime regression tests pass (\_queue_the_title_releases_is_not_kept_alive_by_the_submit_tracking\, \_tracked_queue_a_reader_holds_outlives_the_titles_release\, \_released_queue_is_held_until_its_submitted_work_is_done\). - Workspace suite: **1244 passed, 2 failed, 46 ignored** (only the 2 pre-existing \GetCachedBlob()\ failures on this driver/setup), and \ 71cf21\ merges cleanly onto \origin/main\ \3ceb550\ (\git merge-tree\ exit 0). - Note: #1691 also catches a hazard we hit in local experiments — dropping the queue's tracking ref immediately on \ == 1\ without fencing pending GPU work causes device removal (\
This discussion has been locked. Commenting is limited to contributors.
No description provided.