Skip to content

Instantly share code, notes, and snippets.

@BrianZP
Created June 4, 2017 13:49
Show Gist options
  • Save BrianZP/da43ca78d5b7e5acf8ccce824d468912 to your computer and use it in GitHub Desktop.
Save BrianZP/da43ca78d5b7e5acf8ccce824d468912 to your computer and use it in GitHub Desktop.
Crashdump.
PocketMine-MP Crash Dump Sun Jun 4 15:44:25 CEST 2017
Error: Argument 1 passed to pocketmine\utils\Binary::writeVarInt() must be of the type integer, float given, called in phar:///home/gs/gs/data/servers/5786641/PocketMine-MP_1.6.2dev.phar/src/pocketmine/utils/BinaryStream.php on line 301
File: /src/pocketmine/utils/Binary
Line: 496
Type: notice
Code:
[487] throw new \InvalidArgumentException("VarInt did not terminate after 5 bytes!");
[488] }
[489]
[490] /**
[491] * Writes a 32-bit integer as a zigzag-encoded variable-length integer.
[492] *
[493] * @param int $v
[494] * @return string
[495] */
[496] public static function writeVarInt(int $v) : string{
[497] if(PHP_INT_SIZE === 8){
[498] $v = ($v << 32 >> 32);
[499] }
[500] return self::writeUnsignedVarInt(($v << 1) ^ ($v >> 31));
[501] }
[502]
[503] /**
[504] * Writes a 32-bit unsigned integer as a variable-length integer.
[505] *
[506] * @param int $value
Backtrace:
#0 /src/pocketmine/utils/BinaryStream(301): pocketmine\utils\Binary::writeVarInt(double 22)
#1 /src/pocketmine/network/mcpe/protocol/DataPacket(306): pocketmine\utils\BinaryStream->putVarInt(double 22)
#2 /src/pocketmine/network/mcpe/protocol/UpdateBlockPacket(58): pocketmine\network\mcpe\protocol\DataPacket->putBlockPosition(double 22, double 14, double -17)
#3 /src/pocketmine/Server(1784): pocketmine\network\mcpe\protocol\UpdateBlockPacket->encode(boolean)
#4 /src/pocketmine/level/Level(898): pocketmine\Server->broadcastPacket(array Array(), pocketmine\network\mcpe\protocol\UpdateBlockPacket object)
#5 /PlayerVaults.phar/src/PlayerVaults/Provider(126): pocketmine\level\Level->sendBlocks(array Array(), array Array())
#6 /PlayerVaults.phar/src/PlayerVaults/Task/FetchInventoryTask(111): PlayerVaults\Provider->get(pocketmine\Player object, array Array(), integer 1, string zanewalter)
#7 /src/pocketmine/scheduler/AsyncPool(158): PlayerVaults\Task\FetchInventoryTask->onCompletion(pocketmine\Server object)
#8 /src/pocketmine/scheduler/ServerScheduler(339): pocketmine\scheduler\AsyncPool->collectTasks(boolean)
#9 /src/pocketmine/Server(2414): pocketmine\scheduler\ServerScheduler->mainThreadHeartbeat(integer 2601)
#10 /src/pocketmine/Server(2182): pocketmine\Server->tick(boolean)
#11 /src/pocketmine/Server(2064): pocketmine\Server->tickProcessor(boolean)
#12 /src/pocketmine/Server(1646): pocketmine\Server->start(boolean)
#13 /src/pocketmine/PocketMine(501): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string phar:///home/gs/gs/data/servers/5786641/PocketMine-MP_1.6.2dev.phar/, string /home/gs/gs/data/servers/5786641/, string /home/gs/gs/data/servers/5786641/plugins/)
#14 (1): require_once(string phar:///home/gs/gs/data/servers/5786641/PocketMine-MP_1.6.2dev.phar/src/pocketmine/PocketMine.php)
PocketMine-MP version: 1.6.2dev #0 [Protocol 113; API 3.0.0-ALPHA5]
Git commit: 0000000000000000000000000000000000000000
uname -a: Linux ca39.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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment