`save_gta_cache` crashes client - nothing written to .dat file other than header & padding

  1. Client (production/canary) and FXServer version
    Both production (with +moo 31337) and beta. FXServer is 25770. I’ve tried gamebuilds 3751 and 3095.

  2. What you expected to happen
    For my client to produce a usable .dat cache file in %appdata%\CitizenFX of the collisions in my resource.

  3. What actually happens
    Client seems to write out the header and a bit of padding, then crashes with “london-ink-glucose”.

  4. Category of bug (eg. client, server, weapons, peds, native)
    Client / Resource Development

  5. Reproducible steps, preferably with example script(s)
    cache-save-test.zip (174.8 KB)
    Here’s an example resource I’ve tested with to try to make a minimal reproduction. I took a random vanilla ybn and tossed it inside the stream folder. I launched a bare basic server with nothing but the cfx-server-data resources, a custom spawnpoint resource and the example script. Upon typing save_gta_cache cache-save-test my client crashes and when I check the cache file with a hex-editor it seems to have no useful information in it other than a header and some padding zeros.