aieuo / Mineflow

Easily create and execute the original flow like a plugin
University of Illinois/NCSA Open Source License
48 stars 15 forks source link

レシピ出力時にエラーが発生する #21

Closed PJZ9n closed 4 years ago

PJZ9n commented 4 years ago

概要

レシピを出力しようとすると、エラーが発生します。

環境

PHPのバージョン

PHP 7.3.22 (cli) (built: Sep 10 2020 22:57:05) ( ZTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.22, Copyright (c) 1998-2018 Zend Technologies

PocketMine-MPのバージョン

このサーバーは Minecraft: Bedrock Edition v1.16.20(プロトコルバージョン 408)用 PocketMine-MP 3.15.1 を実行しています

エラーの再現に使用したビルド

Dev Build #122

エラーの再現方法

方法1

  1. /mineflowコマンドでフォームを開く
  2. 「レシピ」を選択
  3. 「レシピ出力」を選択
  4. レシピ名を入力

方法2

  1. /mineflowコマンドでフォームを開く
  2. 「レシピ」を選択
  3. 「レシピ一覧」を選択
  4. 任意のレシピを選択
  5. 「レシピ出力」を選択

エラー文

[Server thread/CRITICAL]: Error: "Cannot unpack array with string keys" (EXCEPTION) in "plugins/Mineflow/src/aieuo/mineflow/recipe/RecipeManager" at line 178
スタックトレース
``` [Server thread/CRITICAL]: #0 plugins/Mineflow/src/aieuo/mineflow/ui/ExportForm(20): aieuo\mineflow\recipe\RecipeManager->getWithLinkedRecipes(object aieuo\mineflow\recipe\Recipe, object aieuo\mineflow\recipe\Recipe) [Server thread/CRITICAL]: #1 plugins/Mineflow/src/aieuo/mineflow/ui/MineflowForm(74): aieuo\mineflow\ui\ExportForm->sendRecipeListByRecipe(object pocketmine\Player, object aieuo\mineflow\recipe\Recipe) [Server thread/CRITICAL]: #2 (): aieuo\mineflow\ui\MineflowForm->aieuo\mineflow\ui\{closure}(object pocketmine\Player, array[3], string[31] @form.export.selectRecipe.title, array[2], NULL ) [Server thread/CRITICAL]: #3 plugins/Mineflow/src/aieuo/mineflow/formAPI/Form(204): call_user_func_array(object Closure, array[5]) [Server thread/CRITICAL]: #4 plugins/Mineflow/src/aieuo/mineflow/formAPI/CustomForm(165): aieuo\mineflow\formAPI\Form->handleResponse(object pocketmine\Player, array[3]) [Server thread/CRITICAL]: #5 src/pocketmine/Player(3608): aieuo\mineflow\formAPI\CustomForm->handleResponse(object pocketmine\Player, array[3]) [Server thread/CRITICAL]: #6 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(264): pocketmine\Player->onFormSubmit(integer 3, array[3]) [Server thread/CRITICAL]: #7 src/pocketmine/network/mcpe/protocol/ModalFormResponsePacket(49): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleModalFormResponse(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket) [Server thread/CRITICAL]: #8 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\ModalFormResponsePacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [Server thread/CRITICAL]: #9 src/pocketmine/network/mcpe/protocol/BatchPacket(127): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket) [Server thread/CRITICAL]: #10 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [Server thread/CRITICAL]: #11 src/pocketmine/Player(3255): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [Server thread/CRITICAL]: #12 src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [Server thread/CRITICAL]: #13 vendor/pocketmine/raklib/src/server/ServerHandler(95): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[19] 192.168.2.185 57523, object raklib\protocol\EncapsulatedPacket, integer 0) [Server thread/CRITICAL]: #14 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket() [Server thread/CRITICAL]: #15 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process() [Server thread/CRITICAL]: #16 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}() [Server thread/CRITICAL]: #17 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications() [Server thread/CRITICAL]: #18 src/pocketmine/Server(2157): pocketmine\snooze\SleeperHandler->sleepUntil(double 1601893757.5329) [Server thread/CRITICAL]: #19 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor() [Server thread/CRITICAL]: #20 src/pocketmine/Server(1588): pocketmine\Server->start() [Server thread/CRITICAL]: #21 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /path/to/directory/, string[24] /path/to/directory/plugins/) [Server thread/CRITICAL]: #22 src/pocketmine/PocketMine(304): pocketmine\server() [Server thread/CRITICAL]: #23 (11): require(string[64] phar:///path/to/directory/PocketMine-MP.phar/src/pocketmine/PocketMine.php) ```
aieuo commented 4 years ago

ご報告ありがとうございます. 修正します.