Closed 350030173 closed 2 years ago
If you install an exception listener:
Il2Cpp.installExceptionListener("all");
This is what it will print:
il2cpp: System.Exception: Provider of type AddressablesPlayAssetDelivery.PlayAssetDeliveryAssetBundleProvider with id AddressablesPlayAssetDelivery.PlayAssetDeliveryAssetBundleProvider has provided a result of type AddressablesPlayAssetDelivery.PlayAssetDeliveryAssetBundleProvider which cannot be converted to requested type UnityEngine.ResourceManagement.ResourceProviders.IAssetBundleResource. The operation will be marked as failed.
at UnityEngine.ResourceManagement.AsyncOperations.ProviderOperation`1[TObject].ProviderCompleted[T] (T result, System.Boolean status, System.Exception e) [0x00000] in <00000000000000000000000000000000>:0
at AddressablesPlayAssetDelivery.PlayAssetDeliveryAssetBundleProvider.CheckDownloadStatus (UnityEngine.Android.AndroidAssetPackInfo info) [0x00000] in <00000000000000000000000000000000>:0
il2cpp: System.NullReferenceException: Object reference not set to an instance of an object.
at AddressableLoadWrapper`1+<LoadGameObject>d__3[T].MoveNext () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <00000000000000000000000000000000>:0
il2cpp: System.NullReferenceException: Object reference not set to an instance of an object.
at HatParent.PopulateFromHatViewData () [0x00000] in <00000000000000000000000000000000>:0
at HatParent+<>c__DisplayClass26_0.<SetHat>b__0 (HatViewData viewData) [0x00000] in <00000000000000000000000000000000>:0
at System.Action`1[T].Invoke (T obj) [0x00000] in <00000000000000000000000000000000>:0
at AddressableLoadWrapper`1+<CoLoadViewData>d__1[T].MoveNext () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <00000000000000000000000000000000>:0
It also happens if you don't implement that method. So, there's just a bug inside the application.
thanks very much
when hook the method:
script:
output:
the game url: https://apkpure.com/cn/among-us-mobile/com.innersloth.spacemafia