Uh oh!
There was an error while loading. Please reload this page.
[wasm] rewrite crypto-worker to typescript - #73073
Conversation
ghost
commented
Jul 29, 2022
Tagging subscribers to 'arch-wasm': @lewing Issue Details
Fixes #72941
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
pavelsavara
commented
Aug 1, 2022
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
pavelsavara
commented
Aug 1, 2022
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
lambdageek
left a comment
There was a problem hiding this comment.
thanks for converting the crypto worker to TS!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
pavelsavara
commented
Aug 1, 2022
I wrote and then spoke to @javiercn this morning about how to locate the url of the I added new resource type @radical I know you guys also spoke about it. |
pavelsavara
commented
Aug 1, 2022
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
pavelsavara
commented
Aug 1, 2022
because slice makes copy, the constructor make a view. Unless I made some mistake. |
eerhardt
commented
Aug 1, 2022
Ah, that's a difference between JS and .NET. Looks like what we want is |
I'm not familiar with how the assets stuff works... Emscripten just does this: allocateUnusedWorker: function(){if(!Module["locateFile"]){PThread.unusedWorkers.push(newWorker(newURL("dotnet.worker.js",import.meta.url)));return;}varpthreadMainJs=locateFile("dotnet.worker.js");PThread.unusedWorkers.push(newWorker(pthreadMainJs));},but I don't see any changes to Update I suppose we could replace |
pavelsavara
commented
Aug 1, 2022
Right, different PR |
pavelsavara
commented
Aug 1, 2022
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Azure Pipelines successfully started running 1 pipeline(s). |
pavelsavara
commented
Aug 5, 2022
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
eerhardt
commented
Aug 5, 2022
No - locally on my codespaces VM they take around 70-90 seconds. |
pavelsavara
commented
Aug 5, 2022
On my windows, when it works the it's 2 minutes. But I saw it deadlock multiple times, now I'm trying to reproduce it on main, with just the logging fixed here #73468 |
eerhardt
commented
Aug 5, 2022
Yeah, one concern I have with this PR is that you are trying to change too much at once. It is super hard to know what went wrong when making multiple changes in a single PR. |
I was able to reproduce the deadlock on this branch locally on my windows |
0830d25 to
1013b63Comparepavelsavara
commented
Aug 5, 2022
pavelsavara
commented
Aug 5, 2022
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
eerhardt
left a comment
There was a problem hiding this comment.
LGTM - thanks for splitting this up!
pavelsavara
commented
Aug 5, 2022
@eerhardt are you guys able to have look at the deadlock ? do you need more info? |
eerhardt
commented
Aug 5, 2022
I haven't been able to look at the deadlock. Does it happen in |
pavelsavara
commented
Aug 5, 2022
Probably on main as well, but the fix to logging will help you debugging it without XHarness. Otherwise your chrome will crash with OOM. |
eerhardt
commented
Aug 5, 2022
I haven't seen a test failure report in a CI, and the tests have been running for over a month. |
…ccess and preventing the deadlock. This is RC1 stop-gap.
Returned some console writes (which I commented out 10 days ago) in hope they prevented the deadlock. I think they were serializing the access to shared buffer. Perhaps we could find better solution later. |
pavelsavara
commented
Aug 5, 2022
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |

InitCryptoMessageDataconfig.diagnosticTracingMoved some changes from this PR to #73468 and #73073