Indefinite Beachball ~5-6 times a week - Possibly Git/Other?
As a precursor, it's possible this might be a Git issue or something else running on my system, but I thought this might be a good place to start in figuring out what's happening. Details below.
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version:
- OS version:
- 10.12.2 (Sierra)
- Attach ~/Library/Preferences/com.googlecode.iterm2.plist here (drag-drop from finder into this window)
- Attach a debug log, if possible. Instructions at https://iterm2.com/debuglog.
- Not reliably reproduceable - some days it never happens. Other days it happens 2-3 times. Let me know if you think a debug log might still be useful.
- Are you reporting a performance issue or a hang? Please attach a sample. Instructions at https://gitlab.com/gnachman/iterm2/wikis/HowToSample
- Not possible when the problem occurs - when it occurs, the activity monitor goes blank, iterm doesn't respond (beachball), spindump hangs, etc. Even finder is very slow - it beachballs for ~1 sec every few seconds when interacting with it. Now sure how useful it is, but here is a sample during seemingly normal/working operation just in case it's helpful (started sampling and made a commit during the 3 second sampling window): iterm2_sampling_git_commit.txt
- Are you reporting a crash? Please attach the crash log. Instructions at https://gitlab.com/gnachman/iterm2/wikis/crash-logs
- Not a crash, but an indefinite hang.
Detailed steps to reproduce the problem: Not reliably reproducible.
On some days, this isn't an issue at all. On other days, it happens 3 or 4 times. On average, it probably happens ~5-6 times a week. Sometimes (rarely) when issuing a git command, iterm2 will beachball indefinitely until a hard power reset. I.e. can't kill iterm2 via activity monitor (because it shows no processes), can't kill it via iterm2 because... well, iterm2 is locked up. The system won't shutdown when click apple > Shut Down either. The only way is to hold the power button until a forceful power off occurs (sleep/closing laptop lid doesn't fix the issue either). Also, the default terminal fails to launch when iterm2 is in this state, so I can't use that either.
I'm not sure why the issue occurs when using git specifically, but it only seems to happen when committing, changing branches, or pulling updates (maybe related to writes?).
Some other maybe relevant info:
- While in this state, I tried to open up xcode to install additional components for debugging (default prompt when opening xcode - I normally never explicitly open xcode). After clicking 'install', the loading bar hung at ~90+% and never completed. Mentioned above, but trying to run a spindump hangs indefinitely while in this state.
What should have happened: No hangs/beachballs.
I plan to look into this some more and update this as I find out more - I did happen to notice an extremely high number of writes around this time and some other errors related to too many files being open, but not specific to git/iterm2. More info to come.