Server crash when crafting with Storage Scanner
JaSpr opened this issue ยท 9 comments
Issue description:
One of our users was using a Storage Scanner. When he attempted to crash something with the scanner, it crashed the server. Once the server was back up, he tried to access the Scanner GUI, which resulted in another crash. To verify that he was causing it, we had him try to access the GUI one more time, and it again crashed the server.
Steps to reproduce:
- Setup scanner
- Access GUi
- Start crafting
- Causes crash
- After restart, try to access scanner
- More crash.
Versions:
- Minecraft: 1.12.2
- Forge: 14.23.4.2705
- McJtyLib: 2.6.7
- RFTools: 7.33
ModPack: ATM3
Relevant logs, if any:
java.lang.NoClassDefFoundError: net/minecraft/client/gui/GuiScreen
at net.minecraft.util.Util.runTask(SourceFile:537)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:723)
at net.minecraft.server.dedicated.DedicatedServer.updateTimeLightAndEntities(DedicatedServer.java:396)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:668)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassNotFoundException: net.minecraft.client.gui.GuiScreen
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:101)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at net.minecraft.util.Util.func_181617_a(SourceFile:537)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:723)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:396)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668)
... 2 more
- the scanner worked before, [he] just never tried crafting on the server
- Not sure about other scanners. We're telling our players not to use them for crafting
The storage scanners are used a lot on servers for crafting so they normally work. Can I ask what the item was that it was trying to craft?
That's what I just asked him. Another user said he had previously (up until a few weeks ago?) been using the storage scanners to craft, but hadn't in a while, but it also doesn't appear that ATM3 has updated RFTools in a while, so I'm checking to see what he was trying to craft.
Ok, so. I was unaware that this was installed, but apparently we have the VanillaFix mod installed on our server. It apparently handles trying to catch certain exceptions (even caught exceptions) and the default setting for VanillaFix is to open a GUI and tell the user about it (client-mod for vanilla fix). Well, if you run it on the server, there are no GUIs, so we have to change that setting to log the exceptions.
That said, it is probably a caught exception with crafting in the storage scanner that caused VanillaFix to crash the server. I've updated the VanillaFix config and am closing this ticket.