1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

What is causing my constant crashes?

Discussion in 'Help' started by Dblcut3, Mar 6, 2017.

  1. Dblcut3

    Dblcut3 Spider Jockey

    Messages:
    33
    The server occasionally will start crashing really frequently. Like once every 5 minutes. Here is the crash dump. Any idea why this is happening?

    Code:
    PocketMine-MP Crash Dump Sat Mar 4 17:02:14 MST 2017
    
    Error: Call to a member function getEntities() on null
    File: /src/pocketmine/Player
    Line: 695
    Type: notice
    
    Code:
    [686]             $this->dataPacket($pk);
    [687]         }
    [688]     }
    [689]
    [690]     private function unloadChunk($x, $z, Level $level = null){
    [691]         $level = $level === null ? $this->level : $level;
    [692]         $index = Level::chunkHash($x, $z);
    [693]         if(isset($this->usedChunks[$index])){
    [694]             $chunk = $level->getChunk($x, $z);
    [695]             foreach($chunk->getEntities() as $entity){
    [696]                 if($entity !== $this){
    [697]                     $entity->despawnFrom($this);
    [698]                 }
    [699]             }
    [700]
    [701]             if($level !== $this->level){
    [702]                 $pk = new FullChunkDataPacket();
    [703]                 $pk->chunkX = $x;
    [704]                 $pk->chunkZ = $z;
    [705]                 $pk->data = chr($chunk->getSubChunkSendCount());
    
    Backtrace:
    #0 /src/pocketmine/Player(1628): pocketmine\Player->orderChunks(boolean)
    #1 /src/pocketmine/Server(2339): pocketmine\Player->checkNetwork(boolean)
    #2 /src/pocketmine/Server(2096): pocketmine\Server->tick(boolean)
    #3 /src/pocketmine/Server(1978): pocketmine\Server->tickProcessor(boolean)
    #4 /src/pocketmine/Server(1599): pocketmine\Server->start(boolean)
    #5 /src/pocketmine/PocketMine(492): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string phar:///home/multicraft/jar/pocketmine/pmmp/1.0.3/PocketMine-MP.phar/, string /home/multicraft/servers/server4697/, string /home/multicraft/servers/server4697/plugins/)
    #6 (9): include(string phar:///home/multicraft/jar/pocketmine/pmmp/1.0.3/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
    
    PocketMine-MP version: 1.6.2dev #0 [Protocol 101; API 3.0.0-ALPHA4]
    Git commit: 0000000000000000000000000000000000000000
    uname -a: Linux mc30.vgmc.us 2.6.32-573.18.1.el6.x86_64 #1 SMP Tue Feb 9 22:46:17 UTC 2016 x86_64
    PHP Version: 7.0.15
    Zend version: 3.0.0
    OS : Linux, linux
    
    Loaded plugins:
    LIAB 1.0.0 by aliuly for API(s) 1.10.0
    CustomAlerts 1.6 by EvolSoft for API(s) 1.14.0
    WorldEdit+ 0.01 by える for API(s) 2.0.0
    PurePerms 1.3.6 by 64FF00 for API(s) 1.13.0, 2.0.0
    EssentialsPE 2.0.0 by LegendsOfMCPE Team for API(s) 2.1.0, 2.0.0
    WorldProtect 2.3.0 by aliuly for API(s) 1.10.0, 1.12.0, 2.0.0
    AdvancedKits 4.0.1 by luca28pet for API(s) 1.12.0
    EconomyAPI 2.0.9 by onebone for API(s) 1.0.0, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1
    EconomySell 2.0.7 by onebone for API(s) 1.12.0
    AlwaysSpawn 2.2.2 by Philip Shilling for API(s) 1.12.0
    VoteReward 3.0.2 by LDX for API(s) 1.12.0, 2.0.0
    TapToDo 2.2.1b by Falk for API(s) 2.0.0
    iProtector 3.1b by LDX for API(s) 1.9.0, 2.0.0
    EconomyShop 2.0.7 by onebone for API(s) 2.0.0, 3.0.0-ALPHA1, 3.0.0-ALPHA2, 3.0.0-ALPHA3
    ManyWorlds 2.0.3 by aliuly for API(s) 2.0.0, 1.13.0
    GoogleAnalytics 1.0.0 by  for API(s) 1.0.0
    EconomyJob 2.0.4 by onebone for API(s) 1.0.0, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1
    SimpleAuth 1.7.2 by PocketMine Team, shoghicp for API(s) 2.0.0
    Broadcaster 1.16 by EvolSoft for API(s) 1.12.0
    EconomyLand 2.0.9 by onebone for API(s) 1.12.0
    SimpleAuthHelper 2.0.4vgphp7 by aliuly for API(s) 1.12.0
    PureChat 1.4.0 by 64FF00 for API(s) 1.13.0, 2.0.0
    MyPlot 1 by Wies and Exxarion for API(s) 1.0.0, 2.0.0
    
     
    Last edited by a moderator: Mar 6, 2017
  2. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    Please use
    Code:
     [CODE] 
    [/CODE] tags
    The only thing i can think of is that somehow a chunk index got written into Player->usedChunk while an async task is still working on generating/populating it. The dev team has been made aware of this and is investigating.
     
    jasonwynn10 likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.