Skip to content

Conversation

@AGulev
Copy link
Contributor

@AGulev AGulev commented Aug 6, 2025

The 1 GB limitation for compressed files was doubled to make it possible to work with 16k x 16k atlases.

Fix #10404

@AGulev AGulev requested a review from britzl August 6, 2025 16:31
dmLZ4::Result r = dmLZ4::DecompressBuffer(source_data, source_data_size, buffer, size, &decompressed_size);
if (dmLZ4::RESULT_OK != r)
{
dmLogError("LZ4 decompression failed: result=%d, expected size=%u, actual size=%d", r, size, decompressed_size);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

show a proper error

britzl
britzl previously approved these changes Aug 7, 2025
Result DecompressBuffer(const void* buffer, uint32_t buffer_size, void* decompressed_buffer, uint32_t max_output, int* decompressed_size)
{
Result r;
// When we set an output size larger than 1G (or closer to 2G) lz4 fails for some reason...
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not true anymore, but I left limit with another comment

@AGulev AGulev merged commit d269367 into dev Aug 13, 2025
24 checks passed
@AGulev AGulev deleted the issue-10404 branch August 13, 2025 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

100% crash for 16K*16K atlas

3 participants