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

Open
opened 2026-11-24 19:04:04 +00:00 by DEViANCEVxXXxM · 2 comments
DEViANCEVxXXxM commented 2026-11-24 19:04:04 +00:00 (Migrated from github.com)
Contributor

Imported from ivall/xcl. Originally posted by DEViANCEVxXXxM on 2026-11-24T19:04:04Z.


<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

<!-- greyfinch-sync:ivall/xcl:issue:6589274649 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/1668). Originally posted by [DEViANCEVxXXxM](https://github.com/DEViANCEVxXXxM) on 2026-11-24T19:04:04Z. --- <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)
gut0to commented 2026-11-24 21:08:44 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by gut0to on 2026-11-24T19:18:25Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7141903770 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/1668#issuecomment-7141903770). Originally posted by [gut0to](https://github.com/gut0to) on 2026-11-24T19:18:25Z. --- 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.
Lum7nt commented 2026-11-25 19:09:12 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by Lum7nt on 2026-11-25T18:43:28Z.


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 (\
<!-- greyfinch-sync:ivall/xcl:comment:7171306758 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/1668#issuecomment-7171306758). Originally posted by [Lum7nt](https://github.com/Lum7nt) on 2026-11-25T18:43:28Z. --- 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 (\
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#1658
No description provided.