iTerm2 keeps crashing with 3-5 tabs
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version:
- OS version:
- Attach com.googlecode.iterm2.plistcom.googlecode.iterm2.plist here (drag-drop from finder into this window)
- Attach a debug log, if possible. Instructions at Sample_of_iTerm2.txt
- Attach a screen capture video if it would make the reproduction steps clearer.
- Are you reporting a performance issue, excessive CPU usage, or a hang? Please attach a sample. Instructions at https://gitlab.com/gnachman/iterm2/wikis/HowToSample
- Are you reporting a crash? Please attach the crash log. Instructions at zsh_2021-04-17-012505_Bryans-MacBook-Pro.crash Not sure if this was directly related to the crash or not. Thought it would be useful as I use the zsh shell.
- Attach a heap analysis: https://gitlab.com/gnachman/iterm2/wikis/heapshot
PLEASE ATTACH YOUR PLIST FILE FOR BUG REPORTS! Seriously! I'll probably ask you for it if you don’t.
Detailed steps to reproduce the problem:
- Opened 4-5 tabs just as I had opened.
- Ran various commands on the opened tabs to try to reproduce the scenario.
- Reinstalled Big Sur 11.2 back in December 2020 and set up iTerm2 from scratch. Although this problem to the best of my knowledge did not exist when this happened. I wanted to start with a fresh profile on Mac OS and felt that imaging the laptop was the best course of action.
What happened:
I originally posted the issue as confidential (not sure why) and wanted to close it and open a new issue open to the public. First time on here reporting an issue.
I used to be able to run 4-5 tabs open at any time all the time. Some usually a different machine for each tab and what I think happens is that the CPU spikes in usage and iTerm2 doesn't recover and resume operation once the CPU usage drops. I tried to replicate this but could not. I have killed other CPU-intensive apps running at the time, such as Chrome, and tried to let it recover when it was ready. I know it is going to crash when it starts to respond slowly to input. I started working today around 10:00 AM Eastern time and logged into the servers I needed to log into, and around the 2-hour mark is when every tab would lock up on iTerm2 and I could not close out of a single session, or wait a period of time for the app to recover, the only option I have it to kill the application through the Mac Force Quit Applications menu. Once I kill the app and wait a bit to restart iTerm2, a new iTerm2 window will open with a single shell on my Mac in zsh, and then another window will open that had all of the previous sessions in it. If I do not kill this entire 2nd window with the sessions quickly, iTerm2 will lock up again and I will have to repeat this. Fortunately, I am able to click the red X on the window with the previous sessions on it and hit enter on my keyboard quickly to make this happen. I run into this about every 1 and a half to 2 hours of usage. I am not recompiling kernels all the time or building apps from source as I know that I would be the cause of this issue, but I am simply installing apps either on my Mac through homebrew, running various ssh commands, uploading content to Github, or installing apps on Debian based machines connected to ssh via iTerm2, updating the machine or trying to run small scripts to test network performance like a quick iperf test or Powershell through the Mac to administer the Active Directory server with my employer. This has not happened except in the last few months to the best of my knowledge and I think it hasn't happened since the latest iTerm2 update became available and I installed it. I am currently running Build 3.4.4. I am running a Macbook Pro (15-inch, mid-2019) with a 2.3 GHz 8-Core i9 with 16GB of RAM along with the Radeon Pro 560X with 4GB of video memory running on Big Sur 11.2 with all the updates. I have used iTerm2 for the better part of a year and have loved it since I first installed it and will continue to use it. Please help me figure out this annoying issue! The only thing I have not done is completely wipe iTerm2 from the computer and reinstall it. I also cannot recall if I installed it via homebrew or from the web. I want to say from the web, but I cannot be certain. If I do have to wipe it as part of a test to figure out what is wrong that is fine, I would like to keep all the custom settings I have in place and I am not sure how to do that yet. I will try and look for that next as it took me a while to get everything the way I like it.
Edit to the original issue: Since the original posting 6 days ago, I have made sure that GPU rendering is turned on and enabled only Maximize throughput as I have an AMD Radeon 560X with 4GB on my Macbook Pro which is more capable than the integrated GPU.
What should have happened:
Already mentioned above. More info..
Link to view debuglog.txt, the file is nearly 70Mb.
https://drive.google.com/file/d/1qZ7rSuOCRomz6wb9NY1BnWljt3F5Fyd_/view?usp=sharing