1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Solved Error "XP amount must be greater than 0, got 0"

Discussion in 'Help' started by TeraCube, Jan 5, 2018.

  1. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    hi,

    server is spammed by this error
    due to XP implementation i suppose

    Code:
    2018-01-05 [22:46:25] [Server thread/CRITICAL]: InvalidArgumentException: "XP amount must be greater than 0, got 0" (EXCEPTION) in "src/pocketmine/entity/object/ExperienceOrb" at line 133
    2018-01-05 [22:46:25] [Server thread/DEBUG]: #0 src/pocketmine/entity/object/ExperienceOrb(115): pocketmine\entity\object\ExperienceOrb->setXpValue(integer 0)
    2018-01-05 [22:46:25] [Server thread/DEBUG]: #1 src/pocketmine/entity/Entity(544): pocketmine\entity\object\ExperienceOrb->initEntity()
    2018-01-05 [22:46:25] [Server thread/DEBUG]: #2 src/pocketmine/entity/Entity(258): pocketmine\entity\Entity->__construct(pocketmine\level\Level object, pocketmine\nbt\tag\CompoundTag object)
    2018-01-05 [22:46:25] [Server thread/DEBUG]: #3 src/pocketmine/level/format/Chunk(732): pocketmine\entity\Entity::createEntity(string XPOrb, pocketmine\level\Level object, pocketmine\nbt\tag\CompoundTag object)
    2018-01-05 [22:46:25] [Server thread/DEBUG]: #4 src/pocketmine/level/Level(2803): pocketmine\level\format\Chunk->initChunk(pocketmine\level\Level object)
    2018-01-05 [22:46:25] [Server thread/DEBUG]: #5 src/pocketmine/level/Level(2434): pocketmine\level\Level->loadChunk(integer 23, integer -46, boolean 1)
    2018-01-05 [22:46:25] [Server thread/DEBUG]: #6 src/pocketmine/level/Level(3072): pocketmine\level\Level->getChunk(integer 23, integer -46, boolean 1)
    2018-01-05 [22:46:25] [Server thread/DEBUG]: #7 src/pocketmine/Player(957): pocketmine\level\Level->populateChunk(integer 23, integer -46)
    2018-01-05 [22:46:25] [Server thread/DEBUG]: #8 src/pocketmine/Player(1740): pocketmine\Player->sendNextChunk()
    2018-01-05 [22:46:25] [Server thread/DEBUG]: #9 src/pocketmine/Server(2539): pocketmine\Player->checkNetwork()
    2018-01-05 [22:46:25] [Server thread/DEBUG]: #10 src/pocketmine/Server(2276): pocketmine\Server->tick()
    2018-01-05 [22:46:25] [Server thread/DEBUG]: #11 src/pocketmine/Server(2151): pocketmine\Server->tickProcessor()
    2018-01-05 [22:46:25] [Server thread/DEBUG]: #12 src/pocketmine/Server(1739): pocketmine\Server->start()
    2018-01-05 [22:46:25] [Server thread/DEBUG]: #13 src/pocketmine/PocketMine(554): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/gsp_1485/g3.hmserv.eu-19144/, string /home/gsp_1485/g3.hmserv.eu-19144/plugins/)
    2018-01-05 [22:46:25] [Server thread/DEBUG]: #14 /home/gsp_1485/g3.hmserv.eu-19144/PocketMine-MP.phar(1): require(string phar:///home/gsp_1485/g3.hmserv.eu-19144/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
    2018-01-05 [22:46:25] [Server thread/CRITICAL]: InvalidArgumentException: "XP amount must be greater than 0, got 0" (EXCEPTION) in "src/pocketmine/entity/object/ExperienceOrb" at line 133
    2018-01-05 [22:46:25] [Server thread/DEBUG]: #0 src/pocketmine/entity/object/ExperienceOrb(115): pocketmine\entity\object\ExperienceOrb->setXpValue(integer 0)
    2018-01-05 [22:46:25] [Server thread/DEBUG]: #1 src/pocketmine/entity/Entity(544): pocketmine\entity\object\ExperienceOrb->initEntity()
    2018-01-05 [22:46:25] [Server thread/DEBUG]: #2 src/pocketmine/entity/Entity(258): pocketmine\entity\Entity->__construct(pocketmine\level\Level object, pocketmine\nbt\tag\CompoundTag object)
    2018-01-05 [22:46:25] [Server thread/DEBUG]: #3 src/pocketmine/level/format/Chunk(732): pocketmine\entity\Entity::createEntity(string XPOrb, pocketmine\level\Level object, pocketmine\nbt\tag\CompoundTag object)
    2018-01-05 [22:46:25] [Server thread/DEBUG]: #4 src/pocketmine/level/Level(2803): pocketmine\level\format\Chunk->initChunk(pocketmine\level\Level object)
    2018-01-05 [22:46:25] [Server thread/DEBUG]: #5 src/pocketmine/level/Level(2434): pocketmine\level\Level->loadChunk(integer 23, integer -46, boolean 1)
    2018-01-05 [22:46:25] [Server thread/DEBUG]: #6 src/pocketmine/level/Level(3072): pocketmine\level\Level->getChunk(integer 23, integer -46, boolean 1)
    2018-01-05 [22:46:25] [Server thread/DEBUG]: #7 src/pocketmine/Player(957): pocketmine\level\Level->populateChunk(integer 23, integer -46)
    2018-01-05 [22:46:25] [Server thread/DEBUG]: #8 src/pocketmine/Player(1740): pocketmine\Player->sendNextChunk()
    2018-01-05 [22:46:25] [Server thread/DEBUG]: #9 src/pocketmine/Server(2539): pocketmine\Player->checkNetwork()
    2018-01-05 [22:46:25] [Server thread/DEBUG]: #10 src/pocketmine/Server(2276): pocketmine\Server->tick()
    2018-01-05 [22:46:25] [Server thread/DEBUG]: #11 src/pocketmine/Server(2151): pocketmine\Server->tickProcessor()
    2018-01-05 [22:46:25] [Server thread/DEBUG]: #12 src/pocketmine/Server(1739): pocketmine\Server->start()
    2018-01-05 [22:46:25] [Server thread/DEBUG]: #13 src/pocketmine/PocketMine(554): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/gsp_1485/g3.hmserv.eu-19144/, string /home/gsp_1485/g3.hmserv.eu-19144/plugins/)
    2018-01-05 [22:46:25] [Server thread/DEBUG]: #14 /home/gsp_1485/g3.hmserv.eu-19144/PocketMine-MP.phar(1): require(string phar:///home/gsp_1485/g3.hmserv.eu-19144/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
     
  2. 0x15f

    0x15f Baby Zombie

    Messages:
    145
    GitHub:
    0x15f
    What pocketmine version are you using (commit # or hash)?
     
  3. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
  4. dktapps

    dktapps Administrator Staff Member PMMP Team

    Messages:
    774
    GitHub:
    dktapps
    Works fine for me. Did you previously use a third-party version of PocketMine-MP or plugin which implemented XP?
     
  5. dktapps

    dktapps Administrator Staff Member PMMP Team

    Messages:
    774
    GitHub:
    dktapps
    This is likely to (again) be caused by the TeaSpoon plugin.
     
  6. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    @dktapps

    TeaSpoon was removed to my server before this issue occured
    PiggyCustomEnchants issue i suppose ?

    thanks
    sorry for my bad english

    Loaded plugins:
    AllSigns 1.0.5
    CustomAlerts 1.7.2-3
    essentialsTP 1.2.0-5
    BanItem 2.3.2-4
    MagicWE2 5.6.1
    EconomyAPI 5.7.1-4
    VoteReward 3.0.2-4
    LiveXYZ 0.6.0.4-beta
    Worlds 1.0.13
    iProtector 3.1.0-9
    Slapper 1.3.7
    EconomyShop 2.0.8-6
    PurePerms 1.4.1-3 by
    PiggyCustomEnchants 1.1.0
    EconomySell 2.0.7-4
    AlwaysSpawn 2.2.3-4
    FactionsPro 1.4.5-9
    PureChat 1.4.10-4
    GrabBag 2.4.0-5
     
    Last edited: Jan 6, 2018
  7. dktapps

    dktapps Administrator Staff Member PMMP Team

    Messages:
    774
    GitHub:
    dktapps
    The issue occurs because of TeaSpoon's incorrect XPOrb save NBT. Therefore it will happen to any XPOrb entities created by TeaSpoon, no matter whether TeaSpoon is loaded or not. You need to ditch TeaSpoon and remove all XPOrb entities from the world.
     
    TeraCube likes this.
  8. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    thanks dktapss it's clear
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.