PocketMine / PocketMine-MP

Legacy PocketMine-MP repository. Head to https://github.com/pmmp for up to date software.
https://www.pocketmine.net/
GNU Lesser General Public License v3.0
1.25k stars 659 forks source link

Fatal error: Call to a member function hasPermission() on null in phar:..../PocketMine-MP.phar/src/pocketmine/Player__32bit.php #3214

Closed HBIDamian closed 9 years ago

HBIDamian commented 9 years ago

Running, PocketMine-MP version: 1.5dev #1254 [Protocol 27; API 1.12.0]

Every time i run the server, with in half an hour, ( and less ) it gives me this crash... i tried a couple of things too. It looks to me like a pocketmine thing, but also it says about essentialspe, so im not sure if its both having problems too

PocketMine-MP Crash Dump Sun Jun 21 21:00:17 UTC 2015

Error: Call to a member function hasPermission() on null
File: /src/pocketmine/Player__32bit
Line: 439
Type: E_ERROR

Code:
[430]       return $this->perm->isPermissionSet($name);
[431]   }
[432] 
[433]   /**
[434]    * @param permission\Permission|string $name
[435]    *
[436]    * @return bool
[437]    */
[438]   public function hasPermission($name){
[439]       return $this->perm->hasPermission($name);
[440]   }
[441] 
[442]   /**
[443]    * @param Plugin $plugin
[444]    * @param string $name
[445]    * @param bool   $value
[446]    *
[447]    * @return permission\PermissionAttachment
[448]    */
[449]   public function addAttachment(Plugin $plugin, $name = \null, $value = \null){

Backtrace:
#0 /src/pocketmine/Server__32bit(0): pocketmine\Server->crashDump()
#1 /EssentialsPE.phar/src/EssentialsPE/Loader(640): pocketmine\Player->hasPermission()
#2 /EssentialsPE.phar/src/EssentialsPE/Loader(698): EssentialsPE\Loader->createSession()
#3 /EssentialsPE.phar/src/EssentialsPE/Loader(719): EssentialsPE\Loader->getSession()
#4 /EssentialsPE.phar/src/EssentialsPE/Tasks/AFK/AFKKickTask(20): EssentialsPE\Loader->isAFK()
#5 /src/pocketmine/scheduler/TaskHandler(150): EssentialsPE\Tasks\AFK\AFKKickTask->onRun()
#6 /src/pocketmine/scheduler/ServerScheduler(247): pocketmine\scheduler\TaskHandler->run()
#7 /src/pocketmine/Server__32bit(2500): pocketmine\scheduler\ServerScheduler->mainThreadHeartbeat()
#8 /src/pocketmine/Server__32bit(2306): pocketmine\Server->tick()
#9 /src/pocketmine/Server__32bit(2184): pocketmine\Server->tickProcessor()
#10 /src/pocketmine/Server__32bit(1784): pocketmine\Server->start()
#11 /src/pocketmine/PocketMine(464): pocketmine\Server->__construct()
#12 (1): ()
#13 (0): {main}()

PocketMine-MP version: 1.5dev #1254 [Protocol 27; API 1.12.0]
Git commit: 0000000000000000000000000000000000000000
uname -a: Windows NT DAMIAN-PC 6.1 build 7601 (Windows 7 Ultimate Edition Service Pack 1) i586
PHP Version: 5.6.6
Zend version: 2.6.0
OS : WINNT, win

Loaded plugins:
AdminJoin 1.3.0 by  for API(s) 1.0.0
BanItem 2.1 by LDX for API(s) 1.0.0
Broadcaster 1.16 by EvolSoft for API(s) 1.12.0
ChatCensor 1.2 by EvolSoft for API(s) 1.7.1
ClearLagg 1.1.0 by LegendOfMCPE for API(s) 1.0.0
CustomAlerts 1.5 by EvolSoft for API(s) 1.12.0
EssentialsPE 1.1.0 Beta 7 by LegendsOfMCPE Team for API(s) 1.12.0
iProtector 2.0 by LDX for API(s) 1.6.0
KeepInventory 1.2.0 by boybook for API(s) 1.0.0
PeacefulSpawn 2.4 by LDX for API(s) 1.3.1, 1.4.0
PocketGuard 2.1 by MinecrafterJPN for API(s) 1.6.0
PurePerms 1.1.2 by 64FF00 for API(s) 1.12.0
ServerStaff 1.0.0 by Gamecrafter for API(s) 1.10.0
SignPortal 1.1.2 by 99leonchang for API(s) 1.3.1
SimpleAuth 1.7.1 by PocketMine Team, shoghicp for API(s) 1.12.0
TimeCommander 2 by LDX for API(s) 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0
Volt 3.0.3 by Falkirks for API(s) 1.12.0
xRulesx 1.0.0 by xFlare for API(s) 1.8.0
PureChat 1.2.6 by 64FF00 for API(s) 1.11.0 
Intyre commented 9 years ago

Duplicated of #3210 and #3202. This is a plugin issue, and EssentialsPE could be the cause.

https://github.com/PocketMine/PocketMine-MP/issues/3202#issuecomment-113796701

iksaku commented 9 years ago

You're using an outdated version of EssentialsPE, I recommend you to update and check if the problem persists

Creeperface01 commented 9 years ago

i have latest version 1.1.0 and still crashing

reidq7 commented 9 years ago

I dont even have EssentialsPE and this happens.