Closed Bug 1837125 Opened 3 years ago Closed 1 year ago

riscv64 webassembly "no WebAssembly compiler available"

Categories

(Core :: JavaScript: WebAssembly, defect, P5)

Firefox 113
RISCV64
Linux
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: tsu.yubo, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36

Steps to reproduce:

  1. dpkg -i firefox_113.0.2-1.1.3_riscv64.deb on Debian sid on the Unmatched board/lpi4a, The Debian package from http://vimer.f3322.net:63015/firefox/113-0-2-1/
  2. To visit: https://wuying.aliyun.com/v3/
  3. It will be hang and can get the error message from the console.

Actual results:

hi, when I opened webassembly page(like https://wuying.aliyun.com/v3/) with firefox(113.0.2) on Debian riscv64 I get error:

bl.js:1:33833
WebAssembly verbose: async instantiateStreaming() started canvaskit.js:257:349
wasm streaming compile failed: Error: no WebAssembly compiler available bl.js:1:9025
falling back to ArrayBuffer instantiation bl.js:1:9025
WebAssembly verbose: async instantiate() started canvaskit.js:256:314
failed to asynchronously prepare wasm: Error: no WebAssembly compiler available bl.js:1:9025
Aborted(Error: no WebAssembly compiler available) bl.js:1:9025
Uncaught (in promise) RuntimeError: Aborted(Error: no WebAssembly compiler available). Build with -s ASSERTIONS=1 for more info.
    Ra https://g.alicdn.com/aliyun-ecs/webclient-cdn/1.0.1/canvaskit/canvaskit.js:157
    c https://g.alicdn.com/aliyun-ecs/webclient-cdn/1.0.1/canvaskit/canvaskit.js:256
    promise callback*c https://g.alicdn.com/aliyun-ecs/webclient-cdn/1.0.1/canvaskit/canvaskit.js:256
    CanvasKitInit https://g.alicdn.com/aliyun-ecs/webclient-cdn/1.0.1/canvaskit/canvaskit.js:257
    promise callback*CanvasKitInit/< https://g.alicdn.com/aliyun-ecs/webclient-cdn/1.0.1/canvaskit/canvaskit.js:257
    promise callback*CanvasKitInit/< https://g.alicdn.com/aliyun-ecs/webclient-cdn/1.0.1/canvaskit/canvaskit.js:257
    CanvasKitInit https://g.alicdn.com/aliyun-ecs/webclient-cdn/1.0.1/canvaskit/canvaskit.js:257
    CanvasKitInit https://g.alicdn.com/aliyun-ecs/webclient-cdn/1.0.1/canvaskit/canvaskit.js:258
    l https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    a https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    $2 https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    $1 https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    Ra https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    $0 https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    F2 https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    mF https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    $0 https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    bOm https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    bOB https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    $1 https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    bQE https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    n https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    bKZ https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    <anonymous> https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    r https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    bwq https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    bgk https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    pp https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    Us https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    io https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    bI https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    p https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    u https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    a https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    $2 https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    q https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    biR https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    r https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    a https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    $2 https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    q https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    bi2 https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    x https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    <anonymous> https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
    <anonymous> https://g.alicdn.com/aliyun-ecs/webclient-flutter/0.0.17/main.dart.js:1
canvaskit.js:157:75

BTW, The firefox can be detected with some Webassembly feature to visit https://wasm-feature-detect.surma.technology/

Your browser supports:
✔️       bigInt
✔️       bulkMemory
✔️       exceptions
✔️       extendedConst
❌      gc
❌      jspi
❌      memory64
✔️       multiValue
✔️       mutableGlobals
✔️       referenceTypes
❌      relaxedSimd
✔️       saturatedFloatToInt
✔️       signExtensions
❌      simd
✔️       streamingCompilation
❌      tailCall
❌      threads
❌      typeReflection

Expected results:

It seems it is normal to visit https://wuying.aliyun.com/v3/ on amd64 firefox.

related BUG 1837111

Thanks LuYahan. I forget to mention that I has applied D175011 and D178616 here.

The Bugbug bot thinks this bug should belong to the 'Core::JavaScript: WebAssembly' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → JavaScript: WebAssembly
Product: Firefox → Core
OS: Unspecified → Linux
Hardware: Unspecified → RISCV64

The severity field is not set for this bug.
:rhunt, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(rhunt)
Severity: -- → S4
Priority: -- → P5

Is this still an issue since those patches have landed?

Flags: needinfo?(rhunt) → needinfo?(tsu.yubo)

(In reply to Ryan Hunt [:rhunt] from comment #5)

Is this still an issue since those patches have landed?

hi, sorry for the late reply.
yeah, the new issue is 1837852 with D175022 and D178616.
The hint was given in the description of 1837852:

WebAssembly verbose: available wasm compilers: tier1=baseline tier2=ion canvaskit.js:257:349

Because the Webassembly module does not work for the site so I did not update here, sorry.
So, if you are sure the bug was fixed given my info, so please close it and let's focus on 1837852.

Thanks again.

Flags: needinfo?(tsu.yubo)
Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: