# Animation Compression Failed 

**URL:** <https://forums.unrealengine.com/t/animation-compression-failed/2610557>\
**Category:** Pipeline & Plugins\
**Tags:** unreal-engine, Epic-Pro-Support, question\
**Created:** [June 19, 2025, 12:09pm UTC](https://forums.unrealengine.com/t/animation-compression-failed/2610557 "2025-06-19T12:09:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [June 19, 2025, 12:09pm UTC](https://forums.unrealengine.com/t/animation-compression-failed/2610557/1 "2025-06-19T12:09:43Z")

</div>

Hello I’m facing some problems trying to compress an AnimSequence it triggers some warnings like:

`[2025.06.19-12.01.00:033][278]LogAnimation: Warning: Animation Compression request for TwoOfaKindCharacters_AnimSequence failed, BoneCompressionSettings == nullptr || CurveCompressionSettings == nullptr.`But as you can see in the code I’ve just placed the default parameters in both settings.

It imports the animation but seems to be useless until I press compress in the Animation Editor.

The code works flawlessly in any version prior to 5.6.0.

Any help is welcome!

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [June 19, 2025, 12:09pm UTC](https://forums.unrealengine.com/t/animation-compression-failed/2610557/2 "2025-06-19T12:09:47Z")

</div>

**Steps to Reproduce**  
`for (unsigned i = 0; i \< CompressBatchSize; ++i) {  
if (AnimSequencesToCompress.IsEmpty()) { break; }  
AnimSequencesToCompress.Dequeue(AnimSequence);  
Num–;  
if (IsAlive(AnimSequence)) {  
UE\_CLOG(IsProfileMode, LogTemp, Display, TEXT(“Begin compression … %d/%d”), i, CompressBatchSize);

# if ENGINE\_VERSION\_AT\_LEAST(5,6)

if (AnimSequence-\>IsCompressedDataOutOfDate()) {  
AnimSequence-\>BoneCompressionSettings = FAnimationUtils::GetDefaultAnimationBoneCompressionSettings();  
AnimSequence-\>CurveCompressionSettings = FAnimationUtils::GetDefaultAnimationCurveCompressionSettings();

# else

if (AnimSequence-\>DoesNeedRecompress()) {

# endif

AnimSequenceBeginRecompression(AnimSequence);  
AnimSequencesCompressing.Add(AnimSequence);  
}  
}  
}`

---

<div class="post-metadata">

**Author:** ![DDeVoe](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ddevoe/32/1000886_2.png) [@DDeVoe](https://forums.unrealengine.com/u/DDeVoe)\
**Post date:** [June 19, 2025, 11:01pm UTC](https://forums.unrealengine.com/t/animation-compression-failed/2610557/3 "2025-06-19T23:01:45Z")

</div>

Hey there,

This issue can occur if you attempt to change the settings and recompress animations while compression is happening. We are missing some context from the code you provided, but _ **IsCompressedDataOutOfDate** _ might return true while compression is ongoing from another source.

To help with this, as an example, In the ACL Stats Dump Commandlet, after loading we we wait for compression to finish with _UEClip-\>WaitOnExistingCompression(),_ which is triggered from in post load of the anim sequence. Then later, to trigger compression we call _UEClip-\>CacheDerivedDataForCurrentPlatform();_ which will check if the current data matches and recompress if it needs, waiting on the result. You could follow something similar to make sure you not compressing at the time.

Dustin
