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

Too many files open #7

Open
jakkn opened this issue Sep 10, 2016 · 1 comment
Open

Too many files open #7

jakkn opened this issue Sep 10, 2016 · 1 comment

Comments

@jakkn
Copy link

jakkn commented Sep 10, 2016

The command nwn-erf --create -0 -M -f module.mod gff_sources/* will throw 'too many open files' exception when building from sources that exceed user limit. Increasing the limit by running ulimit -n NUM where NUM is a number higher than the amount of gff resources is a suitable workaround for unix systems, but I have been unable to find a similar workaround for Windows.

Linux error:

/home/jakob/.gem/ruby/2.3.0/gems/nwn-lib-0.6.0/bin/nwn-erf:167:in `initialize': Too many open files @ rb_sysopen - cache/tmp/mail_hasnomb.nss (Errno::EMFILE)
    from /home/jakob/.gem/ruby/2.3.0/gems/nwn-lib-0.6.0/bin/nwn-erf:167:in `open'
    from /home/jakob/.gem/ruby/2.3.0/gems/nwn-lib-0.6.0/bin/nwn-erf:167:in `block in <top (required)>'
    from /home/jakob/.gem/ruby/2.3.0/gems/nwn-lib-0.6.0/bin/nwn-erf:163:in `each'
    from /home/jakob/.gem/ruby/2.3.0/gems/nwn-lib-0.6.0/bin/nwn-erf:163:in `<top (required)>'
    from /home/jakob/.gem/ruby/2.3.0/bin/nwn-erf:23:in `load'
    from /home/jakob/.gem/ruby/2.3.0/bin/nwn-erf:23:in `<main>'
@trjohnst
Copy link

trjohnst commented Jun 22, 2019

I believe this is due to files being opened and never closed in bin/nwn-erf around line 177. I'm looking into this now as I'm having some issues with local dev. Although I'm also on a mac and had to modify the source to be able to pass directories in via the cli so things may be functioning differently depending on what OS you're using @jakkn.

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

2 participants