moehreag / wayland-fixes

Mod for no-compromises wayland compatibility on modern versions
GNU Lesser General Public License v2.1
10 stars 0 forks source link

Game window disappears when connecting to server #1

Open SzczurekYT opened 4 months ago

SzczurekYT commented 4 months ago

Hello Thanks for making this mod, I really needed a good wayland solution.

Unfortunately there is one issue that has been haunting me for long time. When you connect to server very often my game window just disappears. The process keeps running, but there is no windows so you need to kill it, and start the game again.

It's not specifically related to this mod, as I had this when using other wayland workarounds, but still I'm reporting it as you may have some ideas on how to fix this, to make the mod and wayland experience even better.

My os

                                               szczurek@kot 
    ⠀⠀⢀⣤⣴⣶⣶⣶⣦⣤⡀⠀⣀⣠⣤⣴⣶⣶⣶⣶⣶⣶⣶⣶⣤⣤⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀   ------------ 
    ⠀⣰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣤⡀⠀⠀⠀⠀⠀⠀⠀⠀   OS: Nobara Linux 39 (KDE Plasma) x86_64 
    ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣄⠀⠀⠀⠀⠀⠀   Host: MS-7C37 2.0 
    ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣄⠀⠀⠀⠀   Kernel: 6.7.4-200.fsync.fc39.x86_64 
    ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧⠀⠀⠀   Uptime: 1 hour, 21 mins 
    ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⠋⠉⠁⠀⠀⠉⠉⠛⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧⠀⠀   Packages: 4174 (rpm), 55 (flatpak) 
    ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⠁⠀⠀⠀⢀⣀⣀⡀⠀⠀⠀⠈⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀   Shell: zsh 5.9 
    ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡏⠀⠀⠀⢠⣾⣿⣿⣿⣿⣷⡄⠀⠀⠀⠻⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀   Resolution: 2560x1440 
    ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠁⠀⠀⠀⣿⣿⣿⣿⣿⣿⣿⡇⠀⠀⠀⠀⠀⣀⣀⣬⣽⣿⣿⣿⣿⣿⣿⠀   DE: Plasma 5.27.10 
    ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⠀⠀⠀⠈⠻⢿⣿⣿⡿⠟⠁⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀   WM: kwin 
    ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀   Theme: [Plasma], Breeze [GTK2/3] 
    ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣤⣤⣄⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀   Icons: breeze-dark [Plasma], breeze-dark [GTK2/3] 
    ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣄⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀   Terminal: konsole 
    ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣇⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀   Terminal Font: MesloLGL Nerd Font Mono 14 
    ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠟⠛⠉⠉⠛⠛⢿⣿⣿⠀⠀⠀⠀⠀⠸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠀   CPU: AMD Ryzen 7 3700X (16) @ 3.600GHz 
    ⠀⠘⢿⣿⣿⣿⣿⣿⣿⣿⡿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠈⢿⠀⠀⠀⠀⠀⠀⠙⢿⣿⣿⣿⣿⣿⣿⣿⠟⠁⠀   GPU: AMD ATI Radeon RX 5600 OEM/5600 XT / 5700/5700 XT 
    ⠀⠀⠀⠈⠙⠛⠛⠛⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠛⠛⠛⠛⠉⠁⠀⠀⠀   Memory: 13411MiB / 15901MiB 
Androser420 commented 4 months ago

nobara user here too, im having the same issue except it sometimes happens to me on instance startup (im using prismlauncher)

moehreag commented 4 months ago

Unfortunately I have absolutely no idea how this could happen as I'm also unable to reproduce the issue. Should I or anyone else find out more details I'm more than willing to fix it if possible though.

Androser420 commented 4 months ago

just tried another distro, in this case endeavouros, and i get the same error except this time i managed to find something with journal, not sure if this might help

rtkit-daemon[827]: Successfully made thread 48173 of process 47951 owned by '1000' RT at priority 20.
rtkit-daemon[827]: Supervising 11 threads of 8 processes of 1 users.
kwin_wayland_wrapper[913]: error in client communication (pid 47951)
plasmashell[45189]:    693.949 D | [launcher.task.net.metacache.http]: Saving metacache with 20 entries
rtkit-daemon[827]: Supervising 11 threads of 8 processes of 1 users.

seems to be an issue with kwin?

Androser420 commented 4 months ago

I was able to reproduce the issue by sliding my cursor over the game on instance startup without clicking anything

https://github.com/moehreag/wayland-fixes/assets/72580260/2046d990-0b4e-4849-bb8b-caea9e9de736

cant confirm this would work for others but it currently does for me

moehreag commented 4 months ago

Could you also post the log of a run with that happening? I would call the probability of it being a kwin issue relatively small as it would then also happen for us (running plasma 6 on arch linux).

Androser420 commented 4 months ago

Sure thing, here: https://mclo.gs/4NuyYrr

SzczurekYT commented 3 months ago

I can confirm that I can too reproduce the error by moving the mouse when connecting to server. I also get the line in the log. kwin_wayland_wrapper[913]: error in client communication (pid 47951) I wonder if it's possible to enable a more verbose logging in whatever the kwin_wayland_wrapper thing is.

SzczurekYT commented 3 months ago

I tried enabling debug logging with export QT_LOGGING_RULES="kwin_*.debug=true" but it didn't provide any useful additional data unfortunately.

arturamiryan commented 3 months ago

Same issue on sway. So, probably not the kwin only issue