
[Fabric 1.20.2] [Sonance 0.3.0] Crash when throwing items
JuceInUse opened this issue · 4 comments
This crash is extremely hard to pin down at it only happens occasionally, but there is a rare crash when using Sonance (I've noticed it in all versions from 0.1.0 to 0.3.0) and throwing an item that can cause your game to crash. Not sure what could possibly be causing it, here's a log and video of the bug
https://github.com/IMB11/Sonance/assets/85078618/4ee796d3-7a85-4dff-acb6-6edf62a0c824
[16:46:08] [Render thread/ERROR]: Unreported exception thrown!
java.util.ConcurrentModificationException: null
at java.util.HashMap$HashIterator.nextNode(HashMap.java:1597) ~[?:?]
at java.util.HashMap$EntryIterator.next(HashMap.java:1630) ~[?:?]
at java.util.HashMap$EntryIterator.next(HashMap.java:1628) ~[?:?]
at net.minecraft.class_1140.method_4857(class_1140.java:279) ~[client-intermediary.jar:?]
at net.minecraft.class_1140.method_20185(class_1140.java:241) ~[client-intermediary.jar:?]
at net.minecraft.class_1144.method_18670(class_1144.java:272) ~[client-intermediary.jar:?]
at net.minecraft.class_310.method_1574(class_310.java:1961) ~[client-intermediary.jar:?]
at net.minecraft.class_310.method_1523(class_310.java:1237) ~[client-intermediary.jar:?]
at net.minecraft.class_310.method_1514(class_310.java:856) ~[client-intermediary.jar:?]
at net.minecraft.client.main.Main.main(Main.java:253) ~[fabric-loader-0.14.24-1.20.2.jar:?]
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470) ~[fabric-loader-0.14.24.jar:?]
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) ~[fabric-loader-0.14.24.jar:?]
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) ~[fabric-loader-0.14.24.jar:?]
[16:46:08] [Server thread/INFO]: Stopping server
[16:46:08] [Server thread/INFO]: Saving players
[16:46:08] [Server thread/INFO]: Saving worlds
[16:46:08] [Server thread/INFO]: Saving chunks for level 'ServerLevel[Redstone]'/minecraft:overworld
[16:46:08] [Server thread/INFO]: Saving chunks for level 'ServerLevel[Redstone]'/minecraft:the_end
[16:46:08] [Server thread/INFO]: Saving chunks for level 'ServerLevel[Redstone]'/minecraft:the_nether
[16:46:08] [Server thread/INFO]: ThreadedAnvilChunkStorage (Redstone): All chunks are saved
[16:46:08] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
[16:46:08] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
[16:46:08] [Server thread/INFO]: ThreadedAnvilChunkStorage: All dimensions are saved
It seems the dynamic sound map is being called too often, maybe I need to cache the result for spam dropping items.