PocketMine-MP Crash Dump Sun Dec 30 08:15:56 EST 2018 Error: Argument 1 passed to EssentialsPE\BaseFiles\BaseAPI::getSession() must be an instance of pocketmine\Player, null given, called in /home/Skyblock/plugins/EssentialsPESKY/src/EssentialsPE/BaseFiles/BaseAPI.php on line 1675 File: EssentialsPESKY/src/EssentialsPE/BaseFiles/BaseAPI Line: 1471 Type: TypeError THIS CRASH WAS CAUSED BY A PLUGIN BAD PLUGIN: EssentialsPE v2.1.0 Code: [1462] } [1463] } [1464] } [1465] [1466] /** [1467] * @param Player $player [1468] * [1469] * @return BaseSession [1470] */ [1471] private function getSession(Player $player): BaseSession{ [1472] if(!$this->sessionExists($player)){ [1473] $this->createSession($player); [1474] } [1475] return $this->sessions[spl_object_hash($player)]; [1476] } [1477] [1478] /** _______ _ [1479] * |__ __(_) [1480] * | | _ _ __ ___ ___ [1481] * | | | | '_ ` _ \ / _ \ Backtrace: #0 EssentialsPESKY/src/EssentialsPE/BaseFiles/BaseAPI(1675): EssentialsPE\BaseFiles\BaseAPI->getSession(NULL ) #1 EssentialsPESKY/src/EssentialsPE/Tasks/TPRequestTask(31): EssentialsPE\BaseFiles\BaseAPI->removeTPRequest(pocketmine\Player object) #2 src/pocketmine/scheduler/TaskHandler(159): EssentialsPE\Tasks\TPRequestTask->onRun(integer 129253) #3 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 129253) #4 src/pocketmine/plugin/PluginManager(665): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 129253) #5 src/pocketmine/Server(2522): pocketmine\plugin\PluginManager->tickSchedulers(integer 129253) #6 src/pocketmine/Server(2275): pocketmine\Server->tick() #7 src/pocketmine/Server(2139): pocketmine\Server->tickProcessor() #8 src/pocketmine/Server(1715): pocketmine\Server->start() #9 src/pocketmine/PocketMine(249): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/Skyblock/, string /home/Skyblock/plugins/) #10 /home/Skyblock/PocketMine-MP.phar(1): require(string phar:///home/Skyblock/PocketMine-MP.phar/src/pocketmine/PocketMine.php) PocketMine-MP version: 3.5.2 [Protocol 313] Git commit: fc0782df0218fa4b926060e0ee2b37f1a1cc91eb uname -a: Linux server12474 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u5 (2017-09-19) x86_64 PHP Version: 7.2.9 Zend version: 3.2.0 OS : Linux, linux Can someone please help me ? My server crash 2 to 3 times a day.I also see big money rolback (±10 hours of rolback).It takes everything to help me.Thank you in advance .
Have a look at the removeTPRequest function in EssentialsPE\BaseFiles\BaseAPI.php It is calling BaseAPI->getSession() with null instead of a player object