Im was creating nbt and i forgotten to set skin and it crashed server on join i removed all plugins and not help when i set other world to default it is ok how i remove the nbt from the world please :/ error: Code: [17:32:51] [Server thread/CRITICAL]: InvalidStateException: "Human must have a valid skin set" (EXCEPTION) in "/src/pocketmine/entity/Human" at line 474 [17:32:51] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump [17:32:51] [Server thread/EMERGENCY]: Please upload the "C:\Users\me\Desktop\TestServer\crashdumps/Sun_Apr_16-17.32.51-BST_2017.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can. this problem I already had and I do not know how I fixed it
Code: PocketMine-MP Crash Dump Sun Apr 16 20:32:57 BST 2017 Error: Human must have a valid skin set File: /src/pocketmine/entity/Human Line: 474 Type: notice Code: [465] ]); [466] } [467] } [468] [469] public function spawnTo(Player $player){ [470] if($player !== $this and !isset($this->hasSpawned[$player->getLoaderId()])){ [471] $this->hasSpawned[$player->getLoaderId()] = $player; [472] [473] if(strlen($this->skin) < 64 * 32 * 4){ [474] throw new \InvalidStateException((new \ReflectionClass($this))->getShortName() . " must have a valid skin set"); [475] } [476] [477] if(!($this instanceof Player)){ [478] $this->server->updatePlayerListData($this->getUniqueId(), $this->getId(), $this->getName(), $this->skinId, $this->skin, [$player]); [479] } [480] [481] $pk = new AddPlayerPacket(); [482] $pk->uuid = $this->getUniqueId(); [483] $pk->username = $this->getName(); [484] $pk->eid = $this->getId(); Backtrace: #0 /src/pocketmine/entity/Entity(1666): pocketmine\entity\Human->spawnTo(Core\MPlayer MPlayer(1)) #1 /src/pocketmine/level/format/Chunk(695): pocketmine\entity\Entity->spawnToAll(boolean) #2 /src/pocketmine/level/Level(2497): pocketmine\level\format\Chunk->initChunk(pocketmine\level\Level object) #3 /src/pocketmine/level/Level(2174): pocketmine\level\Level->loadChunk(integer 8, integer 7, boolean 1) #4 /src/pocketmine/level/Level(2743): pocketmine\level\Level->getChunk(integer 8, integer 7, boolean 1) #5 /src/pocketmine/Player(858): pocketmine\level\Level->populateChunk(integer 8, integer 7) #6 /src/pocketmine/Player(1710): pocketmine\Player->sendNextChunk(boolean) #7 /src/pocketmine/Server(2379): pocketmine\Player->checkNetwork(boolean) #8 /src/pocketmine/Server(2138): pocketmine\Server->tick(boolean) #9 /src/pocketmine/Server(2021): pocketmine\Server->tickProcessor(boolean) #10 /src/pocketmine/Server(1642): pocketmine\Server->start(boolean) #11 /src/pocketmine/PocketMine(492): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string phar://C:\Users\uzivatel\Desktop\MCPE\TransferServer\PocketMine-MP.phar/, string C:\Users\uzivatel\Desktop\MCPE\TransferServer\, string C:\Users\uzivatel\Desktop\MCPE\TransferServer\plugins\) #12 (1): require_once(string phar://C:/Users/uzivatel/Desktop/MCPE/TransferServer/PocketMine-MP.phar/src/pocketmine/PocketMine.php) PocketMine-MP version: 1.6.2dev #0 [Protocol 106; API 3.0.0-ALPHA5] Git commit: 0000000000000000000000000000000000000000 uname -a: Windows NT DESKTOP-7HUMJ4S 10.0 build 14393 (Windows 10) i586 PHP Version: 7.0.1 Zend version: 3.0.0 OS : WINNT, win Loaded plugins: DevTools 1.11.3 by PocketMine Team for API(s) 3.0.0-ALPHA5 Core by Kyd for API(s) 3.0.0-ALPHA5 ----------------------REPORT THE DATA BELOW THIS LINE----------------------- ===BEGIN CRASH DUMP=== eNrtWmtv20iW/SvVcgMjD0RJlGTJVo8DeGz3JLN5aGMHWaDVCEpkUWKbItmsomWlkf++594qUpRs B70z+bAYJAESsR73VfdxbpF/tEy8Vq2pPzobDCe+P5l0WonU5roosqI1/aNltjmmW2lm4kC1Oq21 0louaehluZapWJfaiJW8V0KKe5nEodB3cSq0MlgclUnyc5zQ6nwli2mvdzntfdCq0L3yc3wvjUp6 V0rfmSzvvbmcXfduC5nqSBU3qrhXRW+WBXfKvIlT5b2ZdYlETxdBL+fhNYZ7KjWx2fZYFizIiall +LWVWJVgrDUdTUadlikkVJv+0jrqi2d2XfN/bX88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cnMBrWII6mBQQ3Tm ygLwL0HvyCg1cCXccZuKn19f3E4HP006J2cPfmf4MOwMfvJ/CoFWbFZsm0LhARns/LRvk6d9Gp0c 88sv9WCAQ6kNore79i1v/X58EQCxrRoD9EIkDWXRHHLffVbP5NaNxyhOEASNgRVCmN+N0xv3GG5/ 35j8TbsX5yOeXgfFNjeN+ZvZ68ZTHuxJu/sCsTGobcPdHAHygQphY2i91b8n/CmA+yVOaGbgIUyE R+97T/qj/gQ/f3yFc5ioySA6G5/1F/7o7FT6C7RoEzkeToLhUJ4O/aAfDqLxyYn4EbRNdqdSpP6m DT7Huf08YMhqfrbfOlSzeHrg95C1SbM1ngb9/tD3B2cYmF29a0zDxVKtmxtuGPz/z5umsfZJbsLw YX+Srir2hMTYpoj3Dy8oi+TQbnHTtng0asgfbkw8+6mI5lygG6tmK/agAR4HRGVhX8M1VmwlS0sr +u8v+cMNd43Jn2v4XfqqBJH/KcwMEkxj57J5rh/R5yAdsjhD8Pry5X8BISzgOA== ===END CRASH DUMP===
@dktapps said I must use NBT Editor and remove bad entity but i open my level.dat and i have only this
You're looking under the wrong NBT. Check the dat files under the players directory. EDIT: Ignore my post, read it wrong.
And the entity is 1 full file so i remove it and i is working or i must open file and remove something?
Read it wrong, oops sorry. My bad. He said that it crashed when he tried to join, which is a common occurrence for corrupted skin data when players try to join.
the quickest way to resolve the issue would be to delete all the files in the region folder, but that will also delete all your entities and any custom tile data
Do you know the exact coordinates of the entity you want to remove? If yes, you can use sites like this one to determine where the entity is saved. I used this already with help of a nice guide in an anvil world. If you're interested, here it is. However, I'm not sure if this works with pmanvil. Always keep a backup of your world.
Oh boy, I just recovered from this issue. Luckily, I saved a backup of my lobby, so I replaced it with that one. There's not much you can do. Try removing the world from the server dir, loading the server, stopping the server, removing the newly generated world, placing the old one back in. This should hopefully allow the world to load once so that you can join, any other loads after this will cause a crash. Before you reload the server, add a world edit plugin, and copy the stuff you want to be saved over to a different world. Then, you can safely remove the corrupt world, and you have the builds in another level. Hope this helped.
This is how it 100% works (just rescued one of my world with this): Step 1: Download pmmp from source Step 2: Go to src/pocketmine/entity/Human.php Step 3: Comment out or remove the lines 473 - 475 as shown below: PHP: //if(strlen($this->skin) < 64 * 32 * 4){ // throw new \InvalidStateException((new \ReflectionClass($this))->getShortName() . " must have a valid skin set"); //} Step 4: Code a plugin that can delete Human entities or download my plugin EntityKiller (I hope that doesn't count as advertising...) Step 5: Start your server and tp into that world, you will see something like this: Step 6: If you are using EntityKiller run /lents and you should see two player-entities which confirms that the invalid entity is loaded. Step 7: If you are using EntityKiller, you can now use /kplr to kill all player entities, if you are using an own plugin, just execute the command that you created for killing Human-type entities. This will kick you from the server, because you get killed too. Step 8: Switch back to a normal pocketmine .phar and enjoy your fixed world. Best regards, HimbeersaftLP
Just clone pmmp recursively from GitHub, delete your PocketMine-MP.phar file and put the src folder instead into your server directory