Webassembly no longer working on iOS 11.2.2

Webassembly projects that were working on iOS 11.2.1 no longer work on 11.2.2. I also tested this issue with a brand new empty project using webgl1. See the following for the specific error:

Unhandled Promise Rejection: Error: Out of executable memory in function at index

Is anyone aware of this issue and knows a work around?

1 Like

It might be the same iOS regression mentioned here.

1 Like

I love the fact that instead of turning off WebAssembly, so that a fallback to asm.js takes over. Apple has decided to leave the error in, so that we have to fight with this until spring when iOS updates. It’s clear that Apple is afraid of having web apps working in browsers, and them not getting a piece of the appstore revenue. I know you never attribute to malice that which is adequately explained by incopetence, and Apple has plenty of incompetence. At this stage however, the malicious intent is fairly clear. Fudge Apple.

1 Like


https://bugs.webkit.org/show_bug.cgi?id=181723

1 Like

From the looks of the webkit site referenced above, webkit.org says they implemented a possible fix to this issue, this week. ( 181723 – REGRESSION (iOS 11.2.2): Unhandled Promise Rejection: Error: Out of executable memory in function at index )

Can Unity integrate the new webkit, and issue an update to us?

Webkit is what Safari is made of, so they have to ship an update with the fix for Safari.

This would be absolutely fantastic news. I took a pause on trying to get iOS working while we finish working on “officially” releasing Android WebGL in the wild. This gives me some hope that we can support Android and the most recent version of iOS by years end (pfft, who needs the instant games platform :smile:). I guess I’ll have to start testing new iOS beta releases. :slight_smile:

OK, didn’t know how much initialization/code was on the unity side. Sounds like nothing but the API calls :frowning:

Still finding same error with safari (and seems like chrome is failing at the same point) on ios 12.1.3 with a simple webgl build from Unity 2018.2.10. Any workarounds

It’s fixed in iOS 12.2 beta. Apple didn’t update Safari in any of the 12.0.x or 12.1.x releases so we had to wait.

This still isn’t fixed in iOS 12.4. I have no device with iOS 13 beta to test it with.
Is there anyone that has tested this with iOS 13 beta?

WASM work for us in iOS 12.2. We are using Unity 2019.1.0f2

1 Like

WebAssembly never worked for non-empty projects on iOS versions earlier than 12.2. Follow my tips and tricks here: Tips and tricks for using WebGL on desktop and mobile (tested up to 2021.3.11f1)

1 Like