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

anvil bug #187

Closed junxiesky closed 5 years ago

junxiesky commented 5 years ago

Issue description

Steps to reproduce the issue

  1. Prepare a green hat
  2. Put in anvil
  3. Make a name change
  4. To retrieve the backpack
  5. The renaming was successful, but the player was kicked off the server

OS and versions

server logs: 15:45:51 <Server thread/Critical> InvalidArgumentException: "Value -1 is outside the range 0 - 24791" (EXCEPTION) in "src/pocketmine/entity/Attribute" at line 202 15:45:51 <Server thread/Debug> #0 src/pocketmine/entity/Human(508): pocketmine\entity\Attribute->setValue(double -1) 15:45:51 <Server thread/Debug> #1 src/pocketmine/entity/Human(350): pocketmine\entity\Human->setXpAndProgress(integer -1, NULL ) 15:45:51 <Server thread/Debug> #2 src/pocketmine/entity/Human(363): pocketmine\entity\Human->setXpLevel(integer -1) 15:45:51 <Server thread/Debug> #3 src/pocketmine/inventory/AnvilInventory(239): pocketmine\entity\Human->addXpLevels(integer -1) 15:45:51 <Server thread/Debug> #4 src/pocketmine/network/mcpe/protocol/types/NetworkInventoryAction(274): pocketmine\inventory\AnvilInventory->onResult(object pocketmine\Player, object pocketmine\item\LeatherCap) 15:45:51 <Server thread/Debug> #5 src/pocketmine/Player(2452): pocketmine\network\mcpe\protocol\types\NetworkInventoryAction->createInventoryAction(object pocketmine\Player) 15:45:51 <Server thread/Debug> #6 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(157): pocketmine\Player->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket) 15:45:51 <Server thread/Debug> #7 src/pocketmine/network/mcpe/protocol/InventoryTransactionPacket(158): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket) 15:45:51 <Server thread/Debug> #8 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(117): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) 15:45:51 <Server thread/Debug> #9 src/pocketmine/network/mcpe/protocol/BatchPacket(127): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket) 15:45:51 <Server thread/Debug> #10 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(117): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) 15:45:51 <Server thread/Debug> #11 src/pocketmine/Player(3368): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) 15:45:51 <Server thread/Debug> #12 src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) 15:45:51 <Server thread/Debug> #13 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[20] 47.244.201.156 38426, object raklib\protocol\EncapsulatedPacket, integer 0) 15:45:51 <Server thread/Debug> #14 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket() 15:45:51 <Server thread/Debug> #15 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process() 15:45:51 <Server thread/Debug> #16 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}() 15:45:51 <Server thread/Debug> #17 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications() 15:45:51 <Server thread/Debug> #18 src/pocketmine/Server(2458): pocketmine\snooze\SleeperHandler->sleepUntil(double 1569483951.067) 15:45:51 <Server thread/Debug> #19 src/pocketmine/Server(2318): pocketmine\Server->tickProcessor() 15:45:51 <Server thread/Debug> #20 src/pocketmine/Server(1891): pocketmine\Server->start() 15:45:51 <Server thread/Debug> #21 src/pocketmine/PocketMine(275): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[10] /root/sky/, string[18] /root/sky/plugins/) 15:45:51 <Server thread/Debug> #22 src/pocketmine/PocketMine(299): pocketmine\server() 15:45:51 <Server thread/Debug> #23 (1): require_once(string[54] phar:///root/sky/pm.phar/src/pocketmine/PocketMine.php) 15:45:51 <Server thread/Info> junxiesky 离开了空之纪元 15:45:51 <Server thread/Info> junxiesky[/47.244.201.156:38426] 退出了游戏,原因 :Internal server error 15:45:51 <RakLibServer thread/Notice> Blocked 47.244.201.156 for 5 seconds

phoshp commented 5 years ago

can you send video?

junxiesky commented 5 years ago

ok this is video:@EmreTr1 video.mp4.zip

junxiesky commented 5 years ago

Anvil and a lot of BUG

junxiesky commented 5 years ago

advil bug#2.mp4.zip