Search Unity

0.6.6 Android runtime errors

Discussion in 'Addressables' started by CharBodman, Mar 7, 2019.

  1. CharBodman

    CharBodman

    Joined:
    Sep 20, 2018
    Posts:
    36
    Encountering an error when running 0.6.6 on Android.
    Packed Play Mode works, but on device doesn't.

    Here is what we are running into.

    Code (CSharp):
    1. NullReferenceException encountered in operation UnityEngine.ResourceManagement.AsyncOperations.ChainOperation`2[UnityEngine.AddressableAssets.ResourceLocators.ContentCatalogData,System.Collections.Generic.IList`1[System.Object]], result='UnityEngine.AddressableAssets.ResourceLocators.ContentCatalogData', status='Failed', valid=True, location=AddressablesMainContentCatalog..
    2. UnityEngine.DebugLogHandler:Internal_Log()
    3. UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    4. UnityEngine.Logger:LogFormat(LogType, String, Object[])
    5. UnityEngine.Debug:LogErrorFormat(String, Object[])
    6. UnityEngine.AddressableAssets.Addressables:LogException(IAsyncOperation, Exception) (at

    Any input on this would be very helpful
     
  2. unity_bill

    unity_bill

    Joined:
    Apr 11, 2017
    Posts:
    1,053
    We've seen a similar issue on iOS, but had not yet seen it on Android. We are looking into the iOS issue, so will do this one as well. This fix will come out in a small patch release once ready.
     
  3. unity_bill

    unity_bill

    Joined:
    Apr 11, 2017
    Posts:
    1,053
    @CharBodman
    I have not been able to reproduce this on android. Only on ios, and even there it's intermittent. Could you create a sample project, file a ticket against Unity, and post the case number here? It would really help us get to the bottom of this.

    Thanks,
    Bill
     
  4. unity_bill

    unity_bill

    Joined:
    Apr 11, 2017
    Posts:
    1,053
    Never mind. we got to the bottom of the iOS bug. it has to do with code stripping, so our settings on Android were probably just different than yours. We should have a patch out today with a fix, once it is out, I'll post here again, and would ask that you test it on your project to let us know if it actually solved your issue.
     
  5. CharBodman

    CharBodman

    Joined:
    Sep 20, 2018
    Posts:
    36
    Thanks Bill,

    I'll look at creating a sample project.
    We're currently working on a game to be released in Q2, so I'll be posting here fairly often.
     
  6. unity_bill

    unity_bill

    Joined:
    Apr 11, 2017
    Posts:
    1,053
    Ok, it should be fixed in 0.6.7-preview. Please test it and let us know.

    -Bill
     
    MNNoxMortem likes this.
  7. CharBodman

    CharBodman

    Joined:
    Sep 20, 2018
    Posts:
    36
    It works / is fixed! Thanks BIll , appreciate the quick response and release.
     
    unity_bill and MNNoxMortem like this.