pixrt10.dll: PixDllInitialize / PixDllInitializeFromTitle #4

Open
opened 2026-11-21 16:52:43 +00:00 by omonkeyz · 1 comment
omonkeyz commented 2026-11-21 16:52:43 +00:00 (Migrated from github.com)

Imported from omonkeyz/xbox-emulator. Originally posted by omonkeyz on 2026-11-21T16:52:43Z.


Crate: crates/compat/pixrt10

Missing exports: PixDllInitialize, PixDllInitializeFromTitle.

Notes: Large: FromTitle builds the PIX InteractiveRuntime (~329 functions in the 22000 build) with three threads, and connects over Xbtp service 0x1080 through the in-process link device. Three console builds differ (19041 / 22000 / 22621). Only loaded when \\.\XgsKmd10 opens.

The export rows are marked missing in each crate's exports.txt. Read CONTRIBUTING.md first: console behaviour, tests, no fake success, no game files or binaries in the PR. Comment here to claim it so work isn't duplicated.

<!-- greyfinch-sync:omonkeyz/xbox-emulator:issue:6531708345 --> Imported from [omonkeyz/xbox-emulator](https://github.com/omonkeyz/xbox-emulator/issues/4). Originally posted by [omonkeyz](https://github.com/omonkeyz) on 2026-11-21T16:52:43Z. --- **Crate:** `crates/compat/pixrt10` **Missing exports:** PixDllInitialize, PixDllInitializeFromTitle. **Notes:** Large: FromTitle builds the PIX InteractiveRuntime (~329 functions in the 22000 build) with three threads, and connects over Xbtp service 0x1080 through the in-process link device. Three console builds differ (19041 / 22000 / 22621). Only loaded when `\\.\XgsKmd10` opens. The export rows are marked `missing` in each crate's `exports.txt`. Read [CONTRIBUTING.md](../blob/main/CONTRIBUTING.md) first: console behaviour, tests, no fake success, no game files or binaries in the PR. Comment here to claim it so work isn't duplicated.
BaggyALPHA commented 2026-11-23 16:05:04 +00:00 (Migrated from github.com)
Author

Imported from omonkeyz/xbox-emulator. Originally posted by BaggyALPHA on 2026-11-23T16:05:04Z.


I found and fixed a DLL-reference leak in pixie_entry_points on commit f89e4106fe. The probe loaded d3d12_xs.dll without releasing its reference on success or validation failure.

The attached patch adds scoped cleanup and a synthetic-DLL regression test. The test fails before the fix and passes afterward, including checks that caller-owned references remain valid.

The PIX suites reported 37 passes, and the PR gate passed. Console-fixture validation was unavailable. This addresses a small part of #4; it doesn’t complete runtime teardown.

issue-4-pr-draft.txt
issue-4-pixrt-test-results.txt
issue-4-regression-after.txt
issue-4-pixie-module-cleanup.patch
issue-4-regression-before.txt

<!-- greyfinch-sync:omonkeyz/xbox-emulator:comment:7106580481 --> Imported from [omonkeyz/xbox-emulator](https://github.com/omonkeyz/xbox-emulator/issues/4#issuecomment-7106580481). Originally posted by [BaggyALPHA](https://github.com/BaggyALPHA) on 2026-11-23T16:05:04Z. --- I found and fixed a DLL-reference leak in pixie_entry_points on commit f89e4106fe8a1728515afa34ceb5097132cadcda. The probe loaded d3d12_xs.dll without releasing its reference on success or validation failure. The attached patch adds scoped cleanup and a synthetic-DLL regression test. The test fails before the fix and passes afterward, including checks that caller-owned references remain valid. The PIX suites reported 37 passes, and the PR gate passed. Console-fixture validation was unavailable. This addresses a small part of #4; it doesn’t complete runtime teardown. [issue-4-pr-draft.txt](https://github.com/user-attachments/files/35285302/issue-4-pr-draft.txt) [issue-4-pixrt-test-results.txt](https://github.com/user-attachments/files/35285303/issue-4-pixrt-test-results.txt) [issue-4-regression-after.txt](https://github.com/user-attachments/files/35285305/issue-4-regression-after.txt) [issue-4-pixie-module-cleanup.patch](https://github.com/user-attachments/files/35285304/issue-4-pixie-module-cleanup.patch) [issue-4-regression-before.txt](https://github.com/user-attachments/files/35285301/issue-4-regression-before.txt)
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
omonkeyz/xbox-emulator#4
No description provided.