CodinGlitch / SimpleRadio

This mod is a plugin of Simple Voice Chat which adds radio communication over frequencies you can use to communicate with your friends while far away!
GNU General Public License v3.0
21 stars 9 forks source link

[Critical Bug / Crash] Radios in player's inventory causes Player Ticking Error when joining a Multiplayer Server #49

Open archonxgames opened 3 months ago

archonxgames commented 3 months ago

Issue: Player Ticking Error when joining a Multiplayer server on the latest update of Simple Radio. This was right after the server updated to the latest version of the mod 2.4.6.1 from the previous version.

To Reproduce Steps to reproduce the behavior:

  1. Have a radio from the previous update in your inventory.
  2. Join the server after the latest version of the mod is installed.

Version and Mod Loader:

Error Stacktrace: net.minecraft.ReportedException: Ticking player at net.minecraft.server.level.ServerPlayer.m_9240_(ServerPlayer.java:530) ~[server-1.20.1-20230612.114412-srg.jar%23469!/:?] at net.minecraft.server.network.ServerGamePacketListenerImpl.m_9933_(ServerGamePacketListenerImpl.java:262) ~[server-1.20.1-20230612.114412-srg.jar%23469!/:?] at net.minecraft.network.Connection.m_129483_(Connection.java:263) ~[server-1.20.1-20230612.114412-srg.jar%23469!/:?] at net.minecraft.server.network.ServerConnectionListener.m_9721_(ServerConnectionListener.java:142) ~[server-1.20.1-20230612.114412-srg.jar%23469!/:?] at net.minecraft.server.MinecraftServer.m_5703_(MinecraftServer.java:907) ~[server-1.20.1-20230612.114412-srg.jar%23469!/:?] at net.minecraft.server.dedicated.DedicatedServer.m_5703_(DedicatedServer.java:283) ~[server-1.20.1-20230612.114412-srg.jar%23469!/:?] at net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:814) ~[server-1.20.1-20230612.114412-srg.jar%23469!/:?] at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:661) ~[server-1.20.1-20230612.114412-srg.jar%23469!/:?] at net.minecraft.server.MinecraftServer.m_206580_(MinecraftServer.java:251) ~[server-1.20.1-20230612.114412-srg.jar%23469!/:?] at java.lang.Thread.run(Thread.java:840) ~[?:?] Caused by: java.lang.NullPointerException: Cannot invoke "String.isEmpty()" because "this.pattern" is null at java.util.regex.Pattern.<init>(Pattern.java:1428) ~[?:?] at java.util.regex.Pattern.compile(Pattern.java:1069) ~[?:?] at java.util.regex.Pattern.matches(Pattern.java:1174) ~[?:?] at java.lang.String.matches(String.java:2844) ~[?:?] at com.codinglitch.simpleradio.core.central.Frequency.check(Frequency.java:91) ~[SimpleRadio-forge-1.20.1-2.4.6.1.jar%23433!/:2.4.6.1] at com.codinglitch.simpleradio.core.registry.items.TransceiverItem.m_6883_(TransceiverItem.java:102) ~[SimpleRadio-forge-1.20.1-2.4.6.1.jar%23433!/:2.4.6.1] at net.minecraft.world.item.ItemStack.m_41666_(ItemStack.java:481) ~[server-1.20.1-20230612.114412-srg.jar%23469!/:?] at net.minecraftforge.common.extensions.IForgeItem.onInventoryTick(IForgeItem.java:353) ~[forge-1.20.1-47.3.1-universal.jar%23474!/:?] at net.minecraftforge.common.extensions.IForgeItemStack.onInventoryTick(IForgeItemStack.java:306) ~[forge-1.20.1-47.3.1-universal.jar%23474!/:?] at net.minecraft.world.entity.player.Inventory.m_36068_(Inventory.java:230) ~[server-1.20.1-20230612.114412-srg.jar%23469!/:?] at net.minecraft.world.entity.player.Player.m_8107_(Player.java:499) ~[server-1.20.1-20230612.114412-srg.jar%23469!/:?] at net.minecraft.world.entity.LivingEntity.m_8119_(LivingEntity.java:2298) ~[server-1.20.1-20230612.114412-srg.jar%23469!/:?] at net.minecraft.world.entity.player.Player.m_8119_(Player.java:241) ~[server-1.20.1-20230612.114412-srg.jar%23469!/:?] at net.minecraft.server.level.ServerPlayer.m_9240_(ServerPlayer.java:467) ~[server-1.20.1-20230612.114412-srg.jar%23469!/:?] ... 9 more

archonxgames commented 3 months ago

Same error also occurs when attempting to access the radiosmithing station

CodinGlitch commented 3 months ago

this looks like lexiconfig somehow didn't load the config, which definitely shouldn't be happening