CortexPE / TeaSpoon

☕ A PLUGIN to Extend PMMP's Functionality without completely changing it.
GNU Affero General Public License v3.0
144 stars 100 forks source link

[ Crash with crashdump] : Undefined property:\MobArmorEquipmentPacket::$slots #410

Closed teracube closed 5 years ago

teracube commented 5 years ago

https://poggit.pmmp.io/r/57843/TeaSpoon_dev-276.phar https://jenkins.pmmp.io/job/PocketMine-MP/1765/artifact/PocketMine-MP.phar

2019-06-11 [21:11:13] [Server thread/CRITICAL]: Error: "Undefined property: pocketmine\network\mcpe\protocol\MobArmorEquipmentPacket::$slots" (EXCEPTION) in "src/pocketmine/network/mcpe/protocol/DataPacket" at line 164
2019-06-11 [21:11:13] [Server thread/DEBUG]: #0 plugins/TeaSpoon_dev-276.phar/src/CortexPE/entity/object/ArmorStand(302): pocketmine\network\mcpe\protocol\DataPacket->__set(string[5] slots, array[4])
2019-06-11 [21:11:13] [Server thread/DEBUG]: #1 plugins/TeaSpoon_dev-276.phar/src/CortexPE/entity/object/ArmorStand(319): CortexPE\entity\object\ArmorStand->sendArmorItems(object pocketmine\Player)
2019-06-11 [21:11:13] [Server thread/DEBUG]: #2 src/pocketmine/entity/Entity(2055): CortexPE\entity\object\ArmorStand->spawnTo(object pocketmine\Player)
2019-06-11 [21:11:13] [Server thread/DEBUG]: #3 plugins/TeaSpoon_dev-276.phar/src/CortexPE/item/ArmorStand(58): pocketmine\entity\Entity->spawnToAll()
2019-06-11 [21:11:13] [Server thread/DEBUG]: #4 src/pocketmine/level/Level(1920): CortexPE\item\ArmorStand->onActivate(object pocketmine\Player, object pocketmine\block\Air, object pocketmine\block\EndStone, integer 1, object pocketmine\math\Vector3)
2019-06-11 [21:11:13] [Server thread/DEBUG]: #5 src/pocketmine/Player(2417): pocketmine\level\Level->useItemOn(object pocketmine\math\Vector3, object CortexPE\item\ArmorStand, integer 1, object pocketmine\math\Vector3, object pocketmine\Player, boolean 1)
2019-06-11 [21:11:13] [Server thread/DEBUG]: #6 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(150): pocketmine\Player->handleInventoryTransaction(object CortexPE\network\InventoryTransactionPacket)
2019-06-11 [21:11:13] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/protocol/InventoryTransactionPacket(158): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(object CortexPE\network\InventoryTransactionPacket)
2019-06-11 [21:11:13] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
2019-06-11 [21:11:13] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/protocol/BatchPacket(123): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object CortexPE\network\InventoryTransactionPacket)
2019-06-11 [21:11:13] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
2019-06-11 [21:11:13] [Server thread/DEBUG]: #11 src/pocketmine/Player(3124): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
2019-06-11 [21:11:13] [Server thread/DEBUG]: #12 src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
2019-06-11 [21:11:13] [Server thread/DEBUG]: #13 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[20] 88.XXX.XXX.192 39985, object raklib\protocol\EncapsulatedPacket, integer 0)
2019-06-11 [21:11:13] [Server thread/DEBUG]: #14 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
2019-06-11 [21:11:13] [Server thread/DEBUG]: #15 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
2019-06-11 [21:11:13] [Server thread/DEBUG]: #16 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
2019-06-11 [21:11:13] [Server thread/DEBUG]: #17 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
2019-06-11 [21:11:13] [Server thread/DEBUG]: #18 src/pocketmine/Server(2338): pocketmine\snooze\SleeperHandler->sleepUntil(double 1560280273.3633)
2019-06-11 [21:11:13] [Server thread/DEBUG]: #19 src/pocketmine/Server(2195): pocketmine\Server->tickProcessor()
2019-06-11 [21:11:13] [Server thread/DEBUG]: #20 src/pocketmine/Server(1774): pocketmine\Server->start()
2019-06-11 [21:11:13] [Server thread/DEBUG]: #21 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[34] /home/gsp_1485/g3.hmserv.eu-19144/, string[42] /home/gsp_1485/g3.hmserv.eu-19144/plugins/)
2019-06-11 [21:11:13] [Server thread/DEBUG]: #22 (1): require(string[89] phar:///home/gsp_1485/g3.hmserv.eu-19144/PocketMine-MP.phar/src/pocketmine/Pocke)
2019-06-11 [21:11:13] [Server thread/INFO]: FlowerBulb214 [-]
2019-06-11 [21:11:13] [Server thread/INFO]: FlowerBulb214[/88.XXX.XXX.192:39985] logged out due to Internal server error
2019-06-11 [21:11:13] [RakLibServer thread/NOTICE]: Blocked 88.XXX.XXX.192 for 5 seconds
teracube commented 5 years ago

@CortexPE another crash with crashdump

https://poggit.pmmp.io/r/57843/TeaSpoon_dev-276.phar https://jenkins.pmmp.io/job/PocketMine-MP/1765/artifact/PocketMine-MP.phar

PocketMine-MP Crash Dump Thu Jun 13 18:31:06 CEST 2019

Error: Undefined property: pocketmine\network\mcpe\protocol\MobArmorEquipmentPacket::$slots
File: src/pocketmine/network/mcpe/protocol/DataPacket
Line: 164
Type: Error

A PLUGIN WAS INVOLVED IN THIS CRASH
BAD PLUGIN: TeaSpoon v1.1.2

Code:
[155] 
[156]       return $data;
[157]   }
[158] 
[159]   public function __get($name){
[160]       throw new \Error("Undefined property: " . get_class($this) . "::\$" . $name);
[161]   }
[162] 
[163]   public function __set($name, $value){
[164]       throw new \Error("Undefined property: " . get_class($this) . "::\$" . $name);
[165]   }
[166] }

Backtrace:
#0 plugins/TeaSpoon_dev-276.phar/src/CortexPE/entity/object/ArmorStand(302): pocketmine\network\mcpe\protocol\DataPacket->__set(string[5] slots, array[4])
#1 plugins/TeaSpoon_dev-276.phar/src/CortexPE/entity/object/ArmorStand(319): CortexPE\entity\object\ArmorStand->sendArmorItems(object pocketmine\Player)
#2 src/pocketmine/Player(1018): CortexPE\entity\object\ArmorStand->spawnTo(object pocketmine\Player)
#3 src/pocketmine/level/Level(2639): pocketmine\Player->sendChunk(integer 2, integer 39, object pocketmine\network\mcpe\protocol\BatchPacket)
#4 src/pocketmine/level/Level(2691): pocketmine\level\Level->sendChunkFromCache(integer 2, integer 39)
#5 src/pocketmine/level/format/io/ChunkRequestTask(75): pocketmine\level\Level->chunkRequestCallback(integer 2, integer 39, object pocketmine\network\mcpe\protocol\BatchPacket)
#6 src/pocketmine/scheduler/AsyncPool(319): pocketmine\level\format\io\ChunkRequestTask->onCompletion(object pocketmine\Server)
#7 src/pocketmine/Server(2563): pocketmine\scheduler\AsyncPool->collectTasks()
#8 src/pocketmine/Server(2335): pocketmine\Server->tick()
#9 src/pocketmine/Server(2195): pocketmine\Server->tickProcessor()
#10 src/pocketmine/Server(1774): pocketmine\Server->start()
#11 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[34] /home/teracube/, string[42] /home/teracube/plugins/)
#12 (1): require(string[89] phar:///home/teracube/PocketMine-MP.phar/src/pocketmine/Pocke)

PocketMine-MP version: 3.8.4 [Protocol 354]
Git commit: a42f68d3cf368535d205d35d4bf7d1c201fbb3d8
uname -a: Linux g1 4.5.0-0.bpo.2-amd64 #1 SMP Debian 4.5.4-1~bpo8+1 (2016-05-13) x86_64
PHP Version: 7.3.5
Zend version: 3.3.5
OS : Linux, linux
2019-06-13 [18:31:06] [Server thread/CRITICAL]: Error: "Undefined property: pocketmine\network\mcpe\protocol\MobArmorEquipmentPacket::$slots" (EXCEPTION) in "src/pocketmine/network/mcpe/protocol/DataPacket" at line 164
2019-06-13 [18:31:06] [Server thread/DEBUG]: #0 plugins/TeaSpoon_dev-276.phar/src/CortexPE/entity/object/ArmorStand(302): pocketmine\network\mcpe\protocol\DataPacket->__set(string[5] slots, array[4])
2019-06-13 [18:31:06] [Server thread/DEBUG]: #1 plugins/TeaSpoon_dev-276.phar/src/CortexPE/entity/object/ArmorStand(319): CortexPE\entity\object\ArmorStand->sendArmorItems(object pocketmine\Player)
2019-06-13 [18:31:06] [Server thread/DEBUG]: #2 src/pocketmine/Player(1018): CortexPE\entity\object\ArmorStand->spawnTo(object pocketmine\Player)
2019-06-13 [18:31:06] [Server thread/DEBUG]: #3 src/pocketmine/level/Level(2639): pocketmine\Player->sendChunk(integer 2, integer 39, object pocketmine\network\mcpe\protocol\BatchPacket)
2019-06-13 [18:31:06] [Server thread/DEBUG]: #4 src/pocketmine/level/Level(2691): pocketmine\level\Level->sendChunkFromCache(integer 2, integer 39)
2019-06-13 [18:31:06] [Server thread/DEBUG]: #5 src/pocketmine/level/format/io/ChunkRequestTask(75): pocketmine\level\Level->chunkRequestCallback(integer 2, integer 39, object pocketmine\network\mcpe\protocol\BatchPacket)
2019-06-13 [18:31:06] [Server thread/DEBUG]: #6 src/pocketmine/scheduler/AsyncPool(319): pocketmine\level\format\io\ChunkRequestTask->onCompletion(object pocketmine\Server)
2019-06-13 [18:31:06] [Server thread/DEBUG]: #7 src/pocketmine/Server(2563): pocketmine\scheduler\AsyncPool->collectTasks()
2019-06-13 [18:31:06] [Server thread/DEBUG]: #8 src/pocketmine/Server(2335): pocketmine\Server->tick()
2019-06-13 [18:31:06] [Server thread/DEBUG]: #9 src/pocketmine/Server(2195): pocketmine\Server->tickProcessor()
2019-06-13 [18:31:06] [Server thread/DEBUG]: #10 src/pocketmine/Server(1774): pocketmine\Server->start()
2019-06-13 [18:31:06] [Server thread/DEBUG]: #11 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[34] /home/teracube/, string[42] /home/teracube/plugins/)
2019-06-13 [18:31:06] [Server thread/DEBUG]: #12 (1): require(string[89] phar:///home/teracube/PocketMine-MP.phar/src/pocketmine/Pocke)
2019-06-13 [18:31:06] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump
2019-06-13 [18:31:06] [Server thread/EMERGENCY]: Please upload the "/home/teracube/crashdumps/Thu_Jun_13-18.31.06-CEST_2019.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.
many1337 commented 5 years ago

I fixed but is still in pull request.. 🤔

teracube commented 5 years ago

@many1337 could you give me a link to you latest phar or zip version thanks