Closed Jack-Papel closed 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
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:
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
Additional Context
I have low disk space on my PC. (~1GB)