Skip to content

XGameRuntime: a call with no queue reports E_NO_TASK_QUEUE - #371

Open
davutsimsekk wants to merge 1 commit into
fxceless:mainfrom
davutsimsekk:fix/xasync-no-task-queue
Open

davutsimsekk wants to merge 1 commit into
fxceless:mainfrom
davutsimsekk:fix/xasync-no-task-queue

Conversation

@davutsimsekk

Copy link
Copy Markdown

XAsyncBegin with a null block queue and a cleared process queue returned S_OK, then failed later in the provider/scheduler with E_INVALIDARG (or completed inline with no queue). The GDK documents this exact case: a null block queue uses the process queue, and if that is also null the call fails with E_NO_TASK_QUEUE (0x800701AB).

This checks the process queue before words()/CALLS.insert, so a failed begin leaks no call state. A null block queue with the default process queue still lazily creates it as before.

Test

crates/victory-hle/tests/xasync_task_queue.rs runs in its own binary because the process queue is process-wide: it clears the process queue, begins a call with a null-queue block, asserts E_NO_TASK_QUEUE, and asserts the provider never ran. On main the call returns S_OK.

  • cargo test -p victory-hle --test xasync_task_queue: 1 passed
  • cargo test -p victory-hle --lib: 95 passed, 0 failed
  • cargo clippy -p victory-hle --all-targets --locked -- -D warnings: clean
  • No game data or GPU was used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant