ValveSoftware / gamescope

SteamOS session compositing window manager
Other
3.08k stars 206 forks source link

Crash when mangohud is enabled #512

Open 1player opened 2 years ago

1player commented 2 years ago

Steps to reproduce

Actual result

Crashes, with these messages in the journal:

Module linux-vdso.so.1 with build-id 2489af4ca3e2d3acbd62c3331880dc3784725ed6
Module libVkLayer_MESA_device_select.so with build-id efaac7ca997684333129c57dab1f3359c43f2906
Metadata for module libVkLayer_MESA_device_select.so owned by FDO found: {
        "type" : "rpm",
        "name" : "mesa",
        "version" : "22.0.3-1.fc36",
        "architecture" : "x86_64",
        "osCpe" : "cpe:/o:fedoraproject:fedora:36"
}

Module libfmt.so.8 with build-id 1a8c984e5cdc984a032141d4db53b411f249f5c0
Metadata for module libfmt.so.8 owned by FDO found: {
        "type" : "rpm",
        "name" : "fmt",
        "version" : "8.1.1-5.fc36",
        "architecture" : "x86_64",
        "osCpe" : "cpe:/o:fedoraproject:fedora:36"
}

Module libspdlog.so.1 with build-id e86d98710dfa26235701b88dc07da1f505fa9cb4
Metadata for module libspdlog.so.1 owned by FDO found: {
        "type" : "rpm",
        "name" : "spdlog",
        "version" : "1.10.0-1.fc36",
        "architecture" : "x86_64",
        "osCpe" : "cpe:/o:fedoraproject:fedora:36"
}

Module libMangoHud.so with build-id 1548f6a8ca241db411dad0a0aa37e9fd84d6a28c
Stack trace of thread 375191:
#0  0x00007fe95edc79c2 _ZL26overlay_CreateSwapchainKHRP10VkDevice_TPK24VkSwapchainCreateInfoKHRPK21VkAllocationCall>
#1  0x0000563c1de388a1 _Z21vulkan_make_swapchainP14VulkanOutput_t.constprop.0 (gamescope + 0x438a1)
#2  0x0000563c1de29410 _Z18vulkan_make_outputv (gamescope + 0x34410)
#3  0x0000563c1de040a9 main (gamescope + 0xf0a9)
#4  0x00007fe967fef550 __libc_start_call_main (libc.so.6 + 0x29550)
#5  0x00007fe967fef609 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x29609)
#6  0x0000563c1de07275 _start (gamescope + 0x12275)

Stack trace of thread 375232:
#0  0x00007fe96809e8d5 clock_nanosleep@GLIBC_2.2.5 (libc.so.6 + 0xd88d5)
#1  0x00007fe9680a3147 __nanosleep (libc.so.6 + 0xdd147)
#2  0x00007fe95edc9e4c _ZL11fileChangedP13notify_thread.lto_priv.0 (libMangoHud.so + 0x46e4c)
#3  0x00007fe9683a0b73 execute_native_thread_routine (libstdc++.so.6 + 0xdbb73)
#4  0x00007fe968052e1d start_thread (libc.so.6 + 0x8ce1d)
#5  0x00007fe9680d82e0 __clone3 (libc.so.6 + 0x1122e0)

Stack trace of thread 375194:
#0  0x00007fe96804fa19 __futex_abstimed_wait_common (libc.so.6 + 0x89a19)
#1  0x00007fe968052200 pthread_cond_wait@@GLIBC_2.3.2 (libc.so.6 + 0x8c200)
#2  0x00007fe95f05a06b util_queue_thread_func (libvulkan_radeon.so + 0x16206b)
#3  0x00007fe95f059cbb impl_thrd_routine (libvulkan_radeon.so + 0x161cbb)
#4  0x00007fe968052e1d start_thread (libc.so.6 + 0x8ce1d)
#5  0x00007fe9680d82e0 __clone3 (libc.so.6 + 0x1122e0)

Stack trace of thread 375234:
#0  0x00007fe9680cb8af __poll (libc.so.6 + 0x1058af)
#1  0x00007fe968852446 Wayland_WaitEventTimeout (libSDL2-2.0.so.0 + 0x10d446)
#2  0x00007fe968791793 SDL_WaitEventTimeout_REAL (libSDL2-2.0.so.0 + 0x4c793)
#3  0x0000563c1de29db8 _Z17inputSDLThreadRunv (gamescope + 0x34db8)
#4  0x00007fe9683a0b73 execute_native_thread_routine (libstdc++.so.6 + 0xdbb73)
#5  0x00007fe968052e1d start_thread (libc.so.6 + 0x8ce1d)
#6  0x00007fe9680d82e0 __clone3 (libc.so.6 + 0x1122e0)
ELF object binary architecture: AMD x86-64

[snip]

Process 374637 (gamescope) crashed in overlay_CreateSwapchainKHR(VkDevice_T*, VkSwapchainCreateInfoKHR const*, VkAllocationCallbacks const*, VkSwapchainKHR_T**) [clone .lto_priv.0]()

Works when ran with MANGOHUD=0

--

Fedora 36 GNOME/Wayland, gamescope 3.11.9-1.fc36, AMD 6800 XT, Mesa 22.0.3

potens1 commented 2 years ago

Hi, same for me tag 3.11.30

coredump ``` Message: Process 189919 (gamescope) of user 1000 dumped core. Module linux-vdso.so.1 with build-id 4bbdd9447359021631434950a65998efe247ea02 Module libfmt.so.8 with build-id 79e7e0fd9a4811d455cc3c20f836a3584053c9b5 Module libspdlog.so.1 with build-id 3e08ab7a7e5e90591be7bc0036d538a1b7b0d57e Module libMangoHud.so with build-id 1d20d2343262aaab50d743495ee8b2985bbd84e8 Module libicudata.so.71 with build-id 4fef196388e678deb881978139e125e20ee2d94d Module libicuuc.so.71 with build-id 633fdc0c5385d916571f6140e7a978ad0630ef55 Module libxml2.so.2 with build-id 8cdf00fa954d9a27f2f184c4d354cb14677446ac Module libncursesw.so.6 with build-id b9917757481e6fa6097e2a1f31f5bb5eaf138c4e Module libedit.so.0 with build-id 4b0babfcad161c2ad0af6e59e2493258db23a331 Module libxshmfence.so.1 with build-id d9b3ce4edb0b6a0818bcc57dda020d2da5e3c895 Module libxcb-randr.so.0 with build-id c914473ab7592ed5cf5c191200faaac1089c12ad Module libxcb-sync.so.1 with build-id 13025f6de23a271636ad321c77eda98801e62e8e Module libX11-xcb.so.1 with build-id f6beacd41cd16a23f53e5e56bb599e98f039d0d6 Module libz.so.1 with build-id fefe3219a96d682ec98fcfb78866b8594298b5a2 Module libelf.so.1 with build-id c09e357a1a3b061bf219bcfb243ca31b175e77fa Module libdrm_amdgpu.so.1 with build-id 8eb3977b830f3012d9ead7b4def5f4d2f38ec688 Module libLLVM-13.so with build-id 90a760361bef9d2de117d7e696dad26fc4cb24f4 Module libvulkan_radeon.so with build-id 3d76b7dea8eae5fcb55835d6548c55cfa8c2975d Module libXss.so.1 with build-id a3b819a932d6eb2b4fbfd0c6bd77242ef14e7366 Module libXrandr.so.2 with build-id 154e55f082ee9e685d0794c98c5b76ffe9c8868e Module libXi.so.6 with build-id 16603be937a02a7e61b0b0395d064be7efd86f49 Module libXinerama.so.1 with build-id 8198240259261b612189e89c9fcfc902b025b382 Module libXcursor.so.1 with build-id f0525ae3715ac95f96a8cdb44795b03f831334b0 Module libdbus-1.so.3 with build-id 7f4b16b4b407cbae2d7118d6f99610e29a18a56a Module libpthread.so.0 with build-id 95ae4f30a6f12ccbff645d30f8e1a3ee23ec7d36 Module libgpg-error.so.0 with build-id f9aaa96d5ddf6f6872051ed7abcdfe6bdaff9b1c Module libpcre.so.1 with build-id 845483dd0acba86de9f0313102bebbaf3ce52767 Module liblz4.so.1 with build-id e63600ab23b2f6997f42fac2fa56e1f02ce159a1 Module libzstd.so.1 with build-id 3bccb8fe08e48d5ea135b1d0f99de0d771dd752f Module liblzma.so.5 with build-id 28b40c7af8098a66af6ee093b6986b91cad7694d Module libgcrypt.so.20 with build-id 8bf3cb884124273640de797a3e77d86c98434ea4 Module libglib-2.0.so.0 with build-id f1d15261ce1317b9003a1f0957d5a528d063f630 Module libgobject-2.0.so.0 with build-id a7dfc5c24acdbd0bcc40e3a427f917f679eef0d1 Module libgudev-1.0.so.0 with build-id 460465b63a086d945124662363191903c0002793 Module libsystemd.so.0 with build-id 385f15b287d5a2f1952983f0230859f47291fea8 Module libwacom.so.9 with build-id dab3ab00bae4a88ba3bd0d2e9262a9d5bf59187b Module libevdev.so.2 with build-id 09eb82a0dfca98325f54b3918875cff09a5c1428 Module libmtdev.so.1 with build-id 862cf8d5b0a0dd4d4d225e17f54be93ab9c3b34e Module libGLdispatch.so.0 with build-id de981c020bd9dbdc159b11f4a2a541310cc3b8d5 Module libexpat.so.1 with build-id 113bb5a3e9ad856801bfcfc029102c9bdc13d67e Module libXdmcp.so.6 with build-id d864159ab0008415667db8d5f251696d75c90df2 Module libXau.so.6 with build-id 60db1eac70f819bea9d4c366603c1583067510b4 Module ld-linux-x86-64.so.2 with build-id fc93487393eea02b5bc6e76e48976fc325294c24 Module libxcb-errors.so.0 with build-id 0d6ee255fc30b6a86856b9f1a96491f12a1cacaf Module libxcb-res.so.0 with build-id cd3dbd6dd9e412a002d1be5ae0ec0d85650542ba Module libxcb-icccm.so.4 with build-id 5eb9288df14c7f50af1e8db26c37e19d78bf0978 Module libxcb-composite.so.0 with build-id e8b69e2806d928f66445390cc50ab33a0b98bef0 Module libseat.so.1 with build-id 51f74c96a4dd3748925954d1cc5fc6c52f051866 Module libwayland-client.so.0 with build-id 95e7368b400dd57e3db2a5c385de71c7dca08879 Module libxcb-xinput.so.0 with build-id 409ee697e2b16243bf1fc6429e672f2359033388 Module libxcb-xfixes.so.0 with build-id e231a68d00ee4cfa12a2c31e755a9e2c1e7be450 Module libxcb-shm.so.0 with build-id 828fec4d856e2710e732ea8d92c3f250c807b1c2 Module libxcb-render-util.so.0 with build-id 32609134bf1b73183d07a66f6bd65c94b4542460 Module libxcb-render.so.0 with build-id b1ca498d665807ab0ccdafbe8070853efd058173 Module libxcb-present.so.0 with build-id 8ed389d9cd6ad7110fbb00c93b32e0efaa71a6b1 Module libxcb-dri3.so.0 with build-id 088c750254cc139e7d62b8a3fc7795a138447ccf Module libinput.so.10 with build-id 2dae1736f9a02020c3932f0ceb476474463a5c07 Module libGLESv2.so.2 with build-id ecba6a192965463cb000c68b97e51a1c760457de Module libEGL.so.1 with build-id 30b30de54f2f848a7b8bed469349c9a7ab1b7c22 Module libpixman-1.so.0 with build-id d2170a3ac106c2a68597bf7910ab04b1cdd69c14 Module libudev.so.1 with build-id ac4cd7595ed265c7be79d2aedf407ca43e17a890 Module libgbm.so.1 with build-id 5c6933b7595ef50465304d2fd8bbd9a5cefcec1b Module libffi.so.8 with build-id f0a9586cf0f42d2b9971bd1065ca3a6b19f4a2c2 Module libxcb.so.1 with build-id 13d677412a71468381b11092915d231f664d18d3 Module libc.so.6 with build-id 388993b6ef62f964bc7bf473c069fbfe957b9e44 Module libgcc_s.so.1 with build-id 0e3de903950e35ae59a5de8c00b1817a4a71ca01 Module libm.so.6 with build-id 210ec9905e41825671210f8f7d0b24d6c371196a Module libstdc++.so.6 with build-id b3eaebcb5369487562e52dd8d016c9cd77f80c54 Module libpipewire-0.3.so.0 with build-id 4f6546c98a998ecbe671647afdf63c4548c0555c Module libcap.so.2 with build-id 21b00ab76bb16fde56fd741f07233c78069f0579 Module libXtst.so.6 with build-id 35c7f3daf454834acb724e6bd1664b0a2e9a6494 Module libliftoff.so.0 with build-id ef7b82bb479d9e9f5dd4cbc8adf66c59d10362ec Module libvulkan.so.1 with build-id 198212a538d4e3b290530d75a0614e803b03d39e Module libwlroots.so.10 with build-id 373190f20c23d64e0de63f0806b36a0c8a8b07b9 Module libSDL2-2.0.so.0 with build-id ea9fb59ffd521c634a0459b0e6826e0d896d3afd Module libxkbcommon.so.0 with build-id 6cf66eead3fcc20fe5df10162bfbcdcdc8b2a183 Module libwayland-server.so.0 with build-id 5526cec43774a83c7ab8c7ff820eea8b28880d51 Module libdrm.so.2 with build-id 00816f0a71c7e4e388c10db6245dbb9c031732a9 Module libXRes.so.1 with build-id 6ae98691f3ebed4aae1d0ac919078baa00d71fb6 Module libXxf86vm.so.1 with build-id b8b37b0c66be0a760a8491e3c86a00c4efdc825d Module libXext.so.6 with build-id 17beadf1cb40d41ab36629db3b4eed74110678a7 Module libXrender.so.1 with build-id 42e386d2acf3cde61081959d9671ca74acfb3edc Module libXcomposite.so.1 with build-id 13228d108b290268d88510db494daefd5521cda0 Module libXfixes.so.3 with build-id 0a05c7e8714522bfbdd7c0027c3e2a94965664b0 Module libXdamage.so.1 with build-id a99dbe3fc2b01da9fbdd90d5ad00621f9022379f Module libX11.so.6 with build-id d8e0be8e0323aa421366f19065ecd1c76405c130 Module gamescope with build-id 20051463adfc6d6cd5762a46d4bf6ab24fad9a01 Stack trace of thread 189919: #0 0x00007ff700085ce2 n/a (libMangoHud.so + 0x43ce2) #1 0x0000562175c2b62a n/a (gamescope + 0x4462a) #2 0x0000562175bf493c n/a (gamescope + 0xd93c) #3 0x00007ff70a0cb290 n/a (libc.so.6 + 0x29290) #4 0x00007ff70a0cb34a __libc_start_main (libc.so.6 + 0x2934a) #5 0x0000562175bf6a65 n/a (gamescope + 0xfa65) Stack trace of thread 189966: #0 0x00007ff70a1a468a __close (libc.so.6 + 0x10268a) #1 0x00007ff708ed3c0b n/a (libvulkan_radeon.so + 0x32bc0b) #2 0x00007ff708c80716 n/a (libvulkan_radeon.so + 0xd8716) #3 0x00007ff708c89e07 n/a (libvulkan_radeon.so + 0xe1e07) #4 0x00007ff708c8a2dd n/a (libvulkan_radeon.so + 0xe22dd) #5 0x0000562175c1b11f n/a (gamescope + 0x3411f) #6 0x0000562175c1b27f n/a (gamescope + 0x3427f) #7 0x00007ff70a48c183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183) #8 0x00007ff70a12e54d n/a (libc.so.6 + 0x8c54d) #9 0x00007ff70a1b3b14 __clone (libc.so.6 + 0x111b14) Stack trace of thread 189922: #0 0x00007ff70a17a625 clock_nanosleep (libc.so.6 + 0xd8625) #1 0x00007ff70a17f1e7 __nanosleep (libc.so.6 + 0xdd1e7) #2 0x00007ff7000909c8 n/a (libMangoHud.so + 0x4e9c8) #3 0x00007ff70a48c183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183) #4 0x00007ff70a12e54d n/a (libc.so.6 + 0x8c54d) #5 0x00007ff70a1b3b14 __clone (libc.so.6 + 0x111b14) Stack trace of thread 189921: #0 0x00007ff70a12b119 n/a (libc.so.6 + 0x89119) #1 0x00007ff70a12d920 pthread_cond_wait (libc.so.6 + 0x8b920) #2 0x00007ff708d09b1c n/a (libvulkan_radeon.so + 0x161b1c) #3 0x00007ff708d0932c n/a (libvulkan_radeon.so + 0x16132c) #4 0x00007ff70a12e54d n/a (libc.so.6 + 0x8c54d) #5 0x00007ff70a1b3b14 __clone (libc.so.6 + 0x111b14) Stack trace of thread 189967: #0 0x00007ff70a1a7faf __poll (libc.so.6 + 0x105faf) #1 0x00007ff70a934623 n/a (libSDL2-2.0.so.0 + 0xf7623) #2 0x00007ff70a8894b5 n/a (libSDL2-2.0.so.0 + 0x4c4b5) #3 0x0000562175c1bf29 n/a (gamescope + 0x34f29) #4 0x00007ff70a48c183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183) #5 0x00007ff70a12e54d n/a (libc.so.6 + 0x8c54d) #6 0x00007ff70a1b3b14 __clone (libc.so.6 + 0x111b14) Stack trace of thread 189965: #0 0x00007ff70a17a625 clock_nanosleep (libc.so.6 + 0xd8625) #1 0x00007ff70a17f1e7 __nanosleep (libc.so.6 + 0xdd1e7) #2 0x00007ff7000881b9 n/a (libMangoHud.so + 0x461b9) #3 0x00007ff70a48c183 execute_native_thread_routine (libstdc++.so.6 + 0xd6183) #4 0x00007ff70a12e54d n/a (libc.so.6 + 0x8c54d) #5 0x00007ff70a1b3b14 __clone (libc.so.6 + 0x111b14) Stack trace of thread 189968: #0 0x00007ff70a12b119 n/a (libc.so.6 + 0x89119) #1 0x00007ff70a12dc24 pthread_cond_timedwait (libc.so.6 + 0x8bc24) #2 0x00007ff708cc7a5a n/a (libvulkan_radeon.so + 0x11fa5a) #3 0x00007ff70a12e54d n/a (libc.so.6 + 0x8c54d) #4 0x00007ff70a1b3b14 __clone (libc.so.6 + 0x111b14) ELF object binary architecture: AMD x86-64 ```

Arch, Linux 5.18.1, mangohud 0.6.7.1, vulkan-radeon 22.1.0, mesa 22.1.0, AMD 6900 XT

Samsagax commented 2 years ago

Mangohud by itself doesnt work on gamescope. There is a specifically made binary for gamescope compatibility (mangoapp) that should be used. Disable or set the MANGOHUD environment variable to 0 so gamescope won't crash.

zany130 commented 2 years ago

also getting this issue recently

System:
  Kernel: 5.18.1-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=53e270ad-dfd5-4874-a125-69d21ada6b8d rw rootflags=subvol=@
    rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3
    sysrq_always_enabled=1 amdgpu.ppfeaturemask=0xffffffff nowatchdog
  Desktop: KDE Plasma v: 5.24.5 tk: Qt v: 5.15.4 info: latte-dock
    wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: ASRock model: X470 Taichi serial: <superuser required>
    UEFI: American Megatrends v: P4.86 date: 01/27/2022
Battery:
  Device-1: hidpp_battery_0 model: Logitech Wireless Mouse MX Master 3
    serial: <filter> charge: 100% (should be ignored) rechargeable: yes
    status: discharging
  Device-2: ps-controller-battery-4c:b9:9b:1b:68:38 model: N/A serial: N/A
    charge: N/A status: discharging
CPU:
  Info: model: AMD Ryzen 5 2600X bits: 64 type: MT MCP arch: Zen+
    family: 0x17 (23) model-id: 8 stepping: 2 microcode: 0x800820D
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 576 KiB desc: d-6x32 KiB; i-6x64 KiB L2: 3 MiB desc: 6x512 KiB
    L3: 16 MiB desc: 2x8 MiB
  Speed (MHz): avg: 4083 high: 4110 min/max: 2200/3600 boost: enabled
    scaling: driver: acpi-cpufreq governor: performance cores: 1: 4105 2: 4094
    3: 4092 4: 4079 5: 4079 6: 4097 7: 4084 8: 4078 9: 4047 10: 4038 11: 4104
    12: 4110 bogomips: 86403
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2
    mitigation: Retpolines, IBPB: conditional, STIBP: disabled, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M]
    vendor: Gigabyte driver: amdgpu v: kernel pcie: gen: 4 speed: 16 GT/s
    lanes: 16 ports: active: DP-1,HDMI-A-1 empty: DP-2,HDMI-A-2
    bus-ID: 0f:00.0 chip-ID: 1002:73df class-ID: 0300
  Display: x11 server: X.Org v: 21.1.3 with: Xwayland v: 22.1.2
    compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting,radeon
    alternate: fbdev,vesa gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 6400x2160 s-dpi: 120 s-size: 1354x457mm (53.31x17.99")
    s-diag: 1429mm (56.26")
  Monitor-1: DP-1 mapped: DisplayPort-0 pos: primary,left
    model: LG (GoldStar) HDR WFHD serial: <filter> built: 2021 res: 2560x1080
    dpi: 81 gamma: 1.2 size: 798x334mm (31.42x13.15") diag: 869mm (34.2")
    modes: max: 2560x1080 min: 640x480
  Monitor-2: HDMI-A-1 mapped: HDMI-A-0 pos: right model: Samsung
    serial: <filter> built: 2019 res: 3840x2160 hz: 60 dpi: 52 gamma: 1.2
    size: 1872x1053mm (73.7x41.46") diag: 1093mm (43") ratio: 16:9 modes:
    max: 3840x2160 min: 720x400
  OpenGL: renderer: AMD Radeon RX 6700 XT (navy_flounder LLVM 13.0.1 DRM
    3.46 5.18.1-zen1-1-zen)
    v: 4.6 Mesa 22.1.0 direct render: Yes
Audio:
  Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel v: kernel
    pcie: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 0f:00.1 chip-ID: 1002:ab28
    class-ID: 0403
  Sound Server-1: ALSA v: k5.18.1-zen1-1-zen running: yes
  Sound Server-2: sndio v: N/A running: no
  Sound Server-3: PulseAudio v: 16.0 running: no
  Sound Server-4: PipeWire v: 0.3.51 running: yes
Network:
  Device-1: Intel I211 Gigabit Network vendor: ASRock driver: igb v: kernel
    pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: d000 bus-ID: 09:00.0
    chip-ID: 8086:1539 class-ID: 0200
  IF: enp9s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: Edimax Bluetooth Adapter type: USB driver: btusb v: 0.8
    bus-ID: 1-8:4 chip-ID: 7392:c611 class-ID: e001 serial: <filter>
  Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:
  Local Storage: total: 2.96 TiB used: 3.09 TiB (104.6%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:3 vendor: Samsung
    model: SSD 970 EVO 250GB size: 232.89 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 2B2QEXE7 temp: 34.9 C scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:0 vendor: Samsung model: SSD 980 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B
    speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: 1B4QFXO7
    temp: 34.9 C scheme: GPT
  ID-3: /dev/sda maj-min: 8:0 vendor: Seagate model: ST2000DX002-2DV164
    size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 7200 serial: <filter> rev: CC41 scheme: GPT
Partition:
  ID-1: / raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
    used: 682.34 GiB (73.3%) fs: btrfs dev: /dev/nvme1n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 16.3 MiB (5.5%) fs: vfat dev: /dev/nvme1n1p1 maj-min: 259:1
  ID-3: /home raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
    used: 682.34 GiB (73.3%) fs: btrfs dev: /dev/nvme1n1p2 maj-min: 259:2
  ID-4: /var/log raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
    used: 682.34 GiB (73.3%) fs: btrfs dev: /dev/nvme1n1p2 maj-min: 259:2
  ID-5: /var/tmp raw-size: 931.22 GiB size: 931.22 GiB (100.00%)
    used: 682.34 GiB (73.3%) fs: btrfs dev: /dev/nvme1n1p2 maj-min: 259:2
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 31.27 GiB used: 144.5 MiB (0.5%)
    priority: 100 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 52.8 C mobo: 0.0 C gpu: amdgpu temp: 54.0 C
    mem: 56.0 C
  Fan Speeds (RPM): fan-2: 0 fan-4: 1312 fan-5: 0 gpu: amdgpu fan: 0
Info:
  Processes: 448 Uptime: 2h 16m wakeups: 4 Memory: 31.27 GiB
  used: 12.33 GiB (39.4%) Init: systemd v: 251 tool: systemctl Compilers:
  gcc: 12.1.0 clang: 13.0.1 Packages: pacman: 2340 lib: 578 flatpak: 0
  Shell: fish v: 3.4.1 default: Bash v: 5.1.16 running-in: alacritty
  inxi: 3.3.16

before i was able to run gamescope mangohud vkcube and it would lanch vkcube with mangohud

EDIT: somehow fixed it by reinstalling the latest gamescope-git package

potens1 commented 2 years ago

Same for me: gamescope mangohud vkcube (or glxgear) works, it breaks only with the MANGOHUD=1 env variable.

I tried mangoapp but then I don't have any output (but I don't know if related to gamescope, and if it is, not related to this report)

zany130 commented 2 years ago

to use mangoapp you would need something like this gamescope -- sh -c "mangoapp& %command%" added to your steam launch commands for the game if running through steam or gamescope -- sh -c "mangoapp& vkcube" in a terminal

though mango app currently has a bug where it will keep running even after everything else exits so you'll have to force kill it afterwards

parkerlreed commented 2 years ago

Is integration a possibility? Spawning the separate sh shell works, but gets tricky trying to use this in various places (Lutris command prefix for example)

Either gamescope knowing about mangoapp as an argument or mangoapp accepting a launch command akin to gamescope?

gamescope -m -- <some command>
gamescope -- mangoapp <some command>
gamescope -- mangoapp -- <some command>

I think the separate shell is throwing off Lutris due to losing the previous environment variables.

[parker@t495 ~]$ TEST=foobar gamescope -- sh -c "echo This is: $TEST"
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
vulkan: selecting physical device 'AMD RADV RAVEN'
vulkan: physical device supports DRM format modifiers
vulkan: supported DRM formats for sampling usage:
vulkan:   0x34325241
vulkan:   0x34325258
vulkan:   0x3231564E
wlserver: [backend/headless/backend.c:82] Creating headless backend
wlserver: [wayland] unable to lock lockfile /run/user/1000/gamescope-0.lock, maybe another compositor is running
wlserver: Running compositor on wayland display 'gamescope-1'
wlserver: [backend/headless/backend.c:18] Starting headless backend
wlserver: [xwayland/sockets.c:63] Failed to bind socket @/tmp/.X11-unix/X0: Address already in use
wlserver: [xwayland/server.c:92] Starting Xwayland on :2
wlserver: [types/wlr_surface.c:748] New wlr_surface 0x563656badc60 (res 0x563655aa0bc0)
wlserver: [xwayland/server.c:250] Xserver is ready
pipewire: stream state changed: connecting
pipewire: stream state changed: paused
pipewire: stream available on node ID: 68
This is:
(EE) failed to read Wayland events: Broken pipe

EDIT: WOOPS. Single quotes helps.

[parker@t495 ~]$ TEST=foobar gamescope -- sh -c 'echo This is: $TEST'
...
pipewire: renegociating stream params (size: 1280x720)
This is: foobar
(EE) failed to read Wayland events: Broken pipe

Maybe something else is going wrong.