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

pocketmine binary error

Discussion in 'Help' started by fadil, Jun 8, 2017.

  1. fadil

    fadil Creeper

    Messages:
    3
    GitHub:
    oiaue
    Help me to solve it


    PocketMine-MP Crash Dump Thu Jun 8 16:11:59 CEST 2017

    Error: Argument 1 passed to pocketmine\utils\Binary::writeVarLong_64() must be of the type integer, null given, called in phar:///home/gs/gs/data/servers/6599827/PocketMine-MP_1.6.2dev-157_c445db42_API-3.0.0-ALPHA5.phar/src/pocketmine/utils/Binary.php on line 650
    File: /src/pocketmine/utils/Binary
    Line: 677
    Type: notice

    Code:
    [668] return self::writeUnsignedVarLong_32($v);
    [669] }
    [670]
    [671] /**
    [672] * 64-bit VarLong encoder.
    [673] *
    [674] * @param int $v
    [675] * @return string
    [676] */
    [677] public static function writeVarLong_64(int $v) : string{
    [678] return self::writeUnsignedVarLong_64(($v << 1) ^ ($v >> 63));
    [679] }
    [680]
    [681] /**
    [682] * Writes a 64-bit integer as a variable-length long
    [683] *
    [684] * @param int|string $v
    [685] * @return string up to 10 bytes
    [686] */
    [687] public static function writeUnsignedVarLong($v) : string{

    Backtrace:
    #0 /src/pocketmine/utils/Binary(650): pocketmine\utils\Binary::writeVarLong_64(NULL )
    #1 /src/pocketmine/utils/BinaryStream__64bit(343): pocketmine\utils\Binary::writeVarLong(NULL )
    #2 /src/pocketmine/network/mcpe/protocol/DataPacket(278): pocketmine\utils\BinaryStream->putVarLong(NULL )
    #3 /src/pocketmine/network/mcpe/protocol/AddEntityPacket(78): pocketmine\network\mcpe\protocol\DataPacket->putEntityUniqueId(NULL )
    #4 /src/pocketmine/network/mcpe/RakLibInterface(193): pocketmine\network\mcpe\protocol\AddEntityPacket->encode(boolean)
    #5 /src/pocketmine/Player__64bit(1081): pocketmine\network\mcpe\RakLibInterface->putPacket(pocketmine\Player object, pocketmine\network\mcpe\protocol\AddEntityPacket object, boolean , boolean )
    #6 /PureEntitiesX_v0.2.2_dev.phar/src/revivalpmmp/pureentities/entity/BaseEntity(208): pocketmine\Player->dataPacket(pocketmine\network\mcpe\protocol\AddEntityPacket object)
    #7 /src/pocketmine/Player__64bit(820): revivalpmmp\pureentities\entity\BaseEntity->spawnTo(pocketmine\Player object)
    #8 /src/pocketmine/level/Level__64bit(2431): pocketmine\Player->sendChunk(integer 8, integer 8, pocketmine\network\mcpe\protocol\BatchPacket object)
    #9 /src/pocketmine/level/format/io/ChunkRequestTask(88): pocketmine\level\Level->chunkRequestCallback(integer 8, integer 8, pocketmine\network\mcpe\protocol\BatchPacket object)
    #10 /src/pocketmine/scheduler/AsyncPool(158): pocketmine\level\format\io\ChunkRequestTask->onCompletion(pocketmine\Server object)
    #11 /src/pocketmine/scheduler/ServerScheduler(339): pocketmine\scheduler\AsyncPool->collectTasks(boolean)
    #12 /src/pocketmine/Server__64bit(2411): pocketmine\scheduler\ServerScheduler->mainThreadHeartbeat(integer 13893)
    #13 /src/pocketmine/Server__64bit(2179): pocketmine\Server->tick(boolean)
    #14 /src/pocketmine/Server__64bit(2061): pocketmine\Server->tickProcessor(boolean)
    #15 /src/pocketmine/Server__64bit(1646): pocketmine\Server->start(boolean)
    #16 /src/pocketmine/PocketMine(501): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string phar:///home/gs/gs/data/servers/6599827/PocketMine-MP_1.6.2dev-157_c445db42_API-3.0.0-ALPHA5.phar/, string /home/gs/gs/data/servers/6599827/, string /home/gs/gs/data/servers/6599827/plugins/)
    #17 (1): require(string phar:///home/gs/gs/data/servers/6599827/PocketMine-MP_1.6.2dev-157_c445db42_API-3.0.0-ALPHA5.phar/src/pocketmine/PocketMine.php)

    PocketMine-MP version: 1.6.2dev #157 [Protocol 113; API 3.0.0-ALPHA5]
    Git commit: 0000000000000000000000000000000000000000
    uname -a: Linux fr53.server.pro 3.14.32-xxxx-grs-ipv6-64 #9 SMP Thu Oct 20 14:53:52 CEST 2016 x86_64
    PHP Version: 7.0.9
    Zend version: 3.0.0
    OS : Linux, linux

    Loaded plugins:
    FactionsPro 1.3.9 by Tethered_ for API(s) 2.0.0, 3.0.0-ALPHA1, 3.0.0-ALPHA2, 3.0.0-ALPHA3, 3.0.0-ALPHA4, 3.0.0-ALPHA5
    PlayerInfo 1.2.2 by Matthww for API(s) 3.0.0-ALPHA1, 3.0.0-ALPHA2, 3.0.0-ALPHA3, 3.0.0-ALPHA4, 3.0.0-ALPHA5
    PureEntitiesX 0.2.2_dev by milk0417, RevivalPMMP for API(s) 3.0.0-ALPHA5
    Slapper 1.3.4 by jojoe77777 for A
     
  2. HBIDamian

    HBIDamian HBIDamian Staff Member

    Messages:
    365
    GitHub:
    HBIDamian
    Aaaaaaaaaaaaaand thats the way the cookie crumbles.

    Here's a hint. Take one plugin away one at a time, to see which one is the culprit.
    Then go tell that person to stop making plugins that are glitchy
    (also get rid of the plugin)



    ALSO... WRITE A PROPPER TITLE!!!!!!!
    we need to keep the forum organised! Stop saying "HELP ME!!!". If you have a sensible title, other people might be able to get the same issue fixed...
     
    HimbeersaftLP, SalmonDE and Sandertv like this.
  3. fadil

    fadil Creeper

    Messages:
    3
    GitHub:
    oiaue
    Tell me what is it
     
  4. fadil

    fadil Creeper

    Messages:
    3
    GitHub:
    oiaue
    Its slapper!!!!!!!
     
  5. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
    The error message above tells you exactly where the problem lies: PureEntitiesX. If you are coming from a spoon (and even if you aren't but are using very recent PMMP builds), there's a high probability that your slapper plugin is broken too, but that's not what the error you posted is about.

    On the Poggit release page for each plugin there's a link to the github repository - that's generally where you should post the error and request help.
     
  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.