Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Console error #2014

Open
andris155 opened this issue Oct 3, 2016 · 7 comments
Open

Console error #2014

andris155 opened this issue Oct 3, 2016 · 7 comments
Labels

Comments

@andris155
Copy link

Issue description

Console error

Steps to reproduce the issue

I don't know.

OS and versions

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
@dktapps
Copy link
Contributor

dktapps commented Oct 3, 2016

_> another one?

@dktapps
Copy link
Contributor

dktapps commented Oct 3, 2016

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.

@Awzaw
Copy link

Awzaw commented Oct 11, 2016

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

@Muqsit
Copy link
Collaborator

Muqsit commented Oct 11, 2016

Please do not merge issues. The conversation shouldn't go off topic.

@dktapps
Copy link
Contributor

dktapps commented Oct 11, 2016

@Muqsit it's the exact same issue...

@dktapps
Copy link
Contributor

dktapps commented Nov 19, 2016

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.

@JackNoordhuis
Copy link
Contributor

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

@JackNoordhuis JackNoordhuis reopened this Mar 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants