Asset bundle total uncompressed size exceeds maximum size of 4GB only when using LZ4 compression

Hello We are experiencing an error of

But only when using LZ4 compression of build. when compression in none there is no problem, it seems like unity is dividing res files better when there is no build compression. Could unity team help about it? Should we ignore that error if it happens when it only happens when using LZ4 compression? Is then building with default compression safe if there is no bugs (I removed library folder and reimported project it didn’t helped) unity 2019.4.32

Here is screenshot after build of default compression as you see there is no file bigger than 4 gb as it is divided to all our scenes.

Here is screenshot with LZ4 compression, and here is file that have 3.5GB but its not res file.
I understand limitation, but there is any official communicate from unity about it.


P.S Ugprading to 2020 isn’t fix for us. We just would like to know whats happening here and why LZ4 compression show that error and default not, as you see on uncopresed first screen there is no files bigger than 4GB (1.2GB max) We are before game demo release, as well close to game release. Ugprading unity last time took us few months to dig and fix all errors it made, so basically we don;t have time for that now. I read donsens of pages of forum info about that limitation but no info about case when bug appears and res files are not over 4GB

No one know more how exactly that errors works? Unity errors documentation don’t exist, so basically its no other way than ask on forum.

Anyone could help?

Can’t help really, sorry, but here are my 2 cents:

  • I think, this means that the LZ4 compression uses 32 bits to store the uncompressed size - which means there is an overflow if the uncompressed size exceeds 4 GBs.
  • We have a build script which automatically groups source assets into multiple bundles if the source size is too big to avoid this error.

Thanks . The problem is that when using no compression, we see that none of sharredasset exceed 4GB max is as You see on screenshots. So basically uncompressed data is not the problem. So I wonder if showing it on compressed data is bug in showing error unnecessary or it just count compressed data as uncompressed.