ITADN

Persistent Gson JsonParseException (Unescaped Control Characters) in Hydraulic Mod with Minecraft 1.21.8 + Full Fabric Ecosystem

#50Opentillablesumo 创建于 2025-08-18
T
tillablesumocommented
[crash-2025-08-18_00.59.07-server.txt](https://github.com/user-attachments/files/21835554/crash-2025-08-18_00.59.07-server.txt) The Hydraulic mod causes a server crash on startup in a Minecraft 1.21.8 Fabric environment, triggered by a com.google.gson.JsonParseException due to unescaped control characters (\u0000-\u001F) detected during strict Gson parsing. The error is consistently reported against the $.description path in JSON metadata, though no visible control characters have been identified. Full Environment Details: Minecraft Version: 1.21.8 Fabric Loader: 0.17.2 Fabric API: 0.131.0+1.21.8 Hydraulic Mod: 1.0.0-SNAPSHOT (cloned pre-3860958 commit, with Item API V2 branch integrated) Geyser-Fabric: 2.8.3-SNAPSHOT MixinExtras: 0.5.0 Java: 22 Troubleshooting Attempts (No Resolution): fabric.mod.json Inspection: Scrutinized with VS Code (control characters visible, regex [\u0000-\u001F] search) and JSONLint validation—no control characters or syntax errors found. Tested removing/clearing the description field, replacing Unicode escapes (e.g., \u003e\u003d → >=), and enforcing UTF-8 (no BOM) encoding. Environment & Cache Resets: Reinstalled Hydraulic, and dependencies. Cleared server cache/, config/fabric/, and rebuilt Hydraulic with updated dependencies—error persists. Crash Trigger: The exception occurs during HydraulicImpl.onServerStarting, when FabricUtil.resolveJiJ parses metadata (stack trace links to PackManager.initializeModLookups). Despite thorough checks, the strict Gson parser continues to flag hidden control characters, potentially in nested dependency metadata or encoding artifacts not visible via standard tools. Contact for Further Details: If additional context (e.g., full crash logs, modified fabric.mod.json files, or environment snapshots) is needed, feel free to reach out via: Email: [ultimocosine10@163.com] Seeking insight into Hydraulic’s JSON parsing logic with MixinExtras 0.5.0 and Fabric API 0.131.0, or guidance to isolate the specific JSON file/character causing the failure.
2 条评论