Console error
Issue description
Console error
Steps to reproduce the issue
I don't know.
OS and versions
- Genisys: https://github.com/iTXTech/Genisys/tree/5fc285462c5eb8c2c1a65a1f503b857116928af6
- PHP: 7.0.10 Genisys script
- Server OS: Ubuntu 14.04.5 LTS
- Game version: 0.15.6
Crashdump, backtrace, memory dumps, plugins list or other files
2016-09-25 [16:42:54] [Server thread/CRITICAL]: Could not tick level "szabad2": Call to a member function getAttribute() on null
2016-09-25 [16:42:54] [Server thread/CRITICAL]: Could not tick level "szabad2": Call to a member function getAttribute() on null
2016-09-25 [16:42:54] [Server thread/CRITICAL]: Could not tick level "szabad2": Call to a member function getAttribute() on null
2016-09-25 [16:42:54] [Server thread/CRITICAL]: Could not tick level "szabad2": Call to a member function getAttribute() on null
_> another one?
Please set debug.level to 2 in your pocketmine.yml and try to reproduce the error. When it happens again, please post the full error including debug lines.
I sometimes get the same error related to setting Human TotalXp attribute, which is soon to be deprecated, no? Here's debug: http://pastebin.com/JnQWCbgf
Please do not merge issues. The conversation shouldn't go off topic.
@Muqsit it's the exact same issue...
This has been closed due to lack of response. If the issue still occurs please comment and update the ticket and it will be reopened.
Reproduced. Crashdump:
Genisys Crash Dump Mon Mar 13 12:51:36 EDT 2017
Error: Call to a member function getAttribute() on null
File: /src/pocketmine/entity/Human
Line: 119
Type: notice
Code:
[110] * @param string $str
[111] * @param string $skinId
[112] */
[113] public function setSkin($str, $skinId){
[114] $this->skin = $str;
[115] $this->skinId = $skinId;
[116] }
[117]
[118] public function getFood() : float{
[119] return $this->attributeMap->getAttribute(Attribute::HUNGER)->getValue();
[120] }
[121]
[122] /**
[123] * WARNING: This method does not check if full and may throw an exception if out of bounds.
[124] * Use {@link Human::addFood()} for this purpose
[125] *
[126] * @param float $new
[127] *
[128] * @throws \InvalidArgumentException
[129] */
Backtrace:
#0 /src/pocketmine/Player(1789): pocketmine\entity\Human->entityBaseTick(integer 1)
#1 /src/pocketmine/Server(2461): pocketmine\Player->onUpdate(integer 23980)
#2 /src/pocketmine/Server(2668): pocketmine\Server->checkTickUpdates(integer 23980, double 1489423896.6988)
#3 /src/pocketmine/Server(2390): pocketmine\Server->tick(boolean)
#4 /src/pocketmine/Server(2268): pocketmine\Server->tickProcessor(boolean)
#5 /src/pocketmine/Server(1872): pocketmine\Server->start(boolean)
#6 /src/pocketmine/PocketMine(471): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string phar:///home/minecraft/multicraft/servers/server12/Custom-MCPE.phar/, string /home/minecraft/multicraft/servers/server12/, string /home/minecraft/multicraft/servers/server12/plugins/)
#7 (1): require_once(string phar:///home/minecraft/multicraft/servers/server12/Custom-MCPE.phar/src/pocketmine/PocketMine.php)
Genisys version: 0000000000000000000000000000000000000000 [Protocol 102; API 3.0.0-ALPHA4]
uname -a: Linux localhost.localdomain 2.6.32-573.el6.x86_64 #1 SMP Thu Jul 23 15:44:03 UTC 2015 x86_64
PHP version: 7.0.3
Zend version: 3.0.0
OS : Linux, linux
Server uptime: 20 minutes 4 seconds
Number of loaded worlds: 6
Players online: 38/100