MangoHud icon indicating copy to clipboard operation
MangoHud copied to clipboard

Mangoapp doesn't shut down after the running program/app closes

Open stele95 opened this issue 10 months ago • 12 comments

Describe the bug After starting a mangoapp instance with gamescope -- sh -c "mangoapp& vkcube" or any other program in the same way and then closing that program/app, mangoapp instance remains running.

List relevant hardware/software information

  • Linux Distribution: EndeavourOS
  • MangoHud version: latest git installed from AUR mangohud-git package

To Reproduce Steps to reproduce the behavior:

  1. Run gamescope -- sh -c "mangoapp& vkcube" from the terminal
  2. Close vkcube
  3. Repeat steps 1. and 2. a couple times
  4. Check running processes

Expected behavior mangoapp should shut down after the program/app is closed

Screenshots List of running processes after repeating reproduction steps 1. and 2. a couple of times Screenshot_20240407_111008

stele95 avatar Apr 07 '24 09:04 stele95

use gamescopes --mangoapp argument instead

flightlessmango avatar Apr 07 '24 23:04 flightlessmango

The behaviour is the same. Mangoapp still stays after shutting down gamescope instance.

Additional info that might be important, I'm on KDE Plasma 6 under Wayland.

Terminal log after clicking close:

gamescope: Received Terminated signal, forwarding to child! gamescope: Received Terminated signal, attempting shutdown! (EE) failed to read Wayland events: Broken pipe

stele95 avatar Apr 07 '24 23:04 stele95

what's the full command you're using?

flightlessmango avatar Apr 08 '24 00:04 flightlessmango

gamescope --mangoapp -- vkcube

stele95 avatar Apr 08 '24 00:04 stele95

What git version of mangohud and gamescope are you using?

flightlessmango avatar Apr 11 '24 03:04 flightlessmango

Both are installed through AUR

  • https://aur.archlinux.org/packages/mangohud-git
  • https://aur.archlinux.org/packages/gamescope-git

stele95 avatar Apr 11 '24 10:04 stele95

Since they are git versions they install whatever is the latest commit when you decided to install, which means only you know what git version it actually is. With some luck pacman -Q mangohud gamescope should tell us which commit it is or you can reinstall both packages and check which commit was latest at the time

flightlessmango avatar Apr 11 '24 10:04 flightlessmango

mangohud-git 0.7.2.rc2.r22.g1e13c38-1 gamescope-git 3.14.2.r97.g41389f7-1

stele95 avatar Apr 11 '24 10:04 stele95

I have a similar issue but with steam: When I add mangohud &command% to the launch parameters of the steam game, the game remains in memory and running in background (no gui seen). I use mangohud v0.7.1 in nobara linux 39.

MacharaStormwing avatar Apr 21 '24 12:04 MacharaStormwing

@MacharaStormwing this is likely a completely different issue, please create a new issue for it

flightlessmango avatar Apr 21 '24 13:04 flightlessmango

I had the same issue on gamescope 3.14.3 from Arch repos. Installing gamescope-git package from AUR fixed stale mangoapp processes. It seems like the bug was fixed in gamescope 3.14.6 or even in the very latest commits.

kodemeister avatar Apr 26 '24 22:04 kodemeister

While using gamescope --mangoapp, gamescope is handling starting and terminating mangoapp, so it should probably be reported there as well if it's still an issue

flightlessmango avatar Apr 27 '24 05:04 flightlessmango

This should be resolved by using gamescope --mangoapp

flightlessmango avatar Jul 02 '24 18:07 flightlessmango