RevivalPMMP / PureEntitiesX

A Revival of the original PureEntities, a plugin which provides MobAI for PMMP - Coming back soon
GNU General Public License v3.0
166 stars 76 forks source link

Error: "Call to a member function getCollisionCubes() on null" #255

Closed Alderander closed 6 years ago

Alderander commented 6 years ago

Required Information

PocketMine-MP Version: PocketMine-MP version 1.7dev-525 Plugin Version: API 3.0.0-ALPHA10 Where you got the plugin: PureEntitiesX cloned from github, PocketMine-MP from jenkins.pmmp.io

Optional Information

PHP version: PHP-7.2-Linux-x86_64 Other Installed Plugins: DevTools v1.12.8 OS Version: Ubuntu 16.04.3 LTS

Steps to reproduce the issue.

  1. When I kill animals with a tame cat or wolf and he attacks them, I have such an erreur. Without a tamed animal I do not have this error.
  2. ...

Description


[13:30:23] [Server thread/CRITICAL]: Impossible de cocher le monde "world": Call to a member function getCollisionCubes() on null
[13:30:23] [Server thread/CRITICAL]: Error: "Call to a member function getCollisionCubes() on null" (EXCEPTION) in "src/pocketmine/entity/Entity" at line 1524
[13:30:23] [Server thread/DEBUG]: #0 PureEntitiesX/src/revivalpmmp/pureentities/entity/other/XPOrb(122): pocketmine\entity\Entity->move(double 0, double 0, double 0.011303093155123)
[13:30:23] [Server thread/DEBUG]: #1 src/pocketmine/level/Level(751): revivalpmmp\pureentities\entity\other\XPOrb->onUpdate(integer 14927)
[13:30:23] [Server thread/DEBUG]: #2 src/pocketmine/Server(2377): pocketmine\level\Level->doTick(integer 14927)
[13:30:23] [Server thread/DEBUG]: #3 src/pocketmine/Server(2534): pocketmine\Server->checkTickUpdates(integer 14927, double 1513859423.5439)
[13:30:23] [Server thread/DEBUG]: #4 src/pocketmine/Server(2274): pocketmine\Server->tick()
[13:30:23] [Server thread/DEBUG]: #5 src/pocketmine/Server(2149): pocketmine\Server->tickProcessor()
[13:30:23] [Server thread/DEBUG]: #6 src/pocketmine/Server(1737): pocketmine\Server->start()
[13:30:23] [Server thread/DEBUG]: #7 src/pocketmine/PocketMine(554): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/admin/web/mcpe/, string /home/admin/web/mcpe/plugins/)
[13:30:23] [Server thread/DEBUG]: #8 /home/admin/web/mcpe/PocketMine-MP.phar(1): require(string phar:///home/admin/web/mcpe/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
95CivicSi commented 6 years ago

Thank you for following the issue template. I am looking into this.

95CivicSi commented 6 years ago

@Alderander I was unable to recreate this with the most current version of the plugin. I will keep this open while watching for other issues. If you notice any other details that can help reproduce this, let me know.

For anyone else trying to recreate this, XP needs to be enabled in addition to what @Alderander mentioned.

Alderander commented 6 years ago

I still have version 525 and also if two players are beating the same animal I have the same error with xp. Maybe changing the version to the last one eliminated this error, I'm going to check soon. Sorry for my english.

ghost commented 6 years ago

Yeah, I get same error And I bet it's a bug with pocketmine because in error it says src/pmmp/entity at line 1524 Now who knows

Alderander commented 6 years ago

I tested with version 548 and there are no errors, at least for now. Thanks @95CivicSi You can consider the problem to be outdated.