Closed DoomPenguin9 closed 1 year ago
Try setting DXVK_FILTER_DEVICE_NAME=7900
DXVK_FILTER_DEVICE_NAME=7900
did not help. Also, RE4 remake is a DX12 game, how is a DXVK variable applicable here?
I believe it has to do with dxgi.
I cannot reproduce as mangohud gamescope -f -h 1440 -- %command%
runs fine on my 7900XTX on arch.
Do you have an iGPU?
I believe it has to do with dxgi.
I cannot reproduce as
mangohud gamescope -f -h 1440 -- %command%
runs fine on my 7900XTX on arch.Do you have an iGPU?
I do not have an iGPU.
Do you have multiple drivers installed? e.g mesa and amdgpu-pro for example?
Do you have multiple drivers installed? e.g mesa and amdgpu-pro for example?
I do have AMDGPU-PRO and Mesa, but I have Mesa explicitly set as my default.
I only have the Vulkan component of AMDGPU-PRO installed, RADV is explicitly set as my default.
Does removing amdgpu-pro help?
It does not help.
MangoApp works fine.
You don't want to attach mangohud to gamescope, but the to the game itself
You don't want to attach mangohud to gamescope, but the to the game itself
How would I do that? Is it something like
gamescope -f -h 1440 -- bash -c " mangohud gamemoderun %command%"
If so, I just tried that, and it results in the same crash.
I experience the same crash on a 7900XT also inside gamescope.
I think it should be like this
gamescope -h 1440 -f -- mangohud %command%
maybe try building gamescope from git
You maybe need to "fake" enable vkBasalt: ENABLE_VKBASALT=1 gamescope...
Can reproduce the problem.
There are other game have this problem too.
Tested
With both game that crash,
running mangohud both inside or outside gamescope produce a crash.
But only using mangohud
script cause crashes. So may be LD_PRELOAD
is the problem?
there are also a error message in stderr
\re4.exe: ../mangohud/subprojects/imgui-1.81/imgui.cpp:7056: void ImGui::ErrorCheckNewFrameSanityChecks(): Assertion `g.IO.Fonts->Fonts[0]->IsLoaded() && "Font Atlas not built. Did you call io.Fonts->GetTexDataAsRGBA32() / GetTexDataAsAlpha8()?"' failed.
@Billli11 Are you saying it works fine with gamescope, but using mangohud
without gamescope crashes?
@gort818
No, if running both mangohud and gamescope the game will crash. If running only gamescope or mangohud the game wont crash.
If using environment variable MANGOHUD=1
. Both with or without gamescope the game won't crash
-mangohud gamescope -- %command%
--> crash
-gamescope -- mangohud %command%
--> crash
-mangohud %command%
--> didn't crash
-gamescope -- %command%
--> didn't crash
-MANGOHUD=1 gamescope -- %command%
--> didn't crash
-gamescope -- env MANGOHUD=1 %command%
--> didn't crash
-MANGOHUD=1 %command%
--> didn't crash
-gamescope -- sh -c "mangoapp & %command%"
--> didn't crash
gamescope -- sh -c "mangoapp & %command%"
--> didn't crash
This is the correct way to use mangohud with gamescope. Resolving the other crashes would just be to disable mangohud in those instances. In other words it's out of scope to use any other method and as such not a bug
Describe the bug If I launch the Resident Evil 4 Remake with gamescope and MangoHUD, the game crashes. MangoHUD works fine as long as the game is not launched with gamescope.
List relevant hardware/software information
To Reproduce Steps to reproduce the behavior:
mangohud gamescope -f -h 1440 -- %command%
Expected behavior The game runs with MangoHUD showing in the top left corner.