Assertion failed in TextureCompressorModule.cpp during cook in Unreal Engine

The editor crashed while compressing a texture for the target platform. One texture has source data the compressor cannot handle, and the whole cook stops.

  • Blocking: the package fails
  • Cook stage: ExitCode=25
  • From user reports, not yet reproduced in our lab

Paste your log: find the cause in seconds Runs in your browser, nothing is uploaded.

Common causes

  • Corrupted or unusual source image (size, format, mip settings).
  • A compression setting that does not suit the texture (for example a normal map setting on a non-square texture).

How to fix it

  1. Look at the lines just before the assertion for the last texture being processed (detected: none): it is the most likely culprit.
  2. Open that texture, check its size and compression settings, then reimport it from the source file.
  3. If you cannot identify it, cook with -verbose or bisect by moving folders out of the cook.
  4. Cook again.

Questions

Can it be caught before cooking?

Not reliably. Partial: textures with non power-of-two sizes or unusual formats can be listed.

Reports and sources

Decode your log

Paste your packaging log, or drop Log.txt with Cook-*.txt / UBA-*.txt. The analysis runs in your browser: the log is never uploaded.

Get notified when the in-editor plugin launches

The same decoder inside the Unreal Editor, with checks that catch these errors before you cook.