GTNewHorizons / GT-New-Horizons-Modpack

A big progressive questing modpack for Minecraft 1.7.10 balanced around the mod GregTech.
https://www.gtnewhorizons.com/
Other
1.02k stars 309 forks source link

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

Open kkflto opened 1 month ago

kkflto commented 1 month ago

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

kkflto commented 1 month ago

log: https://mclo.gs/NGSuLRL

boubou19 commented 1 month ago

what happens if you use java 8 instead?

boubou19 commented 1 month ago

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

kkflto commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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

https://github.com/user-attachments/assets/ff920ecf-69a9-47a9-bf99-c1c0c13645a6

kkflto commented 1 month ago

@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.

https://github.com/user-attachments/assets/63c04317-483e-4fb4-a51f-538f53dd67a9

boubou19 commented 1 month ago

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