PocketMine Crash Archive

#29776871 Invalid argument error

Submitted by PocketMine-MP 1.6.2dev-157

General information

Version: 1.6.2dev-157
API version: 3.0.0-ALPHA5
Caused by a Plugin: Not directly
Report date: Sunday 20/03/2022 19:38:38
Attached Issue: None

System Information

PHP version: 7.0.9
Operating system: linux
System banner: Linux 3f17f6580a85 4.15.0-159-generic #167-Ubuntu SMP Tue Sep 21 08:55:05 UTC 2021 x86_64

Error information

Argument 1 passed to pocketmine/utils/Binary::writeUnsignedVarLong_64() must be of the type integer, null given, called in src/pocketmine/utils/Binary.php on line 689
File: /src/pocketmine/utils/Binary
Line: #728
Error level: notice

[719] 		throw new \InvalidArgumentException("Value too large to be encoded as a VarLong");
[720] 	}
[721] 
[722] 	/**
[723] 	 * 64-bit unsigned VarLong encoder.
[724] 	 * @param int $value
[725] 	 *
[726] 	 * @return string
[727] 	 */
[728] 	public static function writeUnsignedVarLong_64(int $value) : string{
[729] 		$buf = "";
[730] 		for($i = 0; $i < 10; ++$i){
[731] 			if(($value >> 7) !== 0){
[732] 				$buf .= \chr($value | 0x80); //Let chr() take the last byte of this, it's faster than adding another & 0x7f.
[733] 			}else{
[734] 				$buf .= \chr($value & 0x7f);
[735] 				return $buf;
[736] 			}
[737] 
[738] 			$value = (($value >> 7) & (\PHP_INT_MAX >> 6)); //PHP really needs a logical right-shift operator
#0 /src/pocketmine/utils/Binary(689): pocketmine\utils\Binary::writeUnsignedVarLong_64(NULL )
#1 /src/pocketmine/utils/BinaryStream__64bit(327): pocketmine\utils\Binary::writeUnsignedVarLong(NULL )
#2 /src/pocketmine/network/mcpe/protocol/DataPacket(294): pocketmine\utils\BinaryStream->putUnsignedVarLong(NULL )
#3 /src/pocketmine/network/mcpe/protocol/SetEntityDataPacket(52): pocketmine\network\mcpe\protocol\DataPacket->putEntityRuntimeId(NULL )
#4 /src/pocketmine/network/mcpe/RakLibInterface(193): pocketmine\network\mcpe\protocol\SetEntityDataPacket->encode(boolean)
#5 /src/pocketmine/Player__64bit(1081): pocketmine\network\mcpe\RakLibInterface->putPacket(pocketmine\Player object, pocketmine\network\mcpe\protocol\SetEntityDataPacket object, boolean , boolean )
#6 /src/pocketmine/entity/Entity__64bit(869): pocketmine\Player->dataPacket(pocketmine\network\mcpe\protocol\SetEntityDataPacket object)
#7 /src/pocketmine/Player__64bit(872): pocketmine\entity\Entity->sendData(array Array())
#8 /src/pocketmine/Player__64bit(861): pocketmine\Player->doFirstSpawn(boolean)
#9 /src/pocketmine/Player__64bit(1743): pocketmine\Player->sendNextChunk(boolean)
#10 /src/pocketmine/Server__64bit(2417): pocketmine\Player->checkNetwork(boolean)
#11 /src/pocketmine/Server__64bit(2179): pocketmine\Server->tick(boolean)
#12 /src/pocketmine/Server__64bit(2061): pocketmine\Server->tickProcessor(boolean)
#13 /src/pocketmine/Server__64bit(1646): pocketmine\Server->start(boolean)
#14 /src/pocketmine/PocketMine(501): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string phar:///pro/bin/mcpe/pocketmine-1.1/PocketMine-MP_1.6.2dev-157_c445db42_API-3.0.0-ALPHA5.phar/, string /home/gs-41225/, string /home/gs-41225/plugins/)
#15 (1): require(string phar:///pro/bin/mcpe/pocketmine-1.1/PocketMine-MP_1.6.2dev-157_c445db42_API-3.0.0-ALPHA5.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

NameVersionStateAuthor(s)

Server Settings [toggle]

NameValue
gamemode0
enable-rconoff
white-listoff
hardcoreoff
level-nameworld
max-players10
auto-saveon
spawn-protection16
motdServer.pro | play
announce-player-achievementson
allow-flightoff
spawn-animalson
spawn-mobson
force-gamemodeoff
pvpon
difficulty1
generator-settings
level-seed
level-typeDEFAULT
rcon.password******
view-distance8
enable-queryon
disable-logfileoff
server-port41225
settings.languageeng
settings.force-languagefalse
settings.shutdown-messageServer closed
settings.query-pluginstrue
settings.deprecated-verbosetrue
settings.enable-profilingfalse
settings.profile-report-trigger20
settings.async-workersauto
memory.global-limit0
memory.main-limit0
memory.main-hard-limit1024
memory.check-rate20
memory.continuous-triggertrue
memory.continuous-trigger-rate30
memory.garbage-collection.period36000
memory.garbage-collection.collect-async-workertrue
memory.garbage-collection.low-memory-triggertrue
memory.max-chunks.chunk-radius4
memory.max-chunks.trigger-chunk-collecttrue
memory.max-chunks.low-memory-triggertrue
memory.world-caches.disable-chunk-cachetrue
memory.world-caches.low-memory-triggertrue
network.batch-threshold256
network.compression-level7
network.async-compressionfalse
network.upnp-forwardingfalse
debug.assertions.warn-if-enabledtrue
debug.level1
debug.commandsfalse
player.save-player-datatrue
player.anti-cheat.allow-movement-cheatsfalse
player.anti-cheat.allow-instabreakfalse
level-settings.default-formatpmanvil
level-settings.auto-tick-ratetrue
level-settings.auto-tick-rate-limit20
level-settings.base-tick-rate1
level-settings.always-tick-playersfalse
chunk-sending.per-tick4
chunk-sending.spawn-radius4
chunk-sending.cache-chunksfalse
chunk-ticking.per-tick40
chunk-ticking.tick-radius3
chunk-ticking.light-updatesfalse
chunk-ticking.clear-tick-listtrue
chunk-ticking.disable-block-ticking
chunk-generation.queue-size8
chunk-generation.population-queue-size8
ticks-per.animal-spawns400
ticks-per.monster-spawns1
ticks-per.autosave6000
ticks-per.cache-cleanup900
spawn-limits.monsters70
spawn-limits.animals15
spawn-limits.water-animals5
spawn-limits.ambient15
auto-report.enabledtrue
auto-report.send-codetrue
auto-report.send-settingstrue
auto-report.send-phpinfofalse
auto-report.hostcrash.pocketmine.net
anonymous-statistics.enabledtrue
anonymous-statistics.hoststats.pocketmine.net
auto-updater.enabledtrue
auto-updater.on-update.warn-consoletrue
auto-updater.on-update.warn-opstrue
auto-updater.preferred-channelbeta
auto-updater.suggest-channelstrue
auto-updater.hostwww.pocketmine.net
timings.hosttimings.pmmp.io
console.title-ticktrue
aliases
worlds
Find duplicates  |   Download