Mineuniverse
Mods
GLFW X11 Fix

GLFW X11 Fix

MOD
Fixes GLFW X11 crashes with high file descriptors on Linux using GLFW natives from LWJGL 3.3.3.
by KostromDan
Download Claim this project
229,084 downloads
0 likes
0 followers
Updated Oct 14, 2026
0 hypes
Follow0
Bug Fixes
Advertisement Remove ads with Premium →

Fixes GLFW/X11 crashes in Minecraft 1.19–1.20.1 modpacks on Linux x86_64 and ARM64.

Some modpacks open enough files for the X11 connection's file descriptor to reach 1024 or higher. Older GLFW versions use select()/FD_SET, which cannot handle these descriptor numbers and can crash the game.

Fabric Loader opens 2 file descriptors for each mod. Some mods also open additional file descriptors. So if the displayed mod count (not the number of JAR files) exceeds around 450, you most likely need this mod on the affected Minecraft versions.

This mod bundles GLFW natives from LWJGL 3.3.3 containing the upstream fix discussed in GLFW PR #2024. It replaces select() with poll() for X11 event waiting, fixing the crash without reducing the number of open files.

Compatibility issues are not expected: adding the mod serves the same purpose as pointing LWJGL at the updated GLFW library through a JVM argument such as -Dorg.lwjgl.glfw.libname=.... It does not modify Minecraft's Java code or replace the LWJGL Java bindings.

The mod includes libglfw.so for Linux x86_64 and ARM64. Windows and macOS continue using their normal native libraries, so adding the mod to a shared modpack is not expected to affect the game on those platforms.

glfw-x11-fix-1.0.0.jar
MC Client, 1.19.3, 1.19.4, Fabric, 1.20.1, 1.20, 1.19.1, 1.19.2, 1.19
Release 2026-09-07 Get

More from KostromDan

Advertisement Remove ads with Premium →

You Might Also Like