Closed StefanFox-Dev closed 1 year ago
Link to crashdump:
Error: Unsupported item descriptor type File: pmsrc/vendor/nethergamesmc/bedrock-protocol/src/serializer/PacketSerializer Line: 425 Type: InvalidArgumentException Backtrace:
a
Code: [416] $type?->write($this); [417] [418] $this->putVarInt($ingredient->getCount()); [419] }elseif($type instanceof IntIdMetaItemDescriptor){ [420] $type->write($this); [421] if($type->getId() !== 0){ [422] $this->putVarInt($ingredient->getCount()); [423] } [424] }else{ [425] throw new \InvalidArgumentException("Unsupported item descriptor type"); [426] } [427] } [428] [429] /* [430] Decodes entity metadata from the stream. [431] [432] @return MetadataProperty[] [433] @phpstan-return array<int, MetadataProperty> [434] [435] * @throws PacketDecodeException
The player join server - crash, the player version is 1.18
Link to crashdump:
Error: Unsupported item descriptor type File: pmsrc/vendor/nethergamesmc/bedrock-protocol/src/serializer/PacketSerializer Line: 425 Type: InvalidArgumentException Backtrace:
0 pmsrc/vendor/nethergamesmc/bedrock-protocol/src/types/recipe/ShapelessRecipe(96): pocketmine\network\mcpe\protocol\serializer\PacketSerializer->putRecipeIngredient(object pocketmine\network\mcpe\protocol\types\recipe\RecipeIngredient#217309)
1 pmsrc/vendor/nethergamesmc/bedrock-protocol/src/CraftingDataPacket(120): pocketmine\network\mcpe\protocol\types\recipe\ShapelessRecipe->encode(object pocketmine\network\mcpe\protocol\serializer\PacketSerializer#104764)
2 pmsrc/vendor/nethergamesmc/bedrock-protocol/src/DataPacket(84): pocketmine\network\mcpe\protocol\CraftingDataPacket->encodePayload(object pocketmine\network\mcpe\protocol\serializer\PacketSerializer#104764)
3 pmsrc/src/network/mcpe/NetworkSession(563): pocketmine\network\mcpe\protocol\DataPacket->encode(object pocketmine\network\mcpe\protocol\serializer\PacketSerializer#104764)
4 pmsrc/src/network/mcpe/NetworkSession(544): pocketmine\network\mcpe\NetworkSession::encodePacketTimed(object pocketmine\network\mcpe\protocol\serializer\PacketSerializer#104764, object pocketmine\network\mcpe\protocol\CraftingDataPacket#105173)
5 pmsrc/src/network/mcpe/handler/PreSpawnPacketHandler(149): pocketmine\network\mcpe\NetworkSession->sendDataPacket(object pocketmine\network\mcpe\protocol\CraftingDataPacket#105173)
6 pmsrc/src/network/mcpe/NetworkSession(365): pocketmine\network\mcpe\handler\PreSpawnPacketHandler->setUp()
7 pmsrc/src/network/mcpe/NetworkSession(891): pocketmine\network\mcpe\NetworkSession->setHandler(object pocketmine\network\mcpe\handler\PreSpawnPacketHandler#37256)
8 pmsrc/src/network/mcpe/NetworkSession(316): pocketmine\network\mcpe\NetworkSession->beginSpawnSequence()
9 pmsrc/src/promise/Promise(45): pocketmine\network\mcpe\NetworkSession->onPlayerCreated(object pocketmine\player\Player#201690)
10 pmsrc/src/network/mcpe/NetworkSession(259): pocketmine\promise\Promise->onCompletion(object Closure#201691, object Closure#201702)
11 pmsrc/src/network/mcpe/NetworkSession(886): pocketmine\network\mcpe\NetworkSession->createPlayer()
12 pmsrc/src/network/mcpe/handler/ResourcePacksPacketHandler(144): pocketmine\network\mcpe\NetworkSession->pocketmine\network\mcpe{closure}()
13 pmsrc/vendor/nethergamesmc/bedrock-protocol/src/ResourcePackClientResponsePacket(61): pocketmine\network\mcpe\handler\ResourcePacksPacketHandler->handleResourcePackClientResponse(object pocketmine\network\mcpe\protocol\ResourcePackClientResponsePacket#126119)
14 pmsrc/src/network/mcpe/NetworkSession(512): pocketmine\network\mcpe\protocol\ResourcePackClientResponsePacket->handle(object pocketmine\network\mcpe\handler\ResourcePacksPacketHandler#201723)
15 pmsrc/src/network/mcpe/NetworkSession(455): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\ResourcePackClientResponsePacket#126119, string[4] ....)
16 pmsrc/src/network/mcpe/raklib/RakLibInterface(217): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[7] c.
a
..)17 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 1, string[16] .0u..A........T.)
18 pmsrc/src/network/mcpe/raklib/RakLibInterface(109): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#175555)
19 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib{closure}()
20 pmsrc/src/TimeTrackingSleeperHandler(58): pocketmine\snooze\SleeperHandler->processNotifications()
21 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(79): pocketmine\TimeTrackingSleeperHandler->processNotifications()
22 pmsrc/src/Server(1687): pocketmine\snooze\SleeperHandler->sleepUntil(float 1689219684.1071)
23 pmsrc/src/Server(1075): pocketmine\Server->tickProcessor()
24 pmsrc/src/PocketMine(334): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#4, object pocketmine\utils\MainLogger#5, string[11] /pm5/, string[19] /pm5/plugins/)
25 pmsrc/src/PocketMine(357): pocketmine\server()
Code: [416] $type?->write($this); [417] [418] $this->putVarInt($ingredient->getCount()); [419] }elseif($type instanceof IntIdMetaItemDescriptor){ [420] $type->write($this); [421] if($type->getId() !== 0){ [422] $this->putVarInt($ingredient->getCount()); [423] } [424] }else{ [425] throw new \InvalidArgumentException("Unsupported item descriptor type"); [426] } [427] } [428] [429] /* [430] Decodes entity metadata from the stream. [431] [432] @return MetadataProperty[] [433] @phpstan-return array<int, MetadataProperty> [434] [435] * @throws PacketDecodeException
The player join server - crash, the player version is 1.18
Additional comments (optional)