runtime: read a persisted blob through the asynchronous save provider #1348

Closed
opened 2026-11-24 09:03:29 +00:00 by R0Y00 · 1 comment
R0Y00 commented 2026-11-24 09:03:29 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T09:03:29Z.


Refs #1200, #1246 and #1334. This is an independently claimable follow-up for the save provider. The saved diagnostic logs have not established that first-run setup calls the asynchronous read slots.

A source-built Windows client loaded the candidate GameInput.dll (SHA-256 9620813c5ef3330e16a188af6a0da32d2e410cbb952c7f01c7388a2c94fba9c6) and queried the system Gaming Runtime. Process 1 submitted a three-byte preference through slots 28/29. Process 2 read the expected bytes through slot 20. With the same container, blob name, save-provider instance and a valid Immediate queue, slot 21 returned E_FAIL. The client did not initialize a user service. In that candidate, slot 21 delegates to the user-service completion helper; slot 22 always returns blob-not-found.

Owner: open. Please claim here and coordinate with the #1334 author. Reuse that PR's synchronous packing and the system XAsync machinery used by #1246. Use the documented read result on the established save-provider identity.

Deliver a Windows source-built regression which loads the candidate DLL, commits a blob, starts a fresh process, and reads via slots 21/22. Check the completion callback, required result size, count and exact bytes. Include a missing blob, an insufficient result buffer, and overlapping reads with separate async blocks. Preserve the existing restart and submit checks. Please give the exact CTest filter for the new test; the existing baseline is ctest --preset dev --no-tests=error -R startup_gamesave -V.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6578278396 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1355). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T09:03:29Z. --- Refs #1200, #1246 and #1334. This is an independently claimable follow-up for the save provider. The saved diagnostic logs have not established that first-run setup calls the asynchronous read slots. A source-built Windows client loaded the candidate GameInput.dll (SHA-256 9620813c5ef3330e16a188af6a0da32d2e410cbb952c7f01c7388a2c94fba9c6) and queried the system Gaming Runtime. Process 1 submitted a three-byte preference through slots 28/29. Process 2 read the expected bytes through slot 20. With the same container, blob name, save-provider instance and a valid Immediate queue, slot 21 returned E_FAIL. The client did not initialize a user service. In that candidate, slot 21 delegates to the user-service completion helper; slot 22 always returns blob-not-found. Owner: open. Please claim here and coordinate with the #1334 author. Reuse that PR's synchronous packing and the system XAsync machinery used by #1246. Use the [documented read result](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/system/xgamesave/functions/xgamesavereadblobdataresult) on the established save-provider identity. Deliver a Windows source-built regression which loads the candidate DLL, commits a blob, starts a fresh process, and reads via slots 21/22. Check the completion callback, required result size, count and exact bytes. Include a missing blob, an insufficient result buffer, and overlapping reads with separate async blocks. Preserve the existing restart and submit checks. Please give the exact CTest filter for the new test; the existing baseline is `ctest --preset dev --no-tests=error -R startup_gamesave -V`.
SimSalabimse commented 2026-11-24 11:03:02 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-24T10:49:54Z.


Claiming this. Plan: reuse #1334's read packing and the XAsync path from slots 28/29 so slots 21/22 can read a saved blob after a restart, with tests for missing blob, short buffer and overlapping reads. Will keep it compatible with #1334. Draft PR to follow.

AI-assisted

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7129301391 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1355#issuecomment-7129301391). Originally posted by [SimSalabimse](https://github.com/SimSalabimse) on 2026-11-24T10:49:54Z. --- Claiming this. Plan: reuse #1334's read packing and the XAsync path from slots 28/29 so slots 21/22 can read a saved blob after a restart, with tests for missing blob, short buffer and overlapping reads. Will keep it compatible with #1334. Draft PR to follow. AI-assisted
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
R0Y00/Xbox2Windows#1348
No description provided.