unresolved3169 / Altay

A server software for Minecraft: Bedrock Edition in PHP (ABONDONED)
GNU Lesser General Public License v3.0
143 stars 52 forks source link

EnchantTable and Anvil Crash #148

Closed Nerahikada closed 5 years ago

Nerahikada commented 5 years ago

Issue description

Player crashed use EnchantTable after used Anvil.

Steps to reproduce the issue

  1. Use Anvil.
  2. Use EnchantTalbe.

OS and versions

Crashdump, backtrace or other files

11:51:11 <Server thread/Critical> InvalidStateException: "Unexpected fake inventory given. Expected pocketmine\inventory\EnchantInventory , given pocketmine\inventory\AnvilInventory" (EXCEPTION) in "src/pocketmine/network/mcpe/protocol/types/NetworkInventoryAction" at line 223
11:51:11 <Server thread/Debug> #0 src/pocketmine/Player(2475): pocketmine\network\mcpe\protocol\types\NetworkInventoryAction->createInventoryAction(pocketmine\Player object)
11:51:11 <Server thread/Debug> #1 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(156): pocketmine\Player->handleInventoryTransaction(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object)
11:51:11 <Server thread/Debug> #2 src/pocketmine/network/mcpe/protocol/InventoryTransactionPacket(158): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object)
11:51:11 <Server thread/Debug> #3 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(116): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
11:51:11 <Server thread/Debug> #4 src/pocketmine/network/mcpe/protocol/BatchPacket(127): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object)
11:51:11 <Server thread/Debug> #5 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(116): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
11:51:11 <Server thread/Debug> #6 src/pocketmine/Player(3378): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
11:51:11 <Server thread/Debug> #7 src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
11:51:11 <Server thread/Debug> #8 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 59.133.15.189 64629, raklib\protocol\EncapsulatedPacket object, integer 0)
11:51:11 <Server thread/Debug> #9 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
11:51:11 <Server thread/Debug> #10 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
11:51:11 <Server thread/Debug> #11 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
11:51:11 <Server thread/Debug> #12 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
11:51:11 <Server thread/Debug> #13 src/pocketmine/Server(2392): pocketmine\snooze\SleeperHandler->sleepUntil(double 1558839071.8215)
11:51:11 <Server thread/Debug> #14 src/pocketmine/Server(2297): pocketmine\Server->tickProcessor()
11:51:11 <Server thread/Debug> #15 src/pocketmine/Server(1875): pocketmine\Server->start()
11:51:11 <Server thread/Debug> #16 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/pmmp/, string /home/pmmp/plugins/)
11:51:11 <Server thread/Debug> #17 (1): require_once(string phar:///home/pmmp/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
Erkam246 commented 5 years ago

Cant reproduce