-
Notifications
You must be signed in to change notification settings - Fork 582
Htop on macOS High Sierra #682
Comments
I am facing a similar issue. After several seconds running htop in iTerm2 (and Terminal.app too). The terminal halts and I have to force close it. After that, iTerm2 won't open again and macOS refuses to reboot. I have to force reboot macOS by holding the power button. |
I'm experiencing the exact same behavior as @fykuan describes with the only difference that htop can run for quite a while before it crashes on my machine, I'd estimate up to half an hour or so. I just asked on apple.stackexchange.com about this and at least one person replied in the comments reporting the same problem. I installed htop (version 2.0.2) with This only started happening after the upgrade to macOS 10.13 (High Sierra). |
I experience the same problem. Like @anothernode, it happens after a few hours on my machines. |
Having the same issue. iTerm runs fine on its own until I start htop. Initially htop runs fine but if I keep it running for a while (more than a couple of minutes), I see the spinning pointer and eventually have to force quit iTerm. I cannot start both iTerm and Terminal apps without restarting the laptop. |
Good to know I'm not the only one having this issue. Using iTerm2 and htop is installed using homebrew. Hopefully this gets fixed soon. |
What the ... I am glad to say that htop for me, once compiled, always worked on Linux - I never had a situation where Linux would fail to reboot in such a situation ... :) I guess for the time being one should not use htop on High Sierra until it is fixed; wonder what changed if it worked before ... |
I'm experiencing the same issue htop: 2.0.2 MacOS: 10.13(17A365). Anyone know a fix? |
I can also confirm the same on macOS 10.13 with htop 2.0.2 running in iTerm2 build 3.0.3. After some time I get the spinning pointer. Activity Monitor goes totally blank and MBP needs to be rebooted. |
Same issue. htop 2.0.2, iTerm2 3.1.3, macOS: 10.13. |
Does anyone else think its pretty weird that a crashing / mis-behaving |
It is indeed, this looks like |
I was also running down a hunch that it had something to do with colored text rendering in both
|
Another interesting aspect of this bug is that, after |
This may happened when some processes take much cpu and memory. |
XCode and SourceKitService always does :D |
I meet the same problem several times after I upgrade my system to macOS 10.13 |
I don't see how it's htop's problem. I believe that's some kind of a bug in mac OS kernel. |
This was serious enough to cause kernel errors that prevented both iTerm and Terminal from opening, and no processes to be shown in Activity Monitor, as well as an indefinite hang on shutdown. Looking at the console indicated a large number of Hard resetting the laptop, booting into safe mode and uninstalling htop via brew has resolved the issue in my case. I’ll try to update this comment with more details when I have some time. |
I get the same thing, although my Mac can usually run for a few hours before the problem occurs; this may be due to the fact that I always run with -d50 for a 5 seconds refresh interval, which is slower than the default, so it might make sense that I can last a little longer. |
sudo htop seems to get around the problem for now. on my machine it's normally seconds before htop freezes since upgrading to high sierra, but with sudo rights, it's been going strong for several hours. |
@besmith43 Hm, that would be quite a good workaround. But others reported here that it took several hours before the crash happened, so I'm not yet convinced that it's really safe. By the way, I'm using glances at the moment. I don't like it as much as htop, but it's all right for the meantime. |
confirming in htop 2.0.2, iTerm 3.1.4 and Terminal, MacOS 10.13 |
Yes, htop seems to be broken on macOS 10.13. It's super weird that i can't restart the system normally and only restarted works by brute force after this bug occurs 😥 |
Same. |
Has anyone reported this to Apple? I've got the same symptoms described here. |
same situation here. I was wondering if it's another APFS issue. seems I'm wrong then :D |
I'd like to look into what happened (for science?) but Certificate Manager is so broken that I can't get a certificate to codesign gdb right now.... |
@monouser7dig OK. For you,
which should download and install the new bottle without the patch from #728. |
@JacobSyndeo Yes, according to others above, Apple has seemingly fixed this in 10.13.4. We are now worrying about users of previous versions of High Sierra since 10.13.4 hasn't even been released yet. |
thanks ilovezfs!
I think it's all good if that is the case 😄 let's see how htop 3 breaks It again, or not 😃 |
@ilovezfs Hmm... so I tried to test things out earlier as you requested but I couldn't get the bug to happen at all in a VM. Even without your patch, I simply could not get the bug to happen. Even with the |
@ilovezfs Thanks, I'll chime in there. |
fwiw macOS 11.13.4 (just released) with homebrew htop 2.1.0 works for me for over 1h now and even with btw. I had no data loss whatsoever with APFS yet even though the crashes with htop or anything but if you want to be better safe than sorry.. |
same, latest htop has been running smooth for over 12 hours on 10.13.4, no issues |
FYI the problematic feature is entirely disabled in 2.1.0, so those results are not surprising. I don't doubt that it's fixed in 10.13.4, but still. |
Something I haven't seen discussed here, on #728, or #772 is that the problematic function at the root of this, For reference, |
@Smattr If that function is obsolete, what is the recommended alternative? |
No, they very much are. See for example LLDB. There really is no replacement for |
It's common for apple to deprecate api with no alternative. The team in charge of the kernel seems to be too small. |
|
I thought the problem to blame is within |
@evanslify It seems to be a mixed problem... both |
@ilovezfs @hishamhm @pmalhaire Looks like #772 fixes the problem for good and resolves the issues which I reported while testing @pmalhaire's initial patch in #728. |
@ilovezfs @hishamhm Just in case my above comment isn't clear: I left |
Installs with homebrew on high sierra and works! |
@hishamhm, I compiled 2.1.0 and haven't had any issues whatsoever since running for over 48 hours in addition to
If I encounter anything I'll be sure to report back; I'm curious also about the |
@hishamhm If you want to, I think this issue could (should) be closed now. With the release of macOS 10.13.4 and htop 2.2.0, I think we're out of the woods with this nasty bug. |
+1, If we cannot reproduce this anymore and there's no new reports related to this issue, than we can close this. |
@neverpanic FYI, while this is still open, you might want to update the |
@neverpanic Thanks! Just noticed the update. |
For everyone experiencing this on remote ssh hosts: Removing this line from AcceptEnv LANG LC_* fixed it for me. |
@Paulomart, that's sort of a hackish solution. Instead of preventing those variables from being set, you should either install the correct locale on the remote host or choose a locale that your remote host already has. Additionally, this issue is for htop running locally, not on a remote host; any problems you're experiencing as a result of an incorrect locale are most likely not related to the issue described here. |
Can anyone confirm the htop available on homebrew (2.02) is broken on macOS 10.13 (crashes iTerm2 after several seconds)?
The text was updated successfully, but these errors were encountered: