Shock95 / AuctionHouse

Feature-packed auction house plugin for PocketMine-MP (pmmp)
GNU General Public License v3.0
43 stars 34 forks source link

Crash #56

Closed deadbushmc closed 3 years ago

deadbushmc commented 3 years ago

It says Internal server error whenever i run the command /ah

Error/Crash log (If available)


[04:24:46] [Server thread/CRITICAL]: TypeError: "Return value of shock95x\auctionhouse\menu\AHMenu::getInventory() must be an instance of shock95x\auctionhouse\libs\muqsit\invmenu\inventory\InvMenuInventory, null returned" (EXCEPTION) in "plugins/AuctionHouse_dev-51.phar/src/shock95x/auctionhouse/menu/AHMenu" at line 127
[04:24:46] [Server thread/CRITICAL]: #0 plugins/AuctionHouse_dev-51.phar/src/shock95x/auctionhouse/menu/AHMenu(98): shock95x\auctionhouse\menu\AHMenu->getInventory()
[04:24:46] [Server thread/CRITICAL]: #1 plugins/AuctionHouse_dev-51.phar/src/shock95x/auctionhouse/menu/AHMenu(58): shock95x\auctionhouse\menu\AHMenu->renderPagination()
[04:24:46] [Server thread/CRITICAL]: #2 plugins/AuctionHouse_dev-51.phar/src/shock95x/auctionhouse/menu/MainMenu(28): shock95x\auctionhouse\menu\AHMenu->__construct(object pocketmine\Player, boolean , boolean 1)
[04:24:46] [Server thread/CRITICAL]: #3 plugins/AuctionHouse_dev-51.phar/src/shock95x/auctionhouse/commands/AHCommand(33): shock95x\auctionhouse\menu\MainMenu->__construct(object pocketmine\Player)
[04:24:46] [Server thread/CRITICAL]: #4 plugins/AuctionHouse_dev-51.phar/src/shock95x/auctionhouse/libs/CortexPE/Commando/BaseCommand(143): shock95x\auctionhouse\commands\AHCommand->onRun(object pocketmine\Player, string[2] ah, array[0])
[04:24:46] [Server thread/CRITICAL]: #5 src/pocketmine/command/SimpleCommandMap(248): shock95x\auctionhouse\libs\CortexPE\Commando\BaseCommand->execute(object pocketmine\Player, string[2] ah, array[0])
[04:24:46] [Server thread/CRITICAL]: #6 src/pocketmine/Server(1811): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\Player, string[2] ah)
[04:24:46] [Server thread/CRITICAL]: #7 src/pocketmine/Player(2316): pocketmine\Server->dispatchCommand(object pocketmine\Player, string[2] ah)
[04:24:46] [Server thread/CRITICAL]: #8 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(244): pocketmine\Player->chat(string[3] /ah)
[04:24:46] [Server thread/CRITICAL]: #9 src/pocketmine/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket)
[04:24:46] [Server thread/CRITICAL]: #10 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[04:24:46] [Server thread/CRITICAL]: #11 src/pocketmine/network/mcpe/protocol/BatchPacket(127): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket)
[04:24:46] [Server thread/CRITICAL]: #12 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[04:24:46] [Server thread/CRITICAL]: #13 src/pocketmine/Player(3255): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[04:24:46] [Server thread/CRITICAL]: #14 src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[04:24:46] [Server thread/CRITICAL]: #15 vendor/pocketmine/raklib/src/server/ServerHandler(95): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[19] 49.37.184.118 49584, object raklib\protocol\EncapsulatedPacket, integer 0)
[04:24:46] [Server thread/CRITICAL]: #16 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
[04:24:46] [Server thread/CRITICAL]: #17 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
[04:24:46] [Server thread/CRITICAL]: #18 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
[04:24:46] [Server thread/CRITICAL]: #19 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
[04:24:46] [Server thread/CRITICAL]: #20 src/pocketmine/Server(2157): pocketmine\snooze\SleeperHandler->sleepUntil(double 1600316686.0531)
[04:24:46] [Server thread/CRITICAL]: #21 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
[04:24:46] [Server thread/CRITICAL]: #22 src/pocketmine/Server(1588): pocketmine\Server->start()
[04:24:46] [Server thread/CRITICAL]: #23 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
[04:24:46] [Server thread/CRITICAL]: #24 src/pocketmine/PocketMine(304): pocketmine\server()
[04:24:46] [Server thread/CRITICAL]: #25 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
[04:24:46] [Server thread/INFO]: DeadBushMC[/49.37.184.118:49584] logged out due to Internal server error 

that's the latest version Screenshot_2020-09-17-09-56-55-828_com android chrome

Shock95 commented 3 years ago

Would you know any way to reproduce this issue?

deadbushmc commented 3 years ago

Would you know any way to reproduce this issue?

Nope just add it in the server restart the server do /ah crash

Shock95 commented 3 years ago

An update has been released that should fix this issue, let me know if it still occurs