rive-app / rive-wasm

Wasm/JS runtime for Rive
MIT License
660 stars 46 forks source link

broken on ios14 on versions above 1.0.102 #317

Open typeetfunc opened 1 year ago

typeetfunc commented 1 year ago

Description

On mobile devices with IOS 14(v14.4), rive canvas and webgl packages(starting from 1.0.103) doesn't works:

[Warning] failed to asynchronously prepare wasm: CompileError: WebAssembly.Module doesn't parse at byte 538: invalid opcode 192, in function at index 41 (bundle.js, line 112877)
[Warning] Aborted(CompileError: WebAssembly.Module doesn't parse at byte 538: invalid opcode 192, in function at index 41) (bundle.js, line 110438)
[Error] Unhandled Promise Rejection: RuntimeError: Aborted(CompileError: WebAssembly.Module doesn't parse at byte 538: invalid opcode 192, in function at index 41). Build with -sASSERTIONS for more info. (evaluating 'new WebAssembly.RuntimeError(a + . Build with -sASSERTIONS for more info.))
    (anonymous function) (bundle.js:110440)
    promiseReactionJobw

Provide a Repro

Check any web example on ios14: https://codesandbox.io/s/rive-plain-js-sandbox-1ddrc?file=/package.json:282-289

Source .riv/.rev file

Any rive file

Expected behavior

there is no wasm compilation exception

Browser & Versions

Additional context

Similar issue and connected fixes 1 , 2

TravelingTice commented 11 months ago

Still an issue... Not sure if it's possible to provide with a fallback icon when the wasm file doesn't want to work out? Or would there be another way for us to catch it if it goes wrong? We are using the @rive-app/react-canvas package... Thanks a lot.

liumulin614 commented 7 months ago

we met the same problem, is there any solution? @mjohnsullivan

nfsq246 commented 7 months ago

try to use emsdk version 3.1.25