Very high xp causes server hang #94


  • Defect
  • Waiting
Open
Assigned to donredhorse
  • _ForgeUser6948066 created this issue Oct 17, 2012

    1.  Set your xp very very high.  I was around level 2400 don't ask...
    2.  Die.
    3.  Collect your tombstone and the server hangs during collection.

    When I turned on debug (I recommend not doing this)  I see thousands of these messages

    2012-10-17 10:22:51 [INFO] [DeathTpPlus] Player New TotalExperience= [2147483647]

    I didn't let this complete.  In debug mode it never stopped.  Without debug mode it just hangs
    the server for a minute and the client usually disconnects.

    Using bukkit 1.3.2-R1.0-b2377  DeathTpPlus 3.9.16.2320

    Let me know if you need anything else.  Really just an extreme case I'm guessing.

  • _ForgeUser6948066 added the tags New Defect Oct 17, 2012
  • DonRedhorse posted a comment Oct 18, 2012

    hmm I need to look into that again.

    I did need to write an own way to handle experience as bukkit wasn't working correctly in that area.

    When you get the amount of xp you get an integer, if you ADD that integer to a player it isn't the same amount if you add it at once... you need to add it one xp at a time..

    There was another method in bukkit which did allow you to add a float value, but this was also not working correctly.

    So let me check if there has been done some improvements.

  • DonRedhorse removed a tag New Oct 18, 2012
  • DonRedhorse added a tag Waiting Oct 18, 2012

To post a comment, please login or register a new account.