lasneo

When you build after changing the setting to build unity in mo2x li2cpp results in an error below.
Because of this problem have not been able to register the App Store .

Plz. Await quick feedback .

ullReferenceException: A null value was found where an object instance was required.
at UnityEngine.Advertisements.AsyncExec.delayedCallback (Int32 delay, System.Action callback) [0x00000] in <filename unknown>:0
at Hero.Awake () [0x00000] in <filename unknown>:0
at Replacements.Attribute.CheckParameters (System.Object element, System.Type attributeType) [0x00000] in <filename unknown>:0
at UnityEngine.GameObject.SetActive (Boolean value) [0x00000] in <filename unknown>:0
at MapManager.SetStart (Vector3 v) [0x00000] in <filename unknown>:0
at MapManager.SetMap () [0x00000] in <filename unknown>:0
at MapManager+<WaitStart>c__Iterator1E.MoveNext () [0x00000] in <filename unknown>:0
at Replacements.Attribute.CheckParameters (System.Object element, System.Type attributeType) [0x00000] in <filename unknown>:0
Replacements.Attribute:CheckParameters(Object, Type)
UnityEngine.GameObject:SetActive(Boolean)
MapManager:SetStart(Vector3)
MapManager:SetMap()
<WaitStart>c__Iterator1E:MoveNext()
Replacements.Attribute:CheckParameters(Object, Type)

(Filename: currently not available on il2cpp Line: 4294967295)

Error reading skeleton JSON file for SkeletonData asset: hh
Array index is out of range.
at Spine.SkeletonJson.ReadAnimation (System.String name, System.Collections.Generic.Dictionary`2 map, Spine.SkeletonData skeletonData) [0x00000] in <filename unknown>:0
at Spine.SkeletonJson.ReadSkeletonData (System.IO.TextReader reader) [0x00000] in <filename unknown>:0
at SkeletonDataAsset.GetSkeletonData (Boolean quiet) [0x00000] in <filename unknown>:0
at SkeletonRenderer.Reset () [0x00000] in <filename unknown>:0
at SkeletonAnimation.Reset () [0x00000] in <filename unknown>:0
at UnityEngine.Advertisements.AsyncExec.delayedCallback (Int32 delay, System.Action callback) [0x00000] in <filename unknown>:0
at SkeletonRenderer.Awake () [0x00000] in <filename unknown>:0
at Replacements.Attribute.CheckParameters (System.Object element, System.Type attributeType) [0x00000] in <filename unknown>:0
at UnityEngine.GameObject.SetActive (Boolean value) [0x00000] in <filename unknown>:0
at MapManager.SetStart (Vector3 v) [0x00000] in <filename unknown>:0
at MapManager.SetMap () [0x00000] in <filename unknown>:0
at MapManager+<WaitStart>c__Iterator1E.MoveNext () [0x00000] in <filename unknown>:0
at Replacements.Attribute.CheckParameters (System.Object element, System.Type attributeType) [0x00000] in <filename unknown>:0
Replacements.Attribute:CheckParameters(Object, Type)
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:LogError(Object, Object)
SkeletonDataAsset:GetSkeletonData(Boolean)
SkeletonRenderer:Reset()
SkeletonAnimation:Reset()
UnityEngine.Advertisements.AsyncExec:delayedCallback(Int32, Action)
SkeletonRenderer:Awake()
Replacements.Attribute:CheckParameters(Object, Type)
UnityEngine.GameObject:SetActive(Boolean)
MapManager:SetStart(Vector3)
MapManager:SetMap()
<WaitStart>c__Iterator1E:MoveNext()
Replacements.Attribute:CheckParameters(Object, Type)

(Filename: /Users/builduser/buildslave/unity/build/artifacts/iPhonePlayer-armv7-il2cppGenerated/UnityEngineDebug.cpp Line: 56)

NullReferenceException: A null value was found where an object instance was required.
at UnityEngine.Advertisements.AsyncExec.delayedCallback (Int32 delay, System.Action callback) [0x00000] in <filename unknown>:0
at Hero.Pause () [0x00000] in <filename unknown>:0
at TutorialManager.Show () [0x00000] in <filename unknown>:0
at GameManager+<StartGame>c__Iterator16.MoveNext () [0x00000] in <filename unknown>:0
at Replacements.Attribute.CheckParameters (System.Object element, System.Type attributeType) [0x00000] in <filename unknown>:0
Replacements.Attribute:CheckParameters(Object, Type)
You do not have the required permissions to view the files attached to this post.
lasneo
  • Posts: 2

Pharan

That's the same problem here: viewtopic.php?f=9&t=3999

I think only the second error is relevant to Spine.
You seem to have managed to capture a a better log/stacktrace than the previous topic. Thanks for that.
It's still a bit cryptic though, and there's currently no clear way to fix it. There aren't actually any helpful line numbers to point out what part is causing the error.

You should know that Unity's IL2CPP is brand new and there are still bugs in it.
User avatar
Pharan
  • Posts: 5366

lasneo

I solved the problem. Animation spine occurs when the number was less than five . Code typically solved by reducing the resolution did not count animated spine .
lasneo
  • Posts: 2

Pharan

What?
User avatar
Pharan
  • Posts: 5366

Rosss

Yes, what please ?
Rosss
  • Posts: 7

Mitch

5 is a prime and is related to 7. which is why the constant π is so important.
User avatar
Mitch

Mitch
  • Posts: 978

brungarc

> It's still a bit cryptic though, and there's currently no clear way to fix it. There aren't actually any helpful line numbers to point out what part is causing the error.

You can get line numbers with Sentry: https://docs.sentry.io/platforms/unity/configuration/il2cpp/

Works on iOS, Android, Windows, macOS and Linux players on 2020.3 and newer.
brungarc
  • Posts: 2

Mario

Had a quick look at sentry-unity, looks interesting! From what I could gather, you reversed the internal API for stack traces? How stable is that API and its data layouts?
User avatar
Mario

Mario
  • Posts: 3149

brungarc

Unity is relying on those too, so we're hoping they are stable. That said, we test our SDK against every new version of Unity as they get released, through some automation that bumps the Unity version automatically and runs CI. So if things break we'll find out quickly.
brungarc
  • Posts: 2


Return to Bugs