CloudburstMC / SynapsePM

Connect your PocketMine server together with others through the Synapse Protocol
GNU General Public License v3.0
18 stars 10 forks source link

Crashdump #12

Closed GamakCZ closed 5 years ago

GamakCZ commented 5 years ago

PocketMine-MP` Crash Dump Mon Jul 15 21:13:07 CEST 2019

Error: Return value of pocketmine\entity\Entity::getId() must be of the type integer, null returned File: src/pocketmine/entity/Entity Line: 2014 Type: TypeError

A PLUGIN WAS INVOLVED IN THIS CRASH BAD PLUGIN: SynapsePM v1.1.0

Code: [2005] [2006] $this->setLevel($targetLevel); [2007] $this->level->addEntity($this); [2008] $this->chunk = null; [2009] [2010] return true; [2011] } [2012] [2013] public function getId() : int{ [2014] return $this->id; [2015] } [2016] [2017] / [2018] @return Player[] [2019] / [2020] public function getViewers() : array{ [2021] return $this->hasSpawned; [2022] } [2023] [2024] /

Backtrace:

0 src/pocketmine/Player(2951): pocketmine\entity\Entity->getId()

1 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(198): pocketmine\Player->handleAdventureSettings(object pocketmine\network\mcpe\protocol\AdventureSettingsPacket)

2 src/pocketmine/network/mcpe/protocol/AdventureSettingsPacket(120): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleAdventureSettings(object pocketmine\network\mcpe\protocol\AdventureSettingsPacket)

3 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\AdventureSettingsPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)

4 src/pocketmine/Player(3124): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\AdventureSettingsPacket)

5 plugins/SynapsePM/src/synapsepm/Player(95): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\AdventureSettingsPacket)

6 plugins/SynapsePM/src/synapsepm/Synapse(285): synapsepm\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\AdventureSettingsPacket)

7 plugins/SynapsePM/src/synapsepm/network/SynapseInterface(93): synapsepm\Synapse->handleDataPacket(object synapsepm\network\protocol\spp\RedirectPacket)

8 plugins/SynapsePM/src/synapsepm/network/SynapseInterface(62): synapsepm\network\SynapseInterface->handlePacket(string[35] ..2p<........lHl...7...............)

9 plugins/SynapsePM/src/synapsepm/Synapse(155): synapsepm\network\SynapseInterface->process()

10 plugins/SynapsePM/src/synapsepm/Synapse(82): synapsepm\Synapse->tick()

11 src/pocketmine/scheduler/TaskHandler(159): class@anonymous