Open 1player opened 2 years ago
Hi, same for me tag 3.11.30
Arch, Linux 5.18.1, mangohud 0.6.7.1, vulkan-radeon 22.1.0, mesa 22.1.0, AMD 6900 XT
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.
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
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)
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
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.
Steps to reproduce
gamescope glxgears
Actual result
Crashes, with these messages in the journal:
Works when ran with
MANGOHUD=0
--
Fedora 36 GNOME/Wayland, gamescope 3.11.9-1.fc36, AMD 6800 XT, Mesa 22.0.3