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

PMMP or PlugError - Could not tick level "world": Effect duration must be in range of 0 - 2147483647

Discussion in 'Help' started by TeraCube, Sep 16, 2017.

  1. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    Hi,
    do you think it's a PMMP error or a plugin error.
    thanks
    sorry for my bad english

    PocketMine-MP 1.6.2dev-578
    ---------------------------------------------------------------------------------------------------------------------------------------------
    My server console show this critical error : Could not tick level "world": Effect duration must be in range of 0 - 2147483647
    2017-09-15 [18:34:14] [Server thread/CRITICAL]: Could not tick level "world": Effect duration must be in range of 0 - 2147483647
    2017-09-15 [18:34:14] [Server thread/CRITICAL]: InvalidArgumentException: "Effect duration must be in range of 0 - 2147483647" (EXCEPTION) in "src/pocketmine/entity/Effect" at line 183
    2017-09-15 [18:34:14] [Server thread/DEBUG]: #0 src/pocketmine/entity/Living(484): pocketmine\entity\Effect->setDuration(integer -1)
    2017-09-15 [18:34:14] [Server thread/DEBUG]: #1 src/pocketmine/entity/Living(429): pocketmine\entity\Living->doEffectsTick(integer 2)
    2017-09-15 [18:34:14] [Server thread/DEBUG]: #2 src/pocketmine/entity/Human(381): pocketmine\entity\Living->entityBaseTick(integer 2)
    2017-09-15 [18:34:14] [Server thread/DEBUG]: #3 src/pocketmine/Player(1685): pocketmine\entity\Human->entityBaseTick(integer 2)
    2017-09-15 [18:34:14] [Server thread/DEBUG]: #4 src/pocketmine/level/Level(668): pocketmine\Player->onUpdate(integer 1400065)
    2017-09-15 [18:34:14] [Server thread/DEBUG]: #5 src/pocketmine/Server(2330): pocketmine\level\Level->doTick(integer 1400065)
    2017-09-15 [18:34:14] [Server thread/DEBUG]: #6 src/pocketmine/Server(2485): pocketmine\Server->checkTickUpdates(integer 1400065, double 1505493254.2871)
    2017-09-15 [18:34:14] [Server thread/DEBUG]: #7 src/pocketmine/Server(2239): pocketmine\Server->tick()
    2017-09-15 [18:34:14] [Server thread/DEBUG]: #8 src/pocketmine/Server(2118): pocketmine\Server->tickProcessor()
    2017-09-15 [18:34:14] [Server thread/DEBUG]: #9 src/pocketmine/Server(1700): pocketmine\Server->start()
    2017-09-15 [18:34:14] [Server thread/DEBUG]: #10 src/pocketmine/PocketMine(541): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string phar:///home/gsp_1586/g3.hmserv.eu-19247/PocketMine-MP.phar/, string /home/gsp_1586/g3.hmserv.eu-19247/, string /home/gsp_1586/g3.hmserv.eu-19247/plugins/)
    2017-09-15 [18:34:14] [Server thread/DEBUG]: #11 /home/gsp_1586/g3.hmserv.eu-19247/PocketMine-MP.phar(1): require(string phar:///home/gsp_1586/g3.hmserv.eu-19247/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
    ---------------------------------------------------------------------------------------------------------------------------------------------
    PocketMine-MP 1.6.2dev-578: PurePerms 1.4.1-dev2; AllSigns 1.0.3; ItemCasePE 1.1.0-dev1; FactionsPro 1.3.11-2.alpha7; KillMoney 1.1.2; xyz 1.0.3; EconomyAPI 5.7.1-dev2; SimpleAuth 2.1.0-map.3; essentialsTP 1.2.0-dev1; CrateKeys 1.0.0; SimpleAuthHelper 2.0.6; AlwaysSpawn 2.2.3-dev1; Jail 1.2.0; PiggyCustomEnchants 1.0.2; Slapper 1.3.5; ChatToDiscord 1.1.0; iProtector 4.0.1#3.1b; Parkour 1.5.6; EconomyShop 2.0.8-dev2; PureChat 1.4.10-dev2
     
  2. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    looks like a world issue, and plugins might have caused it
     
  3. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    @robske_110
    an idea of which plugin caused this bug ?
    thanks
     
  4. Rysieku

    Rysieku Spider Jockey

    Messages:
    34
    GitHub:
    rysieku
    This happens with every world or just this?
     
  5. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    @Rysieku
    only one "world" on my server
    thanks
     
  6. NickTehUnicorn

    NickTehUnicorn Zombie

    Messages:
    200
    GitHub:
    unickorn
    Maybe it's a problem with that pocketmine version. You can try getting a newer one, but it'll probably break your plugins as there have been API updates after that version.
     
  7. Sandertv

    Sandertv Zombie Pigman Poggit Reviewer

    Messages:
    786
    GitHub:
    Sandertv
    I can exactly guess what happened; One of your plugins applied an effect on one of the players with the duration as maximum integer. This is no longer supported in the latest versions.
     
  8. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
  9. Sandertv

    Sandertv Zombie Pigman Poggit Reviewer

    Messages:
    786
    GitHub:
    Sandertv
    If I had to make a guess, I would look at these: Jail 1.2.0; PiggyCustomEnchants 1.0.2; Parkour 1.5.6;
    I haven't looked at the code of those plugins, so it might not be one of those. The rest seem innocent though.
     
  10. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    @Sandertv
    today same error
    Jail and Parkour were removed to my server.
    So i think error come from PiggyCustomEnchants ?


    Code:
    2017-10-23 [10:12:15] [Server thread/CRITICAL]: Could not tick level "world": Effect duration must be in range of 0 - 2147483647
    2017-10-23 [10:12:15] [Server thread/CRITICAL]: InvalidArgumentException: "Effect duration must be in range of 0 - 2147483647" (EXCEPTION) in "src/pocketmine/entity/Effect" at line 183
    2017-10-23 [10:12:15] [Server thread/DEBUG]: #0 src/pocketmine/entity/Living(466): pocketmine\entity\Effect->setDuration(integer -1)
    2017-10-23 [10:12:15] [Server thread/DEBUG]: #1 src/pocketmine/entity/Living(431): pocketmine\entity\Living->doEffectsTick(integer 4)
    2017-10-23 [10:12:15] [Server thread/DEBUG]: #2 src/pocketmine/entity/Human(411): pocketmine\entity\Living->entityBaseTick(integer 4)
    2017-10-23 [10:12:15] [Server thread/DEBUG]: #3 src/pocketmine/Player(1664): pocketmine\entity\Human->entityBaseTick(integer 4)
    2017-10-23 [10:12:15] [Server thread/DEBUG]: #4 src/pocketmine/level/Level(724): pocketmine\Player->onUpdate(integer 473239)
    2017-10-23 [10:12:15] [Server thread/DEBUG]: #5 src/pocketmine/Server(2356): pocketmine\level\Level->doTick(integer 473239)
    2017-10-23 [10:12:15] [Server thread/DEBUG]: #6 src/pocketmine/Server(2509): pocketmine\Server->checkTickUpdates(integer 473239, double 1508746335.7195)
    2017-10-23 [10:12:15] [Server thread/DEBUG]: #7 src/pocketmine/Server(2253): pocketmine\Server->tick()
    2017-10-23 [10:12:15] [Server thread/DEBUG]: #8 src/pocketmine/Server(2132): pocketmine\Server->tickProcessor()
    2017-10-23 [10:12:15] [Server thread/DEBUG]: #9 src/pocketmine/Server(1714): pocketmine\Server->start()
    2017-10-23 [10:12:15] [Server thread/DEBUG]: #10 src/pocketmine/PocketMine(558): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string phar:///home/gsp_1495/g8.hmserv.eu-18153/PocketMine-MP.phar/, string /home/gsp_1495/g8.hmserv.eu-18153/, string /home/gsp_1495/g8.hmserv.eu-18153/plugins/)
    2017-10-23 [10:12:15] [Server thread/DEBUG]: #11 /home/gsp_1495/g8.hmserv.eu-18153/PocketMine-MP.phar(1): require(string phar:///home/gsp_1495/g8.hmserv.eu-18153/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
    2017-10-23 [10:12:15] [Server thread/CRITICAL]: Could not tick level "world": Effect duration must be in range of 0 - 2147483647
    2017-10-23 [10:12:15] [Server thread/CRITICAL]: InvalidArgumentException: "Effect duration must be in range of 0 - 2147483647" (EXCEPTION) in "src/pocketmine/entity/Effect" at line 183
    2017-10-23 [10:12:15] [Server thread/DEBUG]: #0 src/pocketmine/entity/Living(466): pocketmine\entity\Effect->setDuration(integer -1)
    2017-10-23 [10:12:15] [Server thread/DEBUG]: #1 src/pocketmine/entity/Living(431): pocketmine\entity\Living->doEffectsTick(integer 3)
    2017-10-23 [10:12:15] [Server thread/DEBUG]: #2 src/pocketmine/entity/Human(411): pocketmine\entity\Living->entityBaseTick(integer 3)
    2017-10-23 [10:12:15] [Server thread/DEBUG]: #3 src/pocketmine/Player(1664): pocketmine\entity\Human->entityBaseTick(integer 3)
    2017-10-23 [10:12:15] [Server thread/DEBUG]: #4 src/pocketmine/level/Level(724): pocketmine\Player->onUpdate(integer 473243)
    2017-10-23 [10:12:15] [Server thread/DEBUG]: #5 src/pocketmine/Server(2356): pocketmine\level\Level->doTick(integer 473243)
    2017-10-23 [10:12:15] [Server thread/DEBUG]: #6 src/pocketmine/Server(2509): pocketmine\Server->checkTickUpdates(integer 473243, double 1508746335.9081)
    2017-10-23 [10:12:15] [Server thread/DEBUG]: #7 src/pocketmine/Server(2253): pocketmine\Server->tick()
    2017-10-23 [10:12:15] [Server thread/DEBUG]: #8 src/pocketmine/Server(2132): pocketmine\Server->tickProcessor()
    2017-10-23 [10:12:15] [Server thread/DEBUG]: #9 src/pocketmine/Server(1714): pocketmine\Server->start()
    2017-10-23 [10:12:15] [Server thread/DEBUG]: #10 src/pocketmine/PocketMine(558): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string phar:///home/gsp_1495/g8.hmserv.eu-18153/PocketMine-MP.phar/, string /home/gsp_1495/g8.hmserv.eu-18153/, string /home/gsp_1495/g8.hmserv.eu-18153/plugins/)
    2017-10-23 [10:12:15] [Server thread/DEBUG]: #11 /home/gsp_1495/g8.hmserv.eu-18153/PocketMine-MP.phar(1): require(string phar:///home/gsp_1495/g8.hmserv.eu-18153/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
    2017-10-23 [10:12:16] [Server thread/CRITICAL]: Could not tick level "world": Effect duration must be in range of 0 - 2147483647
    Version :
    PocketMine-MP 1.7dev-310:

    Plugins :
    Slapper 1.3.7; iProtector 3.1.0-3; ChatToDiscord 1.1.0; VoteReward 3.0.2-3; essentialsTP 1.2.0-2; AllSigns 1.0.4; PiggyCustomEnchants 1.0.2-2; xyz 1.0.4; AlwaysSpawn 2.2.3-3; PurePerms 1.4.1-2; ItemCasePE 1.2.1; EconomyAPI 5.7.1-3; Parkour 1.5.6-3; BanItem 2.3.2-2.alpha8; EconomyShop 2.0.8-5; FactionsPro 1.4.5-5; PureChat 1.4.10-3
     
    Last edited: Oct 23, 2017
  11. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
    You could always hack src/pocketmine/entity/Effect at line 183... at your own risk. Something like this should do the trick, and once the player in question has been on once, if that is indeed the problem, it should be unnecessary afterwards:

    Code:
        public function setDuration(int $ticks){
            if($ticks < 0 or $ticks > INT32_MAX){
                $ticks = 0;
                // throw new \InvalidArgumentException("Effect duration must be in range of 0 - " . INT32_MAX);
            }
            $this->duration = $ticks;
            return $this;
        }
     
  12. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    same error today

    it is not piggycustomenchants (removed)


    Code:
    2017-10-26 [18:28:53] [Server thread/CRITICAL]: Could not tick level "world": Effect duration must be in range of 0 - 2147483647
    2017-10-26 [18:28:53] [Server thread/CRITICAL]: InvalidArgumentException: "Effect duration must be in range of 0 - 2147483647" (EXCEPTION) in "src/pocketmine/entity/Effect" at line 183
    2017-10-26 [18:28:53] [Server thread/DEBUG]: #0 src/pocketmine/entity/Living(466): pocketmine\entity\Effect->setDuration(integer -2)
    2017-10-26 [18:28:53] [Server thread/DEBUG]: #1 src/pocketmine/entity/Living(431): pocketmine\entity\Living->doEffectsTick(integer 4)
    2017-10-26 [18:28:53] [Server thread/DEBUG]: #2 src/pocketmine/entity/Human(411): pocketmine\entity\Living->entityBaseTick(integer 4)
    2017-10-26 [18:28:53] [Server thread/DEBUG]: #3 src/pocketmine/Player(1664): pocketmine\entity\Human->entityBaseTick(integer 4)
    2017-10-26 [18:28:53] [Server thread/DEBUG]: #4 src/pocketmine/level/Level(724): pocketmine\Player->onUpdate(integer 165849)
    2017-10-26 [18:28:53] [Server thread/DEBUG]: #5 src/pocketmine/Server(2373): pocketmine\level\Level->doTick(integer 165849)
    2017-10-26 [18:28:53] [Server thread/DEBUG]: #6 src/pocketmine/Server(2526): pocketmine\Server->checkTickUpdates(integer 165849, double 1509035333.7787)
    2017-10-26 [18:28:53] [Server thread/DEBUG]: #7 src/pocketmine/Server(2270): pocketmine\Server->tick()
    2017-10-26 [18:28:53] [Server thread/DEBUG]: #8 src/pocketmine/Server(2149): pocketmine\Server->tickProcessor()
    2017-10-26 [18:28:53] [Server thread/DEBUG]: #9 src/pocketmine/Server(1731): pocketmine\Server->start()
    2017-10-26 [18:28:53] [Server thread/DEBUG]: #10 src/pocketmine/PocketMine(558): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string phar:///home/gsp_1485/g3.hmserv.eu-19144/PocketMine-MP.phar/, string /home/gsp_1485/g3.hmserv.eu-19144/, string /home/gsp_1485/g3.hmserv.eu-19144/plugins/)
    2017-10-26 [18:28:53] [Server thread/DEBUG]: #11 /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)
    Configuration :
    PocketMine-MP 1.7dev-326: AllSigns 1.0.5; iProtector 3.1.0-3; ChatToDiscord 1.1.0; VoteReward 3.0.2-3; essentialsTP 1.2.0-2; Parkour 1.5.6-3; Slapper 1.3.7; xyz 1.0.4; AlwaysSpawn 2.2.3-3; BadWordBlocker 1.2.0; PurePerms 1.4.1-2; ItemCasePE 1.2.1; EconomyAPI 5.7.1-3; UtimateKit 1; MagicTelePortal 1.3.2-3; CustomAlerts 1.7.2-1; BanItem 2.3.2-2.alpha8; EconomyShop 2.0.8-5; FactionsPro 1.4.5-5; PureChat 1.4.10-3
     
  13. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
    It looks like erroneous data has been saved to disk by a plugin as Sanderstv pointed out, so you'll get the error even without plugins. You can try to either edit/delete the .dat file for the player(s) in question, or use the hack I suggested.
     
  14. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    @Awzaw
    how to find the player(s) in question ? because no ip or player name on the log error file
    thanks
     
  15. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    Can you afford to just delete all players.dat? Or is your server inventory dependent / do plugins save into player.dat?
     
    TeraCube and EdwardHamHam like this.
  16. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    @robske_110 (Tim)
    players will hate me if i delete all players.dat no ?
    i don't know if plugins like PurePerms or iProtector are saving into player.dat?

    plugins list on my server :
    AllSigns 1.0.5; iProtector 3.1.0-3; ChatToDiscord 1.1.0; VoteReward 3.0.2-3; essentialsTP 1.2.0-2; Parkour 1.5.6-3; Slapper 1.3.7; xyz 1.0.4; AlwaysSpawn 2.2.3-3; BadWordBlocker 1.2.0; PurePerms 1.4.1-2; ItemCasePE 1.2.1; EconomyAPI 5.7.1-3; MagicTelePortal 1.3.2-3; CustomAlerts 1.7.2-1; BanItem 2.3.2-2.alpha8; UtimateKit 1; EconomyShop 2.0.8-5; FactionsPro 1.4.5-5; PureChat 1.4.10-3
     
  17. QuiverlyRivalry

    QuiverlyRivalry Zombie Pigman

    Messages:
    491
    GitHub:
    quiverlyrivalry
    Sorry if I am wrong, but player.dat files only save a players location in a world. Am I correct?
     
  18. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    they save location (world, position); inventory; lastPlayer; firstPlayed; XP; (...) and maybe (if the plugin uses it) plugin related stuff
     
    EdwardHamHam likes this.
  19. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    I don't think any of these plugins save data in a player.dat.
    If you can afford to loose location (world, position); inventory; lastPlayer; firstPlayed; XP) you could delete the player.dat(s).
    You could also write a mass-fix-dat-script.
     
  20. QuiverlyRivalry

    QuiverlyRivalry Zombie Pigman

    Messages:
    491
    GitHub:
    quiverlyrivalry
    Tell your players to save there loot in a vault in another world or get Muqsit player vaults.
    Then delete player data.
     
  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.