https://bugs.winehq.org/show_bug.cgi?id=46675
--- Comment #20 from Zebediah Figura z.figura12@gmail.com --- (In reply to Anthony Jagers from comment #19)
It seems that the uplay client is leaking file descriptors. It has been shutting down for no apparent reason, while downloading a 29 gig game. Just closing. I ran the client at the terminal and intercepted the same line reported by tjb in his first post.
err:winediag:FILE_CreateFile Too many open files, ulimit -n probably needs to be increased
I'm looking for a more permanent way to increase 'ulimit -Hn' rather than the proposal given in comment #16. A kernel boot parameter perhaps? /proc/sys/fs/file-max gives 1630210 since I have 16 gigs of memory.
The usual way to do it is to edit /etc/security/limits.conf, though I think some versions of systemd hijack this and need to be configured elsewhere. I have a brief summary of how to do it here https://github.com/zfigura/wine/blob/esync/README.esync for other reasons, but I'd recommend looking up instructions for yoru distribution.