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 #402

Closed UnknownNull closed 1 year ago

UnknownNull commented 1 year ago

2023-09-21 [16:49:41.951] [Server thread/EMERGENCY]: Crash occurred while handling a packet from session: KING88TAHA 2023-09-21 [16:49:41.954] [Server thread/CRITICAL]: InvalidArgumentException: "Block at this position is not a sign" (EXCEPTION) in "pmsrc/src/player/Player" at line 2720 --- Stack trace ---

0 pmsrc/src/block/BaseSign(198): pocketmine\player\Player->openSignEditor(object pocketmine\world\Position#245504)

1 pmsrc/src/world/World(2214): pocketmine\block\BaseSign->onInteract(object pocketmine\item\ItemBlock#134112, int 4, object pocketmine\math\Vector3#109220, object pocketmine\player\Player#78209, array[0])

2 pmsrc/src/player/Player(1816): pocketmine\world\World->useItemOn(object pocketmine\math\Vector3#105124, object pocketmine\item\ItemBlock#134112, int 4, object pocketmine\math\Vector3#109220, object pocketmine\player\Player#78209, true, array[0])

3 pmsrc/src/network/mcpe/handler/InGamePacketHandler(492): pocketmine\player\Player->interactBlock(object pocketmine\math\Vector3#105124, int 4, object pocketmine\math\Vector3#101328)

4 pmsrc/src/network/mcpe/handler/InGamePacketHandler(345): pocketmine\network\mcpe\handler\InGamePacketHandler->handleUseItemTransaction(object pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData#242428)

5 pmsrc/vendor/arabskills/bedrock-protocol/src/InventoryTransactionPacket(94): pocketmine\network\mcpe\handler\InGamePacketHandler->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#110073)

6 pmsrc/src/network/mcpe/NetworkSession(514): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#99552)

7 pmsrc/src/network/mcpe/NetworkSession(452): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket#110073, string[38] ........T...>%EA...C.0(B..`?...>.pq>.>)

8 pmsrc/src/network/mcpe/raklib/RakLibInterface(219): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[109] .Uib...c...b....&&59.&............y|...4.........1......Wda@.....l.r.:....'.&.I.)

9 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[110] ..Uib...c...b....&&59.&............y|...4.........1......Wda@.....l.r.:....'.&.I)

10 pmsrc/src/network/mcpe/raklib/RakLibInterface(111): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#156595)

11 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib{closure}()

12 pmsrc/src/TimeTrackingSleeperHandler(58): pocketmine\snooze\SleeperHandler->processNotifications()

13 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(79): pocketmine\TimeTrackingSleeperHandler->processNotifications()

14 pmsrc/src/Server(1707): pocketmine\snooze\SleeperHandler->sleepUntil(float 1695314981.956)

15 pmsrc/src/Server(1089): pocketmine\Server->tickProcessor()

16 pmsrc/src/PocketMine(334): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[50] C:\Users\Administrator\Documents\MV - RL\5.Arcade\, string[58] C:\Users\Administrator\Documents\MV - RL\5.Arcade\plugins)

17 pmsrc/src/PocketMine(357): pocketmine\server()

18 pmsrc(11): require(string[94] phar://C:/Users/Administrator/Documents/MV - RL/5.Arcade/PocketMine-MP.phar/src/)

--- End of exception information ---

dries-c commented 1 year ago

Someone tries to access a sign that doesn't exist. idk why this crashes the server though.

UnknownNull commented 1 year ago

https://github.com/pmmp/PocketMine-MP/issues/6041