Skip to content

Conversation

@chromium-wpt-export-bot
Copy link
Collaborator

When running WebNN conformance tests, we sometimes
encounter the flaky error "Failed to execute 'createContext' on
'ML': WebNN service connection error."[1].

This is caused by a previous test case's context lost failure,
which is handled by killing the GPU process. However, if the
GPU process hasn't restarted in time, calling another
createContext immediately will trigger the WebNN context
provider's disconnect handler[2].

To resolve this issue, this CL waits 3 seconds for the GPU
process to restart and then retries calling createContext.

[1] https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/modules/ml/ml.cc;l=124
[2] https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/modules/ml/ml.cc;l=140

Bug: 472168103
Change-Id: Id4808a01c8e617bf38a8225c016f3eb616a1d936
Reviewed-on: https://chromium-review.googlesource.com/7349171
WPT-Export-Revision: 56c4be46313e49ddf96e9e5e88d85ead02c001d8

When running WebNN conformance tests, we sometimes
encounter the flaky error "Failed to execute 'createContext' on
'ML': WebNN service connection error."[1].

This is caused by a previous test case's context lost failure,
which is handled by killing the GPU process. However, if the
GPU process hasn't restarted in time, calling another
`createContext` immediately will trigger the WebNN context
provider's disconnect handler[2].

To resolve this issue, this CL waits 3 seconds for the GPU
process to restart and then retries calling `createContext`.

[1] https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/modules/ml/ml.cc;l=124
[2] https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/modules/ml/ml.cc;l=140

Bug: 472168103
Change-Id: Id4808a01c8e617bf38a8225c016f3eb616a1d936
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants