Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

UnloadUnusedAssets incorrect caused some assets to load.

Discussion in 'iOS and tvOS' started by zdlogan, Jul 1, 2014.

  1. zdlogan

    zdlogan

    Joined:
    Nov 5, 2013
    Posts:
    6
    We've gotten a few crash reports from our mobile app on iOS devices with the following error string:

    "UnloadUnusedAssets incorrect caused some assets to load. This can easily cause deadlocks or crashes."

    Has anyone seen this error or have any idea what causes it? The string seems to be a unity error message (it's built into all of the playback engines for different platforms) but I haven't been able to find any documentation on what causes it and internet searches haven't turned up any results of other folks hitting this.

    We're using Unity 4.3.4 at the moment and we do call Resources.UnloadUnusedAssets() occasionally, but aren't aware of how we would be using it inappropriately.
     
  2. Graham-Dunnett

    Graham-Dunnett

    Unity Technologies

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    So, basically, when Unity is freeing up unused assets it makes a list of all the assets. It does this in a few different ways, and checks that the number of assets found doesn't change. If the numbers don't match you get the warning message you see. It's hard to explain why your game gets this.
     
  3. unimechanic

    unimechanic

    Joined:
    Jan 9, 2013
    Posts:
    155
  4. zdlogan

    zdlogan

    Joined:
    Nov 5, 2013
    Posts:
    6
    Thanks for the replies. We're pushing an update in a couple weeks that will be with Unity 4.5.1 and if we continue getting crash reports with that message we'll log a bug. We haven't been able to repro in house and it's fairly infrequent (only 3 reports from a few thousand users) so not much to put in a bug report right now.
     
  5. unimechanic

    unimechanic

    Joined:
    Jan 9, 2013
    Posts:
    155
    When you file the bug please add as much information about the devices as possible (OS version, model number, etc.). Our QA team can try reproducing the issue with the same setup at their labs. Bear in mind users could have OS versions that are unstable and we might not support them. Sometimes just restarting their devices is enough to get rid of certain problems.
     
  6. zdlogan

    zdlogan

    Joined:
    Nov 5, 2013
    Posts:
    6
    We've hit this issue 6 more times since we released our update on Unity 4.5.1 about a week and a half ago, so I went ahead an opened a bug (623477). Included a device list that we've seen it on. Seems to be a variety of iOS devices (iPhone 5, iPhone4, iPad 3, iPad2) and all on either iOS 7.1.2 or 7.1.1
     
  7. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Have you tried Unity3d 4.5.2 or 4.5.2p3?
     
  8. zdlogan

    zdlogan

    Joined:
    Nov 5, 2013
    Posts:
    6
    We have never been able to repro the issue in house... We only know of the error from hockeyapp crash reports, so we'll have to wait until we push an update with 4.5.2 to see if we still hit the problem there. We saw it on 4.3.4, and now still with 4.5.1. Is there reason to believe 4.5.2 or 4.5.2p3 might have fixed the problem?