Pocketmine-mp: Spawning a Human entity with an invalid skin causes the server to always crash when joining the world

Created on 15 Apr 2017  路  8Comments  路  Source: pmmp/PocketMine-MP

I created nbt and forgotten to setSkin
and now server crashing with error

Core Fixed

Most helpful comment

Shouldn't the core prevent the entity from being saved in the first place?

All 8 comments

This is a plugin issue. If you create a non-player human entity without a skin, this exception will be raised.

Is possible to fix it without deleting world?

You should be able to use an NBT editor to remove the invalid entity.

Ok, I have tried NBT Editors,but I have here only this
image
What I must edit? I think there is not something with amount of entities etc

Shouldn't the core prevent the entity from being saved in the first place?

This exception should be thrown when actually _constructing_ the entity, not when trying to spawn it. Currently the entity is perfectly "valid" and will be loaded and saved despite the fact it has no skin. The crash will be triggered when the server attempts to spawn the bad entity _to_ a player.

I'm working on a solution for this following what @dktapps said

The referenced pull request resolves this issue, the issue will be closed automatically when changes are merged to master. Leaving this open in case anyone encounters the same issue with other branches.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

XDqrkneZ picture XDqrkneZ  路  3Comments

SuperAdam47 picture SuperAdam47  路  3Comments

jasonwynn10 picture jasonwynn10  路  3Comments

beetree picture beetree  路  3Comments

RedstoneAlmeida picture RedstoneAlmeida  路  3Comments