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

No logs under X/XWayland #5676

Open
exalented opened this issue Oct 23, 2024 · 10 comments
Open

No logs under X/XWayland #5676

exalented opened this issue Oct 23, 2024 · 10 comments

Comments

@exalented
Copy link

exalented commented Oct 23, 2024

Bug description

Occasionally, the log window will reset, but not show any logs for any app until lutris is restarted.

How to Reproduce

This can be induced by:

  1. Launching lutris under X/Xwayland
  2. 'Configure' a game.
  3. Quickly launch the game.
  4. See the log window reset logs and show blank.

This issue does not occur when DISPLAY is unset and the app runs only in wayland. This happens with an EVGA GTX 1080 FTWv1 as well.

Expected behavior

The logs always show app logs.

Log output

Log output is no different.

System Information

lutris 0.5.17-7

Vulkan support: YES
Esync support: YES
Fsync support: YES
Wine installed: YES
Gamescope: YES
Mangohud: YES
Gamemode: NO
Steam: YES
In Flatpak: NO
[System]
OS: Arch Linux rolling n/a
Arch: x86_64
Kernel: 6.11.4-arch2-1
Desktop: sway
Display Server: wayland
[CPU]
Vendor: GenuineIntel
Model: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
Physical cores: 4
Logical cores: 8
[Memory]
RAM: 31.3 GB
Swap: 0.0 GB
[Graphics]
Vendor: Intel
OpenGL Renderer: Mesa Intel(R) Arc(tm) A750 Graphics (DG2)
OpenGL Version: 4.6 (Compatibility Profile) Mesa 24.2.5-arch1.1
OpenGL Core: 4.6 (Core Profile) Mesa 24.2.5-arch1.1
OpenGL ES: OpenGL ES 3.2 Mesa 24.2.5-arch1.1
Vulkan Version: 1.3.295
Vulkan Drivers: Intel(R) Arc(tm) A750 Graphics (DG2) (1.3.289)
@danieljohnson2
Copy link
Contributor

This is very odd, and I was not able to repro it; possibly I don't click fast enough.

If I may ask- does closing and re-opening the log window help? Or doing that, and then starting that game? Or maybe starting a different game (they have separate log buffers you see)?

@exalented
Copy link
Author

exalented commented Oct 23, 2024

very odd

Yes. This has been happening for quite some time (couple years actually). I haven't submitted an issue because it's quite hard to track what does/does not trigger it. Like I said, I have not observed this happening a single time, under Sway/XWayland with the vulkan backend when DISPLAY is unset.

closing and re-opening log window help?

No
I should mention that once this happens and you start a different game + open the log buffer for that game it happens for each buffer until lutris is restarted.

@danieljohnson2
Copy link
Contributor

This suggests it's not the log buffer that is broken- each game gets a new one. Perhaps the CSS?

If you can repro, perhaps you can provide a screen shot of the busted log window? Maybe there will be a clue.

@exalented
Copy link
Author

exalented commented Oct 27, 2024

image
This is what it looks like after the game has started and is running. Can't select any text in that window. AFAIK it's cleared and it's not invisible/can't highlight it.

@strycore
Copy link
Member

Xorg is no longer supported. Use Wayland.

@exalented
Copy link
Author

exalented commented Oct 28, 2024

Is there a configuration file where I can disable it instead of using the DISPLAY environment variable?

Note: Some other apps require X/Xwayland.

In order to run wine without X we need to edit the registry for every bottle. Hopefully this is fixed in wine to default to Wayland.

@danieljohnson2
Copy link
Contributor

Could you set DISPLAY in the Lutris game, runner or global options (that's in Preferences)? Would that get the games to work in XWayland when Lutris does not?

The environment variables defined there are set for the games Lutris starts, but not Lutris itself. Best of both worlds, if it works.

@exalented
Copy link
Author

exalented commented Oct 28, 2024

Could you set DISPLAY in the Lutris game, runner or global options (that's in Preferences)? Would that get the games to work in XWayland when Lutris does not?

The environment variables defined there are set for the games Lutris starts, but not Lutris itself. Best of both worlds, if it works.

I have tried this. It does not work because the log window does as described above. I run Sway/XWayland.

Goal:

  1. Run Lutris with Wayland only (perhaps a config file option?).
  2. Occasionally launch games under XWayland (with global options as mentioned.

@danieljohnson2
Copy link
Contributor

Hmm. Though the bug only occurs if you run Lutris under XWayland (or real X11); but apparently it also happens if you run only the a game under XWayland?

That is super strange, if I have understood you properly.

Does it also happen if you run Lutris and a game under Wayland only, but run some other unrelated XWayland program?

@exalented
Copy link
Author

exalented commented Oct 30, 2024

This is super strange

I should mention I used yofi up until this point. I have now switched to walker and haven't experienced this bug yet with it or when launching with kitty or xfce terminal.

This bug DOES NOT occur when Lutris is running on Wayland; though, wine needs an X DISPLAY temporarily to easily configure a bottle for wine Wayland only.

When DISPLAY is properly set for when Lutris launches under Sway/XWayland this bug seems to occur somewhat randomly with no logs I can detect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants