Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Safari: Cannot enlarge memory arrays

Discussion in 'Project Tiny' started by Fotal, Dec 14, 2020.

  1. Fotal

    Fotal

    Joined:
    Apr 9, 2019
    Posts:
    38
    Hi, we are facing the problem that our game is loading with an error in Safari browsers on macOS and iOS.
    https://rjd.ru.com/Fighting/six/

    upload_2020-12-14_12-9-12.png

    Only Safari browsers get this memory error. Everything works well in Google Chrome on macOS and iOS..
    We are also try it on ngrok hosting and get the same results.
     
  2. Fotal

    Fotal

    Joined:
    Apr 9, 2019
    Posts:
    38
    We are also try different values for Memory size from 256 to 2048
     

    Attached Files:

  3. AbdulAlgharbi

    AbdulAlgharbi

    Unity Technologies

    Joined:
    Jul 27, 2018
    Posts:
    319
    Hi,
    what version of Safari are you using? and what is the web build type you are trying to load?
     
  4. Fotal

    Fotal

    Joined:
    Apr 9, 2019
    Posts:
    38
    Hi,
    1. Wasm build
    2. Safari 13.1
    3. macOS Catalina 10.15.4
     
  5. Spectrellian

    Spectrellian

    Joined:
    Mar 8, 2015
    Posts:
    27
    Had exactly the same problem. I figured it out. Safari on certain phones cannot process more than 210MB of memory. If your game needs more this error appears because it tries to enforce the memory growth of WebAssembly.

    For me it was only working when I got the memory below 200MB.

    I would recommend to check all textures and remove all unneeded Entities from your game.

    Although I still encounter a problem where after a minute all light sources die and the whole game gets black after fixing the memory issue.
     
    Last edited: Dec 15, 2020
    Fotal likes this.
  6. Fotal

    Fotal

    Joined:
    Apr 9, 2019
    Posts:
    38
    Up. This problem is still here((