Closed zany130 closed 4 years ago
Please list system specs, distro, kernel and driver. Steps to replicate could also be good
Could you test with the latest nvidia-vulkan drivers?
still memleaks on hat in time and vkcube even with the latest nvidia-vulkan drivers
here is a lutris log i got lutris_trails.log
Could you run vkcube with debug build?
meson --reconfigure --buildtype=debug build/meson64/ && ninja -C build/meson64 install
cp build/release/usr/lib64/libMangoHud.so $HOME/.local/share/MangoHud/libMangoHud.so
then run MANGOHUD=1 gdb vkcube
and type r
and press enter. When it starts to memory leak , press ctrl+c and type thread apply all bt
and enter and copy the text here. Press enter to list more text if it doesn't fit on one screen and type q
to exit or c
to continue running.
Though running with valgrind would be more appropriate for memleaks....
[zany130@andres-pc MangoHud]$ MANGOHUD=1 gdb vkcube
GNU gdb (GDB) 8.3.1
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from vkcube...
(No debugging symbols found in vkcube)
(gdb)
(gdb) r
Starting program: /usr/bin/vkcube
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
/usr/lib/../share/gcc-9.2.0/python/libstdcxx/v6/xmethods.py:731: SyntaxWarning: list indices must be integers or slices, not str; perhaps you missed a comma?
refcounts = ['_M_refcount']['_M_pi']
[Detaching after vfork from child process 22677]
[Detaching after vfork from child process 22681]
[Detaching after vfork from child process 22688]
[Detaching after vfork from child process 22689]
[Detaching after vfork from child process 22693]
[Detaching after vfork from child process 22700]
[Detaching after vfork from child process 22715]
[New Thread 0x7ffff0ad9700 (LWP 22731)]
[New Thread 0x7fffe82d8700 (LWP 22732)]
[New Thread 0x7fffebfff700 (LWP 22733)]
[Thread 0x7fffe82d8700 (LWP 22732) exited]
[Thread 0x7fffebfff700 (LWP 22733) exited]
[Thread 0x7ffff0ad9700 (LWP 22731) exited]
[New Thread 0x7ffff0ad9700 (LWP 22735)]
[New Thread 0x7fffebfff700 (LWP 22736)]
[New Thread 0x7fffe82d8700 (LWP 22737)]
[Thread 0x7fffe82d8700 (LWP 22737) exited]
[Thread 0x7fffebfff700 (LWP 22736) exited]
[Thread 0x7ffff0ad9700 (LWP 22735) exited]
[New Thread 0x7ffff0ad9700 (LWP 22738)]
[New Thread 0x7fffebfff700 (LWP 22739)]
[New Thread 0x7fffe82d8700 (LWP 22740)]
[Thread 0x7fffe82d8700 (LWP 22740) exited]
[Thread 0x7fffebfff700 (LWP 22739) exited]
[Thread 0x7ffff0ad9700 (LWP 22738) exited]
[New Thread 0x7ffff0ad9700 (LWP 22748)]
[New Thread 0x7fffebfff700 (LWP 22749)]
[New Thread 0x7fffe82d8700 (LWP 22750)]
[Thread 0x7fffe82d8700 (LWP 22750) exited]
[Thread 0x7fffebfff700 (LWP 22749) exited]
[Thread 0x7ffff0ad9700 (LWP 22748) exited]
[New Thread 0x7ffff0ad9700 (LWP 22751)]
[New Thread 0x7fffebfff700 (LWP 22752)]
[New Thread 0x7fffe82d8700 (LWP 22753)]
[Thread 0x7fffe82d8700 (LWP 22753) exited]
[Thread 0x7fffebfff700 (LWP 22752) exited]
[Thread 0x7ffff0ad9700 (LWP 22751) exited]
^C
Thread 1 "vkcube" received signal SIGINT, Interrupt.
0x00007ffff5696fac in ?? () from /usr/lib/libMangoHud.so
(gdb) thread apply all bt
Thread 1 (Thread 0x7ffff7baf740 (LWP 22673)):
#0 0x00007ffff5696fac in ?? () from /usr/lib/libMangoHud.so
#1 0x00007ffff569a315 in ?? () from /usr/lib/libMangoHud.so
#2 0x00007ffff569ffc9 in ?? () from /usr/lib/libMangoHud.so
#3 0x00007ffff56a07e3 in ?? () from /usr/lib/libMangoHud.so
#4 0x0000555555558ccd in ?? ()
#5 0x00007ffff7c0f153 in __libc_start_main () from /usr/lib/libc.so.6
#6 0x000055555555977e in ?? ()
(gdb)
Thread 1 (Thread 0x7ffff7baf740 (LWP 22673)):
#0 0x00007ffff5696fac in ?? () from /usr/lib/libMangoHud.so
#1 0x00007ffff569a315 in ?? () from /usr/lib/libMangoHud.so
#2 0x00007ffff569ffc9 in ?? () from /usr/lib/libMangoHud.so
#3 0x00007ffff56a07e3 in ?? () from /usr/lib/libMangoHud.so
#4 0x0000555555558ccd in ?? ()
#5 0x00007ffff7c0f153 in __libc_start_main () from /usr/lib/libc.so.6
#6 0x000055555555977e in ?? ()
(gdb) c
Continuing.
^C
Thread 1 "vkcube" received signal SIGINT, Interrupt.
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append (
this=0x7fffffffc7d0, __s=0x7ffff575f84d " ")
at /build/gcc/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/basic_string.h:1263
1263 /build/gcc/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/basic_string.h: No such file or directory.
(gdb) thread apply all bt
Thread 1 (Thread 0x7ffff7baf740 (LWP 22673)):
#0 std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append (this=0x7fffffffc7d0, __s=0x7ffff575f84d " ") at /build/gcc/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/basic_string.h:1263
#1 0x00007ffff5696fcb in ?? () from /usr/lib/libMangoHud.so
#2 0x00007ffff569a315 in ?? () from /usr/lib/libMangoHud.so
#3 0x00007ffff569ffc9 in ?? () from /usr/lib/libMangoHud.so
#4 0x00007ffff56a07e3 in ?? () from /usr/lib/libMangoHud.so
#5 0x0000555555558ccd in ?? ()
#6 0x00007ffff7c0f153 in __libc_start_main () from /usr/lib/libc.so.6
#7 0x000055555555977e in ?? ()
(gdb) Quit
(gdb) q
A debugging session is active.
Inferior 1 [process 22673] will be killed.
Quit anyway? (y or n) y
[zany130@andres-pc MangoHud]$ cp build/release/usr/lib64/libMangoHud.so /usr/libMangoHud.so
bin/ i686-w64-mingw32/ lib/ lib64/ local/ share/ x86_64-w64-mingw32/
doc/ include/ lib32/ libexec/ sbin/ src/
[zany130@andres-pc MangoHud]$ cp build/release/usr/lib64/libMangoHud.so /usr/liblibMangoHud.so
lib/ lib32/ lib64/ libexec/
[zany130@andres-pc MangoHud]$ cp build/release/usr/lib64/libMangoHud.so /usr/lib/libMangoHud.so
Display all 5573 possibilities? (y or n)
[zany130@andres-pc MangoHud]$ cp build/release/usr/lib64/libMangoHud.so /usr/lib/libMangoHud.so
assets/ .git/ lib32-mangohud-r45.58384b0-1-x86_64.pkg.tar.xz pkg/
bin/ .gitignore mangohud-r45.58384b0-1-x86_64.pkg.tar.xz PKGBUILD
build/ .gitmodules meson.build README.md
build.sh include/ modules/ src/
[zany130@andres-pc MangoHud]$ cp build/release/usr/lib64/libMangoHud.so /usr/lib/libMangoHud.so
cp: unwritable '/usr/lib/libMangoHud.so' (mode 0664, rw-rw-r--); try anyway?
[zany130@andres-pc MangoHud]$ sudo cp build/release/usr/lib64/libMangoHud.so /usr/lib/libMangoHud.so
[sudo] password for zany130:
[zany130@andres-pc MangoHud]$ MANGOHUD=1 gdb vkcube
GNU gdb (GDB) 8.3.1
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from vkcube...
(No debugging symbols found in vkcube)
(gdb) r
Starting program: /usr/bin/vkcube
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
/usr/lib/../share/gcc-9.2.0/python/libstdcxx/v6/xmethods.py:731: SyntaxWarning: list indices must be integers or slices, not str; perhaps you missed a comma?
refcounts = ['_M_refcount']['_M_pi']
[Detaching after vfork from child process 24365]
[Detaching after vfork from child process 24369]
[Detaching after vfork from child process 24376]
[Detaching after vfork from child process 24377]
[Detaching after vfork from child process 24381]
[Detaching after vfork from child process 24388]
[Detaching after vfork from child process 24408]
[New Thread 0x7ffff0ad9700 (LWP 24419)]
[New Thread 0x7ffff02d8700 (LWP 24420)]
[New Thread 0x7fffefad7700 (LWP 24421)]
[Thread 0x7ffff02d8700 (LWP 24420) exited]
[Thread 0x7fffefad7700 (LWP 24421) exited]
[Thread 0x7ffff0ad9700 (LWP 24419) exited]
[New Thread 0x7ffff0ad9700 (LWP 24422)]
[New Thread 0x7fffefad7700 (LWP 24423)]
[New Thread 0x7ffff02d8700 (LWP 24424)]
[Thread 0x7ffff02d8700 (LWP 24424) exited]
[Thread 0x7fffefad7700 (LWP 24423) exited]
[Thread 0x7ffff0ad9700 (LWP 24422) exited]
^C
Thread 1 "vkcube" received signal SIGINT, Interrupt.
updateCpuStrings () at ../../src/cpu_gpu.h:255
255 for (size_t i = 0; i < correctionValue; i++) {
(gdb) thread apply all bt
Thread 1 (Thread 0x7ffff7baf740 (LWP 24360)):
#0 updateCpuStrings () at ../../src/cpu_gpu.h:255
#1 0x00007ffff569a315 in snapshot_swapchain_frame (data=0x555555d2f870) at ../../src/overlay.cpp:910
#2 0x00007ffff569ffc9 in before_present (swapchain_data=0x555555d2f870, present_queue=0x555555b44fb0, wait_semaphores=0x7fffffffcfa0, n_wait_semaphores=1, imageIndex=1) at ../../src/overlay.cpp:2012
#3 0x00007ffff56a07e3 in overlay_QueuePresentKHR (queue=0x555555595340, pPresentInfo=0x7fffffffcd40) at ../../src/overlay.cpp:2132
#4 0x0000555555558ccd in ?? ()
#5 0x00007ffff7c0f153 in __libc_start_main () from /usr/lib/libc.so.6
#6 0x000055555555977e in ?? ()
(gdb) c
Continuing.
^C
Thread 1 "vkcube" received signal SIGINT, Interrupt.
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append (
this=0x7fffffffc7c0, __s=0x7ffff575f84d " ")
at /build/gcc/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/basic_string.h:1266
1266 /build/gcc/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/basic_string.h: No such file or directory.
(gdb) thread apply all bt
Thread 1 (Thread 0x7ffff7baf740 (LWP 24360)):
#0 std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append (this=0x7fffffffc7c0, __s=0x7ffff575f84d " ") at /build/gcc/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/basic_string.h:1266
#1 0x00007ffff5696fcb in updateCpuStrings () at ../../src/cpu_gpu.h:256
#2 0x00007ffff569a315 in snapshot_swapchain_frame (data=0x555555d2f870) at ../../src/overlay.cpp:910
#3 0x00007ffff569ffc9 in before_present (swapchain_data=0x555555d2f870, present_queue=0x555555b44fb0, wait_semaphores=0x7fffffffcfa0, n_wait_semaphores=1, imageIndex=1) at ../../src/overlay.cpp:2012
#4 0x00007ffff56a07e3 in overlay_QueuePresentKHR (queue=0x555555595340, pPresentInfo=0x7fffffffcd40) at ../../src/overlay.cpp:2132
#5 0x0000555555558ccd in ?? ()
#6 0x00007ffff7c0f153 in __libc_start_main () from /usr/lib/libc.so.6
#7 0x000055555555977e in ?? ()
just realized i posted two runs i guess thats fine 1st run was without copying build/release/usr/lib64/libMangoHud.so
the second was after copying it /usr/lib/ as $HOME/.local/share/MangoHud/libMangoHud.so did not exist
This issue was resolved here 3d71100
zany130.zip for example hat in time does this https://youtu.be/Ryq41Iu7NDU it's the same in trails in the sky (DX9) bully and valkyrie chronicles 1 they will all crash right away
the mem leak also happens in vkcube but not in directx 11 games only hat in time seems to be memleaking and rise of the tombraider works fine
steps to reproduce:
PROTON_USE_D9VK=1 MANGOHUD=1 %command%
in steamMANGOHUD=1 %command%