UDN case : [Link Removed]
We are seeing a crash in UAnimInstance::DisplayDebug() at the following line:
FString MontageEntry = FString::Printf(TEXT("%i) %s CurrSec: %s NextSec: %s W:%.2f DW:%.2f"), MontageIndex, *MontageInstance->Montage->GetName(), *MontageInstance->GetCurrentSection().ToString(), *MontageInstance->GetNextSection().ToString(), MontageInstance->GetWeight(), MontageInstance->GetDesiredWeight());
The crash occurs because MontageInstance->Montage is nullptr.
This appears to happen when a particular character finishes playing an animation montage. The sequence of events appears to be, in Frame N:
I believe this issue is related to physics animation blending due to the involvement of FParallelBlendPhysicsCompletionTask in the above call stack, plus the fact that if I remove the component that enables that feature on the character then the crash no longer occurs. Unfortunately I have not been able to reproduce this in a clean project.
I have not been able to reproduce, I have fixed the crash by looking at the crash itself and looking at the code
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-169526 in the post.
| 0 |
| Component | UE - Anim - Runtime |
|---|---|
| Affects Versions | 5.0 |
| Target Fix | 5.2 |
| Created | Nov 8, 2022 |
|---|---|
| Resolved | Jan 6, 2023 |
| Updated | Feb 4, 2023 |