menu
#239 pocketmine\world\format\PalettedBlockArray::fromData(): Argument #3 ($palette) must be of type array, string given

Submitted by PocketMine-MP 5.18.1+dev.2059

General information

Version: 5.18.1+dev.2059
Git commit: ee4bc53a
Plugin involvement: Indirect
Report date: 2024-09-29 21:36:24 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 35 seconds

System Information

PHP version: 8.3.4
JIT status: Not available
Operating system: linux
System banner: Linux anmine.ru 5.10.0-32-amd64 #1 SMP Debian 5.10.223-1 (2024-08-10) x86_64

Error information

Warning: a plugin was indirectly involved in this crash. This may be a false positive. Please contact the plugin author before opening a bug ticket.
Thread: Main
Message: pocketmine\world\format\PalettedBlockArray::fromData(): Argument #3 ($palette) must be of type array, string given
File: pmsrc/src/world/format/io/FastChunkSerializer
Line: #93
Type: TypeError
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
		}

return $stream->getBuffer();
}

private static function deserializePalettedArray(BinaryStream $stream) : PalettedBlockArray{
$bitsPerBlock = $stream->getByte();
$words = $stream->get(PalettedBlockArray::getExpectedWordArraySize($bitsPerBlock));
$unpackedPalette = $stream->get($stream->getInt());
return PalettedBlockArray::fromData($bitsPerBlock, $words, $unpackedPalette);
}

/**
* Deserializes a fast-serialized chunk
*/
public static function deserializeTerrain(string $data) : Chunk{
$stream = new BinaryStream($data);

$flags = $stream->getByte();
$terrainPopulated = (bool) ($flags & self::FLAG_POPULATED);
#0 pmsrc/src/world/format/io/FastChunkSerializer(93): pocketmine\world\format\PalettedBlockArray::fromData(int 1, string[512] ................................................................................, string[8] ........)
#1 pmsrc/src/world/format/io/FastChunkSerializer(117): pocketmine\world\format\io\FastChunkSerializer::deserializePalettedArray(object pocketmine\utils\BinaryStream#154544)
#2 pmsrc/src/world/generator/PopulationTask(139): pocketmine\world\format\io\FastChunkSerializer::deserializeTerrain(string[19219] ....8...........................................................................)
#3 pmsrc/src/scheduler/AsyncPool(280): pocketmine\world\generator\PopulationTask->onCompletion()
#4 pmsrc/src/timings/TimingsHandler(198): pocketmine\scheduler\AsyncPool->pocketmine\scheduler\{closure}()
#5 pmsrc/src/scheduler/AsyncPool(279): pocketmine\timings\TimingsHandler->time(object Closure#154540)
#6 pmsrc/src/scheduler/AsyncPool(241): pocketmine\scheduler\AsyncPool->collectTasksFromWorker(int 0)
#7 pmsrc/src/Server(1915): pocketmine\scheduler\AsyncPool->collectTasks()
#8 pmsrc/src/Server(1800): pocketmine\Server->tick()
#9 pmsrc/src/Server(1117): pocketmine\Server->tickProcessor()
#10 pmsrc/src/PocketMine(355): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#2, object pocketmine\utils\MainLogger#6, string[25] /home/anmine/servers/s99/, string[33] /home/anmine/servers/s99/plugins/)
#11 pmsrc/src/PocketMine(378): pocketmine\server()
#12 /home/anmine/startup/tests/PocketMine-MP.phar(168): require(string[72] phar:///tmp/PocketMine-MP-phar-cache.0/PMMP3iwiCm.tar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show