Closed jzxchiang1 closed 2 years ago
The latest update is that we might need to "pump the message loop".
See the following links for context:
https://bugs.chromium.org/p/v8/issues/detail?id=12318&q=component%3AWebAssembly&can=1 https://groups.google.com/g/v8-users/c/lRe7WrCkHCE
Do these commits fix the issue?
Would you like me to help test? Thanks.
This is awesome, thank you. I tested it in 0.65 and it works.
I've tried this on an Android Pixel 3 emulator with:
RN v0.64.1, v8-android-jit v9.88.0 (V8 v8.x) RN v0.65.1, v8-android-jit v9.93.0 (V8 v9.x)
The result is the same:
await WebAssembly.compile(...)
andawait WebAssembly.instantiate(...)
hang forever and never complete. Funny enough,WebAssembly.validate(...)
(which is not async) completes just fine.To reproduce this, try running this in your top-level index.js file:
This is a very short wasm program (only 2 instructions). You'll notice that "compiled" never gets printed.
I've raised this issue with the chromium V8 team, and they think it's a problem with the embedder, this piece of C++ in the react-native-v8 codebase.
I'm wondering if you've seen this issue, whether you can reproduce it, and what you think is the cause of this. Thank you!