• Bugs
  • Unity il2cpp compile and error. 2d toolkit plugin

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>cIterator1E.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>cIterator1E.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)

Related Discussions
...
  • Изменено

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.

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 .

What?

13 дней спустя

Yes, what please ?

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

7 лет спустя

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.

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?

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.