On 32 bit systems, the game does not start if the mod is installed more than 2 gigabytes
$ snap install --devmode --beta 0ad 0ad (beta) 0.0.25b-alpha from Wildfire Games (play0ad✓) installed $ snap run 0ad ... Function call failed: return value was -1 (Function failed (no details available)) Location: file_system.cpp:123 (GetDirectoryEntries)
The stat() function is passed a pointer with an off_t field that overflows and the call returns -1
$ ls -l /var/lib/snapd/snap/0ad/250/binaries/data/mods/public/public.zip -rw-r--r-- 1 root root 3251732611 Aug 25 17:32 /var/lib/snapd/snap/0ad/250/binaries/data/mods/public/public.zip
#include <iostream> #include <limits> int main(void) { std::cout << "Size " << std::numeric_limits<off_t>::max() << std::endl; return 0; }
return: Size 2147483647