Search Unity

Crashes when using scene loadasync? (Unity: Out of Memory and Inflate Error)

Discussion in 'Android' started by Aram-Azhari, Jun 22, 2016.

  1. Aram-Azhari

    Aram-Azhari

    Joined:
    Nov 18, 2009
    Posts:
    142
    Update: There is now a case number for this: 807951

    I've been getting a crash ever since we upgraded to 5.3.4f1 (and 5.3.5f1) on Android devices.

    Unity throws error in adb logcat such as:
    "Could not allocate memory: System out of memory! "
    "Trying to allocate: 262144B with 16 alignment. MemoryLabel: File" etc.




    This happens on:
    Galaxy Tab S (SM-T800)
    Galaxy S7
    Nexus 5X
    Kindle PW98VM
    Moto X
    LG G3
    HTC One(M8)

    Note: This does not happen on Unity 5.2.4f1.

    Note2: The issue seem to be on the most recent devices from last two years and this worries us a lot.

    Note3: There are no issues when using Unity 5.2.


    Since it's been almost a month from the first bug report I made and haven't had any responses, I decided to create this thread to find out whether there are others being affected like us.

    Please if you could share your experience and mention which devices you are getting this at.


    Looking forward to hear your thoughts.

    Best Regards,
     
    Last edited: Aug 15, 2016
    Rajmahal likes this.
  2. Aram-Azhari

    Aram-Azhari

    Joined:
    Nov 18, 2009
    Posts:
    142
    And here's the profiler up to the point it crashes (and no connection after that) Unity 5.3.5f1:

     
  3. Rajmahal

    Rajmahal

    Joined:
    Apr 20, 2011
    Posts:
    2,101
    I'm running into the same thing. On an LG G3, Samsung S4, Samsung Note 3, this occurs. On an LG G4, there is no issue and the game doesnt crash.

    In the profiler, is the large memory spike due to a serialized file?
     
  4. Rajmahal

    Rajmahal

    Joined:
    Apr 20, 2011
    Posts:
    2,101
    Were you able to provide a repro project with your bug report?
     
  5. Aram-Azhari

    Aram-Azhari

    Joined:
    Nov 18, 2009
    Posts:
    142
    We're not serializing anything. Whatever's happening is happening through the engine itself.
     
  6. Aram-Azhari

    Aram-Azhari

    Joined:
    Nov 18, 2009
    Posts:
    142
    We have a 100% repro project but Android Team at Unity do not use Mac computers and we use symlinks which don't exist on Windows platform. So I'm trying to make a trimmed example of the project to run on the windows machine and will provide them with.

    This is probably a Unity version regression bug. How can a 4 gigabyte Galaxy S7 run out of memory? and if so, why it doesn't happen on 5.2.x...
     
    Last edited: Jun 28, 2016
  7. Aram-Azhari

    Aram-Azhari

    Joined:
    Nov 18, 2009
    Posts:
    142
    The case number for this bug is 807951 .

    Any updates on the matter?
     
  8. t-schulz

    t-schulz

    Joined:
    Feb 25, 2015
    Posts:
    13
    very interesting. Got a similar problem on some android devices. Crashes without any error. App has just died. Maybe its fixes with your reported bug. Im downgrading to 5.2 now.