Back to mods
GLFW X11 Fix project artwork

Modrinth · Minecraft mod

GLFW X11 Fix

Fixes GLFW X11 crashes with high file descriptors on Linux using GLFW natives from LWJGL 3.3.3.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which GLFW X11 Fix release should I use?

Updated 2 months ago
Latest stable file 1.0.0
Game version 1.19, 1.19.1, 1.19.2
Loader Fabric

GLFW X11 Fix 1.0.0 targets 1.19, 1.19.1, 1.19.2 with Fabric. It must be installed on the client. Do not install it on the dedicated server. No extra mods listed for this file.

Where it goes

Is GLFW X11 Fix required on the client, server, or both?

It must be installed on the client. Do not install it on the dedicated server.

Client Required
Dedicated server Not supported
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This file is marked client-only.

What else does GLFW X11 Fix 1.0.0 need?

1.0.0. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add GLFW X11 Fix without breaking your instance.

Built for GLFW X11 Fix 1.0.0. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.0.0. It targets 1.19, 1.19.1, 1.19.2 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    It must be installed on the client. Do not install it on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.0.0. It opens that exact file at the source.

About this project

What does GLFW X11 Fix add?

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.

Project description from Modrinth.

Pick your setup

GLFW X11 Fix by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

7 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

GLFW X11 Fix versions and loaders

1 of 1 releases match

Looking for an older file? The official Modrinth project page is in Resources.