Reading the logFabric Crash: NumberFormatException: For input string: "4 "
What the log looks like
NumberFormatException: For input string: "4 "
IllegalArgumentException: can't parse argument number: 4
net\.fabricmc\.loader\.impl\.util\.Localization\.format\(Localization\.java:\d+\)\s+.*ResultAnalyzer\.addErrorToList
How to fix it
- Open `.minecraft/logs/latest.log` in a text editor and find the `[main/WARN]: Mod resolution failed` section right above `Uncaught exception in thread "main"`.
- Read the `Immediate reason:` and `Reason:` lines to see which mods conflict (`NEG_HARD_DEP ... breaks ...`) or are for the wrong Minecraft version (`HARD_DEP ... depends minecraft`).
- Remove or update the conflicting mods listed in that line—for example, remove OptiFabric if you are using Sodium/Iris, or update Iris and MaLiLib so their versions match.
- Update Fabric Loader to the latest version in your launcher settings so future mod incompatibility screens display properly without crashing on your system language.
| Loaders | Fabric, Quilt |
|---|
| Severity | Stops the game |
|---|
| Category | Reading the log |
|---|
Check your own log