Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS: OSError: [Errno 24] Too many open files #2313

Open
papr opened this issue Feb 16, 2023 · 0 comments
Open

macOS: OSError: [Errno 24] Too many open files #2313

papr opened this issue Feb 16, 2023 · 0 comments

Comments

@papr
Copy link
Contributor

papr commented Feb 16, 2023

Pupil Core software uses a varying number of file handles, depending on

  • the enabled plugins
  • the number of ZRE clients (auto-discovery protocol used for pyndsi, Pupil Groups, and Time Sync)

macOS has a soft-limit regarding the maximum number of open file handles (required for inter-process communication and network sockets, too). This value can be unexpectedly low, e.g. 256. Pupil Capture crashes if it hits this limit.

One can see the current limit by running ulimit -n or launchctl limit maxfiles in the terminal.

This article proposes increasing the soft-limit using this command:

sudo launchctl limit maxfiles 10000 2147483647

Do not increase the second number.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant