Dysth / Generations

The place to report bugs and submit suggestions to the Minecraft mod Generations!
6 stars 1 forks source link

Crash with pixelmon #233

Closed AntarticaFr closed 2 years ago

AntarticaFr commented 3 years ago

What is the bug? Hello, my server crashed multiple times because of two pixelmon errors.

What are the steps to reproduce the bug? I have actually no idea why this bug is here but it happens every day I would say. There were approximately 30 to 50 players on my server when the crash happened

What version of Pixelmon and Forge are you on? Pixelmon : 8.5.1 ; forge : 1.12.2 - 14.23.5.2854

Please provide any screenshots or crash reports if needed. Here is the first error: [16:57:43] [Server thread/INFO] [nucleus]: froghiko ran the command: /endbattle [16:57:44] [Server thread/ERROR] [net.minecraft.server.MinecraftServer]: Encountered an unexpected exception java.lang.IllegalArgumentException: Don't know how to add class com.pixelmongenerations.common.entity.npcs.NPCTrainer! at net.minecraft.entity.EntityTrackerEntry.func_151260_c(EntityTrackerEntry.java:659) ~[os.class:?] at net.minecraft.entity.EntityTrackerEntry.func_73117_b(EntityTrackerEntry.java:380) ~[os.class:?] at net.minecraft.entity.EntityTracker.func_72788_a(EntityTracker.java:313) ~[ol.class:?] at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:779) ~[MinecraftServer.class:?] at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:397) ~[nz.class:?] at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668) ~[MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526) [MinecraftServer.class:?] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_292] [16:57:44] [Server thread/ERROR] [net.minecraft.server.MinecraftServer]: This crash report has been saved to: /home/admin/sapphire/./crash-reports/crash-2021-08-20_16.57.44-server.txt [16:57:44] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Stopping server [16:57:44] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Saving players [16:57:44] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Saving worlds

And the second: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:659) at java.util.ArrayList.get(ArrayList.java:435) at com.pixelmongenerations.core.network.PixelmonData.(PixelmonData.java:412) at com.pixelmongenerations.core.network.PixelmonUpdateData.(PixelmonUpdateData.java:35) at com.pixelmongenerations.core.network.PixelmonUpdateData.(PixelmonUpdateData.java:40) at com.pixelmongenerations.core.storage.PlayerStorage.updateClient(PlayerStorage.java:725) at com.pixelmongenerations.common.battle.controller.participants.PixelmonWrapper.update(PixelmonWrapper.java:2519) at com.pixelmongenerations.common.battle.attacks.Attack.setDisabled(Attack.java:924) at com.pixelmongenerations.common.battle.controller.participants.PixelmonWrapper.resetOnSwitch(PixelmonWrapper.java:1468) at com.pixelmongenerations.common.battle.controller.BattleControllerBase.endBattle(BattleControllerBase.java:687) at com.pixelmongenerations.common.battle.controller.BattleControllerBase.endBattle(BattleControllerBase.java:670) at com.pixelmongenerations.common.battle.controller.BattleControllerBase.endBattleWithoutXP(BattleControllerBase.java:822) at com.pixelmongenerations.common.battle.controller.log.BattleLog.onCrash(BattleLog.java:111) at com.pixelmongenerations.common.battle.controller.BattleControllerBase.update(BattleControllerBase.java:331) at com.pixelmongenerations.common.battle.BattleRegistry.updateBattles(BattleRegistry.java:136) at com.pixelmongenerations.common.battle.BattleTickHandler.tickStart(BattleTickHandler.java:12) at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_124_BattleTickHandler_tickStart_WorldTickEvent.invoke(.dynamic) at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) at net.minecraftforge.fml.common.eventhandler.EventBus.forgeBridge$post(EventBus.java:756) at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:706) at net.minecraftforge.fml.common.FMLCommonHandler.onPreWorldTick(FMLCommonHandler.java:287) at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:752) at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:397) at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526) at java.lang.Thread.run(Thread.java:748)

Please let me know if you need anything more.

Stampede2011 commented 2 years ago

I believe this has been fixed!