Wasm crashing on iPhone

141 views
Skip to first unread message

Ulhas Pawar

unread,
Jul 24, 2023, 4:52:42 AM7/24/23
to emscripte...@googlegroups.com
Hello All!
I am using Emscripten to build Wasm for my application.
I am facing weird issue on iPhones where wasm crashes. Post crash, browser tab is reloaded.

My current setup is on 2.0.15.

Do let me know if I need to build with flags or different Emscripten builds.

Any help is appreciated :)


Thanks,
Ulhas

Shlomi Fish

unread,
Jul 25, 2023, 2:04:44 AM7/25/23
to Ulhas Pawar, emscripte...@googlegroups.com
hi Ulhas,
please see https://github.com/shlomif/how-to-share-code-online and
https://github.com/shlomif/writing-the-perfect-question .

>
> Thanks,
> Ulhas
>



--

Shlomi Fish https://www.shlomifish.org/
My Favourite FOSS - https://www.shlomifish.org/open-source/favourite/

The difference between theory and practice is that in theory, there is no
difference between theory and practice, while in practice, there is.
— Source unknown.

Please reply to list if it's a mailing list post - https://shlom.in/reply .

Sam Clegg

unread,
Jul 25, 2023, 9:03:56 AM7/25/23
to emscripte...@googlegroups.com
On Mon, Jul 24, 2023 at 1:52 AM Ulhas Pawar <ulhas...@orbo.ai> wrote:
Hello All!
I am using Emscripten to build Wasm for my application.
I am facing weird issue on iPhones where wasm crashes. Post crash, browser tab is reloaded.

My current setup is on 2.0.15.

Is there some reason you are using this old version from 2.5 years ago?  It might be easier for us to fix if you can report a problem that exists with the latest version.

Does the application crash consistently?  Does it ever crash on the desktop safari browser?   It sounds like the entire browser or tab is crashing, is that right? 

cheers,
sam

 

Do let me know if I need to build with flags or different Emscripten builds.

Any help is appreciated :)


Thanks,
Ulhas

--
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/CAHSofyPF2v%3DBWEMkeTVU_57Jh6yJ%3Dam4tb4KLzTG8kjL2eVfYw%40mail.gmail.com.

Brion Vibber

unread,
Jul 25, 2023, 12:35:46 PM7/25/23
to emscripte...@googlegroups.com
Note that Safari on iOS is much more memory-constrained than on the desktop, and much more aggressively terminates tabs for high memory usage. This can easily happen when allocating a lot of linear memory for the WebAssembly module, or simply from all the JIT compiled code.

-- brion

On Mon, Jul 24, 2023 at 1:52 AM Ulhas Pawar <ulhas...@orbo.ai> wrote:
--

Ulhas Pawar

unread,
Jul 27, 2023, 1:39:18 AM7/27/23
to emscripte...@googlegroups.com
Hello All,
It turned out indeed memory restrictions issue in iPhones.
It works smoothly for smaller images - upto 800-900, but crash for larger ones.

Thanks,
Ulhas

Reply all
Reply to author
Forward
0 new messages