Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mangohud no longer appears #3736

Open
a931vwewi opened this issue May 4, 2024 · 7 comments · May be fixed by #3767
Open

Mangohud no longer appears #3736

a931vwewi opened this issue May 4, 2024 · 7 comments · May be fixed by #3767
Labels
bug:confirmed Something isn't working.

Comments

@a931vwewi
Copy link

Describe the bug

Post AppImage version 2.8.0, mangohud no longer appears for applications. Within the logs for 2.8.0, I can see mangohud being called in an info backend message when an application launches, I do not see the same in the logs for 2.14.1. Launching heroic through the shell with mangohud, mangohud Heroic.Appimage, works fine and loads the config stored in ~/.config/MangoHud/MangoHud.conf. Perhaps pr#2841 may be why?

Add logs

AppImage 2.8.0
(13:23:01) INFO:    [Legendary]:        Refreshing library...
(13:23:01) INFO:    [Connection]:       Connectivity: check-online
(13:23:01) INFO:    [Connection]:       Pinging external endpoints
(13:23:01) INFO:    [Legendary]:        Running command: /tmp/.mount_HeroicEK6NZU/resources/app.asar.unpacked/build/bin/linux/legendary --version
(13:23:01) INFO:    [Legendary]:        Legendary location: /tmp/.mount_HeroicEK6NZU/resources/app.asar.unpacked/build/bin/linux/legendary
(13:23:01) INFO:    [Gog]:              GOGDL location: /tmp/.mount_HeroicEK6NZU/resources/app.asar.unpacked/build/bin/linux/gogdl
(13:23:01) INFO:    [Gog]:              GOGDL location: /tmp/.mount_HeroicEK6NZU/resources/app.asar.unpacked/build/bin/linux/gogdl
(13:23:02) WARNING: [Backend]:          Failed to register protocol with OS.
(13:23:02) INFO:    [Gog]:              Running command: /tmp/.mount_HeroicEK6NZU/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/user/Desktop/Heroic-2.8.0.AppImage.home/.config/heroic/gog_store/auth.json --version
(13:23:02) INFO:    [Connection]:       Connectivity: online
(13:23:02) INFO:    [Backend]:          User Not Found, removing it from Store
(13:23:02) INFO:    [Backend]:          

Heroic Version: 2.8.0 Nico Robin
Legendary Version:  0.20.32 Dark Energy (hotfix #6)
GOGdl Version: 0.7.2

Electron Version: 23.1.4
Chrome Version: 110.0.5481.192
NodeJS Version: 18.12.1

OS: openSUSE Tumbleweed KERNEL: 6.8.8-1-default ARCH: x64
CPU: AMD Ryzen 7 5700X 8-Core Processor @3.48 GOVERNOR: schedutil
RAM: Total: 15.54 GiB Available: 11.18 GiB
GRAPHICS: GPU0: Navi 31 [Radeon RX 7900 XT/7900 XTX/7900M] VRAM: 1MB 
PROTOCOL: wayland

(13:23:02) INFO:    [Backend]:          Loading Screen Ready
(13:23:02) INFO:    [Backend]:          Frontend Ready
(13:23:02) INFO:    [Backend]:          Checking for new Heroic Updates
(13:23:02) INFO:    [Backend]:          Checking for current version changelog
(13:23:03) INFO:    [Backend]:          AreWeAntiCheatYet data downloaded
(13:23:04) DEBUG:   [Backend]:          Unable to load Steam Libraries, libraryfolders.vdf not found
(13:23:04) INFO:    [Winetricks]:       Downloading Winetricks
(13:23:07) INFO:    [Backend]:          Starting the Download Queue
(13:23:45) INFO:    [Backend]:          Launching vkcube (svm9T6g889ZjMdHAjbqyVU)
(13:23:45) INFO:    [Backend]:          Preventing display from sleep
(13:23:45) INFO:    [Backend]:          Preventing machine to sleep
(13:23:45) INFO:    [Backend]:          Stopping Power Saver Blocker
(13:23:46) INFO:    [Backend]:          launching native sideloaded game: /home/user/Desktop/vkcube.sh 
(13:23:46) INFO:    [Backend]:          Backend: LD_PRELOAD= /usr/bin/mangohud --dlsym /home/user/Desktop/home/user/Desktop/vkcube.sh
(13:23:46) DEBUG:   [Backend]:          Logging to file "/home/user/Desktop/Heroic-2.8.0.AppImage.home/.config/heroic/GamesConfig/svm9T6g889ZjMdHAjbqyVU-lastPlay.log"
(13:23:48) INFO:    [Backend]:          Stopping Display Power Saver Blocker
(13:23:48) INFO:    [Frontend]:         Refreshing sideload Library
(13:23:48) WARNING: [Backend]:          refresh not implemented on Sideload Library Manager



AppImage 2.14.1
(13:25:48) INFO:    [Legendary]:        Legendary location: /tmp/.mount_HeroicrTDmA8/resources/app.asar.unpacked/build/bin/linux/legendary
(13:25:48) INFO:    [Gog]:              GOGDL location: /tmp/.mount_HeroicrTDmA8/resources/app.asar.unpacked/build/bin/linux/gogdl
(13:25:48) INFO:    [Connection]:       Connectivity: check-online
(13:25:48) INFO:    [Connection]:       Pinging external endpoints
(13:25:49) INFO:    [Gog]:              Checking for existing gog manifests
(13:25:49) INFO:    [Backend]:          DRM module staus {
  "oimompecagnajdejgnnjijobebaeigek": {
    "status": "new",
    "title": "Widevine Content Decryption Module",
    "version": "4.10.2710.0"
  }
}
(13:25:49) WARNING: [Backend]:          Failed to register protocol with OS.
(13:25:49) INFO:    [Legendary]:        Running command: LEGENDARY_CONFIG_PATH=/home/user/Desktop/Heroic-2.14.1.AppImage.home/.config/heroic/legendaryConfig/legendary /tmp/.mount_HeroicrTDmA8/resources/app.asar.unpacked/build/bin/linux/legendary --version
(13:25:49) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/user/Desktop/Heroic-2.14.1.AppImage.home/.config/heroic/gogdlConfig /tmp/.mount_HeroicrTDmA8/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/user/Desktop/Heroic-2.14.1.AppImage.home/.config/heroic/gog_store/auth.json --version
(13:25:49) INFO:    [Nile]:             Running command: NILE_CONFIG_PATH=/home/user/Desktop/Heroic-2.14.1.AppImage.home/.config/heroic/nile_config /tmp/.mount_HeroicrTDmA8/resources/app.asar.unpacked/build/bin/linux/nile --version
(13:25:49) INFO:    [Connection]:       Connectivity: online
(13:25:49) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/user/Desktop/Heroic-2.14.1.AppImage.home/.config/heroic/gogdlConfig /tmp/.mount_HeroicrTDmA8/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/user/Desktop/Heroic-2.14.1.AppImage.home/.config/heroic/gog_store/auth.json auth
(13:25:49) INFO:    [Backend]:          User Not Found, removing it from Store
(13:25:49) ERROR:   [Gog]:              Unable to syncQueued playtime, userData not present
(13:25:49) INFO:    [Backend]:          
System Information:
CPU: 16x AMD Ryzen 7 5700X 8-Core Processor
Memory: 16.68 GB (used: 4.59 GB)
GPUs:
  GPU 0:
    Name: Advanced Micro Devices, Inc. [AMD/ATI] PULSE RX 7900 XTX
    IDs: D=744c V=1002 SD=471e SV=1da2
    Driver: amdgpu
OS: openSUSE Tumbleweed 6.8.8-1-default (linux)

The current system is not a Steam Deck
We are not running inside a Flatpak container

Software Versions:
  Heroic: 2.14.1 Flame Emperor Sabo
  Legendary: 0.20.34 Direct Intervention
  gogdl: 1.0.1
  Nile: 1.0.2 Jonathan Joestar

(13:25:49) INFO:    [Backend]:          Frontend Ready
(13:25:49) INFO:    [Backend]:          Checking for new Heroic Updates
(13:25:50) INFO:    [Backend]:          Checking for current version changelog
(13:25:50) INFO:    [Backend]:          AreWeAntiCheatYet data downloaded
(13:25:51) DEBUG:   [Backend]:          Unable to load Steam Libraries, libraryfolders.vdf not found
(13:25:51) INFO:    [Winetricks]:       Downloading Winetricks
(13:25:53) INFO:    [Backend]:          Launching vkcube (nRsszq8EWnA6Mp4r2rUYVS)
(13:25:53) INFO:    [Backend]:          Preventing display from sleep
(13:25:53) INFO:    [Backend]:          Preventing machine to sleep
(13:25:54) INFO:    [WineDownloader]:   Updating wine versions info
(13:25:54) INFO:    [WineDownloader]:   Fetching upstream information...
(13:25:54) INFO:    [Backend]:          launching native sideloaded game: /home/user/Desktop/vkcube.sh 
(13:25:54) INFO:    [Backend]:          Backend: HEROIC_APP_NAME=nRsszq8EWnA6Mp4r2rUYVS HEROIC_APP_RUNNER=sideload HEROIC_APP_SOURCE=sideload LD_PRELOAD= /home/user/Desktop/vkcube.sh
(13:25:54) DEBUG:   [Backend]:          Logging to file "/home/user/Desktop/Heroic-2.14.1.AppImage.home/.config/heroic/GamesConfig/nRsszq8EWnA6Mp4r2rUYVS-lastPlay.log"
(13:25:54) INFO:    [Backend]:          Stopping Power Saver Blocker
(13:25:54) INFO:    [Backend]:          Starting the Download Queue
(13:25:55) INFO:    [WineDownloader]:   wine versions updated
(13:25:58) INFO:    [Backend]:          Stopping Display Power Saver Blocker
(13:25:58) INFO:    [Frontend]:         Refreshing sideload Library
(13:25:58) WARNING: [Backend]:          refresh not implemented on Sideload Library Manager

Steps to reproduce

AppImage 2.8.0

  1. Create a script that calls vkcube.
#! /bin/bash

vkcube
  1. Add script as a Linux Executable
  2. In the newly created game settings, select "Enable Manghud"
  3. Launch game and mangohud will appear.

AppImage 2.14.1

  1. Create a script that calls vkcube.
#! /bin/bash

vkcube
  1. Add script as a Linux Executable
  2. In the newly created game settings, select "Enable Manghud"
  3. Launch game and mangohud will not appear.

Expected behavior

Mangohud appears if setting is enabled for application.

Screenshots

No response

Heroic Version

Latest Stable

System Information

openSUSE Tumbleweed
AppImage 2.8.0 & 2.14.1 (Not using flatpak)
32bit and 64bit mangohud packages installed

whereis mangohud
mangohud: /usr/bin/mangohud /usr/lib/mangohud /usr/lib64/mangohud /usr/share/man/man1/mangohud.1.gz

Additional information

Post 2.8.0, this issue occurs if the AppImage is not portable and a mangohud config file is placed in ~/.config/MangoHud/MangoHud.conf.

Post 2.8.0, this issue occurs if the AppImage is made portable by creating a directory with the same name as the AppImage plus .home and placing a mangohud config file in in ~/Heroic.AppImage.home/.config/MangoHud/MangoHud.conf.

@a931vwewi a931vwewi added the bug:unconfirmed Someone works on identifying the issue label May 4, 2024
@Etaash-mathamsetty
Copy link
Member

Etaash-mathamsetty commented May 17, 2024

#2841 has been reverted in 2.10. In fact, I just tested the app image and it works

@a931vwewi
Copy link
Author

Hi @Etaash-mathamsetty

I went back and did regression testing between Heroic 2.8.0 and 2.9.0. Commit 53b5bcb is what breaks mangohud on my end.

@Etaash-mathamsetty
Copy link
Member

ah I see it's broken only on native apps that are sideloaded

@Etaash-mathamsetty Etaash-mathamsetty added bug:confirmed Something isn't working. and removed bug:unconfirmed Someone works on identifying the issue labels May 18, 2024
@Etaash-mathamsetty Etaash-mathamsetty linked a pull request May 18, 2024 that will close this issue
4 tasks
@a931vwewi
Copy link
Author

I built #3767.

Enabling mangohud causes any application to fail starting. Disabling mangohud in heroic allows applications to run again.

Maybe it has something to do with the application path not being called correctly?

Looking at the logs for Heroic 2.8.0, I see at launch:
Backend: LD_PRELOAD= /usr/bin/mangohud --dlsym /home/user/Desktop/home/user/Desktop/vkcube.sh

Looking at the logs for the heroic with #3767, I see the LD_PRELOAD path looks different:
Backend: HEROIC_APP_NAME=3fJo3uDcKD76U6pF4rptys HEROIC_APP_RUNNER=sideload HEROIC_APP_SOURCE=sideload LD_PRELOAD= /usr/bin/mangohud --dlsym vkcube.sh

@Etaash-mathamsetty
Copy link
Member

I built #3767.

Enabling mangohud causes any application to fail starting. Disabling mangohud in heroic allows applications to run again.

Maybe it has something to do with the application path not being called correctly?

Looking at the logs for Heroic 2.8.0, I see at launch: Backend: LD_PRELOAD= /usr/bin/mangohud --dlsym /home/user/Desktop/home/user/Desktop/vkcube.sh

Looking at the logs for the heroic with #3767, I see the LD_PRELOAD path looks different: Backend: HEROIC_APP_NAME=3fJo3uDcKD76U6pF4rptys HEROIC_APP_RUNNER=sideload HEROIC_APP_SOURCE=sideload LD_PRELOAD= /usr/bin/mangohud --dlsym vkcube.sh

i see the issue, thanks for making it clear :)

@Etaash-mathamsetty
Copy link
Member

it has been fixed now, try again

@a931vwewi
Copy link
Author

Works on my end. Thank you for taking a look at this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug:confirmed Something isn't working.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants