Search Unity

  1. All Pro and Enterprise subscribers: find helpful & inspiring creative, tech, and business know-how in the new Unity Success Hub. Sign in to stay up to date.
    Dismiss Notice
  2. Dismiss Notice

Webassembly no longer working on iOS 11.2.2

Discussion in 'WebGL' started by lightmapper, Jan 10, 2018.

  1. lightmapper

    lightmapper

    Joined:
    Jan 14, 2015
    Posts:
    27
    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:

    Code (JavaScript):
    1. Unhandled Promise Rejection: Error: Out of executable memory in function at index
    Is anyone aware of this issue and knows a work around?
     
    Last edited: Jan 10, 2018
    asimdeyaf likes this.
  2. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    It might be the same iOS regression mentioned here.
     
    asimdeyaf likes this.
  3. StaffanEk

    StaffanEk

    Joined:
    Jul 13, 2012
    Posts:
    380
    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.
     
    asimdeyaf likes this.
  4. shader13

    shader13

    Joined:
    Aug 31, 2012
    Posts:
    15
  5. MPappas

    MPappas

    Joined:
    Oct 17, 2018
    Posts:
    2
    From the looks of the webkit site referenced above, webkit.org says they implemented a possible fix to this issue, this week. ( https://bugs.webkit.org/show_bug.cgi?id=181723 )

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

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    994
    Webkit is what Safari is made of, so they have to ship an update with the fix for Safari.
     
  7. kognito1

    kognito1

    Joined:
    Apr 7, 2015
    Posts:
    331
    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 :D). I guess I'll have to start testing new iOS beta releases. :)
     
  8. MPappas

    MPappas

    Joined:
    Oct 17, 2018
    Posts:
    2
    OK, didn't know how much initialization/code was on the unity side. Sounds like nothing but the API calls :(
     
  9. realitygarage

    realitygarage

    Joined:
    Feb 17, 2017
    Posts:
    7
    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
     
  10. kognito1

    kognito1

    Joined:
    Apr 7, 2015
    Posts:
    331
    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.
     
  11. Kristof_Newfort

    Kristof_Newfort

    Joined:
    Feb 21, 2014
    Posts:
    24
    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?
     
  12. De-Panther

    De-Panther

    Joined:
    Dec 27, 2009
    Posts:
    483
    WASM work for us in iOS 12.2. We are using Unity 2019.1.0f2
     
    marvyco likes this.
  13. doctorpangloss

    doctorpangloss

    Joined:
    Feb 20, 2013
    Posts:
    255
    jasonwj likes this.
unityunity