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 open files error #2

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 0 comments
Open

Too many open files error #2

GoogleCodeExporter opened this issue Mar 14, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

When using semafor 2.1 on a file with a large number of sentences (more than 
50000), at some point it will crash because of a (catched) "Too many open 
files" error, that will then lead to a NullPointerException when the file 
descriptor will be used.

Traceback:
Processing batch of size:50 starting from: 49600
candidate_file_not_in_use (Too many open files)
Loading data....
Reading alphabet...
/path/to/semafor/semafor-semantic-parser/release/temp/64173.input.events.bin 
(Too many open files)
.0
Exception in thread "main" java.lang.NullPointerException
    at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
    at java.io.BufferedOutputStream.write(BufferedOutputStream.java:126)
    at java.io.FilterOutputStream.write(FilterOutputStream.java:97)
    at edu.cmu.cs.lti.ark.fn.utils.BitOps.writeInt(BitOps.java:74)
    at edu.cmu.cs.lti.ark.fn.parsing.CreateAlphabet.run(CreateAlphabet.java:102)
    at edu.cmu.cs.lti.ark.fn.parsing.ParserDriver.runParser(ParserDriver.java:345)
    at edu.cmu.cs.lti.ark.fn.parsing.ParserDriver.main(ParserDriver.java:117)

I checked in edu.cmu.cs.lti.ark.fn.parsing.CreateAlphabet.run, the stream is 
correctly closed, so I guess there is a missing call to close() somewhere else.

Original issue reported on code.google.com by theo.tro...@gmail.com on 5 Apr 2013 at 8:45

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

No branches or pull requests

1 participant