Closed ghost closed 6 years ago
It looks like the arena was in a level which got unloaded. Are you using any world-management related plugins / are there any messages before that? (Reproducing steps, if any, would also be nice)
oh sorry i wrote a reply but it didn't send it ,
-steps to reproduce the issue:
create an arena then restart the server and the arena is no longer there ,
-plugins installed:
Plugins (44): EconomyAPI v5.7.1-5, DevTools v1.12.9, TicTacToe v0.1.3, MyPlot v1.2.3, ManyWorlds v2.1.0, MagicWE2 v5.7.1, PurePerms v1.4.1-3, CoreProtect v0.1.5, AntiSpamPro v1.4.0-3, Festival v1.0.4-11, HungerDisabler v1.2.8, Murder v0.9, SimpleAuth v2.1.2-5, WorldProtect v2.3.5-6, PCFly v2.1.1, GuessTheNumber v3.0.2, EDB-Pro v0.0.1, KillMoney v1.0.0-beta, InfoBook v1, BlockCMD v1.0.0-beta, ClearLaggPE v2.0.0, Parkour v1.5.6-4, EssentialsPE v3.0.0-rewrite, SW_svile v0.7dev, SoupFFA v2.3.0, Broadcaster v1.2, MSpawns v2, Slapper v1.3.8, WorldFixer v1.0.4, PvPWorlds v1, KnockbackFFA v1.8.0, WarpUI v1.1, TapToDo v2.3.0, TeaSpoon v1.0.0, OldEconomyShop v2.0.6, HotBlock v1.0.9, iProtector v3.1.0-8, 1vs1 v0.0.4, TimeCommander v2.2, SG_svile v0.7dev, MOTDShuffle v1.1.1, NoDrop v1.0.0, PureChat v1.4.10-4, SimpleWarp v3.3.8
and no there are no messages except that the one that says i have joined the queue. + the error on the console
I am unable reproduce the issue. Is the arena located in a level which is not the default level? (Do you have multiple worlds?)
yea its in a different world which gets unloaded upon server restart , should it be in a world that is always loaded ?
well, this plugin currently expects all levels to be loaded. I might need to implement auto-loading / proper error messages. You can easily fix this by adding the level/worldname to the bottomn of pocketmine.yml
hmm , even after i changed its place to the main level , once i tap on the sign that has [TTT] for the first 2 taps nothing happens and this error gets in the console then the 3rd tap makes me join the queue , so i think this is an issue with the PlayerInteractEvent
Oh, that is interesting. Would you mind settings debug level in pocketmine.yml to 2 and then posting the full stack trace here?
here is the log from the first touch until the last one which made me join the queue:
2018-03-17 [23:02:53] [Server thread/CRITICAL]: Could not pass event 'pocketmine\event\player\PlayerInteractEvent' to 'TicTacToe v0.1.3': Call to a member function getTile() on null on robske_110\TTT\EventListener
2018-03-17 [23:02:53] [Server thread/CRITICAL]: Error: "Call to a member function getTile() on null" (EXCEPTION) in "TicTacToe-1.phar/src/robske_110/TTT/Game/Arena" at line 76
2018-03-17 [23:02:53] [Server thread/DEBUG]: #0 TicTacToe-1.phar/src/robske_110/TTT/Game/Arena(91): robske_110\TTT\Game\Arena->reset()
2018-03-17 [23:02:53] [Server thread/DEBUG]: #1 TicTacToe-1.phar/src/robske_110/TTT/Game/Game(31): robske_110\TTT\Game\Arena->occupy(robske_110\TTT\Game\Game object)
2018-03-17 [23:02:53] [Server thread/DEBUG]: #2 TicTacToe-1.phar/src/robske_110/TTT/PlayerManager(71): robske_110\TTT\Game\Game->__construct(robske_110\TTT\Game\Arena object)
2018-03-17 [23:02:53] [Server thread/DEBUG]: #3 TicTacToe-1.phar/src/robske_110/TTT/PlayerManager(56): robske_110\TTT\PlayerManager->createGame(robske_110\TTT\Game\Arena object, integer 1)
2018-03-17 [23:02:53] [Server thread/DEBUG]: #4 TicTacToe-1.phar/src/robske_110/TTT/EventListener(54): robske_110\TTT\PlayerManager->addPlayer(integer 1)
2018-03-17 [23:02:53] [Server thread/DEBUG]: #5 src/pocketmine/plugin/MethodEventExecutor(38): robske_110\TTT\EventListener->onSignTap(pocketmine\event\player\PlayerInteractEvent object)
2018-03-17 [23:02:53] [Server thread/DEBUG]: #6 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(robske_110\TTT\EventListener object, pocketmine\event\player\PlayerInteractEvent object)
2018-03-17 [23:02:53] [Server thread/DEBUG]: #7 src/pocketmine/plugin/PluginManager(683): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\player\PlayerInteractEvent object)
2018-03-17 [23:02:53] [Server thread/DEBUG]: #8 src/pocketmine/level/Level(1851): pocketmine\plugin\PluginManager->callEvent(pocketmine\event\player\PlayerInteractEvent object)
2018-03-17 [23:02:53] [Server thread/DEBUG]: #9 src/pocketmine/Player(2286): pocketmine\level\Level->useItemOn(pocketmine\math\Vector3 object, pocketmine\item\ItemBlock object, integer 5, pocketmine\math\Vector3 object, TheNewHEROBRINE\Murder\entity\MurderPlayer object, boolean 1)
2018-03-17 [23:02:53] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(132): pocketmine\Player->handleInventoryTransaction(CortexPE\network\InventoryTransactionPacket object)
2018-03-17 [23:02:53] [Server thread/DEBUG]: #11 TeaSpoon-master/src/CortexPE/network/InventoryTransactionPacket(151): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(CortexPE\network\InventoryTransactionPacket object)
2018-03-17 [23:02:53] [Server thread/DEBUG]: #12 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): CortexPE\network\InventoryTransactionPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2018-03-17 [23:02:53] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/protocol/BatchPacket(115): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(CortexPE\network\InventoryTransactionPacket object)
2018-03-17 [23:02:53] [Server thread/DEBUG]: #14 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2018-03-17 [23:02:53] [Server thread/DEBUG]: #15 src/pocketmine/Player(2964): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2018-03-17 [23:02:53] [Server thread/DEBUG]: #16 src/pocketmine/network/mcpe/RakLibInterface(149): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2018-03-17 [23:02:53] [Server thread/DEBUG]: #17 vendor/pocketmine/raklib/server/ServerHandler(103): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 176.47.25.140 5121, raklib\protocol\EncapsulatedPacket object, integer 0)
2018-03-17 [23:02:53] [Server thread/DEBUG]: #18 src/pocketmine/network/mcpe/RakLibInterface(88): raklib\server\ServerHandler->handlePacket()
2018-03-17 [23:02:53] [Server thread/DEBUG]: #19 src/pocketmine/network/Network(89): pocketmine\network\mcpe\RakLibInterface->process()
2018-03-17 [23:02:53] [Server thread/DEBUG]: #20 src/pocketmine/Server(2531): pocketmine\network\Network->processInterfaces()
2018-03-17 [23:02:53] [Server thread/DEBUG]: #21 src/pocketmine/Server(2283): pocketmine\Server->tick()
2018-03-17 [23:02:53] [Server thread/DEBUG]: #22 src/pocketmine/Server(2158): pocketmine\Server->tickProcessor()
2018-03-17 [23:02:53] [Server thread/DEBUG]: #23 src/pocketmine/Server(1744): pocketmine\Server->start()
2018-03-17 [23:02:53] [Server thread/DEBUG]: #24 src/pocketmine/PocketMine(556): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/minecraft/multicraft/servers/server21217/, string /home/minecraft/multicraft/servers/server21217/plugins/)
2018-03-17 [23:02:53] [Server thread/DEBUG]: #25 /home/minecraft/multicraft/jar/versions/PocketMine/PocketMine-MP743.phar(1): require(string phar:///home/minecraft/multicraft/jar/versions/PocketMine/PocketMine-MP743.phar/src/pocketmine/PocketMine.php)
2018-03-17 [23:02:54] [Server thread/CRITICAL]: Could not pass event 'pocketmine\event\player\PlayerInteractEvent' to 'TicTacToe v0.1.3': Call to a member function getTile() on null on robske_110\TTT\EventListener
2018-03-17 [23:02:54] [Server thread/CRITICAL]: Error: "Call to a member function getTile() on null" (EXCEPTION) in "TicTacToe-1.phar/src/robske_110/TTT/Game/Arena" at line 76
2018-03-17 [23:02:54] [Server thread/DEBUG]: #0 TicTacToe-1.phar/src/robske_110/TTT/Game/Arena(91): robske_110\TTT\Game\Arena->reset()
2018-03-17 [23:02:54] [Server thread/DEBUG]: #1 TicTacToe-1.phar/src/robske_110/TTT/Game/Game(31): robske_110\TTT\Game\Arena->occupy(robske_110\TTT\Game\Game object)
2018-03-17 [23:02:54] [Server thread/DEBUG]: #2 TicTacToe-1.phar/src/robske_110/TTT/PlayerManager(71): robske_110\TTT\Game\Game->__construct(robske_110\TTT\Game\Arena object)
2018-03-17 [23:02:54] [Server thread/DEBUG]: #3 TicTacToe-1.phar/src/robske_110/TTT/PlayerManager(56): robske_110\TTT\PlayerManager->createGame(robske_110\TTT\Game\Arena object, integer 1)
2018-03-17 [23:02:54] [Server thread/DEBUG]: #4 TicTacToe-1.phar/src/robske_110/TTT/EventListener(54): robske_110\TTT\PlayerManager->addPlayer(integer 1)
2018-03-17 [23:02:54] [Server thread/DEBUG]: #5 src/pocketmine/plugin/MethodEventExecutor(38): robske_110\TTT\EventListener->onSignTap(pocketmine\event\player\PlayerInteractEvent object)
2018-03-17 [23:02:54] [Server thread/DEBUG]: #6 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(robske_110\TTT\EventListener object, pocketmine\event\player\PlayerInteractEvent object)
2018-03-17 [23:02:54] [Server thread/DEBUG]: #7 src/pocketmine/plugin/PluginManager(683): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\player\PlayerInteractEvent object)
2018-03-17 [23:02:54] [Server thread/DEBUG]: #8 src/pocketmine/level/Level(1851): pocketmine\plugin\PluginManager->callEvent(pocketmine\event\player\PlayerInteractEvent object)
2018-03-17 [23:02:54] [Server thread/DEBUG]: #9 src/pocketmine/Player(2286): pocketmine\level\Level->useItemOn(pocketmine\math\Vector3 object, pocketmine\item\ItemBlock object, integer 5, pocketmine\math\Vector3 object, TheNewHEROBRINE\Murder\entity\MurderPlayer object, boolean 1)
2018-03-17 [23:02:54] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(132): pocketmine\Player->handleInventoryTransaction(CortexPE\network\InventoryTransactionPacket object)
2018-03-17 [23:02:54] [Server thread/DEBUG]: #11 TeaSpoon-master/src/CortexPE/network/InventoryTransactionPacket(151): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(CortexPE\network\InventoryTransactionPacket object)
2018-03-17 [23:02:54] [Server thread/DEBUG]: #12 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): CortexPE\network\InventoryTransactionPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2018-03-17 [23:02:54] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/protocol/BatchPacket(115): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(CortexPE\network\InventoryTransactionPacket object)
2018-03-17 [23:02:54] [Server thread/DEBUG]: #14 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2018-03-17 [23:02:54] [Server thread/DEBUG]: #15 src/pocketmine/Player(2964): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2018-03-17 [23:02:54] [Server thread/DEBUG]: #16 src/pocketmine/network/mcpe/RakLibInterface(149): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2018-03-17 [23:02:54] [Server thread/DEBUG]: #17 vendor/pocketmine/raklib/server/ServerHandler(103): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 176.47.25.140 5121, raklib\protocol\EncapsulatedPacket object, integer 0)
2018-03-17 [23:02:54] [Server thread/DEBUG]: #18 src/pocketmine/network/mcpe/RakLibInterface(88): raklib\server\ServerHandler->handlePacket()
2018-03-17 [23:02:54] [Server thread/DEBUG]: #19 src/pocketmine/network/Network(89): pocketmine\network\mcpe\RakLibInterface->process()
2018-03-17 [23:02:54] [Server thread/DEBUG]: #20 src/pocketmine/Server(2531): pocketmine\network\Network->processInterfaces()
2018-03-17 [23:02:54] [Server thread/DEBUG]: #21 src/pocketmine/Server(2283): pocketmine\Server->tick()
2018-03-17 [23:02:54] [Server thread/DEBUG]: #22 src/pocketmine/Server(2158): pocketmine\Server->tickProcessor()
2018-03-17 [23:02:54] [Server thread/DEBUG]: #23 src/pocketmine/Server(1744): pocketmine\Server->start()
2018-03-17 [23:02:54] [Server thread/DEBUG]: #24 src/pocketmine/PocketMine(556): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/minecraft/multicraft/servers/server21217/, string /home/minecraft/multicraft/servers/server21217/plugins/)
2018-03-17 [23:02:54] [Server thread/DEBUG]: #25 /home/minecraft/multicraft/jar/versions/PocketMine/PocketMine-MP743.phar(1): require(string phar:///home/minecraft/multicraft/jar/versions/PocketMine/PocketMine-MP743.phar/src/pocketmine/PocketMine.php)
2018-03-17 [23:02:55] [Server thread/CRITICAL]: Could not pass event 'pocketmine\event\player\PlayerInteractEvent' to 'TicTacToe v0.1.3': Call to a member function getTile() on null on robske_110\TTT\EventListener
2018-03-17 [23:02:55] [Server thread/CRITICAL]: Error: "Call to a member function getTile() on null" (EXCEPTION) in "TicTacToe-1.phar/src/robske_110/TTT/Game/Arena" at line 76
2018-03-17 [23:02:55] [Server thread/DEBUG]: #0 TicTacToe-1.phar/src/robske_110/TTT/Game/Arena(91): robske_110\TTT\Game\Arena->reset()
2018-03-17 [23:02:55] [Server thread/DEBUG]: #1 TicTacToe-1.phar/src/robske_110/TTT/Game/Game(31): robske_110\TTT\Game\Arena->occupy(robske_110\TTT\Game\Game object)
2018-03-17 [23:02:55] [Server thread/DEBUG]: #2 TicTacToe-1.phar/src/robske_110/TTT/PlayerManager(71): robske_110\TTT\Game\Game->__construct(robske_110\TTT\Game\Arena object)
2018-03-17 [23:02:55] [Server thread/DEBUG]: #3 TicTacToe-1.phar/src/robske_110/TTT/PlayerManager(56): robske_110\TTT\PlayerManager->createGame(robske_110\TTT\Game\Arena object, integer 1)
2018-03-17 [23:02:55] [Server thread/DEBUG]: #4 TicTacToe-1.phar/src/robske_110/TTT/EventListener(54): robske_110\TTT\PlayerManager->addPlayer(integer 1)
2018-03-17 [23:02:55] [Server thread/DEBUG]: #5 src/pocketmine/plugin/MethodEventExecutor(38): robske_110\TTT\EventListener->onSignTap(pocketmine\event\player\PlayerInteractEvent object)
2018-03-17 [23:02:55] [Server thread/DEBUG]: #6 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(robske_110\TTT\EventListener object, pocketmine\event\player\PlayerInteractEvent object)
2018-03-17 [23:02:55] [Server thread/DEBUG]: #7 src/pocketmine/plugin/PluginManager(683): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\player\PlayerInteractEvent object)
2018-03-17 [23:02:55] [Server thread/DEBUG]: #8 src/pocketmine/level/Level(1851): pocketmine\plugin\PluginManager->callEvent(pocketmine\event\player\PlayerInteractEvent object)
2018-03-17 [23:02:55] [Server thread/DEBUG]: #9 src/pocketmine/Player(2286): pocketmine\level\Level->useItemOn(pocketmine\math\Vector3 object, pocketmine\item\ItemBlock object, integer 5, pocketmine\math\Vector3 object, TheNewHEROBRINE\Murder\entity\MurderPlayer object, boolean 1)
2018-03-17 [23:02:55] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(132): pocketmine\Player->handleInventoryTransaction(CortexPE\network\InventoryTransactionPacket object)
2018-03-17 [23:02:55] [Server thread/DEBUG]: #11 TeaSpoon-master/src/CortexPE/network/InventoryTransactionPacket(151): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(CortexPE\network\InventoryTransactionPacket object)
2018-03-17 [23:02:55] [Server thread/DEBUG]: #12 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): CortexPE\network\InventoryTransactionPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2018-03-17 [23:02:55] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/protocol/BatchPacket(115): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(CortexPE\network\InventoryTransactionPacket object)
2018-03-17 [23:02:55] [Server thread/DEBUG]: #14 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2018-03-17 [23:02:55] [Server thread/DEBUG]: #15 src/pocketmine/Player(2964): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2018-03-17 [23:02:55] [Server thread/DEBUG]: #16 src/pocketmine/network/mcpe/RakLibInterface(149): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2018-03-17 [23:02:55] [Server thread/DEBUG]: #17 vendor/pocketmine/raklib/server/ServerHandler(103): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 176.47.25.140 5121, raklib\protocol\EncapsulatedPacket object, integer 0)
2018-03-17 [23:02:55] [Server thread/DEBUG]: #18 src/pocketmine/network/mcpe/RakLibInterface(88): raklib\server\ServerHandler->handlePacket()
2018-03-17 [23:02:55] [Server thread/DEBUG]: #19 src/pocketmine/network/Network(89): pocketmine\network\mcpe\RakLibInterface->process()
2018-03-17 [23:02:55] [Server thread/DEBUG]: #20 src/pocketmine/Server(2531): pocketmine\network\Network->processInterfaces()
2018-03-17 [23:02:55] [Server thread/DEBUG]: #21 src/pocketmine/Server(2283): pocketmine\Server->tick()
2018-03-17 [23:02:55] [Server thread/DEBUG]: #22 src/pocketmine/Server(2158): pocketmine\Server->tickProcessor()
2018-03-17 [23:02:55] [Server thread/DEBUG]: #23 src/pocketmine/Server(1744): pocketmine\Server->start()
2018-03-17 [23:02:55] [Server thread/DEBUG]: #24 src/pocketmine/PocketMine(556): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/minecraft/multicraft/servers/server21217/, string /home/minecraft/multicraft/servers/server21217/plugins/)
2018-03-17 [23:02:55] [Server thread/DEBUG]: #25 /home/minecraft/multicraft/jar/versions/PocketMine/PocketMine-MP743.phar(1): require(string phar:///home/minecraft/multicraft/jar/versions/PocketMine/PocketMine-MP743.phar/src/pocketmine/PocketMine.php)
2018-03-17 [23:02:56] [Server thread/INFO]: There are 1/10 players online:
2018-03-17 [23:02:56] [Server thread/INFO]: mote166
2018-03-17 [23:03:13] [Server thread/INFO]: 》> Report problems and issues through our account on instagram -> @goldcraft_
2018-03-17 [23:03:20] [Server thread/DEBUG]: Level "game1" took 55ms, setting tick rate to 2 ticks
2018-03-17 [23:03:20] [Server thread/DEBUG]: Raising level "game1" tick rate to 1 ticks
should be fixed with the commit above, please test https://poggit.pmmp.io/r/26101/TicTacToe_dev-10.phar
yep the issue no longer occurs , one question tho , does this support multi arenas?
great to hear! And yes, this does support multiple arenas.
CRITICAL Could not pass event 'pocketmine\event\player\PlayerInteractEvent' to 'TicTacToe v0.1.3': Call to a member function getTile() on null on robske_110\TTT\EventListener 09.03 20:41:37 [Server] Server thread/CRITICAL Error: "Call to a member function getTile() on null" (EXCEPTION) in "TicTacToe-1.phar/src/robske_110/TTT/Game/Arena" at line 76