8000 Htop on macOS High Sierra · Issue #682 · hishamhm/htop · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Htop on macOS High Sierra #682

Closed
Closed

Description

@MenkeTechnologies

Can anyone confirm the htop available on homebrew (2.02) is broken on macOS 10.13 (crashes iTerm2 after several seconds)?

Activity

  1. fykuan commented on Sep 26, 2017

    @fykuan

    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.

  2. moritzreiter commented on Sep 28, 2017

    @moritzreiter

    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 brew install htop.

    This only started happening after the upgrade to macOS 10.13 (High Sierra).

  3. Nax commented on Sep 28, 2017

    @Nax

    I experience the same problem. Like @anothernode, it happens after a few hours on my machines.
    Htop version 2.0.2, installed from MacPorts.

  4. amertkara commented on Sep 28, 2017

    @amertkara

    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.

  5. cusster commented on Sep 29, 2017

    @cusster

    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.

  6. spprichard commented on Oct 10, 2017

    @spprichard

    I'm experiencing the same issue htop: 2.0.2 MacOS: 10.13(17A365). Anyone know a fix?

  7. roopej commented on Oct 11, 2017

    @roopej

    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.

  8. nayzak commented on Oct 11, 2017

    @nayzak

    Same issue. htop 2.0.2, iTerm2 3.1.3, macOS: 10.13.
    After some time of running htop (could be less than a minute or several hours) iTerm hangs. Other apps are working but I can't launch new ones. Also running apps can't do IO operations, i.e. Safari opens new tab but not loading web page, AppCode infinitely tries to index project, Tunnelbrick seems to be disconnected. I had an idea that something happens with persistent storage like ssd was suddenly disconnected.

  9. diclophis commented on Oct 12, 2017

    @diclophis

    Does anyone else think its pretty weird that a crashing / mis-behaving htop process is able to ham up the kernel so much that it requires a system reboot?

  10. Nax commented on Oct 12, 2017

    @Nax

    It is indeed, this looks like htop may be starving some system resources, mach ports maybe?

  11. diclophis commented on Oct 13, 2017

    @diclophis

    I was also running down a hunch that it had something to do with colored text rendering in both Terminal.app and iTerm2.app.... we noticed in our org some interesting properties around this crash..

    1. if your running htop in Terminal.app, and it crashes, it can also crash a seperate iTerm2.app session
    2. If you have htop running in a terminal app, and its "minimized" it will run fine... up until the moment you bring the app into the foreground and make it visible...
  12. diclophis commented on Oct 13, 2017

    @diclophis

    Another interesting aspect of this bug is that, after htop crashes, and locks the terminal app... the Activity Monitor.app fails to load and render processes as well!

  13. jiamo commented on Oct 18, 2017

    @jiamo

    This may happened when some processes take much cpu and memory.

  14. 226 remaining items

  15. saagarjha commented on Mar 31, 2018

    @saagarjha

    task_for_pid is a critical component of XNU, though. It’s used heavily throughout the system.

  16. evanslify commented on Apr 2, 2018

    @evanslify

    I thought the problem to blame is within taskgated?

  17. ylluminarious commented on Apr 2, 2018

    @ylluminarious

    @evanslify It seems to be a mixed problem... both DarwinProcess_scanThreads and unelevated privileges are what cause the problem, but it must happen with both together, not separated.

  18. ylluminarious commented on Apr 2, 2018

    @ylluminarious

    @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.

  19. ylluminarious commented on Apr 4, 2018

    @ylluminarious

    @ilovezfs @hishamhm Just in case my above comment isn't clear: I left htop running for 4 hours on 10.13.3 with @pmalhaire's patch in #772 and I didn't crash. His patch should be merged.

  20. mschwartz commented on Apr 8, 2018

    @mschwartz

    Installs with homebrew on high sierra and works!

  21. dylib commented on Apr 9, 2018

    @dylib

    @hishamhm, I compiled 2.1.0 and haven't had any issues whatsoever since running for over 48 hours in addition to while true; do sh -c "exit 0"; done.

    $ sw_vers
    ProductName:	Mac OS X
    ProductVersion:	10.13.4
    BuildVersion:	17E199
    $ ./htop -v
    htop 2.1.0 - (C) 2004-2018 Hisham Muhammad
    Released under the GNU GPL.
    

    If I encounter anything I'll be sure to report back; I'm curious also about the MacPorts version too, so I'll install that later today and report back the result — cheers!

  22. ylluminarious commented on Apr 14, 2018

    @ylluminarious

    @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.

  23. evanslify commented on May 10, 2018

    @evanslify

    +1, If we cannot reproduce this anymore and there's no new reports related to this issue, than we can close this.

  24. ylluminarious commented on May 10, 2018

    @ylluminarious

    @neverpanic FYI, while this is still open, you might want to update the htop Macport once again to 2.2.0.

  25. added a commit that references this issue on May 10, 2018
  26. ylluminarious commented on May 12, 2018

    @ylluminarious

    @neverpanic Thanks! Just noticed the update.

  27. Paulomart commented on Sep 15, 2019

    @Paulomart

    For everyone experiencing this on remote ssh hosts:

    Removing this line from /etc/ssh/sshd_config:

    AcceptEnv LANG LC_*

    fixed it for me.

  28. Zenexer commented on Sep 15, 2019

    @Zenexer

    @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0