WASM mobile

20 views
Skip to first unread message

Steve Dekorte

unread,
Jan 3, 2023, 5:13:09 PM1/3/23
to emscripten-discuss
Are there any known issues with WASM on mobile browsers? 

I have a web page that uses WASM that works fine on desktop Chrome or Safari but crashes the whole page on iPhone using Chrome or Safari. I can write and post a sample page, but I thought I check to see if this is a known issue first.

Steve Dekorte

unread,
Jan 3, 2023, 5:15:05 PM1/3/23
to emscripte...@googlegroups.com

This isn’t a minimal example, but this is the page I’m having the issue with:

https://iolanguage.org/repl/

> On Jan 3, 2023, at 2:13 PM, Steve Dekorte <st...@dekorte.com> wrote:
>
> Are there any known issues with WASM on mobile browsers?
>
> I have a web page that uses WASM that works fine on desktop Chrome or Safari but crashes the whole page on iPhone using Chrome or Safari. I can write and post a sample page, but I thought I check to see if this is a known issue first.
>
> --
> You received this message because you are subscribed to a topic in the Google Groups "emscripten-discuss" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/emscripten-discuss/Vu4KU4px1lE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to emscripten-disc...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/f1cf2540-aa52-4002-bb6a-a8f549e7619dn%40googlegroups.com.


Александр Гурьянов

unread,
Jan 3, 2023, 5:15:37 PM1/3/23
to emscripte...@googlegroups.com
Usual this happens because of OOM. Check the maximum allowed memory of your wasm module. Usually 128 is ok for mobile, if more it can crash.

ср, 4 янв. 2023 г. в 01:13, Steve Dekorte <st...@dekorte.com>:
Are there any known issues with WASM on mobile browsers? 

I have a web page that uses WASM that works fine on desktop Chrome or Safari but crashes the whole page on iPhone using Chrome or Safari. I can write and post a sample page, but I thought I check to see if this is a known issue first.

--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.

Александр Гурьянов

unread,
Jan 3, 2023, 5:17:36 PM1/3/23
to emscripte...@googlegroups.com
Btw, on iPhone Chrome and Safari are same browser (Safari). Because, apple didn't allow use any other browser engine on iPhone.

ср, 4 янв. 2023 г. в 01:15, Steve Dekorte <st...@dekorte.com>:
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/d1d023f146182223708a4313781daf49%40smtp.hushmail.com.

Steve Dekorte

unread,
Jan 3, 2023, 8:32:04 PM1/3/23
to emscripte...@googlegroups.com

Thanks Александр. I tried adding:

-s WASM_MEM_MAX=256MB

to my emscripten compile options and now the page doesn’t crash,
but I get the error:

“can’t find variable WebAssembly”

This is in Safari on iOS 16.2 on an iPhone 14.
Reply all
Reply to author
Forward
0 new messages