All Mods Resource Packs Data Packs Shaders Modpacks Plugins
GLFW X11 Fix

GLFW X11 Fix

by KostromDan • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

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.

How to Install GLFW X11 Fix (Mod)

GLFW X11 Fix by KostromDan is verified for Fabric across Minecraft versions 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1 (latest release: 1.0.0, file size: 294 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1) and platform (Fabric).
  2. Make sure you have the compatible loader or environment installed for Fabric.
  3. Move the downloaded GLFW X11 Fix file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.20.x 1.19.x
Fabric
2mo ago 1
GLFW X11 Fix Icon
Download GLFW X11 Fix
Select game version
Select platform