You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Rejection on createComputePipelineAsnyc causes timout in tests #3809
Thanks for the report, definitely something going wrong here.
Because the promise is created before it's awaited, this is causing an unhandledrejection (see #3159). I don't know why that results in a hang, though - the intent was that it would eventually reach the await Promise.all(pendingBatches) line and the test should fail.
It looks like that we never reach await Promise.all(pendingBatches) on rejection, because if (batchesInFlight > maxBatchesInFlight) { happens. I think the main reason hang happens is because void t.queue.onSubmittedWorkDone().finally(batchFinishedCallback); is never called when const checkBatch = await submitBatch(t, shaderBuilder, shaderBuilderParams, pipelineCache); rejects.
Activity
sagudev commentedon Jun 23, 2024
related #3157
kainino0x commentedon Jun 24, 2024
Thanks for the report, definitely something going wrong here.
Because the promise is created before it's awaited, this is causing an unhandledrejection (see #3159). I don't know why that results in a hang, though - the intent was that it would eventually reach the
await Promise.all(pendingBatches)line and the test should fail.sagudev commentedon Jun 28, 2024
It looks like that we never reach
await Promise.all(pendingBatches)on rejection, becauseif (batchesInFlight > maxBatchesInFlight) {happens. I think the main reason hang happens is becausevoid t.queue.onSubmittedWorkDone().finally(batchFinishedCallback);is never called whenconst checkBatch = await submitBatch(t, shaderBuilder, shaderBuilderParams, pipelineCache);rejects.sagudev commentedon Jul 7, 2024
So the timeout was caused by never resolving
cts/src/webgpu/shader/execution/expression/expression.ts
Line 428 in f752c75
batchFinishedCallbackwas never called, due to rejection oncts/src/webgpu/shader/execution/expression/expression.ts
Line 414 in f752c75
cts/src/webgpu/shader/execution/expression/expression.ts
Line 433 in f752c75
batchesInFlight); see #3844.sagudev commentedon Jul 17, 2024
Fixed in #3844.