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

Could not tick level <world name>?

Discussion in 'Development' started by Lowkey, Jun 10, 2017.

  1. Lowkey

    Lowkey Slime

    Messages:
    94
    I think I've messed up something in my tasks, but here my error is:
    PHP:
    Server thread/CRITICAL TypeError"Argument 1 passed to pocketmine\utils\BinaryStream::putVarInt() must be of the type integer, object given, called in phar:///jar/PocketMine-latest.phar/src/pocketmine/network/mcpe/protocol/LevelEventPacket.php on line 128" (EXCEPTIONin "/src/pocketmine/utils/BinaryStream__64bit" at line 331
     
    kazuya likes this.
  2. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    When does this occur? Do you have any idea what might cause it? Can you try determining if\what plugin causes it?
     
  3. Lowkey

    Lowkey Slime

    Messages:
    94
    Minigame plugin. When the match ends/a player dies, this happens.
     
  4. Lowkey

    Lowkey Slime

    Messages:
    94
    UPDATE: This is NOT caused by a plugin, it happens when the server starts.
     
    Last edited: Jun 10, 2017
  5. Lowkey

    Lowkey Slime

    Messages:
    94
    What? How has constructing got anything to do with this?
     
  6. HBIDamian

    HBIDamian HBIDamian Staff Member

    Messages:
    365
    GitHub:
    HBIDamian
    At the moment, DKTAPPS is doing some work on PocketMine. So some phars will break.

    Use 'version' in the console and tell us what version of PocketMine it is.
    Or, download a version of PocketMine-MP from here https://jenkins.pmmp.io/job/PocketMine-MP/
    Simply delete the old "PocketMine-MP.phar", and rename the new one to "PocketMine-MP.phar"
     
    jasonwynn10 likes this.
  7. instantlyta

    instantlyta Slime

    Messages:
    96
    GitHub:
    intagaming
    You might want to enable the "debug: 2" in your pocketmine.yml and try to send the result to us. That should help answer the question like what is the "object", how is that "object" pass through the function, etc.
     
    SOFe likes this.
  8. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    debug.level = 2

    We're thinking about showing the stack trace even with debug disabled.
     
    jasonwynn10 likes this.
  9. XdmingXD

    XdmingXD Baby Zombie

    Messages:
    158
    GitHub:
    xdmingxd
    Maybe something similar with this?
    Basically,when the server was trying to tp player(s) between different levels , it failed
    Hope it can be fixed! :D
    Code:
    [20:58:44] [Server thread/CRITICAL]: Could not tick level "MBStandard": Argument 1 passed to pocketmine\utils\BinaryStream::putLFloat() must be of the type float, string given, called in phar://C:/Users/xdm08/Desktop/XdNetWork/XdNetWork/PocketMine-MP.phar/src/pocketmine/network/mcpe/protocol/DataPacket.php on line 354
    [20:58:44] [Server thread/CRITICAL]: TypeError: "Argument 1 passed to pocketmine\utils\BinaryStream::putLFloat() must be of the type float, string given, called in phar://C:/Users/xdm08/Desktop/XdNetWork/XdNetWork/PocketMine-MP.phar/src/pocketmine/network/mcpe/protocol/DataPacket.php on line 354" (EXCEPTION) in "/src/pocketmine/utils/BinaryStream" at line 175
    [20:58:44] [Server thread/DEBUG]: #0 /src/pocketmine/network/mcpe/protocol/DataPacket(354): pocketmine\utils\BinaryStream->putLFloat(string 131)
    [20:58:44] [Server thread/DEBUG]: #1 /src/pocketmine/network/mcpe/protocol/MovePlayerPacket(70): pocketmine\network\mcpe\protocol\DataPacket->putVector3f(string 131, double 5.62, string 131)
    [20:58:44] [Server thread/DEBUG]: #2 /src/pocketmine/network/mcpe/RakLibInterface(195): pocketmine\network\mcpe\protocol\MovePlayerPacket->encode(boolean)
    [20:58:44] [Server thread/DEBUG]: #3 /src/pocketmine/Player(1084): pocketmine\network\mcpe\RakLibInterface->putPacket(pocketmine\Player object, pocketmine\network\mcpe\protocol\MovePlayerPacket object, boolean , boolean )
    [20:58:44] [Server thread/DEBUG]: #4 /src/pocketmine/Player(3971): pocketmine\Player->dataPacket(pocketmine\network\mcpe\protocol\MovePlayerPacket object)
    [20:58:44] [Server thread/DEBUG]: #5 /src/pocketmine/Player(4025): pocketmine\Player->sendPosition(pocketmine\Player object, integer 35, integer 0, integer 1)
    [20:58:44] [Server thread/DEBUG]: #6 /src/pocketmine/Player(1716): pocketmine\Player->checkTeleportPosition(boolean)
    [20:58:44] [Server thread/DEBUG]: #7 /src/pocketmine/level/Level(733): pocketmine\Player->onUpdate(integer 4656)
    [20:58:44] [Server thread/DEBUG]: #8 /src/pocketmine/Server(2269): pocketmine\level\Level->doTick(integer 4656)
    [20:58:44] [Server thread/DEBUG]: #9 /src/pocketmine/Server(2421): pocketmine\Server->checkTickUpdates(integer 4656, double 1497099524.2855)
    [20:58:44] [Server thread/DEBUG]: #10 /src/pocketmine/Server(2186): pocketmine\Server->tick(boolean)
    [20:58:44] [Server thread/DEBUG]: #11 /src/pocketmine/Server(2068): pocketmine\Server->tickProcessor(boolean)
    [20:58:44] [Server thread/DEBUG]: #12 /src/pocketmine/Server(1654): pocketmine\Server->start(boolean)
    [20:58:44] [Server thread/DEBUG]: #13 /src/pocketmine/PocketMine(503): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string phar://C:\Users\xdm08\Desktop\XdNetWork\XdNetWork\PocketMine-MP.phar/, string C:\Users\xdm08\Desktop\XdNetWork\XdNetWork\, string C:\Users\xdm08\Desktop\XdNetWork\XdNetWork\plugins\)
    [20:58:44] [Server thread/DEBUG]: #14 (1): require_once(string phar://C:/Users/xdm08/Desktop/XdNetWork/XdNetWork/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
    
    UPDATE:
    Code:
    [21:11:28] [Server thread/CRITICAL]: Could not tick level "MBStandard": Argument 4 passed to pocketmine\level\Level::addEntityMovement() must be of the type float, string given, called in phar://C:/Users/xdm08/Desktop/XdNetWork/XdNetWork/PocketMine-MP.phar/src/pocketmine/Player__64bit.php on line 1583
    [21:11:28] [Server thread/CRITICAL]: TypeError: "Argument 4 passed to pocketmine\level\Level::addEntityMovement() must be of the type float, string given, called in phar://C:/Users/xdm08/Desktop/XdNetWork/XdNetWork/PocketMine-MP.phar/src/pocketmine/Player__64bit.php on line 1583" (EXCEPTION) in "/src/pocketmine/level/Level__64bit" at line 2917
    [21:11:28] [Server thread/DEBUG]: #0 /src/pocketmine/Player__64bit(1583): pocketmine\level\Level->addEntityMovement(integer 8, integer 8, integer 8, string 131, double 5.62, string 131, integer 10, integer 0, integer 10)
    [21:11:28] [Server thread/DEBUG]: #1 /src/pocketmine/Player__64bit(1682): pocketmine\Player->processMovement(integer 1)
    [21:11:28] [Server thread/DEBUG]: #2 /src/pocketmine/level/Level__64bit(736): pocketmine\Player->onUpdate(integer 10564)
    [21:11:28] [Server thread/DEBUG]: #3 /src/pocketmine/Server__64bit(2269): pocketmine\level\Level->doTick(integer 10564)
    [21:11:28] [Server thread/DEBUG]: #4 /src/pocketmine/Server__64bit(2421): pocketmine\Server->checkTickUpdates(integer 10564, double 1497100288.2268)
    [21:11:28] [Server thread/DEBUG]: #5 /src/pocketmine/Server__64bit(2186): pocketmine\Server->tick(boolean)
    [21:11:28] [Server thread/DEBUG]: #6 /src/pocketmine/Server__64bit(2068): pocketmine\Server->tickProcessor(boolean)
    [21:11:28] [Server thread/DEBUG]: #7 /src/pocketmine/Server__64bit(1654): pocketmine\Server->start(boolean)
    [21:11:28] [Server thread/DEBUG]: #8 /src/pocketmine/PocketMine(503): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string phar://C:/Users/xdm08/Desktop/XdNetWork/XdNetWork/PocketMine-MP.phar/, string C:\Users\xdm08\Desktop\XdNetWork\XdNetWork\, string C:\Users\xdm08\Desktop\XdNetWork\XdNetWork\plugins\)
    [21:11:28] [Server thread/DEBUG]: #9 (1): require(string phar://C:/Users/xdm08/Desktop/XdNetWork/XdNetWork/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
    kit red[21:11:42] [Server thread/DEBUG]: Unhandled MobArmorEquipmentPacket received from XdmingXD: 0x2008d4040216000a0000030b00637573746f6d436f6c6f722326da00000000d6040216000a0000030b00637573746f6d436f6c6f722326da00000000d8040216000a0000030b00637573746f6d436f6c6f722326da00000000da040216000a0000030b00637573746f6d436f6c6f722326da00000000
    [21:11:42] [Server thread/DEBUG]: Unhandled MobArmorEquipmentPacket received from XdmingXD: 0x2008d4040216000a0000030b00637573746f6d436f6c6f722326da00000000d6040216000a0000030b00637573746f6d436f6c6f722326da00000000d8040216000a0000030b00637573746f6d436f6c6f722326da00000000da040216000a0000030b00637573746f6d436f6c6f722326da00000000
    [21:11:42] [Server thread/DEBUG]: Unhandled MobArmorEquipmentPacket received from XdmingXD: 0x2008d4040216000a0000030b00637573746f6d436f6c6f722326da00000000d6040216000a0000030b00637573746f6d436f6c6f722326da00000000d8040216000a0000030b00637573746f6d436f6c6f722326da00000000da040216000a0000030b00637573746f6d436f6c6f722326da00000000
    [21:11:42] [Server thread/DEBUG]: Unhandled MobArmorEquipmentPacket received from XdmingXD: 0x2008d4040216000a0000030b00637573746f6d436f6c6f722326da00000000d6040216000a0000030b00637573746f6d436f6c6f722326da00000000d8040216000a0000030b00637573746f6d436f6c6f722326da00000000da040216000a0000030b00637573746f6d436f6c6f722326da00000000
    [21:11:42] [Server thread/DEBUG]: Unhandled MobArmorEquipmentPacket received from XdmingXD: 0x2008d4040216000a0000030b00637573746f6d436f6c6f722326da00000000d6040216000a0000030b00637573746f6d436f6c6f722326da00000000d8040216000a0000030b00637573746f6d436f6c6f722326da00000000da040216000a0000030b00637573746f6d436f6c6f722326da00000000
    [21:11:42] [Server thread/DEBUG]: Unhandled MobArmorEquipmentPacket received from XdmingXD: 0x2008d4040216000a0000030b00637573746f6d436f6c6f722326da00000000d6040216000a0000030b00637573746f6d436f6c6f722326da00000000d8040216000a0000030b00637573746f6d436f6c6f722326da00000000da040216000a0000030b00637573746f6d436f6c6f722326da00000000
    //more
    
     
    Last edited: Jun 10, 2017
  10. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
    @XdmingXD Maybe you have a plugin that is storing a y coordinate as a string ("y" in a config.yml) and forgetting to cast it to float. The error tells you that the 4th argument below is the string "131", whereas it should be a float. If that is the case, you need to fix the plugin to send the correct types.

    Code:
    addEntityMovement(integer 8, integer 8, integer 8, string 131, double 5.62, string 131, integer 10, integer 0, integer 10)

    Don't assume, check if it happens with no plugins.
     
    Last edited: Jun 10, 2017
    XdmingXD likes this.
  11. dktapps

    dktapps Administrator Staff Member PMMP Team

    Messages:
    774
    GitHub:
    dktapps
    public vector properties are a pain in the ass because of the lack of static typing... check what you're writing to those fields.
     
  12. Lowkey

    Lowkey Slime

    Messages:
    94
    It's definitely not a plugin issue, tested.
     
  13. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
    @Lowkey
    We still don't have your system specs, your exact PocketMine version, your plugins list, and most importantly a copy/paste of continuous console output between startup (with no plugins) and the error in question (use pastebin if it's too long) - if you get the error on server startup you should have no problem providing that. So far you've given us nothing concrete to work with, so nobody can help.
     
    corytortoise and jasonwynn10 like this.
  14. Lowkey

    Lowkey Slime

    Messages:
    94
    I agree, and I'm very sorry. I'll provide everything as soon as I can
     
  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.