Skip to content

Error reading certain pak (incomplete or truncated stream) #45

@BlueAmulet

Description

@BlueAmulet

Game: Conan Exiles (Mod)
UE4 Version: 4.15

File: https://steamcommunity.com/sharedfiles/filedetails/?id=1765361591

Description:
When I try to read modinfo.json from SandstormFix.pak, I receive the following error message:

Traceback (most recent call last):
  File "modconflict.py", line 46, in <module>
    record.sendfile(fp, stream)
  File "u4pak.py", line 463, in sendfile
    block_decompress = zlib.decompress(block_content)
zlib.error: Error -5 while decompressing data: incomplete or truncated stream

Minor debugging into the issue shows that it attempts to seek past the end of the file, reads an empty byte array, and then crashes.

I've noticed that umodel also has issues opening this pak file, running into memory allocation errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions