Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error crafting #2564

Closed
Michaelloitalliano opened this issue Dec 13, 2018 · 5 comments
Closed

error crafting #2564

Michaelloitalliano opened this issue Dec 13, 2018 · 5 comments
Labels
Category: Protocol Related to (changes in) the Minecraft network protocol Resolution: Duplicate

Comments

@Michaelloitalliano
Copy link

Michaelloitalliano commented Dec 13, 2018

Issue description

crashing when player crafts something

Any issues requesting updates to new versions of MCPE will be treated as spam.

Missing gameplay features are to be expected.
Please do not create issues for missing/un-implemented gameplay features - they will be closed.
-->

  • Expected result: What were you expecting to happen?
  • Actual result: What actually happened?

Steps to reproduce the issue

  1. craft something
  2. kick from server, and error in console

OS and versions

  • PocketMine-MP: 3.5
  • PHP: 7
  • Server OS: windows
  • Game version: PE

Plugins

without plugins the same

Crashdump, backtrace or other files

[21:50:01] [Server thread/CRITICAL]: UnexpectedValueException: "Useless magic number for crafting-grid type was -100, expected -2" (EXCEPTION) in "src/pocketmine/network/mcpe/protocol/types/NetworkInventoryAction" at line 114
[21:50:01] [Server thread/DEBUG]: #0 src/pocketmine/network/mcpe/protocol/InventoryTransactionPacket(76): pocketmine\network\mcpe\protocol\types\NetworkInventoryAction->read(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object)
[21:50:01] [Server thread/DEBUG]: #1 src/pocketmine/network/mcpe/protocol/DataPacket(74): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->decodePayload()
[21:50:01] [Server thread/DEBUG]: #2 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(90): pocketmine\network\mcpe\protocol\DataPacket->decode()
[21:50:01] [Server thread/DEBUG]: #3 src/pocketmine/network/mcpe/protocol/BatchPacket(114): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object)
[21:50:01] [Server thread/DEBUG]: #4 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(98): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
[21:50:01] [Server thread/DEBUG]: #5 src/pocketmine/Player(3044): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
[21:50:01] [Server thread/DEBUG]: #6 src/pocketmine/network/mcpe/RakLibInterface(162): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
[21:50:01] [Server thread/DEBUG]: #7 vendor/pocketmine/raklib/src/server/ServerHandler(98): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 195.88.72.177 55934, raklib\protocol\EncapsulatedPacket object, integer 0)
[21:50:01] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/RakLibInterface(102): raklib\server\ServerHandler->handlePacket()
[21:50:01] [Server thread/DEBUG]: #9 src/pocketmine/network/Network(94): pocketmine\network\mcpe\RakLibInterface->process()
[21:50:01] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/RakLibInterface(92): pocketmine\network\Network->processInterface(pocketmine\network\mcpe\RakLibInterface object)
[21:50:01] [Server thread/DEBUG]: #11 vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}()
[21:50:01] [Server thread/DEBUG]: #12 vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
[21:50:01] [Server thread/DEBUG]: #13 src/pocketmine/Server(2278): pocketmine\snooze\SleeperHandler->sleepUntil(double 1544727001.8575)
[21:50:01] [Server thread/DEBUG]: #14 src/pocketmine/Server(2139): pocketmine\Server->tickProcessor()
[21:50:01] [Server thread/DEBUG]: #15 src/pocketmine/Server(1715): pocketmine\Server->start()
[21:50:01] [Server thread/DEBUG]: #16 src/pocketmine/PocketMine(249): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string D:\Minecraft Pocket Server 1.8.x, string D:\Minecraft Pocket Server 1.8.x\plugins)
[21:50:01] [Server thread/DEBUG]: #17 D:/Minecraft Pocket Server 1.8.x/PocketMine-MP.phar(1): require(string phar://D:/Minecraft Pocket Server 1.8.x/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

  • ...
@dries-c
Copy link
Member

dries-c commented Dec 13, 2018

This error has been fixed here: dbeceb0
Dylan is going to make a new release soon.

@3zeroed
Copy link

3zeroed commented Dec 14, 2018

I also got the same error, but the player simply won't crash the item on the workbench back into the backpack.
--- This passage is translated by machine. If the grammar is wrong, please forgive me.

@SkyNetServer
Copy link

Hopefully the release come out soon.

@Michaelloitalliano
Copy link
Author

Hopefully the release come out soon.

You can do like me, download the source of core and unpack to folder with pocketmine-mp.phar(and delete phar), download correct file(https://github.com/pmmp/PocketMine-MP/blob/master/src/pocketmine/network/mcpe/protocol/types/NetworkInventoryAction.php) and insert into source.

@3zeroed
Copy link

3zeroed commented Dec 14, 2018

希望很快就会发布。

您可以像我一样,下载核心源并使用pocketmine-mp.phar解压缩到文件夹(并删除phar),下载正确的文件(https://github.com/pmmp/PocketMine-MP/blob/master/src /pocketmine/network/mcpe/protocol/types/NetworkInventoryAction.php)并插入源代码。
How can I run PocketMine-MP from source?
When I try to run from source, it always prompts me not to find PocketMine-MP, maybe I should modify the startup script? How to amend it?
--- This passage was translated by machine. I am not sure if it has a grammatical error. If you have any, please forgive me.

@pmmp pmmp locked as off-topic and limited conversation to collaborators Dec 14, 2018
@dktapps dktapps closed this as completed Dec 14, 2018
@dktapps dktapps added Resolution: Duplicate Category: Protocol Related to (changes in) the Minecraft network protocol labels Dec 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Category: Protocol Related to (changes in) the Minecraft network protocol Resolution: Duplicate
Projects
None yet
Development

No branches or pull requests

5 participants