flightlessmango / MangoHud

A Vulkan and OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more. Discord: https://discordapp.com/invite/Gj5YmBb
MIT License
6.28k stars 272 forks source link

Latest mangohud crashes with Wine Wayland #1258

Closed shmerl closed 2 weeks ago

shmerl commented 5 months ago

Trying to enable HUD for Wine Wayland (vkd3d-proton game run for Cyberpunk 2077) crashes like this:

0228:err:seh:call_seh_handlers invalid frame 000000010306C1D0 (00007FBA24202000-00007FBA24400000)
0228:err:seh:NtRaiseException Exception frame is not in stack limits => unable to dispatch exception.

I don't really see much of other errors.

gort818 commented 5 months ago

Is this with a specific application or anything running wine wayland? I tested a few days ago without issue.

shmerl commented 5 months ago

Cyberpunk 2077 running with Wine Wayland (+ vkd3d-proton + esync)

gort818 commented 5 months ago

Just tested Cyberpunk 2077 seems to work fine for me with a wine build from yesterday and latest mangohud

shmerl commented 5 months ago

Weird, I don't see code changing commits past mine.

Are you sure you are running Wine in Wayland mode? It works fine in XWayland mode just for the reference.

Also, what's your DE? May be the crash is KDE specific?

gort818 commented 5 months ago

Kde here Screenshot_20240311_175339

shmerl commented 5 months ago

Interesting. May be some weird combination of distro libs then? I'll try rebuilding things just in case. I'm doing it on Debian testing.

May be building mangohud with debug can shed some light.

shmerl commented 5 months ago

Oh, forgot to ask, Plasma 5 or Plasma 6? They are pretty far apart as Wayland compositors so not comparable for bugs. It's Plasma 5.27.10 for me still.

gort818 commented 5 months ago

Plasma 6 here

shmerl commented 5 months ago

That could contribute to difference. Trying to build with debug now and see what happens.

shmerl commented 5 months ago

Hmm, with debug build of mangohud it's not crashing, but it's sitting with black window doing nothing.

shmerl commented 5 months ago

Attaching with gdb to it - 81 threads there... 😬 I can't really make much sense from it. No symbols too (I probably need to build Wine + vkd3d-proton with debug too for it).

May be I can wait until I switch to Plasma 6 to see if this still happens. But if anyone wants to to dig into it with Plasma 5 - feel free.

gort818 commented 3 months ago

Can you still reproduce this issue? Have you switched to Plasma 6 yet?

shmerl commented 3 months ago

Not yes. Waiting for Debian maintainers to package it. There was a humongous 64-bit time_t transition which probably slowed things down a bit, but they are working on packaging needed dependencies. So hopefully it won't be too long.

It's still broken with Plasma 5 (I tested it recently). It's not crashing anymore though, just gets stuck with an empty window.

shmerl commented 3 months ago

I'll update the bug once I get a chance to confirm that it's working with Plasma 6 or it's still broken.

shmerl commented 3 months ago

Also for the reference, it appears to be Wine path related issue, since it's working fine for example with vkcube-wayland.

Rrauros commented 2 months ago

Latest release also introduced this issue on my end. Both Gnome and Kde affected. I'm using bottles for my games. Could it be related to bottles or flatpak? Using xwayland fixes the issue.

shmerl commented 2 months ago

I don't use flatpak, so that shouldn't be the main reason.

shmerl commented 2 weeks ago

Just got to finally install Plasma 6.1.3 in Debian testing (pulling from experimental there).

The issue is gone for me with Mangohud 0.7.2 but note that it's broken with 0.7.1 if anyone is still using that one. I think we can close it.

gort818 commented 2 weeks ago

Good to know thank you!