BVengo / sound-controller

A fabric mod providing complete control over all sounds played in the game.
GNU Lesser General Public License v3.0
3 stars 2 forks source link

[Bug]: SoundController doesn't recover from malformed JSON #5

Closed Jack-Papel closed 1 year ago

Jack-Papel commented 1 year ago

Describe the Bug

I was editing the volume for zombified piglin sounds when my game crashed. I gather that for whatever reason incorrect JSON was saved to file. I can't restart minecraft because it keeps crashing on startup. It seems that SoundController decides to crash when it encounters malformed JSON, rather than attempting to recover or even just starting fresh.

Steps to Reproduce

Write malformed JSON to the file in question and try to start the game. As for the cause of the initial crash, I'm not sure it can be reliably reproduced. But, I was editing zombified piglin sounds. I also have very low disk space on my PC, which may have caused an IO error of some kind. This can probably be most easily reproduced by manually adding a temporary throw statement in the code

Expected Behavior

I expected the game to boot up fine on startup, and for my sound controller settings to have been wiped or recovered.

Screenshots

No response

Fabric Version

Loader 0.14.21, API 0.85.0

Mod Version

0.1.0

Log Output

---- Minecraft Crash Report ----
// Shall we play a game?

Time: 2023-08-06 23:57:27
Description: Initializing game

com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated string at line 181 column 22 path $.
    at com.google.gson.Gson.fromJson(Gson.java:1229)
    at com.google.gson.Gson.fromJson(Gson.java:1124)
    at com.google.gson.Gson.fromJson(Gson.java:1094)
    at com.bvengo.soundcontroller.config.SoundConfig.load(SoundConfig.java:49)
    at com.bvengo.soundcontroller.config.SoundConfig.<init>(SoundConfig.java:30)
    at com.bvengo.soundcontroller.config.SoundConfig.getInstance(SoundConfig.java:35)
    at net.minecraft.class_1140.<init>(class_1140.java:88)
    at net.minecraft.class_1144.<init>(class_1144.java:61)
    at net.minecraft.class_310.<init>(class_310.java:529)
    at net.minecraft.client.main.Main.main(Main.java:211)
    at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:468)
    at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
    at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
Caused by: com.google.gson.stream.MalformedJsonException: Unterminated string at line 181 column 22 path $.
    at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1657)
    at com.google.gson.stream.JsonReader.nextQuotedValue(JsonReader.java:1042)
    at com.google.gson.stream.JsonReader.nextString(JsonReader.java:824)
    at com.google.gson.internal.bind.TypeAdapters$15.read(TypeAdapters.java:421)
    at com.google.gson.internal.bind.TypeAdapters$15.read(TypeAdapters.java:409)
    at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)
    at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:185)
    at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:144)
    at com.google.gson.Gson.fromJson(Gson.java:1214)
    ... 12 more

A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Render thread
Stacktrace:
    at com.google.gson.Gson.fromJson(Gson.java:1229)
    at com.google.gson.Gson.fromJson(Gson.java:1124)
    at com.google.gson.Gson.fromJson(Gson.java:1094)
    at com.bvengo.soundcontroller.config.SoundConfig.load(SoundConfig.java:49)
    at com.bvengo.soundcontroller.config.SoundConfig.<init>(SoundConfig.java:30)
    at com.bvengo.soundcontroller.config.SoundConfig.getInstance(SoundConfig.java:35)
    at net.minecraft.class_1140.<init>(class_1140.java:88)
    at net.minecraft.class_1144.<init>(class_1144.java:61)
    at net.minecraft.class_310.<init>(class_310.java:529)

-- Initialization --
Details:
    Modules: 
        ADVAPI32.dll:Advanced Windows 32 Base API:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        COMCTL32.dll:User Experience Controls Library:6.10 (WinBuild.160101.0800):Microsoft Corporation
        CRYPT32.dll:Crypto API32:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        CRYPTBASE.dll:Base cryptographic API DLL:10.0.19041.546 (WinBuild.160101.0800):Microsoft Corporation
        CRYPTSP.dll:Cryptographic Service Provider API:10.0.19041.546 (WinBuild.160101.0800):Microsoft Corporation
        ColorAdapterClient.dll:Microsoft Color Adapter Client:10.0.19041.546 (WinBuild.160101.0800):Microsoft Corporation
        CoreMessaging.dll:Microsoft CoreMessaging Dll:10.0.19041.2193:Microsoft Corporation
        CoreUIComponents.dll:Microsoft Core UI Components Dll:10.0.19041.546:Microsoft Corporation
        DBGHELP.DLL:Windows Image Helper:10.0.19041.867 (WinBuild.160101.0800):Microsoft Corporation
        DEVOBJ.dll:Device Information Set DLL:10.0.19041.3155 (WinBuild.160101.0800):Microsoft Corporation
        DNSAPI.dll:DNS Client API DLL:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        GDI32.dll:GDI Client DLL:10.0.19041.2913 (WinBuild.160101.0800):Microsoft Corporation
        GLU32.dll:OpenGL Utility Library DLL:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        IMM32.DLL:Multi-User Windows IMM32 API Client DLL:10.0.19041.2673 (WinBuild.160101.0800):Microsoft Corporation
        IPHLPAPI.DLL:IP Helper API:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        KERNEL32.DLL:Windows NT BASE API Client DLL:10.0.19041.3155 (WinBuild.160101.0800):Microsoft Corporation
        KERNELBASE.dll:Windows NT BASE API Client DLL:10.0.19041.3155 (WinBuild.160101.0800):Microsoft Corporation
        MSCTF.dll:MSCTF Server DLL:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        MpOav.dll:IOfficeAntiVirus Module:4.18.23050.9 (18bf1f2590bbc7e0256a02153591e722bb971707):Microsoft Corporation
        NLAapi.dll:Network Location Awareness 2:10.0.19041.3031 (WinBuild.160101.0800):Microsoft Corporation
        NSI.dll:NSI User-mode interface DLL:10.0.19041.610 (WinBuild.160101.0800):Microsoft Corporation
        NTASN1.dll:Microsoft ASN.1 API:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        Ole32.dll:Microsoft OLE for Windows:10.0.19041.1320 (WinBuild.160101.0800):Microsoft Corporation
        OleAut32.dll:OLEAUT32.DLL:10.0.19041.3208 (WinBuild.160101.0800):Microsoft Corporation
        Oleacc.dll:Active Accessibility Core Component:7.2.19041.746 (WinBuild.160101.0800):Microsoft Corporation
        PROPSYS.dll:Microsoft Property System:7.0.19041.1708 (WinBuild.160101.0800):Microsoft Corporation
        PSAPI.DLL:Process Status Helper:10.0.19041.546 (WinBuild.160101.0800):Microsoft Corporation
        Pdh.dll:Windows Performance Data Helper DLL:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        RPCRT4.dll:Remote Procedure Call Runtime:10.0.19041.2788 (WinBuild.160101.0800):Microsoft Corporation
        SHCORE.dll:SHCORE:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        SHELL32.dll:Windows Shell Common Dll:10.0.19041.964 (WinBuild.160101.0800):Microsoft Corporation
        UMPDC.dll
        USER32.dll:Multi-User Windows USER API Client DLL:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        USERENV.dll:Userenv:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        VCRUNTIME140.dll:Microsoft® C Runtime Library:14.29.30139.0 built by: vcwrkspc:Microsoft Corporation
        VERSION.dll:Version Checking and File Installation Libraries:10.0.19041.546 (WinBuild.160101.0800):Microsoft Corporation
        WINHTTP.dll:Windows HTTP Services:10.0.19041.2075 (WinBuild.160101.0800):Microsoft Corporation
        WINMM.dll:MCI API DLL:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        WS2_32.dll:Windows Socket 2.0 32-Bit DLL:10.0.19041.1081 (WinBuild.160101.0800):Microsoft Corporation
        WSOCK32.dll:Windows Socket 32-Bit DLL:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        Wldp.dll:Windows Lockdown Policy:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        amsi.dll:Anti-Malware Scan Interface:10.0.19041.2075 (WinBuild.160101.0800):Microsoft Corporation
        apphelp.dll:Application Compatibility Client Library:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        awt.dll:OpenJDK Platform binary:17.0.3.0:Microsoft
        bcrypt.dll:Windows Cryptographic Primitives Library:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        bcryptPrimitives.dll:Windows Cryptographic Primitives Library:10.0.19041.2486 (WinBuild.160101.0800):Microsoft Corporation
        cfgmgr32.dll:Configuration Manager DLL:10.0.19041.3155 (WinBuild.160101.0800):Microsoft Corporation
        clbcatq.dll:COM+ Configuration Catalog:2001.12.10941.16384 (WinBuild.160101.0800):Microsoft Corporation
        combase.dll:Microsoft COM for Windows:10.0.19041.1320 (WinBuild.160101.0800):Microsoft Corporation
        dbgcore.DLL:Windows Core Debugging Helpers:10.0.19041.2788 (WinBuild.160101.0800):Microsoft Corporation
        dhcpcsvc.DLL:DHCP Client Service:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        dhcpcsvc6.DLL:DHCPv6 Client:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        dinput8.dll:Microsoft DirectInput:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        dwmapi.dll:Microsoft Desktop Window Manager API:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        dxgi.dll:DirectX Graphics Infrastructure:10.0.19041.2311 (WinBuild.160101.0800):Microsoft Corporation
        fwpuclnt.dll:FWP/IPsec User-Mode API:10.0.19041.2913 (WinBuild.160101.0800):Microsoft Corporation
        gdi32full.dll:GDI Client DLL:10.0.19041.2913 (WinBuild.160101.0800):Microsoft Corporation
        glfw.dll:GLFW 3.4.0 DLL:3.4.0:GLFW
        icm32.dll:Microsoft Color Management Module (CMM):10.0.19041.546 (WinBuild.160101.0800):Microsoft Corporation
        igc64.dll:Intel Graphics Shader Compiler for Intel(R) Graphics Accelerator:31.0.101.3616:Intel Corporation
        igdgmm64.dll:User Mode Driver for Intel(R) Graphics Technology:31.0.101.3616:Intel Corporation
        igdml64.dll:Metrics Library for Intel(R) Graphics Technology:31.0.101.3616:Intel Corporation
        igxelpicd64.dll:OpenGL(R) Driver for Intel(R) Graphics Accelerator:31.0.101.3616:Intel Corporation
        inputhost.dll:InputHost:10.0.19041.1741 (WinBuild.160101.0800):Microsoft Corporation
        java.dll:OpenJDK Platform binary:17.0.3.0:Microsoft
        javaw.exe:OpenJDK Platform binary:17.0.3.0:Microsoft
        jemalloc.dll
        jimage.dll:OpenJDK Platform binary:17.0.3.0:Microsoft
        jli.dll:OpenJDK Platform binary:17.0.3.0:Microsoft
        jna3259242094031373975.dll:JNA native library:6.1.4:Java(TM) Native Access (JNA)
        jsvml.dll:OpenJDK Platform binary:17.0.3.0:Microsoft
        jvm.dll:OpenJDK 64-Bit server VM:17.0.3.0:Microsoft
        kernel.appcore.dll:AppModel API Host:10.0.19041.546 (WinBuild.160101.0800):Microsoft Corporation
        lwjgl.dll
        lwjgl_opengl.dll
        lwjgl_stb.dll
        management.dll:OpenJDK Platform binary:17.0.3.0:Microsoft
        management_ext.dll:OpenJDK Platform binary:17.0.3.0:Microsoft
        mscms.dll:Microsoft Color Matching System DLL:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        msvcp140.dll:Microsoft® C Runtime Library:14.29.30139.0 built by: vcwrkspc:Microsoft Corporation
        msvcp_win.dll:Microsoft® C Runtime Library:10.0.19041.789 (WinBuild.160101.0800):Microsoft Corporation
        msvcrt.dll:Windows NT CRT DLL:7.0.19041.546 (WinBuild.160101.0800):Microsoft Corporation
        mswsock.dll:Microsoft Windows Sockets 2.0 Service Provider:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        napinsp.dll:E-mail Naming Shim Provider:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        ncrypt.dll:Windows NCrypt Router:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        net.dll:OpenJDK Platform binary:17.0.3.0:Microsoft
        nio.dll:OpenJDK Platform binary:17.0.3.0:Microsoft
        ntdll.dll:NT Layer DLL:10.0.19041.2788 (WinBuild.160101.0800):Microsoft Corporation
        ntmarta.dll:Windows NT MARTA provider:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        opengl32.dll:OpenGL Client DLL:10.0.19041.2193 (WinBuild.160101.0800):Microsoft Corporation
        perfos.dll:Windows System Performance Objects DLL:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        pnrpnsp.dll:PNRP Name Space Provider:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        powrprof.dll:Power Profile Helper DLL:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        profapi.dll:User Profile Basic API:10.0.19041.3155 (WinBuild.160101.0800):Microsoft Corporation
        rasadhlp.dll:Remote Access AutoDial Helper:10.0.19041.546 (WinBuild.160101.0800):Microsoft Corporation
        rsaenh.dll:Microsoft Enhanced Cryptographic Provider:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        sechost.dll:Host for SCM/SDDL/LSA Lookup APIs:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        shlwapi.dll:Shell Light-weight Utility Library:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        sunmscapi.dll:OpenJDK Platform binary:17.0.3.0:Microsoft
        textinputframework.dll:"TextInputFramework.DYNLINK":10.0.19041.3086 (WinBuild.160101.0800):Microsoft Corporation
        ucrtbase.dll:Microsoft® C Runtime Library:10.0.19041.789 (WinBuild.160101.0800):Microsoft Corporation
        uxtheme.dll:Microsoft UxTheme Library:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        vcruntime140_1.dll:Microsoft® C Runtime Library:14.29.30139.0 built by: vcwrkspc:Microsoft Corporation
        verify.dll:OpenJDK Platform binary:17.0.3.0:Microsoft
        win32u.dll:Win32u:10.0.19041.3208 (WinBuild.160101.0800):Microsoft Corporation
        windows.storage.dll:Microsoft WinRT Storage API:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        winrnr.dll:LDAP RnR Provider DLL:10.0.19041.546 (WinBuild.160101.0800):Microsoft Corporation
        wintypes.dll:Windows Base Types DLL:10.0.19041.1320 (WinBuild.160101.0800):Microsoft Corporation
        wshbth.dll:Windows Sockets Helper DLL:10.0.19041.546 (WinBuild.160101.0800):Microsoft Corporation
        wshunix.dll:AF_UNIX Winsock2 Helper DLL:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        xinput1_4.dll:Microsoft Common Controller API:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        zip.dll:OpenJDK Platform binary:17.0.3.0:Microsoft
Stacktrace:
    at net.minecraft.client.main.Main.main(Main.java:211)
    at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:468)
    at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
    at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)

-- System Details --
Details:
    Minecraft Version: 1.20.1
    Minecraft Version ID: 1.20.1
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 17.0.3, Microsoft
    Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft
    Memory: 306550216 bytes (292 MiB) / 872415232 bytes (832 MiB) up to 2147483648 bytes (2048 MiB)
    CPUs: 8
    Processor Vendor: GenuineIntel
    Processor Name: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
    Identifier: Intel64 Family 6 Model 140 Stepping 1
    Microarchitecture: Tiger Lake
    Frequency (GHz): 2.80
    Number of physical packages: 1
    Number of physical CPUs: 4
    Number of logical CPUs: 8
    Graphics card #0 name: Intel(R) Iris(R) Xe Graphics
    Graphics card #0 vendor: Intel Corporation (0x8086)
    Graphics card #0 VRAM (MB): 1024.00
    Graphics card #0 deviceId: 0x9a49
    Graphics card #0 versionInfo: DriverVersion=31.0.101.3616
    Memory slot #0 capacity (MB): 2048.00
    Memory slot #0 clockSpeed (GHz): 4.27
    Memory slot #0 type: LPDDR4
    Memory slot #1 capacity (MB): 2048.00
    Memory slot #1 clockSpeed (GHz): 4.27
    Memory slot #1 type: LPDDR4
    Memory slot #2 capacity (MB): 2048.00
    Memory slot #2 clockSpeed (GHz): 4.27
    Memory slot #2 type: LPDDR4
    Memory slot #3 capacity (MB): 2048.00
    Memory slot #3 clockSpeed (GHz): 4.27
    Memory slot #3 type: LPDDR4
    Memory slot #4 capacity (MB): 2048.00
    Memory slot #4 clockSpeed (GHz): 4.27
    Memory slot #4 type: LPDDR4
    Memory slot #5 capacity (MB): 2048.00
    Memory slot #5 clockSpeed (GHz): 4.27
    Memory slot #5 type: LPDDR4
    Memory slot #6 capacity (MB): 2048.00
    Memory slot #6 clockSpeed (GHz): 4.27
    Memory slot #6 type: LPDDR4
    Memory slot #7 capacity (MB): 2048.00
    Memory slot #7 clockSpeed (GHz): 4.27
    Memory slot #7 type: LPDDR4
    Virtual memory max (MB): 25325.07
    Virtual memory used (MB): 18303.09
    Swap memory total (MB): 9230.28
    Swap memory used (MB): 1567.75
    JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
    Fabric Mods: 
        architectury: Architectury 9.1.12
        baritone: Baritone 1.10.1
        betterpingdisplay: Better Ping Display 1.1.1
        brb: Better Recipe Book 1.8.0
        clickthrough: ClickThrough 1.20-fabric0.83.0-0.4.1
            crowdin-translate: CrowdinTranslate 1.4+1.19.3
            gbfabrictools: GBfabrictools 1.4+1.20
        cloth-config: Cloth Config v11 11.0.99
            cloth-basic-math: cloth-basic-math 0.6.1
        craftpresence: CraftPresence 2.2.1
        fabric-api: Fabric API 0.85.0+1.20.1
            fabric-api-base: Fabric API Base 0.4.29+b04edc7a77
            fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.6.34+4d8536c977
            fabric-biome-api-v1: Fabric Biome API (v1) 13.0.10+b3afc78b77
            fabric-block-api-v1: Fabric Block API (v1) 1.0.9+e022e5d177
            fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.39+b3afc78b77
            fabric-client-tags-api-v1: Fabric Client Tags 1.1.0+97bb207577
            fabric-command-api-v1: Fabric Command API (v1) 1.2.32+f71b366f77
            fabric-command-api-v2: Fabric Command API (v2) 2.2.11+b3afc78b77
            fabric-commands-v0: Fabric Commands (v0) 0.2.49+df3654b377
            fabric-containers-v0: Fabric Containers (v0) 0.1.61+df3654b377
            fabric-content-registries-v0: Fabric Content Registries (v0) 4.0.8+b3afc78b77
            fabric-convention-tags-v1: Fabric Convention Tags 1.5.3+b3afc78b77
            fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.2.18+aeb40ebe77
            fabric-data-generation-api-v1: Fabric Data Generation API (v1) 12.1.12+b3afc78b77
            fabric-dimensions-v1: Fabric Dimensions API (v1) 2.1.51+b3afc78b77
            fabric-entity-events-v1: Fabric Entity Events (v1) 1.5.21+b3afc78b77
            fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.6.0+b3afc78b77
            fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.61+df3654b377
            fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.38+b04edc7a77
            fabric-item-api-v1: Fabric Item API (v1) 2.1.26+b3afc78b77
            fabric-item-group-api-v1: Fabric Item Group API (v1) 4.0.8+40e50c4677
            fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.36+fb8d95da77
            fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.34+df3654b377
            fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 2.2.20+b3afc78b77
            fabric-loot-api-v2: Fabric Loot API (v2) 1.1.38+b3afc78b77
            fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.1.42+9e7660c677
            fabric-message-api-v1: Fabric Message API (v1) 5.1.6+b3afc78b77
            fabric-mining-level-api-v1: Fabric Mining Level API (v1) 2.1.48+b3afc78b77
            fabric-models-v0: Fabric Models (v0) 0.3.35+b3afc78b77
            fabric-networking-api-v1: Fabric Networking API (v1) 1.3.8+b3afc78b77
            fabric-networking-v0: Fabric Networking (v0) 0.3.48+df3654b377
            fabric-object-builder-api-v1: Fabric Object Builder API (v1) 11.1.0+6beca84877
            fabric-particles-v1: Fabric Particles (v1) 1.1.0+201a23a077
            fabric-recipe-api-v1: Fabric Recipe API (v1) 1.0.18+b3afc78b77
            fabric-registry-sync-v0: Fabric Registry Sync (v0) 2.2.6+b3afc78b77
            fabric-renderer-api-v1: Fabric Renderer API (v1) 3.1.0+c154966e77
            fabric-renderer-indigo: Fabric Renderer - Indigo 1.4.0+c154966e77
            fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 3.2.44+df3654b377
            fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.33+b3afc78b77
            fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 3.0.26+b3afc78b77
            fabric-rendering-v0: Fabric Rendering (v0) 1.1.47+df3654b377
            fabric-rendering-v1: Fabric Rendering (v1) 3.0.6+b3afc78b77
            fabric-resource-conditions-api-v1: Fabric Resource Conditions API (v1) 2.3.5+ea08f9d877
            fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.11.8+e3d6ed2577
            fabric-screen-api-v1: Fabric Screen API (v1) 2.0.6+b3afc78b77
            fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.3.27+b3afc78b77
            fabric-sound-api-v1: Fabric Sound API (v1) 1.0.12+b3afc78b77
            fabric-transfer-api-v1: Fabric Transfer API (v1) 3.2.3+43a3fedd77
            fabric-transitive-access-wideners-v1: Fabric Transitive Access Wideners (v1) 4.2.0+b3afc78b77
        fabric-language-kotlin: Fabric Language Kotlin 1.9.5+kotlin.1.8.22
            org_jetbrains_kotlin_kotlin-reflect: kotlin-reflect 1.8.22
            org_jetbrains_kotlin_kotlin-stdlib: kotlin-stdlib 1.8.22
            org_jetbrains_kotlin_kotlin-stdlib-jdk7: kotlin-stdlib-jdk7 1.8.22
            org_jetbrains_kotlin_kotlin-stdlib-jdk8: kotlin-stdlib-jdk8 1.8.22
            org_jetbrains_kotlinx_atomicfu-jvm: atomicfu-jvm 0.20.2
            org_jetbrains_kotlinx_kotlinx-coroutines-core-jvm: kotlinx-coroutines-core-jvm 1.7.1
            org_jetbrains_kotlinx_kotlinx-coroutines-jdk8: kotlinx-coroutines-jdk8 1.7.1
            org_jetbrains_kotlinx_kotlinx-datetime-jvm: kotlinx-datetime-jvm 0.4.0
            org_jetbrains_kotlinx_kotlinx-serialization-cbor-jvm: kotlinx-serialization-cbor-jvm 1.5.1
            org_jetbrains_kotlinx_kotlinx-serialization-core-jvm: kotlinx-serialization-core-jvm 1.5.1
            org_jetbrains_kotlinx_kotlinx-serialization-json-jvm: kotlinx-serialization-json-jvm 1.5.1
        fabricloader: Fabric Loader 0.14.21
        fastload: Fast Load 3.4.0
            conditional-mixin: conditional mixin 0.3.2
            fastload-119-0-1-2-compat: Fastload 1.19-0-1-2 Compatibility 3.4.0
            fastload-1193-compat: Fastload 1.19.3 Compatibility 3.4.0
            fastload-1194-compat: Fastload 1.19.4 Compat 3.4.0
            fastload_fapi_forward: Fastload Fabric-api Forwarding 1.0.2
        highlight: Highlight 2.0.1
            resourcefullib: Resourceful Lib 2.0.7
                com_teamresourceful_yabn: yabn 1.0.3
        indium: Indium 1.0.21+mc1.20.1
        java: OpenJDK 64-Bit Server VM 17
        lithium: Lithium 0.11.2
        minecraft: Minecraft 1.20.1
        modelfix: Model Gap Fix 1.14
        modmenu: Mod Menu 7.1.0
        recipe-book-is-pain: Recipe Book Is Pain 0.9.4-1.20
            dark-matter-base: Dark Matter Base 0.6.0-1.20
            dark-matter-enums: Dark Matter Enums 0.6.0-1.20
            dark-matter-minecraft: Dark Matter Minecraft 0.6.0-1.20
            dark-matter-recipe-book: Dark Matter Recipe Book 0.6.0-1.20
        replaymod: Replay Mod 1.20.1-2.6.13
        shulkerboxtooltip: Shulker Box Tooltip 4.0.4+1.20.1
        sodium: Sodium 0.4.10+build.27
        soundcontroller: Sound Controller 0.1.0
        yet_another_config_lib_v3: YetAnotherConfigLib 3.0.1+1.20
            com_twelvemonkeys_common_common-image: common-image 3.9.4
            com_twelvemonkeys_common_common-io: common-io 3.9.4
            com_twelvemonkeys_common_common-lang: common-lang 3.9.4
            com_twelvemonkeys_imageio_imageio-core: imageio-core 3.9.4
            com_twelvemonkeys_imageio_imageio-metadata: imageio-metadata 3.9.4
            com_twelvemonkeys_imageio_imageio-webp: imageio-webp 3.9.4
        zoomify: Zoomify 2.10.0
            com_akuleshov7_ktoml-core-jvm: ktoml-core-jvm 0.4.1
            com_github_llamalad7_mixinextras: MixinExtras 0.2.0-beta.8
            dev_isxander_settxi_settxi-core: settxi-core 2.10.6
            dev_isxander_settxi_settxi-kotlinx-serialization: settxi-kotlinx-serialization 2.10.6
    Launched Version: fabric-loader-0.14.21-1.20.1
    Backend library: LWJGL version 3.3.1 SNAPSHOT
    Backend API: Intel(R) Iris(R) Xe Graphics GL version 3.2.0 - Build 31.0.101.3616, Intel
    Window size: <not initialized>
    GL Caps: Using framebuffer using OpenGL 3.2
    GL debug messages: 
    Using VBOs: Yes
    Is Modded: Definitely; Client brand changed to 'fabric'
    Type: Client (map_client.txt)
    CPU: 8x 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz

Additional Context

I have low disk space on my PC. (~1GB)

Jack-Papel commented 1 year ago

For context, here is my current JSON file:

{
  "minecraft:ambient.basalt_deltas.additions": 1.0,
  "minecraft:ambient.basalt_deltas.loop": 1.0,
  "minecraft:ambient.basalt_deltas.mood": 1.0,
  "minecraft:ambient.cave": 1.0,
  "minecraft:ambient.crimson_forest.additions": 1.0,
  "minecraft:ambient.crimson_forest.loop": 1.0,
  "minecraft:ambient.crimson_forest.mood": 1.0,
  "minecraft:ambient.nether_wastes.additions": 1.0,
  "minecraft:ambient.nether_wastes.loop": 1.0,
  "minecraft:ambient.nether_wastes.mood": 1.0,
  "minecraft:ambient.soul_sand_valley.additions": 1.0,
  "minecraft:ambient.soul_sand_valley.loop": 1.0,
  "minecraft:ambient.soul_sand_valley.mood": 1.0,
  "minecraft:ambient.underwater.enter": 1.0,
  "minecraft:ambient.underwater.exit": 1.0,
  "minecraft:ambient.underwater.loop": 1.0,
  "minecraft:ambient.underwater.loop.additions": 1.0,
  "minecraft:ambient.underwater.loop.additions.rare": 1.0,
  "minecraft:ambient.underwater.loop.additions.ultra_rare": 1.0,
  "minecraft:ambient.warped_forest.additions": 1.0,
  "minecraft:ambient.warped_forest.loop": 1.0,
  "minecraft:ambient.warped_forest.mood": 1.0,
  "minecraft:block.amethyst_block.break": 1.0,
  "minecraft:block.amethyst_block.chime": 1.0,
  "minecraft:block.amethyst_block.fall": 1.0,
  "minecraft:block.amethyst_block.hit": 1.0,
  "minecraft:block.amethyst_block.place": 1.0,
  "minecraft:block.amethyst_block.resonate": 1.0,
  "minecraft:block.amethyst_block.step": 1.0,
  "minecraft:block.amethyst_cluster.break": 1.0,
  "minecraft:block.amethyst_cluster.fall": 1.0,
  "minecraft:block.amethyst_cluster.hit": 1.0,
  "minecraft:block.amethyst_cluster.place": 1.0,
  "minecraft:block.amethyst_cluster.step": 1.0,
  "minecraft:block.ancient_debris.break": 1.0,
  "minecraft:block.ancient_debris.fall": 1.0,
  "minecraft:block.ancient_debris.hit": 1.0,
  "minecraft:block.ancient_debris.place": 1.0,
  "minecraft:block.ancient_debris.step": 1.0,
  "minecraft:block.anvil.break": 1.0,
  "minecraft:block.anvil.destroy": 1.0,
  "minecraft:block.anvil.fall": 1.0,
  "minecraft:block.anvil.hit": 1.0,
  "minecraft:block.anvil.land": 1.0,
  "minecraft:block.anvil.place": 1.0,
  "minecraft:block.anvil.step": 1.0,
  "minecraft:block.anvil.use": 1.0,
  "minecraft:block.azalea.break": 1.0,
  "minecraft:block.azalea.fall": 1.0,
  "minecraft:block.azalea.hit": 1.0,
  "minecraft:block.azalea.place": 1.0,
  "minecraft:block.azalea.step": 1.0,
  "minecraft:block.azalea_leaves.break": 1.0,
  "minecraft:block.azalea_leaves.fall": 1.0,
  "minecraft:block.azalea_leaves.hit": 1.0,
  "minecraft:block.azalea_leaves.place": 1.0,
  "minecraft:block.azalea_leaves.step": 1.0,
  "minecraft:block.bamboo.break": 1.0,
  "minecraft:block.bamboo.fall": 1.0,
  "minecraft:block.bamboo.hit": 1.0,
  "minecraft:block.bamboo.place": 1.0,
  "minecraft:block.bamboo.step": 1.0,
  "minecraft:block.bamboo_sapling.break": 1.0,
  "minecraft:block.bamboo_sapling.hit": 1.0,
  "minecraft:block.bamboo_sapling.place": 1.0,
  "minecraft:block.bamboo_wood.break": 1.0,
  "minecraft:block.bamboo_wood.fall": 1.0,
  "minecraft:block.bamboo_wood.hit": 1.0,
  "minecraft:block.bamboo_wood.place": 1.0,
  "minecraft:block.bamboo_wood.step": 1.0,
  "minecraft:block.bamboo_wood_button.click_off": 1.0,
  "minecraft:block.bamboo_wood_button.click_on": 1.0,
  "minecraft:block.bamboo_wood_door.close": 1.0,
  "minecraft:block.bamboo_wood_door.open": 1.0,
  "minecraft:block.bamboo_wood_fence_gate.close": 1.0,
  "minecraft:block.bamboo_wood_fence_gate.open": 1.0,
  "minecraft:block.bamboo_wood_hanging_sign.break": 1.0,
  "minecraft:block.bamboo_wood_hanging_sign.fall": 1.0,
  "minecraft:block.bamboo_wood_hanging_sign.hit": 1.0,
  "minecraft:block.bamboo_wood_hanging_sign.place": 1.0,
  "minecraft:block.bamboo_wood_hanging_sign.step": 1.0,
  "minecraft:block.bamboo_wood_pressure_plate.click_off": 1.0,
  "minecraft:block.bamboo_wood_pressure_plate.click_on": 1.0,
  "minecraft:block.bamboo_wood_trapdoor.close": 1.0,
  "minecraft:block.bamboo_wood_trapdoor.open": 1.0,
  "minecraft:block.barrel.close": 1.0,
  "minecraft:block.barrel.open": 1.0,
  "minecraft:block.basalt.break": 1.0,
  "minecraft:block.basalt.fall": 1.0,
  "minecraft:block.basalt.hit": 1.0,
  "minecraft:block.basalt.place": 1.0,
  "minecraft:block.basalt.step": 1.0,
  "minecraft:block.beacon.activate": 1.0,
  "minecraft:block.beacon.ambient": 1.0,
  "minecraft:block.beacon.deactivate": 1.0,
  "minecraft:block.beacon.power_select": 1.0,
  "minecraft:block.beehive.drip": 1.0,
  "minecraft:block.beehive.enter": 1.0,
  "minecraft:block.beehive.exit": 1.0,
  "minecraft:block.beehive.shear": 1.0,
  "minecraft:block.beehive.work": 1.0,
  "minecraft:block.bell.resonate": 1.0,
  "minecraft:block.bell.use": 1.0,
  "minecraft:block.big_dripleaf.break": 1.0,
  "minecraft:block.big_dripleaf.fall": 1.0,
  "minecraft:block.big_dripleaf.hit": 1.0,
  "minecraft:block.big_dripleaf.place": 1.0,
  "minecraft:block.big_dripleaf.step": 1.0,
  "minecraft:block.big_dripleaf.tilt_down": 1.0,
  "minecraft:block.big_dripleaf.tilt_up": 1.0,
  "minecraft:block.blastfurnace.fire_crackle": 1.0,
  "minecraft:block.bone_block.break": 1.0,
  "minecraft:block.bone_block.fall": 1.0,
  "minecraft:block.bone_block.hit": 1.0,
  "minecraft:block.bone_block.place": 1.0,
  "minecraft:block.bone_block.step": 1.0,
  "minecraft:block.brewing_stand.brew": 1.0,
  "minecraft:block.bubble_column.bubble_pop": 1.0,
  "minecraft:block.bubble_column.upwards_ambient": 1.0,
  "minecraft:block.bubble_column.upwards_inside": 1.0,
  "minecraft:block.bubble_column.whirlpool_ambient": 1.0,
  "minecraft:block.bubble_column.whirlpool_inside": 1.0,
  "minecraft:block.cake.add_candle": 1.0,
  "minecraft:block.calcite.break": 1.0,
  "minecraft:block.calcite.fall": 1.0,
  "minecraft:block.calcite.hit": 1.0,
  "minecraft:block.calcite.place": 1.0,
  "minecraft:block.calcite.step": 1.0,
  "minecraft:block.campfire.crackle": 1.0,
  "minecraft:block.candle.ambient": 1.0,
  "minecraft:block.candle.break": 1.0,
  "minecraft:block.candle.extinguish": 1.0,
  "minecraft:block.candle.fall": 1.0,
  "minecraft:block.candle.hit": 1.0,
  "minecraft:block.candle.place": 1.0,
  "minecraft:block.candle.step": 1.0,
  "minecraft:block.cave_vines.break": 1.0,
  "minecraft:block.cave_vines.fall": 1.0,
  "minecraft:block.cave_vines.hit": 1.0,
  "minecraft:block.cave_vines.pick_berries": 1.0,
  "minecraft:block.cave_vines.place": 1.0,
  "minecraft:block.cave_vines.step": 1.0,
  "minecraft:block.chain.break": 1.0,
  "minecraft:block.chain.fall": 1.0,
  "minecraft:block.chain.hit": 1.0,
  "minecraft:block.chain.place": 1.0,
  "minecraft:block.chain.step": 1.0,
  "minecraft:block.cherry_leaves.break": 1.0,
  "minecraft:block.cherry_leaves.fall": 1.0,
  "minecraft:block.cherry_leaves.hit": 1.0,
  "minecraft:block.cherry_leaves.place": 1.0,
  "minecraft:block.cherry_leaves.step": 1.0,
  "minecraft:block.cherry_sapling.break": 1.0,
  "minecraft:block.cherry_sapling.fall": 1.0,
  "minecraft:block.cherry_sapling.hit": 1.0,
  "minecraft:block.cherry_sapling.place": 1.0,
  "minecraft:block.cherry_sapling.step": 1.0,
  "minecraft:block.cherry_wood.break": 1.0,
  "minecraft:block.cherry_wood.fall": 1.0,
  "minecraft:block.cherry_wood.hit": 1.0,
  "minecraft:block.cherry_wood.place": 1.0,
  "minecraft:block.cherry_wood.step": 1.0,
  "minecraft:block.cherry_wood_button.click_off": 1.0,
  "minecraft:block.cherry_wood_button.click_on": 1.0,
  "minecraft:block.cherry_wood_door.close": 1.0,
  "minecraft:block.cherry_wood_door.open": 1.0,
  "minecraft:block.cherry_wood_fence_gate.close": 1.0,
  "minecraft:block.cherry_wood_fence_gate.open": 1.0,
  "minecraft:block.cherry_wood_hanging_sign.break": 1.0,
  "minecraft:block.cherry_wood_hanging_sign.fall": 1.0,
  "minecraft:block.cherry_wood_hanging_sign.hit": 1.0,
  "minecraft:block.cherry_wood_hanging_sign.place": 1.0,
  "minecraft:block.cherry_wood_hanging_sign.step": 1.0,
  "minecraft:block.cherry_wood_pressure_plate.click_off": 1.0,
  "minecraft:block.cherry_wood_pressure_plate.click_on": 1.0,
  "minecraft:block.cherry_wood_trapdoor.close": 1.0,
  "minecraft:block.cherry_wood_trapdoor.open": 1.0,
  "minecraft:block.chest.close": 1.0,
  "minecraft:block.chest.locked": 1.0,
  "minecraft:block.ch
BVengo commented 1 year ago

Thanks for the bug report - I agree low disk space would certainly be causing the root issue, but I need to have better error handling implemented.

TODO: