Skip to content

v1.15.6 - Fix 'Too many open files' error

Choose a tag to compare

@Tefx Tefx released this 03 Jan 15:05
· 1433 commits to Main since this release

Fixed

  • invar map: File Handle Management (DX-82) - Fixed "Too many open files" error
    • Convert discover_python_files() generator to list to release directory handles immediately
    • Explicitly delete file list after processing to free memory
    • Prevents exhausting system file descriptor limit on large projects
    • Solves OSError on macOS and other systems with low default limits (typically 256 file descriptors)
    • Root cause: rglob() generator keeps directory handles open during iteration
    • Recommendation: Users can also increase system limits with ulimit -n 4096