Terrain Control

Terrain Control

235k Downloads

Server crashes while trying to generate chunks

mattataki opened this issue ยท 3 comments

commented

Here Crash report: http://pastebin.com/v9hrJ9aW
Here console output: http://pastebin.com/ynJQLRcx

So I have a skyland TerrainControl world created by nirklars. Thread: http://nirklars.wordpress.com/2012/05/04/terraincontrol-skylands-presetconfig-for-minecraft-craftbukkit/
File direct download: dl.dropbox.com/u/3687366/tc/world_floatingV1.1.zip

It works fine, great even! Though, adding a random teleport plugin, I end up getting teleported and if I fly for a bit, I ahve the chance to get disconnected and server crashes reporting it failed to contact the chunk loading thingy.

Crafbukkit version: #3092 BETA 1.7.9-R0.1-10-g8688bd4-b3092jnks
B: Terrain Control v2.6.1 for CB 1.7.9-R0.1 Apr 18, 2014

commented

I don't have a lot of time for investigation at the moment but just looking at the pastebin links you provided (Thank you by the way for providing a detailed bug report), it looks like it is either the teleport plugin or Craftbukkit that is the issue. The exception isn't happening in TC but rather in Craftbukkit with a call to java.util.Random.nextInt() which is being passed a negative value. Maybe this type of thing has happened before and I haven't seen it. @rutgerkok will probably chime in with a possible solution. I'll try to reproduce this later when I have some time. Until then keep us up to date on any new findings. This very well might be a Craftbukkit bug...

commented

<<< SHORT RESPONSE >>>

  • Thanks for your help and appreciation of my bug report
  • Tried a couple of stuff
  • Found out the bug is most likely due to the RandomLocation plugin having performance issues
  • Thanksies a lot :D

<<< Detailed >>>
Sorry, I've been tinkering with it without changing the craftbukkit version but disabling the teleport plugin, and so far so good, I did not find any crash whatsoever. I've been flying for quite a while now. Then enabling the plugin, I noticed on my own pc that it was eating up resources. So the plugin seems to be somehow poorly coded and yeah. The plugin maker is (sorry), but no less than stupid. His ticket system is to post a comment on the bukkit page... like what??? How can I check if my error was reported yet? It so happens someone reported the error already. Reading those comments quickly a couple times, I found it.

comment: "Here to report something, My server recently had an issue that caused a crash unrelated to random location, but after restarting the server this plugin eats up a whole entire core for no apparent reason stopping the plugin with the plugman plugin and reloading it causes it to use another whole core, leaving me at 50% cpu usage just from this plugin. My guess is that the crash somehow corrupted the chunk checking feature and causes the cpu to use a whole core nonstop. I've tried reinstalling this plugin and it still doesn't work. Is there a another folder besides the one in plugins that i should delete to reinstall it completely."

And I'm glad you liked my bug report. Sorry for disturbing you. I guess I bugged the wrong person with my bug :P
Darn, I keep searching and searching for a good random teleport plugin that has a min/max range and can be used by portals.

So yeah. Apparently, the plugin maker knows his plugin has performance issues and released some few releases to fix that. There is also a performance parameter in the config. I'll try to play with that. So yeah. Plugin was working fine on my PC but my server only has like 1GB of ram and 2 Xeon vCPU... so yeah, not so great but I'm a student can't afford much. I paid $70 (one-time lifetime fee) and I get what I get. Unfortunately, there is a panel screen with resource monitors but they never update and always display 0% usage. And my server is running CentOS. I guess I could type some commands to get performance details but I don't play with Linux or Java.

commented

Sorry for disturbing you. I guess I bugged the wrong person with my bug :P

Not at all! You were correct in posting a possible TC bug here. I am one of three guys (afaik) who are kind of the core maintainers for TC. I just happened to get to your issue first and wanted to be up front with you on how much time I could spend helping you ๐Ÿ˜„

Found out the bug is most likely due to the RandomLocation plugin having performance issues

Glad you found the (most likely) source of the problem! Don't be shy about reporting any bugs for TC you find in the future. Also, If you ever need TC help on non-bug related issues our wiki pages are a great place to start as well as our forums.

Happy minecrafting and best of luck finding a random location solution for your server. ๐Ÿค˜