-
-
Notifications
You must be signed in to change notification settings - Fork 25.7k
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
fork failed: resource temporarily unavailable #1509
Comments
+1 . i got this problem too. |
+1 I get this problem occasionally as well. |
I tried that fix but received a bunch of nasty zsh errors. I don't know what is doing it, but that if statement is running a bajillion times and creating a bajillion processess. |
Hi @akrueger, paste you zshrc file and double check you have ohmyzsh updated. |
oh-my-zsh is updated. I have included one extra theme in the themes folder. .zshrc
|
As a temporary solution, I've just commented out:
About 500 processes get launched on login (terminal tab opening) if those lines are active. |
Oh right, I thought that line was already fixed. Change |
When I do that, I get errors. A ton of this:
and this:
|
The first line is actually a comment so leave it commented. That's for the second error. |
Yea, first line wasn't active. Error still persists when it looks like this:
zsh is indeed the default shell. |
Ok I think I'm onto something. Write |
Runs twice with the opening if statement commented out:
With the if statement active, produces many of these:
|
I'm sorry, I have no idea what is happening. We need to take a step back and start ruling out hypotheses. Start with a clean zshrc; you can copy the one inside the template folder. If that doesn't help, use a fresh copy of oh-my-zsh, and so on. |
I can't say definitively, but I think this may be a problem with oh-my-zsh. I have uninstalled it and zsh, added back zsh through homebrew (and
On Wed, Mar 5, 2014 at 12:34 PM, Marc Cornellà notifications@github.comwrote:
|
I agree, the issue must be with oh-my-zsh. If executing the line /usr/bin/env ZSH=$ZSH DISABLE_UPDATE_PROMPT=$DISABLE_UPDATE_PROMPT zsh -f $ZSH/tools/check_for_upgrade.sh spits these errors then that's the problem. So let's split that statement in parts, see what we're working with:
That's pretty much what I'd do if I encountered this issue. I suspect the problem will be in the script, or in a combination of the installed zsh and the script. |
With the if statement commented out:
I am unsure why my SHELL is listed as
zsh--both for I am not able to execute |
Both env and zsh seem to be fine. The fact that your shell is /usr/bin/env ZSH=$ZSH DISABLE_UPDATE_PROMPT=$DISABLE_UPDATE_PROMPT zsh -xv -f $ZSH/tools/check_for_upgrade.sh Then open a terminal and copy the output. |
Terminal output too long. What's the best way for me to to get it to you? |
You can access it by clicking the "Gist" button at the top of this very page. Otherwise, use pastebin or some other similar tool. Or just drop him an email at marc(dot)cornella(at)live(dot)com |
There it is:
The script sources the file Haven't looked at the rest though, may be something else there. |
Oh geez. facepalm I never look in the Thanks for the help! Looks like oh-my-zsh wasn't the culprit--which is good. |
I wonder if the other people had that line in their |
This happens constantly when running an ios simulator.. |
Just ran into this problem when the Android emulator System UI crashed. Saw @chrillewoodz comment above about the iOS simulator and decided to kill the Android emulator. Sure enough, as soon as I killed the emulator, restarted the terminal all was fine. Very odd. Leaving a comment here for future folks who run across this issue. |
Closing both my iOS simulator and Android emulator solved this for me too. +1! |
Anyone figured out why is this happening? I get this with VSCode, doing python development (regular project), with flake linting. And it always happens that python creates more than 500 threads (parent is VSCode), and I get this message across my terminals. |
Got this today too for the first time ever @elahmo, shortly after updating VSCode. Did you update as well? |
@LarryWachira I got updated few days ago I think, I remember seeing that changelog but dont know which day was it. I am on 1.30.0 (1.30.0). |
Same here @elahmo, I am on 1.30.0 and the error started showing up after I updated. Should probably look at all of the stuff that was changed, might be something in the settings we could turn off. |
A |
The same problem, reboot will solve. |
Ya try having to do that at least once a day with a hard reboot because of this issue. |
Try looking for long chained processes in |
I just found ~1000 instances of cron running on my machine, after having to restart it this morning due to this error. Reasonably sure that's related to the ongoing instability. |
any other alternative ? instead of reboot machine / server ? |
Thank you very much. Just made this change here and it seems to have solved my problem as well. Cheers, |
I'm on OS X 10.8.2
after upgrading to latest oh-my-zsh I started to have these errors:
it turns out the problem is in on-my.zsh.sh
I have changed to use sh instead of zsh and everything started to work again:
The text was updated successfully, but these errors were encountered: