Animation Compression Failed

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!

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);
}
}
}`

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