Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash Dump, Call to a member function getEntities()on null #391

Closed
Dos-e opened this issue Feb 28, 2017 · 6 comments
Closed

Crash Dump, Call to a member function getEntities()on null #391

Dos-e opened this issue Feb 28, 2017 · 6 comments
Labels
Category: API Related to the plugin API Resolution: Invalid

Comments

@Dos-e
Copy link

Dos-e commented Feb 28, 2017

Steps to reproduce the issue:

  1. I have no idea, I think its when we walk too far then a crash just builds.

VERSION:
PocketMine-MP: 1.6.2dev #0 [Protocol 101; API 3.0.0-ALPHA4]
PHP: 7.0.2
Server OS: Linux Ubuntu 14.0.1
Game version: PE/Win10

CRASHDUMP:

PocketMine-MP Crash Dump Tue Feb 28 13:04:53 CST 2017
Error: Call to a member function getEntities() on null
File: /src/pocketmine/Player
Line: 680
Type: notice

Code:
[671] $this->dataPacket($pk);
[672] }
[673] }
[674]
[675] private function unloadChunk($x, $z, Level $level = null){
[676] $level = $level === null ? $this->level : $level;
[677] $index = Level::chunkHash($x, $z);
[678] if(isset($this->usedChunks[$index])){
[679] $chunk = $level->getChunk($x, $z);
[680] foreach($chunk->getEntities() as $entity){
[681] if($entity !== $this){
[682] $entity->despawnFrom($this);
[683] }
[684] }
[685]
[686] if($level !== $this->level){
[687] $pk = new FullChunkDataPacket();
[688] $pk->chunkX = $x;
[689] $pk->chunkZ = $z;
[690] $pk->data = chr($chunk->getSubChunkSendCount());

Backtrace:
#0 /src/pocketmine/Player(1605): pocketmine\Player->orderChunks(boolean)
#1 /src/pocketmine/Server(2327): pocketmine\Player->checkNetwork(boolean)
#2 /src/pocketmine/Server(2084): pocketmine\Server->tick(boolean)
#3 /src/pocketmine/Server(1966): pocketmine\Server->tickProcessor(boolean)
#4 /src/pocketmine/Server(1587): pocketmine\Server->start(boolean)
#5 /src/pocketmine/PocketMine(491): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string phar:///home/servers/Prison/PocketMine-MP.phar/, string /home/servers/Prison/, string /home/servers/Prison/plugins/)
#6 (1): require_once(string phar:///home/servers/Prison/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 ubuntu 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64
PHP Version: 7.0.2
Zend version: 3.0.0
OS : Linux, linux

@dktapps dktapps added Category: Core Related to internal functionality Status: Unconfirmed Bug has not yet been reproduced by a maintainer labels Feb 28, 2017
@Dos-e
Copy link
Author

Dos-e commented Feb 28, 2017

https://www.imageupload.co.uk/image/BY6w

Image of the crash provided.

@Muqsit
Copy link
Contributor

Muqsit commented Mar 1, 2017

Bad plugin

@Dos-e
Copy link
Author

Dos-e commented Mar 1, 2017

So, its EmptyWorld causing errors and the crash?

@Muqsit
Copy link
Contributor

Muqsit commented Mar 1, 2017

What I'm saying is, you didn't need to provide a background of every error you're seeing on your console.

@Dos-e
Copy link
Author

Dos-e commented Mar 1, 2017

Well im showing what the console said and all those errors were brought together I wasnt aware of which one was causing the crash. The crash dump is above for someone from pm to review.

@dktapps
Copy link
Member

dktapps commented Mar 1, 2017

Plugin issue, biome colour API methods were removed in API 3.0.0-ALPHA1.

@dktapps dktapps closed this as completed Mar 1, 2017
@dktapps dktapps added Resolution: Invalid Category: API Related to the plugin API and removed Status: Unconfirmed Bug has not yet been reproduced by a maintainer Category: Core Related to internal functionality labels Mar 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: API Related to the plugin API Resolution: Invalid
Projects
None yet
Development

No branches or pull requests

3 participants