GLFW X11 Fix
Fixes GLFW X11 crashes with high file descriptors on Linux using GLFW natives from LWJGL 3.3.3.
No ratings yet
Be the first to rate it.
Community listing page
Community listing page, reviews may not be monitored by the author.
Community voices
Reviews
Log in to review this mod
Reviews are written by ModDex members. Log in and you'll come right back to the review form.
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
Runs entirely on the client. Works on vanilla servers.
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
Description
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.
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.
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
Stats
- Downloads
-
<1,000
<1,000
<1,000
- Used in
- 5 modpacks
- Followers
- 0
- In stacks
- 0
- Created
-
- Last synced
-
Nov 20, 2026 1:00 AM UTC
New file updates sync automatically.
When ModDex last fully re-synced this project from CurseForge or Modrinth. A new file release triggers a resync usually within minutes, and every project is also re-synced on a schedule. Edits that don't ship a file, such as a new description or screenshots, are checked every few hours and can appear before the above date changes.
How syncing works
External Links
Stats
- Downloads
-
<1,000
<1,000
<1,000
- Used in
- 5 modpacks
- Followers
- 0
- In stacks
- 0
- Created
-
- Last synced
-
Nov 20, 2026 1:00 AM UTC
New file updates sync automatically.
When ModDex last fully re-synced this project from CurseForge or Modrinth. A new file release triggers a resync usually within minutes, and every project is also re-synced on a schedule. Edits that don't ship a file, such as a new description or screenshots, are checked every few hours and can appear before the above date changes.
How syncing works