go-python icon indicating copy to clipboard operation
go-python copied to clipboard

Too many open files

Open anmolbabu opened this issue 9 years ago • 4 comments

Hi,

I faced the issue of too many open files while using go-python, the stack trace is as in:

http://paste.fedoraproject.org/368271/63639845/

Please provide your valuable suggestions.

Thanks, Anmol

anmolbabu avatar May 19 '16 06:05 anmolbabu

I see you've vendored sbinet/go-python. could you tell me at which revision you've vendored it?

that said, it won't tell me much as it seems this is the function being called that does the file opening (i.e. a user function) so presumably that should be matched by another user-function doing the closing.

the only place where sbinet/go-python does an explicit open is in PyRun_SimpleFile.

sbinet avatar May 19 '16 07:05 sbinet

can you test with 4941be0 ?

sbinet avatar May 19 '16 07:05 sbinet

I tried the fix above, but I still see the same issue as in http://paste.fedoraproject.org/368726/63709890/ And a wrapper around go-python that we use is as in : http://paste.fedoraproject.org/368727/63710081/

anmolbabu avatar May 20 '16 04:05 anmolbabu

Ok. Then please provide a minimal, reproducible test case.

sbinet avatar May 20 '16 05:05 sbinet