-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
logResult[n].extra
fails to serialize in worker tests
#4172
Comments
@kainino0x: If I were to file a PR for this, I think the simplest (naive) approach I might take is to serialize |
Chrome probably doesn't hit this because we don't set |
I'm not sure why, but WPT tests for Firefox are running into this as if |
Aha, I think I've diagnosed the above. cts/src/common/runtime/helper/options.ts Line 64 in 467b5f7
true by default, and that's effectively the configuration used for worker contexts in WPT, because src/common/runtime/wpt.ts :35-37 does not provide a non-default configuration.
I think the solution remains the same, but that's an interesting way for the bug's preconditions to be fulfilled in the context I originally observed this bug. |
Firefox upstream tracking: bug 1943776 |
Ah, hm. I'm not sure why that's true by default, but that could also explain issues we had with over-logging (in chromium) that someone mentioned to me a while ago. |
This affects running tests with workers. This should affect WPT, but not standalone which sets the options explicitly. It also [shouldn't affect Chromium](https://source.chromium.org/chromium/chromium/src/+/main:third_party/dawn/webgpu-cts/test_runner.js), though it could have something to do with over-logging we've seen in the past. I did not actually try running the WPT runtime but this should be a safe change. Issue: #4172 (code originally from PR #2787)
This was resolved by #4287. |
Test:
webgpu/cts/webgpu/web_platform/canvas/readbackFromWebGPUCanvas/dedicated.https.html?worker=dedicated&q=webgpu:web_platform,canvas,readbackFromWebGPUCanvas:offscreenCanvas,snapshot:*
This happens because the
postMessage
call inside of thereportTestResults
function intest_worker-worker.js
in WebGPU CTS loads data fromresult
, convertingresult.logs
into a form more amenable form for a message viatoRawData
. However, for this test, theextra
field of one or morelogs
entries is populated and preserved, containing function objects as members.Standalone CTS doesn't reproduce this by default; one needs to set the
debug
query parameter first:https://gpuweb.github.io/cts/standalone/?worker=dedicated&debug=1&q=webgpu:web_platform,canvas,readbackFromWebGPUCanvas:transferToImageBitmap_unconfigured_nonzero_size:*
I presume that the Chrome hasn't run into this because…it passes most of CTS. 😅
The text was updated successfully, but these errors were encountered: