omnisharp-emacs icon indicating copy to clipboard operation
omnisharp-emacs copied to clipboard

Creating process pipe: too many open files

Open frydenberg opened this issue 10 years ago • 8 comments

I am using omnisharp emacs together with a unity3d project. After a while i sometimes get the following error each time company autocomplete is triggered.

Company: Back-end company-omnisharp error "Creating process pipe: too many open files" with args (candidates )

frydenberg avatar Dec 01 '14 15:12 frydenberg

sounds like you might need to increase your ulimit. On OS X? try ulimit -n 10200

nosami avatar Dec 01 '14 19:12 nosami

Hey that sounds familiar. I got that same error on windows sometimes.

Can you try it out? Perhaps something similar would work on windows too.

mikavilpas avatar Dec 01 '14 21:12 mikavilpas

I am on windows 7, and have no idea how to increase ulimit xD

frydenberg avatar Dec 01 '14 22:12 frydenberg

I did a quick google search and found, http://stackoverflow.com/questions/729162/windows-equivalent-of-ulimit-n that's specific per process (which maybe this is running into).

There's a page http://www-01.ibm.com/support/docview.wss?uid=swg21392080 that describes a more global change.

Can you try either/both of these and let us know if it solves your issue?

TheDarkTrumpet avatar Dec 19 '14 18:12 TheDarkTrumpet

I feel calling curl from emacs is a bit too complicated. I'll try to rewrite it so emacs doesn't use curl at all, but sends http calls from emacs itself - but no ETA yet :)

mikavilpas avatar Dec 19 '14 19:12 mikavilpas

Do you think that'd solve the issue? An async call from within emacs would increase its open file within the process, while a curl (I think) would open another process alltogether.

I tried finding the source code this person is dealing with...I'm very curious if they are hitting the process-limit or the system-limit.

TheDarkTrumpet avatar Dec 19 '14 19:12 TheDarkTrumpet

I'm not sure it would, but I think it's worth a try. We'll see if it helps.

mikavilpas avatar Dec 19 '14 19:12 mikavilpas

Hey Guys.

I have been ill, so i havent responded in a while. I will try the ibm article suggested by @TheDarkTrumpet .

It only happens once in a while though, so kinda hard to test :D

frydenberg avatar Jan 05 '15 09:01 frydenberg