Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fastfetch hangs on TerminalFont module after updating to version 1.12.2 #493

Closed
DiscFlyer opened this issue Jul 10, 2023 · 16 comments
Closed
Labels
bug Something isn't working

Comments

@DiscFlyer
Copy link

General description of bug:

  • What happened: Fastfetch hangs on TerminalFont module
  • What should happen: Fastfetch completes
  • Did it work in an older version: last tried it on 1.11.3 which worked
  • Where did you get the binary: brew
  • Does this issue still occurs in the latest dev build? YES

Often helpful information:

Output of fastfetch --version:

fastfetch 1.12.2 (x86_64)

The content of the configuration file you use (if any)

none

Output of env NO_CONFIG=1 fastfetch --load-config all --show-errors --stat --multithreading false --disable-linewrap false --hide-cursor false:

❯ env NO_CONFIG=1 fastfetch --load-config all --show-errors --stat --multithreading false --disable-linewrap false --hide-cursor false
       _,met$$$$$gg.           ed@Ed-ThinkBook                                                                                                          0ms
    ,g$$$$$$$$$$$$$$$P.        ---------------                                                                                                          0ms
  ,g$$P"         """Y$$.".     OS: Debian GNU/Linux x86_64                                                                                              0ms
 ,$$P'               `$$$.     Host: Windows Subsystem for Linux (1.2.5.0)                                                                            120ms
',$$P       ,ggs.     `$$b:    Bios: bios_release is not set.                                                                                           0ms
`d$$'     ,$P"'   .    $$$     Board: board_name is not set.                                                                                            0ms
 $$P      d$'     ,    $$$P    Chassis: chassis_type is not set by O.E.M.                                                                               0ms
 $$:      $.   -    ,d$$'      Kernel: 5.15.90.1-microsoft-standard-WSL2                                                                                0ms
 $$;      Y$b._   _,d$P'       Uptime: 6 days, 4 hours, 27 mins                                                                                         0ms
 Y$$.    `.`"Y$$$$P"'          Processes: 541                                                                                                           0ms
 `$$b      "-.__               Packages: 451 (dpkg), 14 (brew)                                                                                          2ms
  `Y$$                         Shell: zsh 5.9                                                                                                           1ms
   `Y$$.                       Display: 5760x2163                                                                                                       1ms
     `$$b.                     Brightness: Failed to open `/sys/class/backlight/`                                                                       0ms
       `Y$$b.                  DE: No DE found                                                                                                          0ms
          `"Y$b._              WM: WSLg (Wayland)                                                                                                       0ms
             `"""              WM Theme: Unknown WM: WSLg                                                                                               0ms
                               Theme: No themes found                                                                                                   0ms
                               Icons: No icons could be found                                                                                           0ms
                               Font: No fonts found                                                                                                     0ms
                               Cursor: WSLg uses native windows cursor                                                                                  0ms
                               Wallpaper: Failed to detect the current wallpaper path                                                                   0ms
                               Terminal: Windows Terminal

Output of fastfetch --list-features:

❯ fastfetch --list-features
threads
vulkan
wayland
xcb-randr
xcb
xrandr
x11
gio
dbus
imagemagick7
chafa
zlib
sqlite3
rpm
egl
libcjson
libpulse

If fastfatch crashed

Paste the stacktrace here. You may get it with:

$ gdb /path/to/fastfetch
$ run
$ bt

If you are able to identify which module crashed, the strace can be helpful too

❯ strace fastfetch --multithreading false --structure TerminalFont --pipe
execve("/home/linuxbrew/.linuxbrew/bin/fastfetch", ["fastfetch", "--multithreading", "false", "--structure", "TerminalFont", "--pipe"], 0x7ffe7203d718 /* 41 vars */) = 0
brk(NULL)                               = 0x55a1f1f53000
arch_prctl(0x3001 /* ARCH_??? */, 0x7ffcf6dcfd60) = -1 EINVAL (Invalid argument)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f77ceb2b000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/Cellar/fastfetch/1.12.2/lib/glibc-hwcaps/x86-64-v3/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/Cellar/fastfetch/1.12.2/lib/glibc-hwcaps/x86-64-v3", 0x7ffcf6dcef80, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/Cellar/fastfetch/1.12.2/lib/glibc-hwcaps/x86-64-v2/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/Cellar/fastfetch/1.12.2/lib/glibc-hwcaps/x86-64-v2", 0x7ffcf6dcef80, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/Cellar/fastfetch/1.12.2/lib/tls/x86_64/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/Cellar/fastfetch/1.12.2/lib/tls/x86_64/x86_64", 0x7ffcf6dcef80, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/Cellar/fastfetch/1.12.2/lib/tls/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/Cellar/fastfetch/1.12.2/lib/tls/x86_64", 0x7ffcf6dcef80, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/Cellar/fastfetch/1.12.2/lib/tls/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/Cellar/fastfetch/1.12.2/lib/tls/x86_64", 0x7ffcf6dcef80, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/Cellar/fastfetch/1.12.2/lib/tls/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/Cellar/fastfetch/1.12.2/lib/tls", 0x7ffcf6dcef80, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/Cellar/fastfetch/1.12.2/lib/x86_64/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/Cellar/fastfetch/1.12.2/lib/x86_64/x86_64", 0x7ffcf6dcef80, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/Cellar/fastfetch/1.12.2/lib/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/Cellar/fastfetch/1.12.2/lib/x86_64", 0x7ffcf6dcef80, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/Cellar/fastfetch/1.12.2/lib/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/Cellar/fastfetch/1.12.2/lib/x86_64", 0x7ffcf6dcef80, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/Cellar/fastfetch/1.12.2/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/Cellar/fastfetch/1.12.2/lib", 0x7ffcf6dcef80, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/opt/gcc/lib/gcc/current/glibc-hwcaps/x86-64-v3/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/opt/gcc/lib/gcc/current/glibc-hwcaps/x86-64-v3", 0x7ffcf6dcef80, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/opt/gcc/lib/gcc/current/glibc-hwcaps/x86-64-v2/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/opt/gcc/lib/gcc/current/glibc-hwcaps/x86-64-v2", 0x7ffcf6dcef80, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/opt/gcc/lib/gcc/current/tls/x86_64/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/opt/gcc/lib/gcc/current/tls/x86_64/x86_64", 0x7ffcf6dcef80, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/opt/gcc/lib/gcc/current/tls/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/opt/gcc/lib/gcc/current/tls/x86_64", 0x7ffcf6dcef80, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/opt/gcc/lib/gcc/current/tls/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/opt/gcc/lib/gcc/current/tls/x86_64", 0x7ffcf6dcef80, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/opt/gcc/lib/gcc/current/tls/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/opt/gcc/lib/gcc/current/tls", 0x7ffcf6dcef80, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/opt/gcc/lib/gcc/current/x86_64/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/opt/gcc/lib/gcc/current/x86_64/x86_64", 0x7ffcf6dcef80, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/opt/gcc/lib/gcc/current/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/opt/gcc/lib/gcc/current/x86_64", 0x7ffcf6dcef80, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/opt/gcc/lib/gcc/current/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/opt/gcc/lib/gcc/current/x86_64", 0x7ffcf6dcef80, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/opt/gcc/lib/gcc/current/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/opt/gcc/lib/gcc/current", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
openat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/lib/glibc-hwcaps/x86-64-v3/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/lib/glibc-hwcaps/x86-64-v3", 0x7ffcf6dcef80, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/lib/glibc-hwcaps/x86-64-v2/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/lib/glibc-hwcaps/x86-64-v2", 0x7ffcf6dcef80, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/lib/tls/x86_64/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/lib/tls/x86_64/x86_64", 0x7ffcf6dcef80, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/lib/tls/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/lib/tls/x86_64", 0x7ffcf6dcef80, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/lib/tls/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/lib/tls/x86_64", 0x7ffcf6dcef80, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/lib/tls/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/lib/tls", 0x7ffcf6dcef80, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/lib/x86_64/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/lib/x86_64/x86_64", 0x7ffcf6dcef80, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/lib/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/lib/x86_64", 0x7ffcf6dcef80, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/lib/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/lib/x86_64", 0x7ffcf6dcef80, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/lib", {st_mode=S_IFDIR|0775, st_size=4096, ...}, 0) = 0
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=15211, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 15211, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f77ceb27000
close(3)                                = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\237\2\0\0\0\0\0"..., 832) = 832
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
pread64(3, "\4\0\0\0 \0\0\0\5\0\0\0GNU\0\2\0\0\300\4\0\0\0\3\0\0\0\0\0\0\0"..., 48, 848) = 48
pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0i8\235HZ\227\223\333\350s\360\352,\223\340."..., 68, 896) = 68
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=2216304, ...}, AT_EMPTY_PATH) = 0
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
mmap(NULL, 2260560, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f77ce8ff000
mmap(0x7f77ce927000, 1658880, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x28000) = 0x7f77ce927000
mmap(0x7f77ceabc000, 360448, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1bd000) = 0x7f77ceabc000
mmap(0x7f77ceb14000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x214000) = 0x7f77ceb14000
mmap(0x7f77ceb1a000, 52816, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f77ceb1a000
close(3)                                = 0
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f77ce8fc000
arch_prctl(ARCH_SET_FS, 0x7f77ce8fc740) = 0
set_tid_address(0x7f77ce8fca10)         = 13425
set_robust_list(0x7f77ce8fca20, 24)     = 0
rseq(0x7f77ce8fd0e0, 0x20, 0, 0x53053053) = 0
mprotect(0x7f77ceb14000, 16384, PROT_READ) = 0
mprotect(0x55a1f0abc000, 4096, PROT_READ) = 0
mprotect(0x7f77ceb65000, 8192, PROT_READ) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
munmap(0x7f77ceb27000, 15211)           = 0
getuid()                                = 1000
getrandom("\xf9\x64\x18\xa8\x21\x08\xd1\xd3", 8, GRND_NONBLOCK) = 8
brk(NULL)                               = 0x55a1f1f53000
brk(0x55a1f1f74000)                     = 0x55a1f1f74000
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(3)                                = 0
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(3)                                = 0
newfstatat(AT_FDCWD, "/etc/nsswitch.conf", {st_mode=S_IFREG|0644, st_size=510, ...}, 0) = 0
newfstatat(AT_FDCWD, "/", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
openat(AT_FDCWD, "/etc/nsswitch.conf", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=510, ...}, AT_EMPTY_PATH) = 0
read(3, "# /etc/nsswitch.conf\n#\n# Example"..., 4096) = 510
read(3, "", 4096)                       = 0
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=510, ...}, AT_EMPTY_PATH) = 0
close(3)                                = 0
openat(AT_FDCWD, "/etc/passwd", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=1415, ...}, AT_EMPTY_PATH) = 0
lseek(3, 0, SEEK_SET)                   = 0
read(3, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 1415
close(3)                                = 0
uname({sysname="Linux", nodename="Ed-ThinkBook", ...}) = 0
uname({sysname="Linux", nodename="Ed-ThinkBook", ...}) = 0
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(3)                                = 0
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(3)                                = 0
newfstatat(AT_FDCWD, "/etc/nsswitch.conf", {st_mode=S_IFREG|0644, st_size=510, ...}, 0) = 0
newfstatat(AT_FDCWD, "/etc/resolv.conf", {st_mode=S_IFREG|0644, st_size=198, ...}, 0) = 0
openat(AT_FDCWD, "/etc/host.conf", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=92, ...}, AT_EMPTY_PATH) = 0
read(3, "# The \"order\" line is only used "..., 4096) = 92
read(3, "", 4096)                       = 0
close(3)                                = 0
futex(0x7f77ceb2132c, FUTEX_WAKE_PRIVATE, 2147483647) = 0
openat(AT_FDCWD, "/etc/resolv.conf", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=198, ...}, AT_EMPTY_PATH) = 0
read(3, "# This file was automatically ge"..., 4096) = 198
read(3, "", 4096)                       = 0
uname({sysname="Linux", nodename="Ed-ThinkBook", ...}) = 0
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=198, ...}, AT_EMPTY_PATH) = 0
close(3)                                = 0
openat(AT_FDCWD, "/etc/hosts", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=524, ...}, AT_EMPTY_PATH) = 0
lseek(3, 0, SEEK_SET)                   = 0
read(3, "# This file was automatically ge"..., 4096) = 524
read(3, "", 4096)                       = 0
close(3)                                = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
openat(AT_FDCWD, "/home/linuxbrew/.linuxbrew/etc/fastfetch/config.conf", O_RDONLY) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=663, ...}, AT_EMPTY_PATH) = 0
read(3, "# Fastfetch system configuration"..., 4096) = 663
read(3, "", 4096)                       = 0
close(3)                                = 0
openat(AT_FDCWD, "/etc/fastfetch/config.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/xdg/fastfetch/config.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/ed/fastfetch/config.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/ed/.config/fastfetch/config.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
rt_sigaction(SIGINT, {sa_handler=0x55a1f0a6e1e0, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f77ce941520}, NULL, 8) = 0
rt_sigaction(SIGTERM, {sa_handler=0x55a1f0a6e1e0, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f77ce941520}, NULL, 8) = 0
rt_sigaction(SIGQUIT, {sa_handler=0x55a1f0a6e1e0, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f77ce941520}, NULL, 8) = 0
getppid()                               = 13422
openat(AT_FDCWD, "/proc/13422/stat", O_RDONLY) = 3
newfstatat(3, "", {st_mode=S_IFREG|0444, st_size=0, ...}, AT_EMPTY_PATH) = 0
read(3, "13422 (strace) S 355 13422 355 3"..., 1024) = 325
close(3)                                = 0
openat(AT_FDCWD, "/proc/355/stat", O_RDONLY) = 3
newfstatat(3, "", {st_mode=S_IFREG|0444, st_size=0, ...}, AT_EMPTY_PATH) = 0
read(3, "355 (zsh) S 354 355 355 34816 13"..., 1024) = 331
close(3)                                = 0
openat(AT_FDCWD, "/proc/355/cmdline", O_RDONLY) = 3
newfstatat(3, "", {st_mode=S_IFREG|0444, st_size=0, ...}, AT_EMPTY_PATH) = 0
read(3, "-zsh\0", 259)                  = 5
close(3)                                = 0
openat(AT_FDCWD, "/proc/354/stat", O_RDONLY) = 3
newfstatat(3, "", {st_mode=S_IFREG|0444, st_size=0, ...}, AT_EMPTY_PATH) = 0
read(3, "354 (Relay(355)) S 353 353 353 0"..., 1024) = 188
close(3)                                = 0
pipe2([3, 4], 0)                        = 0
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f77ce8fca10) = 13426
close(4)                                = 0
wait4(13426, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 13426
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13426, si_uid=1000, si_status=0, si_utime=0, si_stime=0} ---
newfstatat(3, "", {st_mode=S_IFIFO|0600, st_size=0, ...}, AT_EMPTY_PATH) = 0
read(3, "zsh 5.8.1 (x86_64-ubuntu-linux-", 31) = 31
read(3, "gnu)\n", 32)                   = 5
close(3)                                = 0
pipe2([3, 4], 0)                        = 0
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f77ce8fca10) = 13427
close(4)                                = 0
wait4(13427,

Program hangs at this point until Ctrl-c is pressed.

If you cannot do the instructions above, please upload the core dump file:

If my image logo didn't show / work

  • The image protocol you used:
  • The terminal you used:
  • Upload the image file here, or paste the image URL:
  • Does it work with --logo-width {WIDTH} --logo-height {HEIGHT}?
@DiscFlyer DiscFlyer added the bug Something isn't working label Jul 10, 2023
@CarterLi
Copy link
Member

pipe2([3, 4], 0)                        = 0
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f77ce8fca10) = 13427
close(4)                                = 0
wait4(13427,

We were waiting for the child process but it never returned. I will try reproducing it myself later.

@DiscFlyer
Copy link
Author

The issue happens when using Windows Terminal. If I start wsl using Alacritty terminal, fastfetch is working.

❯ env NO_CONFIG=1 fastfetch --load-config all --show-errors --stat --multithreading false --disable-linewrap false --hide-cursor false
       _,met$$$$$gg.           ed@Ed-ThinkBook                                                                                                                                                                                                                                                                            0ms
    ,g$$$$$$$$$$$$$$$P.        ---------------                                                                                                                                                                                                                                                                            0ms
  ,g$$P"         """Y$$.".     OS: Debian GNU/Linux x86_64                                                                                                                                                                                                                                                                1ms
 ,$$P'               `$$$.     Host: Windows Subsystem for Linux (1.2.5.0)                                                                                                                                                                                                                                              109ms
',$$P       ,ggs.     `$$b:    Bios: bios_version is not set.                                                                                                                                                                                                                                                             0ms
`d$$'     ,$P"'   .    $$$     Board: board_name is not set.                                                                                                                                                                                                                                                              1ms
 $$P      d$'     ,    $$$P    Chassis: chassis_type is not set by O.E.M.                                                                                                                                                                                                                                                 0ms
 $$:      $.   -    ,d$$'      Kernel: 5.15.90.1-microsoft-standard-WSL2                                                                                                                                                                                                                                                  0ms
 $$;      Y$b._   _,d$P'       Uptime: 6 days, 4 hours, 55 mins                                                                                                                                                                                                                                                           0ms
 Y$$.    `.`"Y$$$$P"'          Processes: 528                                                                                                                                                                                                                                                                             0ms
 `$$b      "-.__               Packages: 451 (dpkg), 14 (brew)                                                                                                                                                                                                                                                            1ms
  `Y$$                         Shell: zsh 5.9                                                                                                                                                                                                                                                                             1ms
   `Y$$.                       Display: 5760x2163                                                                                                                                                                                                                                                                         1ms
     `$$b.                     Brightness: No result is detected.                                                                                                                                                                                                                                                         0ms
       `Y$$b.                  DE: No DE found                                                                                                                                                                                                                                                                            0ms
          `"Y$b._              WM: WSLg (Wayland)                                                                                                                                                                                                                                                                         0ms
             `"""              WM Theme: Unknown WM: WSLg                                                                                                                                                                                                                                                                 0ms
                               Theme: No themes found                                                                                                                                                                                                                                                                     0ms
                               Icons: No icons could be found                                                                                                                                                                                                                                                             0ms
                               Font: No fonts found                                                                                                                                                                                                                                                                       0ms
                               Cursor: WSLg uses native windows cursor                                                                                                                                                                                                                                                    0ms
                               Wallpaper: Failed to detect the current wallpaper path                                                                                                                                                                                                                                     0ms
                               Terminal: conhost                                                                                                                                                                                                                                                                          0ms
                               Terminal Font: Unknown terminal: conhost                                                                                                                                                                                                                                                   0ms
                               CPU: AMD Ryzen 7 6800U (16) @ 2.694864 GHz                                                                                                                                                                                                                                                 0ms
                               CPU Usage: 6%                                                                                                                                                                                                                                                                              0ms
                               GPU: Microsoft Corporation Basic Render Driver                                                                                                                                                                                                                                             7ms
                               Memory: 1.05 GiB / 6.39 GiB (16%)                                                                                                                                                                                                                                                          0ms
                               Swap: 0 B / 2.00 GiB (0%)                                                                                                                                                                                                                                                                  0ms
                               Disk (/): 53.61 GiB / 1007 GiB (5%) - ext4
                               Disk (/mnt/c): 165 GiB / 347 GiB (47%) - 9p                                                                                                                                                                                                                                               11ms
                               Battery: 100% [Full]                                                                                                                                                                                                                                                                       1ms
                               Power Adapter: Not supported on this platform                                                                                                                                                                                                                                              0ms
                               Media Player: Failed to connect to DBus                                                                                                                                                                                                                                                    5ms
                               Media: Failed to connect to DBus                                                                                                                                                                                                                                                           0ms
                               Public IP:                                                                                                                                                                                                                                                                     79ms
                               Local IP (eth0): 172.23.252.50                                                                                                                                                                                                                                                             1ms
                               Wifi: linux/wireless.h not found during compilation                                                                                                                                                                                                                                        0ms
                               Date & Time: 2023-07-09 21:14:03                                                                                                                                                                                                                                                           0ms
                               Locale: en_US.UTF-8                                                                                                                                                                                                                                                                        0ms
                               Vulkan: dlopen libvulkan.so failed                                                                                                                                                                                                                                                         0ms
                               OpenGL: dlopen glx failed                                                                                                                                                                                                                                                                  0ms
                               OpenCL: dlopen libOpenCL.so failed                                                                                                                                                                                                                                                         0ms
                               Users: Unable to detect users                                                                                                                                                                                                                                                              0ms
                               Bluetooth: Failed to connect to DBus                                                                                                                                                                                                                                                       0ms
                               Sound: Failed to load libpulse.so                                                                                                                                                                                                                                                          1ms
                               Gamepad: No devices detected                                                                                                                                                                                                                                                               0ms
                               Weather: +76°F - Heavy rain (United States)                                                                                                                                                                                                                   253ms
                                                                                                                                                                                                                                                                                                                          0ms
                               ████████████████████████
                               ████████████████████████

@CarterLi
Copy link
Member

That was because in WSL we would not try to detect the terminal font of Alacritty or conhost

@CarterLi
Copy link
Member

What's the output of

cmd.exe /c 'if exist %LOCALAPPDATA%\\Packages\\Microsoft.WindowsTerminal_8wekyb3d8bbwe\\LocalState\\settings.json ( type %LOCALAPPDATA%\\Packages\\Microsoft.WindowsTerminal_8wekyb3d8bbwe\\LocalState\\settings.json ) else if exist %LOCALAPPDATA%\\Packages\\Microsoft.WindowsTerminalPreview_8wekyb3d8bbwe\\LocalState\\settings.json ( type %LOCALAPPDATA%\\Packages\\Microsoft.WindowsTerminalPreview_8wekyb3d8bbwe\\LocalState\\settings.json ) else if exist \"%LOCALAPPDATA%\\Microsoft\\Windows Terminal\\settings.json\" ( type %LOCALAPPDATA%\\Microsoft\\Windows Terminal\\settings.json ) else ( call )'

@CarterLi
Copy link
Member

Does the native Windows binary work for you?

@DiscFlyer
Copy link
Author

What's the output of

cmd.exe /c 'if exist %LOCALAPPDATA%\\Packages\\Microsoft.WindowsTerminal_8wekyb3d8bbwe\\LocalState\\settings.json ( type %LOCALAPPDATA%\\Packages\\Microsoft.WindowsTerminal_8wekyb3d8bbwe\\LocalState\\settings.json ) else if exist %LOCALAPPDATA%\\Packages\\Microsoft.WindowsTerminalPreview_8wekyb3d8bbwe\\LocalState\\settings.json ( type %LOCALAPPDATA%\\Packages\\Microsoft.WindowsTerminalPreview_8wekyb3d8bbwe\\LocalState\\settings.json ) else if exist \"%LOCALAPPDATA%\\Microsoft\\Windows Terminal\\settings.json\" ( type %LOCALAPPDATA%\\Microsoft\\Windows Terminal\\settings.json ) else ( call )'
{
    "$help": "https://aka.ms/terminal-documentation",
    "$schema": "https://aka.ms/terminal-profiles-schema",
    "actions":
    [
        {
            "command":
            {
                "action": "copy",
                "singleLine": false
            },
            "keys": "ctrl+c"
        },
        {
            "command": "paste",
            "keys": "ctrl+v"
        },
        {
            "command": "find",
            "keys": "ctrl+shift+f"
        },
        {
            "command":
            {
                "action": "splitPane",
                "split": "auto",
                "splitMode": "duplicate"
            },
            "keys": "alt+shift+d"
        },
        {
            "command": "togglePaneZoom",
            "keys": "ctrl+shift+z"
        }
    ],
    "copyFormatting": "none",
    "copyOnSelect": false,
    "defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
    "launchMode": "maximized",
    "newTabMenu":
    [
        {
            "type": "remainingProfiles"
        }
    ],
    "profiles":
    {
        "defaults":
        {
            "adjustIndistinguishableColors": "never",
            "experimental.retroTerminalEffect": false,
            "font":
            {
                "face": "Cascadia Mono"
            },
            "intenseTextStyle": "bold"
        },
        "list":
        [
            {
                "font":
                {
                    "face": "CaskaydiaCove Nerd Font"
                },
                "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
                "hidden": false,
                "name": "Windows PowerShell"
            },
            {
                "colorScheme": "Chalk",
                "font":
                {
                    "face": "CaskaydiaCove Nerd Font"
                },
                "guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
                "hidden": false,
                "name": "PowerShell",
                "source": "Windows.Terminal.PowershellCore"
            },
            {
                "font":
                {
                    "face": "Cascadia Mono"
                },
                "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
                "hidden": false,
                "name": "Command Prompt"
            },
            {
                "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
                "hidden": true,
                "name": "Azure Cloud Shell",
                "source": "Windows.Terminal.Azure"
            },
            {
                "backgroundImageOpacity": 0.2,
                "colorScheme": "Hopscotch.256",
                "font":
                {
                    "face": "CaskaydiaCove Nerd Font",
                    "size": 12.0
                },
                "guid": "{51855cb2-8cce-5362-8f54-464b92b32386}",
                "hidden": false,
                "name": "Ubuntu",
                "source": "CanonicalGroupLimited.Ubuntu_79rhkp1fndgsc"
            },
            {
                "colorScheme": "Desert",
                "font":
                {
                    "face": "CaskaydiaCove Nerd Font"
                },
                "guid": "{58ad8b0c-3ef8-5f4d-bc6f-13e4c00f2530}",
                "hidden": false,
                "name": "Debian",
                "source": "Windows.Terminal.Wsl"
            },
            {
                "colorScheme": "rebecca",
                "font":
                {
                    "face": "CaskaydiaCove Nerd Font"
                },
                "guid": "{d8cf2daf-fb53-552b-832f-24c7aa7411c3}",
                "hidden": false,
                "name": "openSUSE-Leap-15.5",
                "source": "Windows.Terminal.Wsl"
            },
            {
                "colorScheme": "Rapture",
                "font":
                {
                    "face": "CaskaydiaCove Nerd Font"
                },
                "guid": "{bc2da056-dd06-5879-b969-1dfcefc8d2c7}",
                "hidden": false,
                "name": "openSUSE-Tumbleweed",
                "source": "Windows.Terminal.Wsl"
            },
            {
                "colorScheme": "idleToes",
                "font":
                {
                    "face": "CaskaydiaCove Nerd Font"
                },
                "guid": "{a5a97cb8-8961-5535-816d-772efe0c6a3f}",
                "hidden": false,
                "name": "Arch",
                "source": "Windows.Terminal.Wsl"
            },
            {
                "colorScheme": "ChallengerDeep",
                "font":
                {
                    "face": "CaskaydiaCove Nerd Font"
                },
                "guid": "{aa8efdb5-3cbe-50b2-a332-9203dc1ee217}",
                "hidden": false,
                "name": "Fedora",
                "source": "Windows.Terminal.Wsl"
            }
        ]
    },
    "schemes":
    [
        {
# I removed the schemes as it made it too long to post.
       }
    ],
    "showTerminalTitleInTitlebar": true,
    "themes":
    [
        {
            "name": "legacyDark",
            "tab":
            {
                "background": null,
                "showCloseButton": "always",
                "unfocusedBackground": null
            },
            "window":
            {
                "applicationTheme": "dark",
                "useMica": false
            }
        },
        {
            "name": "legacyLight",
            "tab":
            {
                "background": null,
                "showCloseButton": "always",
                "unfocusedBackground": null
            },
            "window":
            {
                "applicationTheme": "light",
                "useMica": false
            }
        },
        {
            "name": "legacySystem",
            "tab":
            {
                "background": null,
                "showCloseButton": "always",
                "unfocusedBackground": null
            },
            "window":
            {
                "applicationTheme": "system",
                "useMica": false
            }
        }
    ]
}

@CarterLi
Copy link
Member

Did you run the command in WSL / Windows Terminal?

@DiscFlyer
Copy link
Author

Does the native Windows binary work for you?

The native Windows binary does work for Powershell and cmd using Windows Terminal.

~\Downloads\fastfetch-1.12.2-Win64
❯ .\fastfetch.exe
/////////////////  /////////////////    ed@Ed-ThinkBook
/////////////////  /////////////////    ----------------
/////////////////  /////////////////    OS: Windows 11 (Pro) x86_64
/////////////////  /////////////////    Host: 21AS (ThinkBook 13s G4 ARB)
/////////////////  /////////////////    Kernel: 10.0.22621.1848 (22H2)
/////////////////  /////////////////    Uptime: 6 days, 5 hours, 28 mins
/////////////////  /////////////////    Shell: PowerShell 7.3.5
/////////////////  /////////////////    Display (built-in): 1920x1200 @ 60Hz
                                        Display (external): 3840x2160 @ 60Hz (as 3072x1728)
/////////////////  /////////////////    DE: Fluent
/////////////////  /////////////////    WM: Desktop Window Manager
/////////////////  /////////////////    WM Theme: Custom - #4D5A1B (System: Dark, Apps: Light)
/////////////////  /////////////////    Icons: This PC, User's Files, Remote Network, Control Panel
/////////////////  /////////////////    Font: Segoe UI (12pt) [Caption / Menu / Message / Status]
/////////////////  /////////////////    Cursor: Windows Default (32px)
/////////////////  /////////////////    Terminal: Windows Terminal 1.17.11461.0
/////////////////  /////////////////    Terminal Font: CaskaydiaCove Nerd Font (12pt)
                                        CPU: AMD Ryzen 7 6800U (16) @ 2.695 GHz
                                        GPU: Advanced Micro Devices, Inc. AMD Radeon(TM) Graphics (2.00 GiB)
                                        Memory: 10.87 GiB / 13.21 GiB (82%)
                                        Disk (C:\): 166 GiB / 347 GiB (47%)
                                        Battery: 99% [AC Connected]
                                        Locale: English_United States.utf8

                                        ████████████████████████
                                        ████████████████████████

@CarterLi
Copy link
Member

Good, thanks.

@DiscFlyer
Copy link
Author

Did you run the command in WSL / Windows Terminal?

I ran it from windows terminal using powershell. If I run it with wsl, I get the same output with the following lines prepended to it.

❯ cmd.exe /c 'if exist %LOCALAPPDATA%\\Packages\\Microsoft.WindowsTerminal_8wekyb3d8bbwe\\LocalState\\settings.json ( type %LOCALAPPDATA%\\Packages\\Microsoft.WindowsTerminal_8wekyb3d8bbwe\\LocalState\\settings.json ) else if exist %LOCALAPPDATA%\\Packages\\Microsoft.WindowsTerminalPreview_8wekyb3d8bbwe\\LocalState\\settings.json ( type %LOCALAPPDATA%\\Packages\\Microsoft.WindowsTerminalPreview_8wekyb3d8bbwe\\LocalState\\settings.json ) else if exist \"%LOCALAPPDATA%\\Microsoft\\Windows Terminal\\settings.json\" ( type %LOCALAPPDATA%\\Microsoft\\Windows Terminal\\settings.json ) else ( call )'
'\\wsl.localhost\Debian\home\ed'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.

@CarterLi
Copy link
Member

As long as the command exits, it's fine.

@CarterLi
Copy link
Member

I can't reproduce this issue on my laptop. Anyway, I have added a timeout option ( defaults to 1000ms ), so that we kill the child process when the timer expires.

I didn't change the related code between 1.11.3 and 1.12.2. Can you verify if 1.11.3 does work for you?

@DiscFlyer
Copy link
Author

If I download the current 1.12.2 zip from the releases page and run it from the extracted location, fastfetch completes successfully without hanging. The hang issue seems to be only with the brew 1.12.2 package. The brew 1.11.3 package is working.

❯ pwd
/home/ed/Downloads/fastfetch-1.12.2-Linux/usr/bin

❯ env NO_CONFIG=1 ./fastfetch --load-config all --show-errors --stat --multithreading false --disable-linewrap false --hide-cursor false
       _,met$$$$$gg.           ed@Ed-ThinkBook                                                                                                                                                                                                                                                                          0ms
    ,g$$$$$$$$$$$$$$$P.        ---------------                                                                                                                                                                                                                                                                          0ms
  ,g$$P"         """Y$$.".     OS: Debian GNU/Linux x86_64                                                                                                                                                                                                                                                              0ms
 ,$$P'               `$$$.     Host: Windows Subsystem for Linux (1.2.5.0)                                                                                                                                                                                                                                            119ms
',$$P       ,ggs.     `$$b:    Bios: bios_release is not set.                                                                                                                                                                                                                                                           0ms
`d$$'     ,$P"'   .    $$$     Board: board_name is not set.                                                                                                                                                                                                                                                            0ms
 $$P      d$'     ,    $$$P    Chassis: chassis_type is not set by O.E.M.                                                                                                                                                                                                                                               0ms
 $$:      $.   -    ,d$$'      Kernel: 5.15.90.1-microsoft-standard-WSL2                                                                                                                                                                                                                                                0ms
 $$;      Y$b._   _,d$P'       Uptime: 6 days, 22 hours, 23 mins                                                                                                                                                                                                                                                        0ms
 Y$$.    `.`"Y$$$$P"'          Processes: 527                                                                                                                                                                                                                                                                           0ms
 `$$b      "-.__               Packages: 452 (dpkg), 14 (brew)                                                                                                                                                                                                                                                          2ms
  `Y$$                         Shell: zsh 5.9                                                                                                                                                                                                                                                                           1ms
   `Y$$.                       Display: 5760x2163                                                                                                                                                                                                                                                                       1ms
     `$$b.                     Brightness: Failed to open `/sys/class/backlight/`                                                                                                                                                                                                                                       0ms
       `Y$$b.                  DE: No DE found                                                                                                                                                                                                                                                                          0ms
          `"Y$b._              WM: WSLg (Wayland)                                                                                                                                                                                                                                                                       0ms
             `"""              WM Theme: Unknown WM: WSLg                                                                                                                                                                                                                                                               0ms
                               Theme: No themes found                                                                                                                                                                                                                                                                   0ms
                               Icons: No icons could be found                                                                                                                                                                                                                                                           0ms
                               Font: No fonts found                                                                                                                                                                                                                                                                     0ms
                               Cursor: WSLg uses native windows cursor                                                                                                                                                                                                                                                  0ms
                               Wallpaper: Failed to detect the current wallpaper path                                                                                                                                                                                                                                   0ms
                               Terminal: Windows Terminal                                                                                                                                                                                                                                                               0ms
                               Terminal Font: Fastfetch was built without libcJSON support                                                                                                                                                                                                                              0ms
                               CPU: AMD Ryzen 7 6800U (16) @ 2.694864 GHz                                                                                                                                                                                                                                               0ms
                               CPU Usage: 0%                                                                                                                                                                                                                                                                            0ms
                               GPU: Microsoft Corporation Basic Render Driver                                                                                                                                                                                                                                           8ms
                               Memory: 1.08 GiB / 6.39 GiB (16%)                                                                                                                                                                                                                                                        0ms
                               Swap: 0 B / 2.00 GiB (0%)                                                                                                                                                                                                                                                                0ms
                               Disk (/): 53.62 GiB / 1007 GiB (5%)
                               Disk (/mnt/c): 165 GiB / 347 GiB (47%)                                                                                                                                                                                                                                                   1ms
                               Battery: 97% [Not charging]                                                                                                                                                                                                                                                              1ms
                               Power Adapter: Not supported on this platform                                                                                                                                                                                                                                            0ms
                               Media Player: Failed to connect to DBus                                                                                                                                                                                                                                                  3ms
                               Media: Failed to connect to DBus                                                                                                                                                                                                                                                         0ms
                               Public IP:                                                                                                                                                                                                                                                                  117ms
                               Local IP (eth0): 172.23.252.50                                                                                                                                                                                                                                                           0ms
                               Wifi: No Wifi interfaces found                                                                                                                                                                                                                                                           0ms
                               Date & Time: 2023-07-10 14:41:45                                                                                                                                                                                                                                                         0ms
                               Locale: en_US.UTF-8                                                                                                                                                                                                                                                                      0ms
                               Vulkan: dlopen libvulkan.so failed                                                                                                                                                                                                                                                       0ms
                               OpenGL: dlopen glx failed                                                                                                                                                                                                                                                                0ms
                               OpenCL: dlopen libOpenCL.so failed                                                                                                                                                                                                                                                       1ms
                               Users: Unable to detect users                                                                                                                                                                                                                                                            0ms
                               Bluetooth: Failed to connect to DBus                                                                                                                                                                                                                                                     0ms
                               Sound: Failed to load libpulse.so                                                                                                                                                                                                                                                        0ms
                               Gamepad: No devices detected                                                                                                                                                                                                                                                             0ms
                               Weather: +80°F - Partly cloudy (United States)                                                                                                                                                                                                              267ms
                                                                                                                                                                                                                                                                                                                        0ms
                               ████████████████████████
                               ████████████████████████

@DiscFlyer
Copy link
Author

I did some more troubleshooting. It seems the brew package hangs when there are too many color schemes defined in the Windows Terminal settings.json. I reset the settings.json to default values and fastfetch exits cleanly now but is not reporting the Terminal Font. I did get the Terminal Font to display a few times, but I can no longer reproduce that.

Here is a comparison between running the fastfetch binary from the releases page and running the one provided in the brew package, using default Windows Terminal settings with no extra color schemes defined.


❯ env NO_CONFIG=1 /home/linuxbrew/.linuxbrew/bin/fastfetch --show-errors --stat --multithreading false --disable-linewrap false --hide-cursor false --structure Terminal:TerminalFont
       _,met$$$$$gg.           Terminal: Windows Terminal                                                                                               1ms
    ,g$$$$$$$$$$$$$$$P.        Terminal Font: dlopen libcjson.so failed                                                                                53ms
  ,g$$P"         """Y$$.".
 ,$$P'               `$$$.
',$$P       ,ggs.     `$$b:
`d$$'     ,$P"'   .    $$$
 $$P      d$'     ,    $$$P
 $$:      $.   -    ,d$$'
 $$;      Y$b._   _,d$P'
 Y$$.    `.`"Y$$$$P"'
 `$$b      "-.__
  `Y$$
   `Y$$.
     `$$b.
       `Y$$b.
          `"Y$b._
             `"""


❯ env NO_CONFIG=1 /home/ed/Downloads/fastfetch-1.12.2-Linux/usr/bin/fastfetch --show-errors --stat --multithreading false --disable-linewrap false --hide-cursor false --structure Terminal:TerminalFont
       _,met$$$$$gg.           Terminal: Windows Terminal                                                                                               1ms
    ,g$$$$$$$$$$$$$$$P.        Terminal Font: Fastfetch was built without libcJSON support                                                              0ms
  ,g$$P"         """Y$$.".
 ,$$P'               `$$$.
',$$P       ,ggs.     `$$b:
`d$$'     ,$P"'   .    $$$
 $$P      d$'     ,    $$$P
 $$:      $.   -    ,d$$'
 $$;      Y$b._   _,d$P'
 Y$$.    `.`"Y$$$$P"'
 `$$b      "-.__
  `Y$$
   `Y$$.
     `$$b.
       `Y$$b.
          `"Y$b._
             `"""

If you want to reproduce the hang situation, use the brew package of fastfetch 1.12.2 and add all the color schemes listed here to the Windows Terminal settings.json: https://windowsterminalthemes.dev/ (link to download json of all color schemes at bottom left of page)

@DiscFlyer
Copy link
Author

Alternatively, here is my full Windows Terminal settings.json which causes the hang. If I remove enough color schemes, eventually fastfetch will exit without hanging.
settings.zip

@CarterLi
Copy link
Member

Thanks for the troubleshooting. homebrew 1.11.3 is working because it wasn't build with cJSON support

I think I know what the problem is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants