I get some intermittent crashes in iOS Safari with my projects, but a lot
less than I used to (it's improved lately). I find a crash in Safari
usually means one of two things:

1) You allocated too much memory and the process died
or
2) Bug in Apple's JIT compiler

If you allocate a large amount of memory for the asm.js code, it's a real
possibility to simply run out of RAM -- especially on older 32-bit devices.
You're already using memory for the code itself, its parse tree, and its
compilation, plus the heap allocated for the emscripten code, so usage
might be higher than you think.

(Sadly you can't debug the Safari process with Apple's developer tools, but
you should be able to check the process's memory usage with a suitable
system view in Instruments.)

If memory usage is low, try to find a reproducible test case and report it
to Apple. This may be tricky if you have a lot of code going on,
unfortunately. :(

Even if it's not a small case, if it's consistent that'll help a *lot* in
hopefully getting a response from Apple. I recommend you also copy-paste
the report to Open Radar - https://openradar.appspot.com/faq - since
Apple's bug database is not public, and this can help other developers
searching for similar problems.

-- brion

On Fri, Jan 6, 2017 at 7:24 AM, Brian Gavin <[email protected]> wrote:

> Hello,
> I have an ASMJS app that runs well on everything but on the IPad.   When I
> run it on the IPad sometimes we get random crashes with it.  Has anyone
> else had this problem and been able to fix it?   I tried playing with some
> optimization flag and other linker setting but they did not seem to help.
> I seems like Safari on the IPad either does not like ASMJS or large
> javscript files.
>
> Thanks
> Brian Gavin
>
> --
> 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 [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to