Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SkeletonAnimation.AnimationName crashes Unity3d #582

Closed
Neuyazvimyi opened this issue May 24, 2016 · 4 comments
Closed

SkeletonAnimation.AnimationName crashes Unity3d #582

Neuyazvimyi opened this issue May 24, 2016 · 4 comments
Assignees

Comments

@Neuyazvimyi
Copy link

Neuyazvimyi commented May 24, 2016

Hello,
When I set wrong name of the animation by
SkeletonAnimation.AnimationName = "wrongAnimationName";
Unity3d can play without any exception and crashes (stuck).
Please fix it!

@pharan
Copy link
Contributor

pharan commented May 24, 2016

Can you post what exception was logged?

@Neuyazvimyi
Copy link
Author

That is the problem it stucks without any exceptions.

@pharan
Copy link
Contributor

pharan commented May 26, 2016

We are unable to reproduce this bug.

Here is our code:

void Start () {
     GetComponent<SkeletonAnimation>().AnimationName = "WrongAnimationName";
}

And it just logs this exception:

ArgumentException: Animation not found: WrongAnimationName
Spine.AnimationState.SetAnimation (Int32 trackIndex, System.String animationName, Boolean loop) (at Assets/spine-csharp/AnimationState.cs:192)
Spine.Unity.SkeletonAnimation.set_AnimationName (System.String value) (at Assets/spine-unity/SkeletonAnimation.cs:101)

Which is intended behavior.

But it does not freeze or crash.

@pharan pharan self-assigned this May 29, 2016
@pharan pharan added ready and removed in progress labels Jun 5, 2016
@pharan pharan closed this as completed Jun 17, 2016
@pharan pharan removed the ready label Jun 17, 2016
@daohuuthao
Copy link

Hi, i've got same issue.
This is my code :
void OnEnable ()
{
if (box)
{
box.startingAnimation = "run1";
box.Initialize (true);
}
}

And when i run on some device ( note8, S7) or blue stack, i got a log :

E/CRASH ( 3981): #3 pc 00e810ec <unknown/absolute>
E/CRASH ( 3981): #4 il 00000004 at (wrapper managed-to-native) UnityEngine.Mesh.Internal_Create (UnityEngine.Mesh) <0x00004>
E/CRASH ( 3981): #5 il 00000004 at (wrapper managed-to-native) UnityEngine.Mesh.Internal_Create (UnityEngine.Mesh) <0x00004>
E/CRASH ( 3981): #6 il 00000010 at UnityEngine.Mesh..ctor () <0x00010>
E/CRASH ( 3981): #7 il 00000021 at Spine.Unity.SpineMesh.NewSkeletonMesh () <0x00021>
E/CRASH ( 3981): #8 il 0000000a at Spine.Unity.MeshRendererBuffers/SmartMesh..ctor () <0x0000a>
E/CRASH ( 3981): #9 il 00000040 at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0x00040>
E/CRASH ( 3981): #10 il 00000004 at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke (object,object[],System.Exception&) <0x00004>
E/CRASH ( 3981): #11 il 00000004 at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke (object,object[],System.Exception&) <0x00004>
E/CRASH ( 3981): #12 il 0000018b at System.Reflection.MonoCMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x0018b>
E/CRASH ( 3981): #13 il 00000027 at System.Reflection.MonoCMethod.Invoke (System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x00027>
E/CRASH ( 3981): #14 il 00000042 at System.Reflection.ConstructorInfo.Invoke (object[]) <0x00042>
E/CRASH ( 3981): #15 il 00000184 at System.Activator.CreateInstance (System.Type,bool) <0x00184>
E/CRASH ( 3981): #16 il 00000012 at System.Activator.CreateInstance (System.Type) <0x00012>
E/CRASH ( 3981): #17 il 00000020 at System.Activator.CreateInstance () <0x00020>
E/CRASH ( 3981): #18 il 00000020 at Spine.Unity.DoubleBuffered`1..ctor () <0x00020>
E/CRASH ( 3981): #19 il 00000145 at Spine.Unity.SkeletonGraphic.Initialize (bool) <0x00145>
E/CRASH ( 3981): #20 il 0000002b at Spine.Unity.SkeletonGraphic.Awake () <0x0002b>
E/CRASH ( 3981): #21 il 00000040 at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0x00040>
E/CRASH ( 3981): #22 il 00000004 at (wrapper managed-to-native) UnityEngine.GameObject.SetActive (bool) <0x00004>
E/CRASH ( 3981): #23 il 00000004 at (wrapper managed-to-native) UnityEngine.GameObject.SetActive (bool) <0x00004>

This bug make game freeze or crash.
Please give me advice. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants