MyPetORG / MyPet

🐕 Extensive pet plugin for Bukkit/Spigot
https://www.spigotmc.org/resources/mypet.12725/
GNU Lesser General Public License v3.0
179 stars 97 forks source link

Error with /petcall - Randomly works, then does not. #217

Closed Soyofsoys closed 10 years ago

Soyofsoys commented 10 years ago

org.bukkit.command.CommandException: Unhandled exception executing command 'pc' in plugin MyPet v1.1.5 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:192) at org.bukkit.craftbukkit.v1_6_R3.CraftServer.dispatchCommand(CraftServer.java:528) at net.minecraft.server.v1_6_R3.PlayerConnection.handleCommand(PlayerConnection.java:968) at net.minecraft.server.v1_6_R3.PlayerConnection.chat(PlayerConnection.java:886) at net.minecraft.server.v1_6_R3.PlayerConnection.a(PlayerConnection.java:837) at net.minecraft.server.v1_6_R3.Packet3Chat.handle(SourceFile:49) at net.minecraft.server.v1_6_R3.NetworkManager.b(NetworkManager.java:296) at net.minecraft.server.v1_6_R3.PlayerConnection.e(PlayerConnection.java:116) at net.minecraft.server.v1_6_R3.ServerConnection.b(SourceFile:37) at net.minecraft.server.v1_6_R3.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:592) at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:227) at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:488) at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:421) at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583) Caused by: java.lang.NullPointerException at net.minecraft.server.v1_6_R3.StructureGenerator.a(SourceFile:85) at net.minecraft.server.v1_6_R3.ChunkProviderGenerate.getChunkAt(SourceFile:425) at org.bukkit.craftbukkit.v1_6_R3.generator.NormalChunkGenerator.getChunkAt(NormalChunkGenerator.java:49) at net.minecraft.server.v1_6_R3.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:225) at net.minecraft.server.v1_6_R3.Chunk.a(Chunk.java:800) at net.minecraft.server.v1_6_R3.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:142) at net.minecraft.server.v1_6_R3.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:84) at org.bukkit.craftbukkit.v1_6_R3.CraftWorld.getChunkAt(CraftWorld.java:118) at de.Keyle.MyPet.util.BukkitUtil.getBlockBBsInBB(BukkitUtil.java:131) at de.Keyle.MyPet.util.BukkitUtil.canSpawn(BukkitUtil.java:117) at de.Keyle.MyPet.util.BukkitUtil.canSpawn(BukkitUtil.java:109) at de.Keyle.MyPet.entity.types.MyPet.createPet(MyPet.java:329) at de.Keyle.MyPet.commands.CommandCall.onCommand(CommandCall.java:41) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)

scomans commented 10 years ago

I don't know how you managed to get this error but there went something terribly wrong. The thing is that you managed to break a Minecraft method which can't fail under normal circumstances. Do you have any special world plugin or a anything that changes the world files installed? A list of your plugins could help. How fast is the HDD of your server?

Soyofsoys commented 10 years ago

I actually had to uninstall the plugin. It had been running fine for a few weeks, then suddenly this error starting coming up , until eventually the server would crash. I can send the crash report as well if you like. As far as i am aware the hdd is an ssd, but i may have to check that, since i've recently migrated the server. Here's a list of my plugins: WorldBorder, MultiWorld, TuxTwoLib, bPermissions, MultiInv, EnchantAnything, Minequery, WorldEdit, Skript, BOSEconomy, LogBlockQuestioner, Vault, LogBlock, LWC, stables, WorldGuard, HeadHunter, WGRegionEvents, Shopkeepers, SurvivalGames, CompatNoCheatPlus, XPSet, EpicBossRecoded, ClassicPortals, WGPFix, ClearLag, ScheduledAnnouncer2, ProtocolLib, Votifier, WGCustomFlags, FoundDiamonds, AntiChat, XBP, Essentials, AntiCommandTab, EssentialsProtect, NoCheatPlus, ServerSigns, EssentialsSpawn, DeathControl, Enjin Minecraft Plugin, HealthBar, EssentialsAntiBuild, VotifierScripts, WGRegionCommands, EssentialsChat, Factions, ecoCreature.

The only one i can think that may be causing the problem is ClearLag (recent addition for item drop removal), it may be something to do with mob removal, even though i have mob removal turned off. I was running the previous 1.6.4 RB of craftbukkit, now i am running the latest one. With either build, i was still getting the error and eventual crash.

scomans commented 10 years ago

I'm sorry that you had to remove the plugin :/

I don't think any of your plugins is causing this problem.

The crash-report could be helpfull, give me anything that can help me to find the problem :smile:

Soyofsoys commented 10 years ago

I'm devastated i've had to remove it, it's our favourite plugin on the server. (fantastic job on it btw). Here's the crash report: http://pastebin.com/VP6FdWkw

Thanks for your time :)

scomans commented 10 years ago

this problem should be fixed in 5e79bd366a7397f7130ad763480fcbaf2a77f5e5