Search Unity

Bug Keyframing a TwoBoneIKConstraint Setting Causes Android Crash

Discussion in 'Animation Rigging' started by nocanwin, Aug 25, 2020.

  1. nocanwin

    nocanwin

    Joined:
    May 7, 2009
    Posts:
    176
    I'm modifying some animation clips by keyframing constraints. I accidentally added some keys to a TwoBoneIKConstraint Settings. Turns out it runs fine in the editor, but when it runs on Android it crashes the application. I'm running 2019.4.5f1 and Animation Rigging 0.2.7
     
  2. simonbz

    simonbz

    Unity Technologies

    Joined:
    Sep 28, 2015
    Posts:
    295
    Hi, can you log a bug report for that using the Unity bug reporter?
    I can't reproduce this issue with my local setup.

    Unity usually offers to log a bug report when the application crashes. This will also bundle the crash call stack in the bug report and provides additional information that can help us.
     
  3. nocanwin

    nocanwin

    Joined:
    May 7, 2009
    Posts:
    176
    It only crashes on Android, not the editor. I'm building for Quest.

    I'll work on creating a bug report.
     
  4. nocanwin

    nocanwin

    Joined:
    May 7, 2009
    Posts:
    176
    Logcat spams this message when burst is turned off. If burst is turned on it crashes.

    Code (CSharp):
    1.  InvalidOperationException: The PropertyStreamHandle cannot be resolved.
    2. 08-25 08:58:54.364  9086  9107 E Unity   :   at UnityEngine.Animations.NotKeyableAttribute..ctor () [0x00000] in <00000000000000000000000000000000>:0
    3. 08-25 08:58:54.364  9086  9107 E Unity   :   at UnityEngine.Animations.NotKeyableAttribute..ctor () [0x00000] in <00000000000000000000000000000000>:0
    4. 08-25 08:58:54.364  9086  9107 E Unity   :   at UnityEngine.Animations.Rigging.TwoBoneIKConstraint..ctor () [0x00000] in <00000000000000000000000000000000>:0
    5. 08-25 08:58:54.364  9086  9107 E Unity   :   at UnityEngine.Animations.ProcessAnimationJobStruct`1[T].Execute (T& data, System.IntPtr animationStreamPtr, System.IntPtr methodIndex, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex) [0x00000] in <00000000000000000000000000000000>:0
    6. 08-25 08:58:54.364  9086  9107 E Unity   :   at UnityEngine.Animations.ProcessAnimationJobStruct`1+ExecuteJobFunction[T].Invoke (T& data, System.IntPtr animationStreamPtr, System.IntPtr unusedPtr, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex) [0x00000] in <00000000000000000000000000000000>:0
    If burst is on this is what I get before it crashes

    Code (CSharp):
    1.  Unable to find internal function `UnityEngine.Animations.TransformStreamHandle::SetGlobalTRInternal_Injected`
    2. 08-25 09:16:03.118 15360 15374 E Unity   : (Filename:  Line: 400)
    3. 08-25 09:16:03.118 15360 15374 E Unity   :
    4. 08-25 09:16:03.118 15360 15374 E Unity   : Unable to find internal function `UnityEngine.Animations.TransformSceneHandle::GetLocalRotationInternal_Injected`
    5. 08-25 09:16:03.118 15360 15374 E Unity   : (Filename:  Line: 400)
    6. 08-25 09:16:03.118 15360 15374 E Unity   :
    7. 08-25 09:16:03.118 15360 15374 E Unity   : Unable to find internal function `UnityEngine.Animations.PropertyStreamHandle::GetIntInternal_Injected`
    8. 08-25 09:16:03.118 15360 15374 E Unity   : (Filename:  Line: 400)
    9. 08-25 09:16:03.118 15360 15374 E Unity   :
    10. 08-25 09:16:03.118 15360 15374 E Unity   : Unable to find internal function `UnityEngine.Animations.TransformStreamHandle::SetGlobalTRInternal_Injected`
    11. 08-25 09:16:03.118 15360 15374 E Unity   : (Filename:  Line: 400)
    12. 08-25 09:16:03.118 15360 15374 E Unity   :
    13. 08-25 09:16:03.118 15360 15374 E Unity   : Unable to find internal function `UnityEngine.Animations.PropertyStreamHandle::GetBoolInternal_Injected`
    14. 08-25 09:16:03.118 15360 15374 E Unity   : (Filename:  Line: 400)
    15. 08-25 09:16:03.118 15360 15374 E Unity   :
    16. 08-25 09:16:03.119 15360 15374 E Unity   : Unable to find internal function `UnityEngine.Animations.TransformStreamHandle::SetPositionInternal_Injected`
    17. 08-25 09:16:03.119 15360 15374 E Unity   : (Filename:  Line: 400)
    18. 08-25 09:16:03.119 15360 15374 E Unity   :
    19. 08-25 09:16:03.119 15360 15374 E Unity   : Unable to find internal function `UnityEngine.Animations.AnimationStream::GetDeltaTime_Injected`
    20. 08-25 09:16:03.119 15360 15374 E Unity   : (Filename:  Line: 400)
    21. 08-25 09:16:03.119 15360 15374 E Unity   :
    22. 08-25 09:16:03.119 15360 15374 E Unity   : Unable to find internal function `UnityEngine.Animations.TransformStreamHandle::SetGlobalTRInternal_Injected`
    23. 08-25 09:16:03.119 15360 15374 E Unity   : (Filename:  Line: 400)
    24. 08-25 09:16:03.119 15360 15374 E Unity   :
    25. 08-25 09:16:03.395 15360 15374 E Unity   : DllNotFoundException: Unable to load DLL 'SRanipal': The specified module could not be found.
    26. 08-25 09:16:03.395 15360 15374 E Unity   :   at ViveSR.anipal.Eye.SRanipal_Eye.IsViveProEye () [0x00000] in <00000000000000000000000000000000>:0
    27. 08-25 09:16:03.395 15360 15374 E Unity   :   at ViveSR.anipal.Eye.SRanipal_Eye_Framework.StartFramework () [0x00000] in <00000000000000000000000000000000>:0
    28. 08-25 09:16:03.395 15360 15374 E Unity   :
    29. 08-25 09:16:03.395 15360 15374 E Unity   : (Filename: currently not available on il2cpp Line: -1)
    30. 08-25 09:16:03.395 15360 15374 E Unity   :
    31. 08-25 09:16:04.054 15360 15382 E Unity   : System.InvalidOperationException: The PropertyStreamHandle cannot be resolved.
    32. 08-25 09:16:04.054 15360 15382 E Unity   : Thrown from job: UnityEngine.Animations.Rigging.OverrideTransformJob
    33. 08-25 09:16:04.054 15360 15382 E Unity   : This Exception was thrown from a job compiled with Burst, which has limited exception support. Turn off burst (Jobs -> Burst -> Enable Compilation) to inspect full exceptions & stacktraces. In this standalone build configuration burst will now abort the Application.
    34. 08-25 09:16:04.054 15360 15382 E Unity   : (Filename:  Line: 53)
     
  5. nocanwin

    nocanwin

    Joined:
    May 7, 2009
    Posts:
    176
    The offending keyframes are on these properties

    LeftArm: Two Bone IK Constraint.Data.Hint Weight = 0
    LeftArm: Two Bone IK Constraint.Data.Target Position Weight = 0
    RightArm: Two Bone IK Constraint.Data.Hint Weight = 0
    RightArm: Two Bone IK Constraint.Data.Target Position Weight = 0
     
  6. nocanwin

    nocanwin

    Joined:
    May 7, 2009
    Posts:
    176
    Case 1273055

    I couldn't upload the project, it's way too big, but I include all the files that should be necessary to reproduce it. Let me know if you need anything or have trouble reproducing it. Thanks!
     
    simonbz likes this.