NetherGamesMC / PocketMine-MP

A multi protocol server software for Minecraft: Bedrock Edition in PHP
https://pmmp.io
GNU Lesser General Public License v3.0
85 stars 99 forks source link

Server crashed #504

Open StefanFox-Dev opened 6 days ago

StefanFox-Dev commented 6 days ago

Link to crashdump:

Additional comments (optional)


Error: Text must be valid UTF-8
File: pmsrc/src/utils/Utils
Line: 614
Type: InvalidArgumentException
Backtrace:
#0 pmsrc/src/item/Item(158): pocketmine\utils\Utils::checkUTF8(string[36] ........ ...........................)
#1 pmsrc/src/inventory/transaction/AnvilTransaction(90): pocketmine\item\Item->setCustomName(string[36] ........ ...........................)
#2 pmsrc/src/inventory/transaction/AnvilTransaction(77): pocketmine\inventory\transaction\AnvilTransaction->calculateResult()
#3 pmsrc/src/network/mcpe/handler/ItemStackRequestExecutor(281): pocketmine\inventory\transaction\AnvilTransaction->__construct(object pocketmine\player\Player#513665, object pocketmine\block\Anvil#145621, object pocketmine\item\TurtleHelmet#441794, object pocketmine\item\ItemBlock#484513, string[36] ........ ..........................., array[0])```
Superomarking commented 6 days ago

result of this when naming an item with invalid utf-8 characters