PCK file limit? Bug?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By damncoder

When is PCK file becomes more than 2.1 Gb i get the error:

Corrupted header in binary project.binary (not ECFG)
Error: Could not load gme data at path ‘.’. Is the .pck file missing?

With smaller file <2 Gb all runs ok.

Any ideas what is going on?

I just had a look in the beginning of core/pck_packer.cpp. This does actually looks, like using more than 2GB should be possible with that code.

The count of files in the “archive” is limited to a 32-bit value but that shouldn’t be the problem as the offset and size of each file inside the pck is written as 64-bit value.

Just to be on the safe side:
Are you using the 64-bit version of Godot? (may not be required, but is worth a try)

wombatstampede | 2019-03-19 11:15

I am using 64-bit version.

Honestly i have no idea how is build-in packer working :frowning:
Looks like the problem is “project.binary” file. Maybe it write incorrect if size of the PCK becomes more than 2GB…

Anyway the problem is here.

Possible solution is divide resources into several <2 Gb files and load them directly from the code.

damncoder | 2019-03-19 15:04