Skip to content
Advertisement

why is htop command displaying a black screen [closed]

first I am new on linux, I was trying this windows wsl while following a tutorial, enabled it and downloaded ubuntu… like everything works fine. but when I tried to run htop it is just returning a black frozen screen. I did strace htop 2> strace_log.txt and this is the result but I have no Idea what’s happening can someone please help

Advertisement

Answer

It’s a bug caused by an incompatible glibc call involving CLOCK_REALTIME in WSL.

From bugs.launchpad.net/ubuntu/+source/htop/+bug/1871129:

The issue is happening because WSL is currently not POSIX compliant and any call to glibc that uses CLOCK_REALTIME will fail with EINVAL (-1) (such as clock_gettime() or clock_nanosleep()). It is likely that a glibc change has made this to appear (instead of the htop different version).

Related:

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement