benjamimgois/goverlay

Missing MangoHud despite it being installed

c10l opened this issue · 1 comments

c10l commented

I'm on Debian testing.

I installed both GOverlay and MangoHud from the distro repos.

MangoHud is in /usr/bin/mangohud, and I can run it:

gaming@nzxt:~$ which mangohud
/usr/bin/mangohud
gaming@nzxt:~$ mangohud
ERROR: No program supplied

Usage: mangohud <program>

Furthermore, GOverlay actually finds the MangoHud executable when it starts:

gaming@nzxt:~$ strace goverlay
execve("/usr/games/goverlay", ["goverlay"], 0x7ffe1ee30720 /* 82 vars */) = 0
brk(NULL)                               = 0x55feba0e8000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1491d3f000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=111575, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 111575, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f1491d23000
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\0\220x\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
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=1926256, ...}, 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, 1974096, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1491b41000
mmap(0x7f1491b67000, 1396736, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x26000) = 0x7f1491b67000
mmap(0x7f1491cbc000, 344064, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17b000) = 0x7f1491cbc000
mmap(0x7f1491d10000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1cf000) = 0x7f1491d10000
mmap(0x7f1491d16000, 53072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f1491d16000
close(3)                                = 0
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1491b3e000
arch_prctl(ARCH_SET_FS, 0x7f1491b3e740) = 0
set_tid_address(0x7f1491b3ea10)         = 14668
set_robust_list(0x7f1491b3ea20, 24)     = 0
rseq(0x7f1491b3f060, 0x20, 0, 0x53053053) = 0
mprotect(0x7f1491d10000, 16384, PROT_READ) = 0
mprotect(0x55feb8d48000, 8192, PROT_READ) = 0
mprotect(0x7f1491d71000, 8192, PROT_READ) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
munmap(0x7f1491d23000, 111575)          = 0
getuid()                                = 1001
getgid()                                = 1001
getpid()                                = 14668
rt_sigaction(SIGCHLD, {sa_handler=0x55feb8d3ddb0, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7f1491b7d510}, NULL, 8) = 0
geteuid()                               = 1001
getrandom("\x92\x8f\x45\x26\x0c\x47\xd6\xdd", 8, GRND_NONBLOCK) = 8
brk(NULL)                               = 0x55feba0e8000
brk(0x55feba109000)                     = 0x55feba109000
getppid()                               = 14665
newfstatat(AT_FDCWD, "/home/gaming", {st_mode=S_IFDIR|0700, st_size=4096, ...}, 0) = 0
newfstatat(AT_FDCWD, ".", {st_mode=S_IFDIR|0700, st_size=4096, ...}, 0) = 0
openat(AT_FDCWD, "/usr/games/goverlay", O_RDONLY) = 3
fcntl(3, F_DUPFD, 10)                   = 10
close(3)                                = 0
fcntl(10, F_SETFD, FD_CLOEXEC)          = 0
geteuid()                               = 1001
getegid()                               = 1001
rt_sigaction(SIGINT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGINT, {sa_handler=0x55feb8d3ddb0, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7f1491b7d510}, NULL, 8) = 0
rt_sigaction(SIGQUIT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGQUIT, {sa_handler=SIG_DFL, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7f1491b7d510}, NULL, 8) = 0
rt_sigaction(SIGTERM, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGTERM, {sa_handler=SIG_DFL, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7f1491b7d510}, NULL, 8) = 0
read(10, "#!/bin/sh\n# This script will lau"..., 8192) = 418
newfstatat(AT_FDCWD, "/home/gaming/bin/mangohud", 0x7ffc26dbb9b0, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/local/bin/mangohud", 0x7ffc26dbb9b0, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/bin/mangohud", {st_mode=S_IFREG|0755, st_size=601, ...}, 0) = 0
rt_sigprocmask(SIG_SETMASK, ~[RTMIN RT_1], NULL, 8) = 0
vfork()                                 = 14669
rt_sigprocmask(SIG_SETMASK, [], ~[KILL STOP RTMIN RT_1], 8) = 0
wait4(-1, [2023-10-01 12:33:07.084] [MANGOHUD] [info] [config.cpp:118] skipping config: '/usr/libexec/MangoHud.conf' [ not found ]
[2023-10-01 12:33:07.084] [MANGOHUD] [info] [config.cpp:118] skipping config: '/home/gaming/.config/MangoHud/goverlay.conf' [ not found ]
[2023-10-01 12:33:07.084] [MANGOHUD] [info] [config.cpp:123] parsing config: '/home/gaming/.config/MangoHud/MangoHud.conf'
[2023-10-01 12:33:07.158] [MANGOHUD] [info] [overlay.cpp:808] Uploading is disabled (permit_upload = 0)
[2023-10-01 12:33:07.168] [MANGOHUD] [info] [gl_renderer.cpp:422] GL version: 4.6 
[2023-10-01 12:33:08.262] [MANGOHUD] [info] [overlay.cpp:808] Uploading is disabled (permit_upload = 0)
[2023-10-01 12:33:08.262] [MANGOHUD] [info] [gl_renderer.cpp:422] GL version: 4.6 
[2023-10-01 12:49:41.370] [MANGOHUD] [info] [config.cpp:118] skipping config: '/usr/libexec/MangoHud.conf' [ not found ]
[2023-10-01 12:49:41.370] [MANGOHUD] [info] [config.cpp:118] skipping config: '/home/gaming/.config/MangoHud/goverlay.conf' [ not found ]
[2023-10-01 12:49:41.370] [MANGOHUD] [info] [config.cpp:123] parsing config: '/home/gaming/.config/MangoHud/MangoHud.conf'
[2023-10-01 12:49:41.571] [MANGOHUD] [info] [config.cpp:118] skipping config: '/usr/libexec/MangoHud.conf' [ not found ]
[2023-10-01 12:49:41.571] [MANGOHUD] [info] [config.cpp:118] skipping config: '/home/gaming/.config/MangoHud/goverlay.conf' [ not found ]
[2023-10-01 12:49:41.571] [MANGOHUD] [info] [config.cpp:123] parsing config: '/home/gaming/.config/MangoHud/MangoHud.conf'

Yet, GOverlay reports Missing MangoHud:

image

Hey @c10l , this is a known issue in the latest stable build of goverlay. It's already fixed in the latest git version, but it will be fixed in next release.