Search Unity

Animator memory leaks on IOS

Discussion in 'iOS and tvOS' started by Moortini, Sep 12, 2017.

  1. Moortini

    Moortini

    Joined:
    Jul 17, 2017
    Posts:
    3
    Hello!

    I was fixing some memory leaks in my project on IOS device and I found that there are many leaks about animator component. (I was using Instruments in Xcode) These leaks occur in many places in the project. They appear most of all when some gameobject with animator component (or animator component on child gameobjects) is setting active. This is the screen from Instruments (stack trace of one of founded leaks):


    So my question is: 1) Is Unity allocates memory for animator every time gameobject is set active? 2) Can I fix this someway?

    Sorry for my English;) Thanks
     
  2. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,620
    What Unity version do you use? I remember to have seen many "Fixed memory leak" release notes in more recent Unity versions.
     
  3. Moortini

    Moortini

    Joined:
    Jul 17, 2017
    Posts:
    3
    I saw one of similar posts. There was 4.x version as I remember. But I use 5.6
     
  4. nirendao1980

    nirendao1980

    Joined:
    Nov 9, 2015
    Posts:
    13
    me too.
    I use 2018.1.3f
    damn it bug.
    every one animator leak.
    I use Xcode 8.2
     
  5. nirendao1980

    nirendao1980

    Joined:
    Nov 9, 2015
    Posts:
    13
    Unity Technologies does not use the forum to track bugs. Please submit a bug-report, following this document:
    https://unity3d.com/unity/qa/bug-reporting

    ... and post the bug-report Case number in this forum thread for Unity staff to pick up.
     
  6. better_walk_away

    better_walk_away

    Joined:
    Jul 12, 2016
    Posts:
    291