Search Issue Tracker

In Progress

Under Consideration for 2021.3.X, 2022.3.X

Fix In Review for 6000.0.23f1

Votes

0

Found in

2021.3.44f1

2022.3.48f1

6000.0.21f1

Issue ID

UUM-82561

Regression

No

Crash on mecanim::SetValueWeight when switching the AnimationMixerPlayable connection with Animator's UpdateMode set to "Animate Physics"

--

-

Steps to reproduce:
1. Open the “users attached project”
2. Open the “SampleScene”
3. Enter Play Mode
4. Observe the crash

Reproducible with versions: 2021.3.44f1, 2022.3.48f1, 6000.0.21f1

Reproducible on: macOS 14.6.1 (Intel)
Not reproducible on: no other environment tested

Notes:
- Also reproducible in Standalone Player

Workaround:
- Creating PlayableGraph via AnimationPlayableUtilities

First few lines of StackTrace:

{noformat}#0 0x000001070f438f in mecanim::SetValueWeight(mecanim::ValueArrayWeight*, float)
#1 0x000001070b4073 in AnimationMixerPlayable::MixerProcess(AnimationPlayableEvaluationConstant*, AnimationPlayableEvaluationInput*, AnimationPlayableEvaluationOutput*, void (AnimationPlayable::*)(AnimationPlayableEvaluationConstant*, AnimationPlayableEvaluationInput*, AnimationPlayableEvaluationOutput*), void (AnimationMixerPlayable::*)(AnimationPlayableEvaluationConstant*, AnimationPlayableEvaluationInput*, AnimationPlayableEvaluationOutput*), void (AnimationMixerPlayable::*)(AnimationPlayableEvaluationConstant*, AnimationPlayableEvaluationInput*, AnimationPlayableEvaluationOutput*), void (AnimationMixerPlayable::*)(AnimationPlayableEvaluationOutput*, AnimationPlayableEvaluationConstant*, AnimationPlayableEvaluationInput*, AnimationPlayableEvaluationOutput*, float), void (AnimationMixerPlayable::*)(AnimationPlayableEvaluationConstant*, AnimationPlayableEvaluationInput*, AnimationPlayableEvaluationOutput*, float))
#2 0x000001070b4248 in AnimationMixerPlayable::ProcessRootMotion(AnimationPlayableEvaluationConstant*, AnimationPlayableEvaluationInput*, AnimationPlayableEvaluationOutput*)
#3 0x000001070b4248 in AnimationMixerPlayable::ProcessRootMotion(AnimationPlayableEvaluationConstant*, AnimationPlayableEvaluationInput*, AnimationPlayableEvaluationOutput*)
#4 0x00000107033c14 in (anonymous namespace)::ProcessPlayableGraph(Animator::AnimatorJob&, AnimationPlayableEvaluationConstant&, AnimationPlayableEvaluationInput&, AnimationPlayableEvaluationOutput&, void (*)(AnimationPlayableEvaluationConstant&, AnimationPlayable&), void (*)(AnimationPlayableEvaluationConstant&, AnimationPlayableEvaluationInput&, AnimationPlayableEvaluationOutput&), void (*)(AnimationPlayableEvaluationOutput&, AnimationPlayableEvaluationConstant&, AnimationPlayableEvaluationInput&, AnimationPlayableEvaluationOutput&, float), void (*)(AnimationPlayableEvaluationConstant&, AnimationPlayableEvaluationInput&, AnimationPlayableEvaluationOutput&), void (AnimationPlayable::*)(AnimationPlayableEvaluationConstant*, AnimationPlayableEvaluationInput*, AnimationPlayableEvaluationOutput*)){noformat}

  1. Resolution Note (fix version 6000.0.23f1):

    Playable graphs bound to Animators in fixed update mode won't crash anymore, but instead a warning will be printed indicating it's a bad practice and suggesting manually updating the playable graph instead to reach the desired outcome.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.