Skip to content
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

Unhandled Promise Rejection on iOS safari #175

Open
tortoise00q opened this issue May 24, 2022 · 5 comments
Open

Unhandled Promise Rejection on iOS safari #175

tortoise00q opened this issue May 24, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@tortoise00q
Copy link

I just testing the multi.html in examples and I get "Unhandled Promise Rejection: RuntimeError: Aborted(CompileError: WebAssembly.Module doesn't parse at byte 272: invalid opcode 253, in function at index 75). Build with -s ASSERTIONS=1 for more info." at artoolkitNFT_wasm.js

The error only occur in iOS devices but android device run smooth.

@kalwalt kalwalt added the bug Something isn't working label May 24, 2022
@kalwalt
Copy link
Member

kalwalt commented May 24, 2022

Hi @tortoise00q you are welcome, unfortunately i have no iOS devices to test so i can't help so much. Does this occur also for the other examples? What browser are you using with iOS?
Lately i added the SIMD feature but Safari does not support yet it, so the examples should detect and load the non SIMD version.
Maybe it is a WebAssembly issue? Can you try the asm version of the lib? Try to change

importScripts("../build/artoolkitNFT_wasm.js");
with:
importScripts("../build/artoolkitNFT.min.js");

@larrykeeler12
Copy link

I also experience the same on iOS.

"I just testing the multi.html in examples and I get "Unhandled Promise Rejection: RuntimeError: Aborted(CompileError: WebAssembly.Module doesn't parse at byte 272: invalid opcode 253, in function at index 75). Build with -s ASSERTIONS=1 for more info." at artoolkitNFT_wasm.js"

@kalwalt I've tried your last recommendation:

importScripts("../build/artoolkitNFT.min.js");

but it doesn't seem to complete loading (in any browser).

The logs in the console show a log of the video, but no NFT images load and the screen remains on the loading screen.

Any suggestions?

@kalwalt
Copy link
Member

kalwalt commented Jan 18, 2023

I also experience the same on iOS.

"I just testing the multi.html in examples and I get "Unhandled Promise Rejection: RuntimeError: Aborted(CompileError: WebAssembly.Module doesn't parse at byte 272: invalid opcode 253, in function at index 75). Build with -s ASSERTIONS=1 for more info." at artoolkitNFT_wasm.js"

@kalwalt I've tried your last recommendation:

importScripts("../build/artoolkitNFT.min.js");

but it doesn't seem to complete loading (in any browser).

The logs in the console show a log of the video, but no NFT images load and the screen remains on the loading screen.

Any suggestions?

Thank you @larrykeeler12 unfortunately i have any iOS devices to test, i can say that this at least not happens on Android ( with at least my Android devices). I'm open to find a solution but i have no idea at the moment.

@Artkoch
Copy link

Artkoch commented Mar 25, 2023

I have a similar issue. It may be related to usage of -mnontrapping-fptoint. I've got this idea from thi thread emscripten-core/emscripten#9842 of emscripten-core.

Is there a workaround for this issue?

@kalwalt
Copy link
Member

kalwalt commented Mar 25, 2023

Thank you @Artkoch to point me to this issue. I have no workaroud at the moment. It would be very useful to find if the Emscripten compiler add that flag or not. I will make some tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants