Open lwb-2021 opened 4 months ago
I've searched for some solutions on the Internet. I think patching this function may be helpful
void _glfwGetWindowPosWayland(_GLFWwindow* window, int* xpos, int* ypos);
java.lang.IllegalStateException: GLFW error before init: [0x1000C]Wayland: The platform does not provide the window position
i also got the same problem. is there an update?
I solved the problem, I just had to change the launcher from Multimc to Prism Launcher
Using Prism Launcher under Flatpak with NVIDIA, I've gotten the same "The platform does not provide the window position" error. Game version 1.20.1, using ForgeML. Modpack being ATM9 to the skys. Obviously using Wayland.
I've followed this workaround and rebuilt GLFW using these parameters to ensure Wayland-only. Launching with the native GLFW path set to /path/to/rebuilt/glfw/libglfw.so
allows the game to work however I'm experiencing severe graphical issues causing the window to be slightly transparent(?) and go white. This could potentially be due to installed mods but I'm not sure.
Following an NVIDIA update since I forgot to update before testing, I've attempted to run the game without the rebuilt GLFW and the same error occurs. Running the game with the rebuilt GLFW didn't work due to a different error related to a lack of OpenGL context, likely because I reused the same minecraft install via symlink. At this point I've kinda given up.
As much as I'd rather use Flatpak, I installed prismlauncher
from the AUR. Attempting to run the game again this time without using the rebuilt GLFW did not crash nor were there any graphical issues.
I am under the assumption that the issue could be related to the Flatpak permission settings or other faults related to the Flatpak version.
https://github.com/neoforged/NeoForge/issues/657#issuecomment-2015258601 This can solve the problem.
This error occurpted when I tried to play ATM9 on wayland, I do all things the README.MD described, but they did not work