HashMap creation appears to crash server

Discussion in 'Plugin Development' started by kraftman, Feb 28, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    kraftman

    Hey guys,

    My plugin "Empires" crashes my server completely when I run a certain command. I've narrowed it down to a certain Hashmap, which I've tried converting to a concurrent hashmap in case its a threading issue, but the problem is still present.

    The crash dump is here: http://pastebin.com/xCUUauVB (line 225)
    The code is here: https://github.com/kraftman/Empires/blob/master/src/main/java/es/themin/empires/util/EWorld.java (line 159)

    Really appreciate any help as I've been scratching my head for days!

    Thanks,
    kraft

    I added some debugs and it looks more like I'm creating an infinite loop around that section of code, since it keeps going until the server crashes. I'm not sure how or where though.

    I guess I'll leave this here in case someone has a similar issue. The problem wasn't the hashmap, it was the time it was taking to process everything, since I was using the location incorrectly and looping through the location coordinates instead of a small grid of 16 x 16

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 7, 2016
  2. Offline

    c0mp

    You seem to be running an unsupported build, if you require further assistance, you'll need to seek help from the developers who made it. Locking thread!
     
Thread Status:
Not open for further replies.

Share This Page