Steffion / BlockHunt

Hide And Seek as Blocks plugin for the Bukkit software. Called BlockHunt.
19 stars 69 forks source link

Errors in console, too much CPU/mem usage #201

Closed Iwitrag closed 10 years ago

Iwitrag commented 10 years ago

Using B: BlockHunt v0.1.7_BETA for 1.6.4 Oct 08, 2013 with CB 1.7.2 R 2.0 (beta build)

Hello, I'm getting this error several times when starting server:

[15:48:02 WARN]: [BlockHunt] Task #93 for BlockHunt v0.1.7_BETA generated an exception java.lang.NullPointerException at org.bukkit.craftbukkit.v1_7_R1.block.CraftSign.(CraftSign.java:17) ~inecraft_server.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.craftbukkit.v1_7_R1.block.CraftBlock.getState(CraftBlock.java:252) ~inecraft_server.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at nl.Steffion.BlockHunt.SignsHandler.updateSigns(SignsHandler.java:115) ~[?:?] at nl.Steffion.BlockHunt.BlockHunt$3.run(BlockHunt.java:719) ~[?:?] at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftTask.run(CraftTask.java:53) ~inecraft_server.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) inecraft_server.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:587) inecraft_server.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:250) inecraft_server.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) inecraft_server.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) inecraft_server.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) inecraft_server.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]

then when server is started each 30-60 seconds I get this error

[15:49:32 WARN]: [BlockHunt] Task #93 for BlockHunt v0.1.7_BETA generated an exception java.lang.NullPointerException

And additionaly - I have made nolagg examine and BlockHunt is consuming 56,8% time of all plugins 5.797 ms ... in comparison for example with SurvivalGames, which take 0.002 ms it's nearly 3000x more !

ghost commented 10 years ago

Delete your BlockHunt files then, its trying to read text which isn't their thus this will cause some kind of lag with BlockHunt

Iwitrag commented 10 years ago

Hello RandomPanda30 - should I delete everything including arenas? Or only main config?

ghost commented 10 years ago

Everything you can see ;3

Iwitrag commented 10 years ago

Hello RandomPanda30 - so I will need to delete all my 11 arenas each time new version comes out?

ghost commented 10 years ago

Not always ;3 Once I finish up the little config bugs then you won't have to do it. For now, in the build versions, you will have to :( But this will stop soon ;3

Iwitrag commented 10 years ago

Hello, I have done all you have recommended and now when players join blockhunt I get each 1 second this error in console:

[18:46:11 WARN]: [BlockHunt] Task #92 for BlockHunt v0.1.7_BETA generated an exception java.lang.NullPointerException at nl.Steffion.BlockHunt.BlockHunt$3.run(BlockHunt.java:700) ~[?:?] at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftTask.run(CraftTask.java:53) ~inecraft_server.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) inecraft_server.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:587) inecraft_server.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:250) inecraft_server.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) inecraft_server.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) inecraft_server.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) inecraft_server.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]