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

[LINUX] [WAYLAND] Game freezes forever if not using Xwayland #17421

Open
3 tasks done
kkflto opened this issue Sep 22, 2024 · 9 comments
Open
3 tasks done

[LINUX] [WAYLAND] Game freezes forever if not using Xwayland #17421

kkflto opened this issue Sep 22, 2024 · 9 comments

Comments

@kkflto
Copy link

kkflto commented Sep 22, 2024

Your GTNH Discord Username

kkflt

Your Pack Version

2.6.1 2.7.0-beta1

Your Server

SP

Java Version

Java 21

Type of Server

None

Your Expectation

Game starts normally even without xwayland

The Reality

Minecraft freezes in the loading screen

Your Proposal

Be able to run without Xwayland

Final Checklist

  • I have searched this issue tracker and there is nothing similar already. Posting on a closed issue saying the bug still exists will prompt us to investigate and reopen it once we confirm your report.
  • I can reproduce this problem consistently by follow the exact steps I described above, or this does not need reproducing, e.g. recipe loophole.
  • I have asked other people and they confirm they also have this problem by follow the exact steps I described above, or this does not need reproducing, e.g. recipe loophole.
@kkflto kkflto added Status: Triage Issue awaiting triage. Remove once this issue is processed Bug: Minor labels Sep 22, 2024
@kkflto
Copy link
Author

kkflto commented Sep 22, 2024

log: https://mclo.gs/NGSuLRL

@boubou19
Copy link
Member

what happens if you use java 8 instead?

@boubou19
Copy link
Member

also indicate your pack version, it really helps for bug hunting

@kkflto
Copy link
Author

kkflto commented Sep 22, 2024

Using java 8 makes the game crash instantly, it doesnt matter if I use Xwayland or not . Log: https://mclo.gs/CrCz53w (without Xwayland), Log2: https://mclo.gs/B6Xc3T5 (with Xwayland) version is 2.7.0-beta-1

@chochem
Copy link
Member

chochem commented Sep 22, 2024

Caused by: java.awt.HeadlessException: No X11 DISPLAY variable was set, or no headful library support was found but this program performed an operation which requires it

if I had to guess I would say issue with display drivers

@kkflto kkflto changed the title [LINUX] [WAYLAND] Game freezes forever at 83% if not using Xwayland [LINUX] [WAYLAND] Game freezes forever if not using Xwayland Sep 22, 2024
@kkflto
Copy link
Author

kkflto commented Sep 22, 2024

Vanilla 1.7.10 works under pure Wayland with lwjgl3ify, +unimixins-all and java 21

screenrecord.mp4

@kkflto
Copy link
Author

kkflto commented Sep 23, 2024

@boubou19 I've disabled the Opis Mod (and also aroma backup) that seemed to fix the loading screen issue. So there is something wrong with that mod, however, I can't still play, generating a new world crashes the game (or rather makes it disappear, it still shows as running). Update: upon entering the same world again, it worked, well for some time at least. And this time also suddenly disappears but it is still running in background.

screenrecord.mp4

@boubou19
Copy link
Member

opis has code to generate a side window when you run /opis command. So it somewhat makes sense to mess a bit with the window manager, but other than this... no clue

@chochem chochem added Platform: Linux Mod: Opis and removed Status: Triage Issue awaiting triage. Remove once this issue is processed labels Nov 7, 2024
@chochem
Copy link
Member

chochem commented Dec 12, 2024

apparently, java swing and wayland are known to not really work together well. So this is an issue well outside of GTNH. Unless someone wants to rewrite opis to not use swing.

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