mirror of
https://github.com/lucannez64/darling-lol.git
synced 2026-10-26 19:47:42 +00:00
Under the rootless NixOS launcher darlingserver cannot raise its hard RLIMIT_NOFILE to nr_open, so it kept the soft limit it inherited. Every named memory entry holds a memfd in darlingserver, and its descriptors peak at about 1100 when the League lobby opens. With an inherited soft limit of 1024, memfd_create failed with EMFILE, mach_make_memory_entry_64 returned KERN_RESOURCE_SHORTAGE, and Chromium's CHECK in PlatformSharedMemoryRegion::Create killed the League UX and the Riot Client renderer after clicking Play. When raising the hard limit fails, raise the soft limit to the inherited hard limit instead. Log errno, size and fd limits when named-entry creation fails, and log the live memfd count every 1024 creations so a leak shows up in dserver.log. Co-Authored-By: Claude Opus 5.5 <[email protected]>