RevivalPMMP / PureEntitiesX

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

Console getting spammed (getArmorContents()) #261

Closed Akuroma closed 6 years ago

Akuroma commented 6 years ago

https://github.com/RevivalPMMP/PureEntitiesX/wiki/Issue-Reporting-Guidelines If you do not follow the guidelines at the above link, your issue will be closed with a Resolution Status of "Invalid".

Required Information

PocketMine-MP Version: PocketMine-MP 1.7dev 「[REDACTED]」 implementing API version 3.0.0-ALPHA10 for Minecraft: PE v1.2.7 (protocol version 160) Plugin Version: v0.2.8-3.dev3 Where you got the plugin: https://poggit.pmmp.io/plugins

Optional Information

PHP version: Other Installed Plugins: OS Version:

Steps to reproduce the issue.

  1. Install latest PocketMine-MP version
  2. Install latest PureEntitiesX Version
  3. Edit config and specify a world in which the monsters should spawn
  4. Join and walk. Console getting spammed.

Console getting spammed with error message seen below.


2018-01-03 [18:14:25] [Server thread/CRITICAL]: Error: "Call to a member function getArmorContents() on null" (EXCEPTION) in "src/pocketmine/Player" at line 3573
2018-01-03 [18:14:25] [Server thread/DEBUG]: #0 src/pocketmine/entity/Living(389): pocketmine\Player->getArmorPoints()
2018-01-03 [18:14:25] [Server thread/DEBUG]: #1 src/pocketmine/entity/Living(429): pocketmine\entity\Living->applyDamageModifiers(pocketmine\event\entity\EntityDamageByEntityEvent object)
2018-01-03 [18:14:25] [Server thread/DEBUG]: #2 src/pocketmine/Player(3600): pocketmine\entity\Living->attack(pocketmine\event\entity\EntityDamageByEntityEvent object)
2018-01-03 [18:14:25] [Server thread/DEBUG]: #3 PureEntitiesX.phar/src/revivalpmmp/pureentities/entity/monster/walking/Spider(59): pocketmine\Player->attack(pocketmine\event\entity\EntityDamageByEntityEvent object)
2018-01-03 [18:14:25] [Server thread/DEBUG]: #4 PureEntitiesX.phar/src/revivalpmmp/pureentities/entity/monster/WalkingMonster(70): revivalpmmp\pureentities\entity\monster\walking\Spider->attackEntity(pocketmine\Player object)
2018-01-03 [18:14:25] [Server thread/DEBUG]: #5 PureEntitiesX.phar/src/revivalpmmp/pureentities/entity/monster/WalkingMonster(196): revivalpmmp\pureentities\entity\monster\WalkingMonster->checkAndAttackEntity(pocketmine\Player object)
2018-01-03 [18:14:25] [Server thread/DEBUG]: #6 src/pocketmine/level/Level(760): revivalpmmp\pureentities\entity\monster\WalkingMonster->onUpdate(integer 5808)
2018-01-03 [18:14:25] [Server thread/DEBUG]: #7 src/pocketmine/Server(2379): pocketmine\level\Level->doTick(integer 5808)
2018-01-03 [18:14:25] [Server thread/DEBUG]: #8 src/pocketmine/Server(2536): pocketmine\Server->checkTickUpdates(integer 5808, double 1514999665.1693)
2018-01-03 [18:14:25] [Server thread/DEBUG]: #9 src/pocketmine/Server(2276): pocketmine\Server->tick()
2018-01-03 [18:14:25] [Server thread/DEBUG]: #10 src/pocketmine/Server(2151): pocketmine\Server->tickProcessor()
2018-01-03 [18:14:25] [Server thread/DEBUG]: #11 src/pocketmine/Server(1739): pocketmine\Server->start()
2018-01-03 [18:14:25] [Server thread/DEBUG]: #12 src/pocketmine/PocketMine(554): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/SkyBlock/, string /home/SkyBlock/plugins/)
2018-01-03 [18:14:25] [Server thread/DEBUG]: #13 /home/SkyBlock/PocketMine-MP.phar(1): require_once(string phar:///home/SkyBlock/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
jasonw4331 commented 6 years ago

The PocketMine version you specified is not specific enough for our use. Please supply a git commit hash or the full output of the version command

Akuroma commented 6 years ago

[20:36:12] [Server thread/INFO]: This server is running PocketMine-MP 1.7dev 「[REDACTED]」 implementing API version 3.0.0-ALPHA10 for Minecraft: PE v1.2.7 (protocol version 160) [20:36:12] [Server thread/INFO]: --- + --------------- + --- [20:36:12] [Server thread/INFO]: This server is running TeaSpoon v1.0.0 for [3.0.0-ALPHA9, 3.0.0-ALPHA10] [20:36:12] [Server thread/INFO]: Repository: https://github.com/CortexPE/TeaSpoon [20:36:12] [Server thread/INFO]: Website: https://CortexPE.xyz

I'm also using TeaSpoon I forgot to say. I've set the value in configuration file of TeaSpoon to false, which could interrupt PUreEntitiesX functions.

Alderander commented 6 years ago

I do not have such spam and I have the latest version of PocketMine-MP 1.7dev-586 and also the latest TeaSpoon set to false like Yours. Strange

95CivicSi commented 6 years ago

Please post what plugins you were using when this happened.

MHIGists commented 6 years ago

Yup i have it too and I don't use TeaSpoon these are my plugins Achieve v1.0.0, AllSigns v1.0.6, AlwaysSpawn v2.2.3-4, CustomAlerts v1.7.2-3, CustomBar v1.0, EconomyAPI v5.7.1-4, EconomyPShop v2.0.2-5, EconomyShop v2.0.8-6, essentialsTP v1.2.0-5, HotBlock v1.0.7, HungerGames vBuild#18.1, iProtector v3.1.0-8, ItemCloud v1.3.0-2, MineReset v3.0.2, NoTell v1.1.2-3, Parkour v1.5.6-4, PlayerJoin v1.0.0, PureEntitiesX v0.2.8-3.dev3, PurePerms v1.4.1-3, RestartMe v1.3.0, RolePlay v1.1.0-3, VoteReward v3.0.2-4, Worlds v1.0.13, GrabBag v2.4.0-4, MyPlot v1.1.7-pre, PocketLotto v1.0.1, PureChat v1.4.10-4

Akuroma commented 6 years ago

Apparently it's working now, without doing anything. Really weird.

Alderander commented 6 years ago

@TheClimbing, It's ok with AllSigns, CustomBar, DevTools, EconomyAPI, EconomyJob, EconomyLand, EconomyProperty, EconomySell, EconomyShop, EssentialsTP, HotBlock, iProtector, ItemCase, ItemCloud, NameChanger, Parkour, PureChat, PurePerms, SimpleAuth, TeaSpoon, TierLoot, TimeCommander, TreasureChest, WarpUI and WorldProtect. Maybe it will help you gradually eliminate the others. When I check the error, I disable all plugins one by one [sorry for my english :)].

95CivicSi commented 6 years ago

Thanks @Alderander, that does help.

95CivicSi commented 6 years ago

Closing this for now as all problems similar to this should be fixed in commit https://github.com/RevivalPMMP/PureEntitiesX/commit/bc1314a94df0fe413dd2799740da577e3216b071. If you are using a development version of PocketMine-MP released after January 10th, 2018, please test with the following file:

https://poggit.pmmp.io/r/21557/PureEntitiesX_dev-204.phar