Closed teracube closed 5 years ago
other error
2018-09-23 [19:29:39] [Server thread/CRITICAL]: Error: "Call to a member function getSize() on null" (EXCEPTION) in "src/pocketmine/inventory/DoubleChestInventory" at line 63
2018-09-23 [19:29:39] [Server thread/DEBUG]: #0 src/pocketmine/inventory/BaseInventory(254): pocketmine\inventory\DoubleChestInventory->getItem(integer 0)
2018-09-23 [19:29:39] [Server thread/DEBUG]: #1 TeaSpoon_dev-234.phar/src/CortexPE/tile/Hopper(202): pocketmine\inventory\BaseInventory->canAddItem(pocketmine\item\ItemBlock object)
2018-09-23 [19:29:39] [Server thread/DEBUG]: #2 src/pocketmine/level/Level(755): CortexPE\tile\Hopper->onUpdate()
2018-09-23 [19:29:39] [Server thread/DEBUG]: #3 src/pocketmine/Server(2357): pocketmine\level\Level->doTick(integer 374776)
2018-09-23 [19:29:39] [Server thread/DEBUG]: #4 src/pocketmine/Server(2506): pocketmine\Server->checkTickUpdates(integer 374776, double 1537723779.5816)
2018-09-23 [19:29:39] [Server thread/DEBUG]: #5 src/pocketmine/Server(2256): pocketmine\Server->tick()
2018-09-23 [19:29:39] [Server thread/DEBUG]: #6 src/pocketmine/Server(2134): pocketmine\Server->tickProcessor()
2018-09-23 [19:29:39] [Server thread/DEBUG]: #7 src/pocketmine/Server(1700): pocketmine\Server->start()
2018-09-23 [19:29:39] [Server thread/DEBUG]: #8 src/pocketmine/PocketMine(243): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/myservertest/, string /home/myservertest/plugins/)
2018-09-23 [19:29:39] [Server thread/DEBUG]: #9 /home/myservertest/PocketMine-MP.phar(1): require(string phar:///home/myservertest/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
2018-09-23 [19:29:39] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump
2018-09-23 [19:29:39] [Server thread/EMERGENCY]: Please upload the "/home/myservertest/crashdumps/Sun_Sep_23-19.29.39-CEST_2018.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.
......
2018-09-23 [19:29:50] [Server thread/INFO]: Stormio[/24.XXX.XXX.168:59763] logged out due to Serveur en maintenance
2018-09-23 [19:29:50] [Server thread/INFO]: SG DD 008 left the game
2018-09-23 [19:29:50] [Server thread/INFO]: SG DD 008[/78.XXX.XXX.25:37273] logged out due to Serveur en maintenance
2018-09-23 [19:29:50] [Server thread/INFO]: Unloading level "faction"
2018-09-23 [19:29:50] [Server thread/CRITICAL]: Error: "Call to a member function getHolder() on null" (EXCEPTION) in "src/pocketmine/inventory/DoubleChestInventory" at line 122
2018-09-23 [19:29:50] [Server thread/DEBUG]: #0 src/pocketmine/inventory/BaseInventory(411): pocketmine\inventory\DoubleChestInventory->onClose(pocketmine\Player object)
2018-09-23 [19:29:50] [Server thread/DEBUG]: #1 src/pocketmine/Player(3844): pocketmine\inventory\BaseInventory->close(pocketmine\Player object)
2018-09-23 [19:29:50] [Server thread/DEBUG]: #2 src/pocketmine/Player(3861): pocketmine\Player->removeWindow(pocketmine\inventory\DoubleChestInventory object, boolean )
2018-09-23 [19:29:50] [Server thread/DEBUG]: #3 src/pocketmine/Player(3700): pocketmine\Player->removeAllWindows()
2018-09-23 [19:29:50] [Server thread/DEBUG]: #4 src/pocketmine/level/Level(546): pocketmine\Player->teleport(pocketmine\level\Position object)
2018-09-23 [19:29:50] [Server thread/DEBUG]: #5 src/pocketmine/Server(989): pocketmine\level\Level->unload(boolean 1)
2018-09-23 [19:29:50] [Server thread/DEBUG]: #6 src/pocketmine/Server(2046): pocketmine\Server->unloadLevel(pocketmine\level\Level object, boolean 1)
2018-09-23 [19:29:50] [Server thread/DEBUG]: #7 src/pocketmine/Server(2238): pocketmine\Server->forceShutdown()
2018-09-23 [19:29:50] [Server thread/DEBUG]: #8 src/pocketmine/Server(2176): pocketmine\Server->crashDump()
2018-09-23 [19:29:50] [Server thread/DEBUG]: #9 src/pocketmine/Server(1702): pocketmine\Server->exceptionHandler(Error object)
2018-09-23 [19:29:50] [Server thread/DEBUG]: #10 src/pocketmine/PocketMine(243): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/myservertest/, string /home/myservertest/plugins/)
2018-09-23 [19:29:50] [Server thread/DEBUG]: #11 /home/myservertest/PocketMine-MP.phar(1): require(string phar:///home/myservertest/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
2018-09-23 [19:29:50] [Server thread/EMERGENCY]: Crashed while crashing, killing process
PocketMine-MP Crash Dump Sun Sep 23 19:29:39 CEST 2018
Error: Call to a member function getSize() on null
File: src/pocketmine/inventory/DoubleChestInventory
Line: 63
Type: Error
Code:
[54]
[55] /**
[56] * @return Chest
[57] */
[58] public function getHolder(){
[59] return $this->left->getHolder();
[60] }
[61]
[62] public function getItem(int $index) : Item{
[63] return $index < $this->left->getSize() ? $this->left->getItem($index) : $this->right->getItem($index - $this->left->getSize());
[64] }
[65]
[66] public function setItem(int $index, Item $item, bool $send = \true) : bool{
[67] $old = $this->getItem($index);
[68] if($index < $this->left->getSize() ? $this->left->setItem($index, $item, $send) : $this->right->setItem($index - $this->left->getSize(), $item, $send)){
[69] $this->onSlotChange($index, $old, $send);
[70] return \true;
[71] }
[72] return \false;
[73] }
Backtrace:
#0 src/pocketmine/inventory/BaseInventory(254): pocketmine\inventory\DoubleChestInventory->getItem(integer 0)
#1 TeaSpoon_dev-234.phar/src/CortexPE/tile/Hopper(202): pocketmine\inventory\BaseInventory->canAddItem(pocketmine\item\ItemBlock object)
#2 src/pocketmine/level/Level(755): CortexPE\tile\Hopper->onUpdate()
#3 src/pocketmine/Server(2357): pocketmine\level\Level->doTick(integer 374776)
#4 src/pocketmine/Server(2506): pocketmine\Server->checkTickUpdates(integer 374776, double 1537723779.5816)
#5 src/pocketmine/Server(2256): pocketmine\Server->tick()
#6 src/pocketmine/Server(2134): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1700): pocketmine\Server->start()
#8 src/pocketmine/PocketMine(243): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/myservertest-19144/, string /home/myservertest-19144/plugins/)
#9 /home/myservertest-19144/PocketMine-MP.phar(1): require(string phar:///home/myservertest-19144/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
PocketMine-MP version: 3.2.3 [Protocol 282]
Git commit: 27effff403dddae12e2a85b780852f55cef54695
uname -a: Linux g1 4.5.0-0.bpo.2-amd64 #1 SMP Debian 4.5.4-1~bpo8+1 (2016-05-13) x86_64
PHP Version: 7.2.9
Zend version: 3.2.0
OS : Linux, linux
now server crash
too
I don't have this issue. I will investigate to see what it is. I personally have another one though... Try to use a alpha/beta version of Teaspoon and tell us if there is still a problem there. Because I just tested them and hoppers work.
another crash today
2018-10-03 [18:21:47] [Server thread/CRITICAL]: Error: "Call to a member function getHolder() on null" (EXCEPTION) in "src/pocketmine/inventory/DoubleChestInventory" at line 59
2018-10-03 [18:21:47] [Server thread/DEBUG]: #0 src/pocketmine/inventory/ContainerInventory(46): pocketmine\inventory\DoubleChestInventory->getHolder()
2018-10-03 [18:21:47] [Server thread/DEBUG]: #1 src/pocketmine/inventory/ChestInventory(65): pocketmine\inventory\ContainerInventory->onOpen(pocketmine\Player object)
2018-10-03 [18:21:47] [Server thread/DEBUG]: #2 src/pocketmine/inventory/DoubleChestInventory(114): pocketmine\inventory\ChestInventory->onOpen(pocketmine\Player object)
2018-10-03 [18:21:47] [Server thread/DEBUG]: #3 src/pocketmine/inventory/BaseInventory(405): pocketmine\inventory\DoubleChestInventory->onOpen(pocketmine\Player object)
2018-10-03 [18:21:47] [Server thread/DEBUG]: #4 src/pocketmine/Player(3817): pocketmine\inventory\BaseInventory->open(pocketmine\Player object)
2018-10-03 [18:21:47] [Server thread/DEBUG]: #5 src/pocketmine/block/Chest(122): pocketmine\Player->addWindow(pocketmine\inventory\DoubleChestInventory object)
2018-10-03 [18:21:47] [Server thread/DEBUG]: #6 src/pocketmine/level/Level(1785): pocketmine\block\Chest->onActivate(pocketmine\item\Sword object, pocketmine\Player object)
2018-10-03 [18:21:47] [Server thread/DEBUG]: #7 src/pocketmine/Player(2372): pocketmine\level\Level->useItemOn(pocketmine\math\Vector3 object, pocketmine\item\Sword object, integer 1, pocketmine\math\Vector3 object, pocketmine\Player object, boolean 1)
2018-10-03 [18:21:47] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(132): pocketmine\Player->handleInventoryTransaction(CortexPE\network\InventoryTransactionPacket object)
2018-10-03 [18:21:47] [Server thread/DEBUG]: #9 TeaSpoon_dev-244.phar/src/CortexPE/network/InventoryTransactionPacket(81): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(CortexPE\network\InventoryTransactionPacket object)
2018-10-03 [18:21:47] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): CortexPE\network\InventoryTransactionPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2018-10-03 [18:21:47] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/protocol/BatchPacket(114): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(CortexPE\network\InventoryTransactionPacket object)
2018-10-03 [18:21:47] [Server thread/DEBUG]: #12 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2018-10-03 [18:21:47] [Server thread/DEBUG]: #13 src/pocketmine/Player(3056): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2018-10-03 [18:21:47] [Server thread/DEBUG]: #14 src/pocketmine/network/mcpe/RakLibInterface(162): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2018-10-03 [18:21:47] [Server thread/DEBUG]: #15 vendor/pocketmine/raklib/src/server/ServerHandler(98): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 86.67.207.10 46971, raklib\protocol\EncapsulatedPacket object, integer 0)
2018-10-03 [18:21:47] [Server thread/DEBUG]: #16 src/pocketmine/network/mcpe/RakLibInterface(103): raklib\server\ServerHandler->handlePacket()
2018-10-03 [18:21:47] [Server thread/DEBUG]: #17 src/pocketmine/network/Network(94): pocketmine\network\mcpe\RakLibInterface->process()
2018-10-03 [18:21:47] [Server thread/DEBUG]: #18 src/pocketmine/network/mcpe/RakLibInterface(80): pocketmine\network\Network->processInterface(pocketmine\network\mcpe\RakLibInterface object)
2018-10-03 [18:21:47] [Server thread/DEBUG]: #19 vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
2018-10-03 [18:21:47] [Server thread/DEBUG]: #20 vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
2018-10-03 [18:21:47] [Server thread/DEBUG]: #21 src/pocketmine/Server(2259): pocketmine\snooze\SleeperHandler->sleepUntil(double 1538583707.2864)
2018-10-03 [18:21:47] [Server thread/DEBUG]: #22 src/pocketmine/Server(2134): pocketmine\Server->tickProcessor()
2018-10-03 [18:21:47] [Server thread/DEBUG]: #23 src/pocketmine/Server(1700): pocketmine\Server->start()
2018-10-03 [18:21:47] [Server thread/DEBUG]: #24 src/pocketmine/PocketMine(243): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/myservertest/, string /home/myservertest/plugins/)
2018-10-03 [18:21:47] [Server thread/DEBUG]: #25 /home/myservertest/PocketMine-MP.phar(1): require(string phar:///home/myservertest/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
2018-10-03 [18:21:47] [RakLibServer thread/NOTICE]: Blocked 86.XX.XXX.10 for 5 seconds
................................................................................................................................................................................
2018-10-03 [18:22:17] [Server thread/CRITICAL]: Error: "Call to a member function getSize() on null" (EXCEPTION) in "src/pocketmine/inventory/DoubleChestInventory" at line 63
2018-10-03 [18:22:17] [Server thread/DEBUG]: #0 src/pocketmine/inventory/BaseInventory(254): pocketmine\inventory\DoubleChestInventory->getItem(integer 0)
2018-10-03 [18:22:17] [Server thread/DEBUG]: #1 TeaSpoon_dev-244.phar/src/CortexPE/tile/Hopper(202): pocketmine\inventory\BaseInventory->canAddItem(CortexPE\item\BlazeRod object)
2018-10-03 [18:22:17] [Server thread/DEBUG]: #2 src/pocketmine/level/Level(755): CortexPE\tile\Hopper->onUpdate()
2018-10-03 [18:22:17] [Server thread/DEBUG]: #3 src/pocketmine/Server(2357): pocketmine\level\Level->doTick(integer 1052440)
2018-10-03 [18:22:17] [Server thread/DEBUG]: #4 src/pocketmine/Server(2506): pocketmine\Server->checkTickUpdates(integer 1052440, double 1538583737.553)
2018-10-03 [18:22:17] [Server thread/DEBUG]: #5 src/pocketmine/Server(2256): pocketmine\Server->tick()
2018-10-03 [18:22:17] [Server thread/DEBUG]: #6 src/pocketmine/Server(2134): pocketmine\Server->tickProcessor()
2018-10-03 [18:22:17] [Server thread/DEBUG]: #7 src/pocketmine/Server(1700): pocketmine\Server->start()
2018-10-03 [18:22:17] [Server thread/DEBUG]: #8 src/pocketmine/PocketMine(243): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/myservertest/, string /home/myservertest/plugins/)
2018-10-03 [18:22:17] [Server thread/DEBUG]: #9 /home/myservertest/PocketMine-MP.phar(1): require(string phar:///home/myservertest/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
2018-10-03 [18:22:17] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump
2018-10-03 [18:22:17] [Server thread/EMERGENCY]: Please upload the "/home/myservertest/crashdumps/Wed_Oct_3-18.22.17-CEST_2018.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.
................................................................................................................................................................................
2018-10-03 [18:22:18] [Server thread/INFO]: Disabling TeaSpoon v1.0.1
................................................................................................................................................................................
2018-10-03 [18:22:18] [Server thread/CRITICAL]: Error: "Call to a member function getHolder() on null" (EXCEPTION) in "src/pocketmine/inventory/DoubleChestInventory" at line 122
2018-10-03 [18:22:18] [Server thread/DEBUG]: #0 src/pocketmine/inventory/BaseInventory(411): pocketmine\inventory\DoubleChestInventory->onClose(pocketmine\Player object)
2018-10-03 [18:22:18] [Server thread/DEBUG]: #1 src/pocketmine/Player(3844): pocketmine\inventory\BaseInventory->close(pocketmine\Player object)
2018-10-03 [18:22:18] [Server thread/DEBUG]: #2 src/pocketmine/Player(3861): pocketmine\Player->removeWindow(pocketmine\inventory\DoubleChestInventory object, boolean 1)
2018-10-03 [18:22:18] [Server thread/DEBUG]: #3 src/pocketmine/Player(3459): pocketmine\Player->removeAllWindows(boolean 1)
2018-10-03 [18:22:18] [Server thread/DEBUG]: #4 src/pocketmine/Server(2041): pocketmine\Player->close(pocketmine\lang\TranslationContainer object, string Serveur en maintenance)
2018-10-03 [18:22:18] [Server thread/DEBUG]: #5 src/pocketmine/Server(2238): pocketmine\Server->forceShutdown()
2018-10-03 [18:22:18] [Server thread/DEBUG]: #6 src/pocketmine/Server(2176): pocketmine\Server->crashDump()
2018-10-03 [18:22:18] [Server thread/DEBUG]: #7 src/pocketmine/Server(1702): pocketmine\Server->exceptionHandler(Error object)
2018-10-03 [18:22:18] [Server thread/DEBUG]: #8 src/pocketmine/PocketMine(243): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/myservertest/, string /home/myservertest/plugins/)
2018-10-03 [18:22:18] [Server thread/DEBUG]: #9 /home/myservertest/PocketMine-MP.phar(1): require(string phar:///home/myservertest/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
................................................................................................................................................................................
2018-10-03 [18:22:18] [Server thread/INFO]: Unloading level "faction"
2018-10-03 [18:22:18] [Server thread/CRITICAL]: Error: "Call to a member function getHolder() on null" (EXCEPTION) in "src/pocketmine/inventory/DoubleChestInventory" at line 122
2018-10-03 [18:22:18] [Server thread/DEBUG]: #0 src/pocketmine/inventory/BaseInventory(411): pocketmine\inventory\DoubleChestInventory->onClose(pocketmine\Player object)
2018-10-03 [18:22:18] [Server thread/DEBUG]: #1 src/pocketmine/Player(3844): pocketmine\inventory\BaseInventory->close(pocketmine\Player object)
2018-10-03 [18:22:18] [Server thread/DEBUG]: #2 src/pocketmine/Player(3861): pocketmine\Player->removeWindow(pocketmine\inventory\DoubleChestInventory object, boolean )
2018-10-03 [18:22:18] [Server thread/DEBUG]: #3 src/pocketmine/Player(3700): pocketmine\Player->removeAllWindows()
2018-10-03 [18:22:18] [Server thread/DEBUG]: #4 src/pocketmine/level/Level(546): pocketmine\Player->teleport(pocketmine\level\Position object)
2018-10-03 [18:22:18] [Server thread/DEBUG]: #5 src/pocketmine/Server(989): pocketmine\level\Level->unload(boolean 1)
2018-10-03 [18:22:18] [Server thread/DEBUG]: #6 src/pocketmine/Server(2046): pocketmine\Server->unloadLevel(pocketmine\level\Level object, boolean 1)
2018-10-03 [18:22:18] [Server thread/DEBUG]: #7 src/pocketmine/Server(2238): pocketmine\Server->forceShutdown()
2018-10-03 [18:22:18] [Server thread/DEBUG]: #8 src/pocketmine/Server(2176): pocketmine\Server->crashDump()
2018-10-03 [18:22:18] [Server thread/DEBUG]: #9 src/pocketmine/Server(1702): pocketmine\Server->exceptionHandler(Error object)
2018-10-03 [18:22:18] [Server thread/DEBUG]: #10 src/pocketmine/PocketMine(243): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/myservertest/, string /home/myservertest/plugins/)
2018-10-03 [18:22:18] [Server thread/DEBUG]: #11 /home/myservertest/PocketMine-MP.phar(1): require(string phar:///home/myservertest/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
2018-10-03 [18:22:18] [Server thread/EMERGENCY]: Crashed while crashing, killing process
PocketMine-MP Crash Dump Wed Oct 3 18:22:17 CEST 2018
Error: Call to a member function getSize() on null
File: src/pocketmine/inventory/DoubleChestInventory
Line: 63
Type: Error
Code:
[54]
[55] /**
[56] * @return Chest
[57] */
[58] public function getHolder(){
[59] return $this->left->getHolder();
[60] }
[61]
[62] public function getItem(int $index) : Item{
[63] return $index < $this->left->getSize() ? $this->left->getItem($index) : $this->right->getItem($index - $this->left->getSize());
[64] }
[65]
[66] public function setItem(int $index, Item $item, bool $send = \true) : bool{
[67] $old = $this->getItem($index);
[68] if($index < $this->left->getSize() ? $this->left->setItem($index, $item, $send) : $this->right->setItem($index - $this->left->getSize(), $item, $send)){
[69] $this->onSlotChange($index, $old, $send);
[70] return \true;
[71] }
[72] return \false;
[73] }
Backtrace:
#0 src/pocketmine/inventory/BaseInventory(254): pocketmine\inventory\DoubleChestInventory->getItem(integer 0)
#1 TeaSpoon_dev-244.phar/src/CortexPE/tile/Hopper(202): pocketmine\inventory\BaseInventory->canAddItem(CortexPE\item\BlazeRod object)
#2 src/pocketmine/level/Level(755): CortexPE\tile\Hopper->onUpdate()
#3 src/pocketmine/Server(2357): pocketmine\level\Level->doTick(integer 1052440)
#4 src/pocketmine/Server(2506): pocketmine\Server->checkTickUpdates(integer 1052440, double 1538583737.553)
#5 src/pocketmine/Server(2256): pocketmine\Server->tick()
#6 src/pocketmine/Server(2134): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1700): pocketmine\Server->start()
#8 src/pocketmine/PocketMine(243): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/myservertest/, string /home/myservertest/plugins/)
#9 /home/myservertest/PocketMine-MP.phar(1): require(string phar:///home/myservertest/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
PocketMine-MP version: 3.2.3 [Protocol 282]
Git commit: 27effff403dddae12e2a85b780852f55cef54695
uname -a: Linux g1 4.5.0-0.bpo.2-amd64 #1 SMP Debian 4.5.4-1~bpo8+1 (2016-05-13) x86_64
PHP Version: 7.2.9
Zend version: 3.2.0
OS : Linux, linux
oof
@CortexPE thanks for the information my server crash 2 times today is there a way to patch that ? (banitem hopper , blazerod ?)
you probably just need to disable hopper on teaspoon's config.yml
@CortexPE
like this ? it just disable tranfer not the item
hopper:
itemTransferEnable: false
sorry for my bad english
yeah
no crash with hopper disable
hopper:
itemTransferEnable: false
but i have this issues
2018-10-05 [15:49:01] [Server thread/CRITICAL]: Error: "Call to a member function getHolder() on null" (EXCEPTION) in "src/pocketmine/inventory/DoubleChestInventory" at line 59
2018-10-05 [15:49:01] [Server thread/DEBUG]: #0 src/pocketmine/inventory/ContainerInventory(46): pocketmine\inventory\DoubleChestInventory->getHolder()
2018-10-05 [15:49:01] [Server thread/DEBUG]: #1 src/pocketmine/inventory/ChestInventory(65): pocketmine\inventory\ContainerInventory->onOpen(pocketmine\Player object)
2018-10-05 [15:49:01] [Server thread/DEBUG]: #2 src/pocketmine/inventory/DoubleChestInventory(114): pocketmine\inventory\ChestInventory->onOpen(pocketmine\Player object)
2018-10-05 [15:49:01] [Server thread/DEBUG]: #3 src/pocketmine/inventory/BaseInventory(405): pocketmine\inventory\DoubleChestInventory->onOpen(pocketmine\Player object)
2018-10-05 [15:49:01] [Server thread/DEBUG]: #4 src/pocketmine/Player(3817): pocketmine\inventory\BaseInventory->open(pocketmine\Player object)
2018-10-05 [15:49:01] [Server thread/DEBUG]: #5 src/pocketmine/block/Chest(122): pocketmine\Player->addWindow(pocketmine\inventory\DoubleChestInventory object)
2018-10-05 [15:49:01] [Server thread/DEBUG]: #6 src/pocketmine/level/Level(1785): pocketmine\block\Chest->onActivate(pocketmine\item\ItemBlock object, pocketmine\Player object)
2018-10-05 [15:49:01] [Server thread/DEBUG]: #7 src/pocketmine/Player(2372): pocketmine\level\Level->useItemOn(pocketmine\math\Vector3 object, pocketmine\item\ItemBlock object, integer 2, pocketmine\math\Vector3 object, pocketmine\Player object, boolean 1)
2018-10-05 [15:49:01] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(132): pocketmine\Player->handleInventoryTransaction(CortexPE\network\InventoryTransactionPacket object)
2018-10-05 [15:49:01] [Server thread/DEBUG]: #9 TeaSpoon_dev-244.phar/src/CortexPE/network/InventoryTransactionPacket(81): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(CortexPE\network\InventoryTransactionPacket object)
2018-10-05 [15:49:01] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): CortexPE\network\InventoryTransactionPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2018-10-05 [15:49:01] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/protocol/BatchPacket(114): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(CortexPE\network\InventoryTransactionPacket object)
2018-10-05 [15:49:01] [Server thread/DEBUG]: #12 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2018-10-05 [15:49:01] [Server thread/DEBUG]: #13 src/pocketmine/Player(3056): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2018-10-05 [15:49:01] [Server thread/DEBUG]: #14 src/pocketmine/network/mcpe/RakLibInterface(162): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2018-10-05 [15:49:01] [Server thread/DEBUG]: #15 vendor/pocketmine/raklib/src/server/ServerHandler(98): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 109.88.18.42 41425, raklib\protocol\EncapsulatedPacket object, integer 0)
2018-10-05 [15:49:01] [Server thread/DEBUG]: #16 src/pocketmine/network/mcpe/RakLibInterface(103): raklib\server\ServerHandler->handlePacket()
2018-10-05 [15:49:01] [Server thread/DEBUG]: #17 src/pocketmine/network/Network(94): pocketmine\network\mcpe\RakLibInterface->process()
2018-10-05 [15:49:01] [Server thread/DEBUG]: #18 src/pocketmine/network/mcpe/RakLibInterface(80): pocketmine\network\Network->processInterface(pocketmine\network\mcpe\RakLibInterface object)
2018-10-05 [15:49:01] [Server thread/DEBUG]: #19 vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
2018-10-05 [15:49:01] [Server thread/DEBUG]: #20 vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
2018-10-05 [15:49:01] [Server thread/DEBUG]: #21 src/pocketmine/Server(2259): pocketmine\snooze\SleeperHandler->sleepUntil(double 1538747341.4156)
2018-10-05 [15:49:01] [Server thread/DEBUG]: #22 src/pocketmine/Server(2134): pocketmine\Server->tickProcessor()
2018-10-05 [15:49:01] [Server thread/DEBUG]: #23 src/pocketmine/Server(1700): pocketmine\Server->start()
2018-10-05 [15:49:01] [Server thread/DEBUG]: #24 src/pocketmine/PocketMine(243): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/myserver/, string /home/myserver/plugins/)
2018-10-05 [15:49:01] [Server thread/DEBUG]: #25 /home/myserver/PocketMine-MP.phar(1): require(string phar:///home/myserver/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
2018-10-05 [15:49:01] [RakLibServer thread/NOTICE]: Blocked 10X.XX.XX.42 for 5 seconds
2018-10-05 [20:42:23] [Server thread/CRITICAL]: Error: "Call to a member function getContents() on null" (EXCEPTION) in "src/pocketmine/inventory/DoubleChestInventory" at line 76
2018-10-05 [20:42:23] [Server thread/DEBUG]: #0 src/pocketmine/inventory/BaseInventory(438): pocketmine\inventory\DoubleChestInventory->getContents(boolean 1)
2018-10-05 [20:42:23] [Server thread/DEBUG]: #1 src/pocketmine/Player(3867): pocketmine\inventory\BaseInventory->sendContents(array Array())
2018-10-05 [20:42:23] [Server thread/DEBUG]: #2 src/pocketmine/Player(2291): pocketmine\Player->sendAllInventories()
2018-10-05 [20:42:23] [Server thread/DEBUG]: #3 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(132): pocketmine\Player->handleInventoryTransaction(CortexPE\network\InventoryTransactionPacket object)
2018-10-05 [20:42:23] [Server thread/DEBUG]: #4 TeaSpoon_dev-244.phar/src/CortexPE/network/InventoryTransactionPacket(81): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(CortexPE\network\InventoryTransactionPacket object)
2018-10-05 [20:42:23] [Server thread/DEBUG]: #5 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): CortexPE\network\InventoryTransactionPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2018-10-05 [20:42:23] [Server thread/DEBUG]: #6 src/pocketmine/network/mcpe/protocol/BatchPacket(114): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(CortexPE\network\InventoryTransactionPacket object)
2018-10-05 [20:42:23] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2018-10-05 [20:42:23] [Server thread/DEBUG]: #8 src/pocketmine/Player(3056): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2018-10-05 [20:42:23] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/RakLibInterface(162): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2018-10-05 [20:42:23] [Server thread/DEBUG]: #10 vendor/pocketmine/raklib/src/server/ServerHandler(98): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 109.12.95.125 33652, raklib\protocol\EncapsulatedPacket object, integer 0)
2018-10-05 [20:42:23] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/RakLibInterface(103): raklib\server\ServerHandler->handlePacket()
2018-10-05 [20:42:23] [Server thread/DEBUG]: #12 src/pocketmine/network/Network(94): pocketmine\network\mcpe\RakLibInterface->process()
2018-10-05 [20:42:23] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/RakLibInterface(80): pocketmine\network\Network->processInterface(pocketmine\network\mcpe\RakLibInterface object)
2018-10-05 [20:42:23] [Server thread/DEBUG]: #14 vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
2018-10-05 [20:42:23] [Server thread/DEBUG]: #15 vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
2018-10-05 [20:42:23] [Server thread/DEBUG]: #16 src/pocketmine/Server(2259): pocketmine\snooze\SleeperHandler->sleepUntil(double 1538764942.7025)
2018-10-05 [20:42:23] [Server thread/DEBUG]: #17 src/pocketmine/Server(2134): pocketmine\Server->tickProcessor()
2018-10-05 [20:42:23] [Server thread/DEBUG]: #18 src/pocketmine/Server(1700): pocketmine\Server->start()
2018-10-05 [20:42:23] [Server thread/DEBUG]: #19 src/pocketmine/PocketMine(243): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/myserver/, string /home/myserver/plugins/)
2018-10-05 [20:42:23] [Server thread/DEBUG]: #20 /home/myserver/PocketMine-MP.phar(1): require(string phar:///home/myserver/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
2018-10-05 [20:42:23] [RakLibServer thread/NOTICE]: Blocked 10X.XX.XX.125 for 5 seconds
@CortexPE
up server crash if hopper itemTransferEnable: false or hopper itemTransferEnable: true
may be a player who had an hopper in is inventory before change of config.yml no ?
do you have a solution to solve that ? thanks Cortex
PocketMine-MP Crash Dump Sat Oct 6 16:09:34 CEST 2018
Error: Call to a member function getSize() on null
File: src/pocketmine/inventory/DoubleChestInventory
Line: 63
Type: Error
Code:
[54]
[55] /**
[56] * @return Chest
[57] */
[58] public function getHolder(){
[59] return $this->left->getHolder();
[60] }
[61]
[62] public function getItem(int $index) : Item{
[63] return $index < $this->left->getSize() ? $this->left->getItem($index) : $this->right->getItem($index - $this->left->getSize());
[64] }
[65]
[66] public function setItem(int $index, Item $item, bool $send = \true) : bool{
[67] $old = $this->getItem($index);
[68] if($index < $this->left->getSize() ? $this->left->setItem($index, $item, $send) : $this->right->setItem($index - $this->left->getSize(), $item, $send)){
[69] $this->onSlotChange($index, $old, $send);
[70] return \true;
[71] }
[72] return \false;
[73] }
Backtrace:
#0 src/pocketmine/inventory/BaseInventory(254): pocketmine\inventory\DoubleChestInventory->getItem(integer 0)
#1 TeaSpoon_dev-244.phar/src/CortexPE/tile/Hopper(202): pocketmine\inventory\BaseInventory->canAddItem(CortexPE\item\BlazeRod object)
#2 src/pocketmine/level/Level(755): CortexPE\tile\Hopper->onUpdate()
#3 src/pocketmine/Server(2357): pocketmine\level\Level->doTick(integer 2306400)
#4 src/pocketmine/Server(2506): pocketmine\Server->checkTickUpdates(integer 2306400, double 1538834974.3198)
#5 src/pocketmine/Server(2256): pocketmine\Server->tick()
#6 src/pocketmine/Server(2134): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1700): pocketmine\Server->start()
#8 src/pocketmine/PocketMine(243): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/myserver/, string /home/myserver/plugins/)
#9 /home/myserver/PocketMine-MP.phar(1): require(string phar:///home/myserver/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
PocketMine-MP version: 3.2.3 [Protocol 282]
Git commit: 27effff403dddae12e2a85b780852f55cef54695
uname -a: Linux g1 4.5.0-0.bpo.2-amd64 #1 SMP Debian 4.5.4-1~bpo8+1 (2016-05-13) x86_64
PHP Version: 7.2.9
Zend version: 3.2.0
OS : Linux, linux
ok try it now xD
it was hopper.enable
all along xDDD
ok no crash on this configuration hoppers disable
TeaSpoon Dev #247 PMMP Stable v1434
hopper: enable: false
but ....... server have a lot off errors like this DoubleChestInventory" at line 59 and DoubleChestInventory" at line 122
2018-10-07 [12:55:08] [Server thread/CRITICAL]: Error: "Call to a member function getHolder() on null" (EXCEPTION) in "src/pocketmine/inventory/DoubleChestInventory" at line 59
2018-10-07 [12:55:08] [Server thread/DEBUG]: #0 src/pocketmine/inventory/ContainerInventory(46): pocketmine\inventory\DoubleChestInventory->getHolder()
2018-10-07 [12:55:08] [Server thread/DEBUG]: #1 src/pocketmine/inventory/ChestInventory(65): pocketmine\inventory\ContainerInventory->onOpen(pocketmine\Player object)
2018-10-07 [12:55:08] [Server thread/DEBUG]: #2 src/pocketmine/inventory/DoubleChestInventory(114): pocketmine\inventory\ChestInventory->onOpen(pocketmine\Player object)
2018-10-07 [12:55:08] [Server thread/DEBUG]: #3 src/pocketmine/inventory/BaseInventory(405): pocketmine\inventory\DoubleChestInventory->onOpen(pocketmine\Player object)
2018-10-07 [12:55:08] [Server thread/DEBUG]: #4 src/pocketmine/Player(3817): pocketmine\inventory\BaseInventory->open(pocketmine\Player object)
2018-10-07 [12:55:08] [Server thread/DEBUG]: #5 src/pocketmine/block/Chest(122): pocketmine\Player->addWindow(pocketmine\inventory\DoubleChestInventory object)
2018-10-07 [12:55:08] [Server thread/DEBUG]: #6 src/pocketmine/level/Level(1785): pocketmine\block\Chest->onActivate(pocketmine\item\Sword object, pocketmine\Player object)
2018-10-07 [12:55:08] [Server thread/DEBUG]: #7 src/pocketmine/Player(2372): pocketmine\level\Level->useItemOn(pocketmine\math\Vector3 object, pocketmine\item\Sword object, integer 2, pocketmine\math\Vector3 object, pocketmine\Player object, boolean 1)
2018-10-07 [12:55:08] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(132): pocketmine\Player->handleInventoryTransaction(CortexPE\network\InventoryTransactionPacket object)
2018-10-07 [12:55:08] [Server thread/DEBUG]: #9 TeaSpoon_dev-247.phar/src/CortexPE/network/InventoryTransactionPacket(81): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(CortexPE\network\InventoryTransactionPacket object)
2018-10-07 [12:55:08] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): CortexPE\network\InventoryTransactionPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2018-10-07 [12:55:08] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/protocol/BatchPacket(114): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(CortexPE\network\InventoryTransactionPacket object)
2018-10-07 [12:55:08] [Server thread/DEBUG]: #12 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2018-10-07 [12:55:08] [Server thread/DEBUG]: #13 src/pocketmine/Player(3056): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2018-10-07 [12:55:08] [Server thread/DEBUG]: #14 src/pocketmine/network/mcpe/RakLibInterface(162): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2018-10-07 [12:55:08] [Server thread/DEBUG]: #15 vendor/pocketmine/raklib/src/server/ServerHandler(98): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 90.89.24.116 41459, raklib\protocol\EncapsulatedPacket object, integer 0)
2018-10-07 [12:55:08] [Server thread/DEBUG]: #16 src/pocketmine/network/mcpe/RakLibInterface(103): raklib\server\ServerHandler->handlePacket()
2018-10-07 [12:55:08] [Server thread/DEBUG]: #17 src/pocketmine/network/Network(94): pocketmine\network\mcpe\RakLibInterface->process()
2018-10-07 [12:55:08] [Server thread/DEBUG]: #18 src/pocketmine/network/mcpe/RakLibInterface(80): pocketmine\network\Network->processInterface(pocketmine\network\mcpe\RakLibInterface object)
2018-10-07 [12:55:08] [Server thread/DEBUG]: #19 vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
2018-10-07 [12:55:08] [Server thread/DEBUG]: #20 vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
2018-10-07 [12:55:08] [Server thread/DEBUG]: #21 src/pocketmine/Server(2259): pocketmine\snooze\SleeperHandler->sleepUntil(double 1538909707.8309)
2018-10-07 [12:55:08] [Server thread/DEBUG]: #22 src/pocketmine/Server(2134): pocketmine\Server->tickProcessor()
2018-10-07 [12:55:08] [Server thread/DEBUG]: #23 src/pocketmine/Server(1700): pocketmine\Server->start()
2018-10-07 [12:55:08] [Server thread/DEBUG]: #24 src/pocketmine/PocketMine(243): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/myserver/, string /home/myserver/plugins/)
2018-10-07 [12:55:08] [Server thread/DEBUG]: #25 /home/myserver/PocketMine-MP.phar(1): require(string phar:///home/myserver/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
2018-10-07 [12:55:08] [RakLibServer thread/NOTICE]: Blocked 90.xx.xx.116 for 5 seconds
2018-10-07 [12:55:38] [Server thread/CRITICAL]: Unhandled exception executing command 'home fac2' in home: Call to a member function getHolder() on null
2018-10-07 [12:55:38] [Server thread/CRITICAL]: Error: "Call to a member function getHolder() on null" (EXCEPTION) in "src/pocketmine/inventory/DoubleChestInventory" at line 122
2018-10-07 [12:55:38] [Server thread/DEBUG]: #0 src/pocketmine/inventory/BaseInventory(411): pocketmine\inventory\DoubleChestInventory->onClose(pocketmine\Player object)
2018-10-07 [12:55:38] [Server thread/DEBUG]: #1 src/pocketmine/Player(3844): pocketmine\inventory\BaseInventory->close(pocketmine\Player object)
2018-10-07 [12:55:38] [Server thread/DEBUG]: #2 src/pocketmine/Player(3861): pocketmine\Player->removeWindow(pocketmine\inventory\DoubleChestInventory object, boolean )
2018-10-07 [12:55:38] [Server thread/DEBUG]: #3 src/pocketmine/Player(3700): pocketmine\Player->removeAllWindows()
2018-10-07 [12:55:38] [Server thread/DEBUG]: #4 essentialsTP_dev-31.phar/src/essentialsTP/essentialsTP(563): pocketmine\Player->teleport(pocketmine\level\Position object)
2018-10-07 [12:55:38] [Server thread/DEBUG]: #5 src/pocketmine/command/PluginCommand(58): essentialsTP\essentialsTP->onCommand(pocketmine\Player object, pocketmine\command\PluginCommand object, string home, array Array())
2018-10-07 [12:55:38] [Server thread/DEBUG]: #6 src/pocketmine/command/SimpleCommandMap(258): pocketmine\command\PluginCommand->execute(pocketmine\Player object, string home, array Array())
2018-10-07 [12:55:38] [Server thread/DEBUG]: #7 src/pocketmine/Server(1955): pocketmine\command\SimpleCommandMap->dispatch(pocketmine\Player object, string home fac2)
2018-10-07 [12:55:38] [Server thread/DEBUG]: #8 src/pocketmine/Player(2191): pocketmine\Server->dispatchCommand(pocketmine\Player object, string home fac2)
2018-10-07 [12:55:38] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(222): pocketmine\Player->chat(string /home fac2)
2018-10-07 [12:55:38] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(pocketmine\network\mcpe\protocol\CommandRequestPacket object)
2018-10-07 [12:55:38] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2018-10-07 [12:55:38] [Server thread/DEBUG]: #12 src/pocketmine/network/mcpe/protocol/BatchPacket(114): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\CommandRequestPacket object)
2018-10-07 [12:55:38] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2018-10-07 [12:55:38] [Server thread/DEBUG]: #14 src/pocketmine/Player(3056): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2018-10-07 [12:55:38] [Server thread/DEBUG]: #15 src/pocketmine/network/mcpe/RakLibInterface(162): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2018-10-07 [12:55:38] [Server thread/DEBUG]: #16 vendor/pocketmine/raklib/src/server/ServerHandler(98): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 90.89.24.116 41459, raklib\protocol\EncapsulatedPacket object, integer 0)
2018-10-07 [12:55:38] [Server thread/DEBUG]: #17 src/pocketmine/network/mcpe/RakLibInterface(103): raklib\server\ServerHandler->handlePacket()
2018-10-07 [12:55:38] [Server thread/DEBUG]: #18 src/pocketmine/network/Network(94): pocketmine\network\mcpe\RakLibInterface->process()
2018-10-07 [12:55:38] [Server thread/DEBUG]: #19 src/pocketmine/network/mcpe/RakLibInterface(80): pocketmine\network\Network->processInterface(pocketmine\network\mcpe\RakLibInterface object)
2018-10-07 [12:55:38] [Server thread/DEBUG]: #20 vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
2018-10-07 [12:55:38] [Server thread/DEBUG]: #21 vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
2018-10-07 [12:55:38] [Server thread/DEBUG]: #22 src/pocketmine/Server(2259): pocketmine\snooze\SleeperHandler->sleepUntil(double 1538909737.4002)
2018-10-07 [12:55:38] [Server thread/DEBUG]: #23 src/pocketmine/Server(2134): pocketmine\Server->tickProcessor()
2018-10-07 [12:55:38] [Server thread/DEBUG]: #24 src/pocketmine/Server(1700): pocketmine\Server->start()
2018-10-07 [12:55:38] [Server thread/DEBUG]: #25 src/pocketmine/PocketMine(243): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/myserver/, string /home/myserver/plugins/)
2018-10-07 [12:55:38] [Server thread/DEBUG]: #26 /home/myserver/PocketMine-MP.phar(1): require(string phar:///home/myserver/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
2018-10-07 [12:55:51] [Server thread/CRITICAL]: Error: "Call to a member function getHolder() on null" (EXCEPTION) in "src/pocketmine/inventory/DoubleChestInventory" at line 122
2018-10-07 [12:55:51] [Server thread/DEBUG]: #0 src/pocketmine/inventory/BaseInventory(411): pocketmine\inventory\DoubleChestInventory->onClose(pocketmine\Player object)
2018-10-07 [12:55:51] [Server thread/DEBUG]: #1 src/pocketmine/Player(3844): pocketmine\inventory\BaseInventory->close(pocketmine\Player object)
2018-10-07 [12:55:51] [Server thread/DEBUG]: #2 src/pocketmine/Player(3861): pocketmine\Player->removeWindow(pocketmine\inventory\DoubleChestInventory object, boolean 1)
2018-10-07 [12:55:51] [Server thread/DEBUG]: #3 src/pocketmine/Player(3459): pocketmine\Player->removeAllWindows(boolean 1)
2018-10-07 [12:55:51] [Server thread/DEBUG]: #4 src/pocketmine/network/mcpe/RakLibInterface(116): pocketmine\Player->close(pocketmine\lang\TranslationContainer object, string client disconnect)
2018-10-07 [12:55:51] [Server thread/DEBUG]: #5 vendor/pocketmine/raklib/src/server/ServerHandler(130): pocketmine\network\mcpe\RakLibInterface->closeSession(string 90.xx.xx.116 41459, string client disconnect)
2018-10-07 [12:55:51] [Server thread/DEBUG]: #6 src/pocketmine/network/mcpe/RakLibInterface(103): raklib\server\ServerHandler->handlePacket()
2018-10-07 [12:55:51] [Server thread/DEBUG]: #7 src/pocketmine/network/Network(94): pocketmine\network\mcpe\RakLibInterface->process()
2018-10-07 [12:55:51] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/RakLibInterface(80): pocketmine\network\Network->processInterface(pocketmine\network\mcpe\RakLibInterface object)
2018-10-07 [12:55:51] [Server thread/DEBUG]: #9 vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
2018-10-07 [12:55:51] [Server thread/DEBUG]: #10 vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
2018-10-07 [12:55:51] [Server thread/DEBUG]: #11 src/pocketmine/Server(2259): pocketmine\snooze\SleeperHandler->sleepUntil(double 1538909750.5571)
2018-10-07 [12:55:51] [Server thread/DEBUG]: #12 src/pocketmine/Server(2134): pocketmine\Server->tickProcessor()
2018-10-07 [12:55:51] [Server thread/DEBUG]: #13 src/pocketmine/Server(1700): pocketmine\Server->start()
2018-10-07 [12:55:51] [Server thread/DEBUG]: #14 src/pocketmine/PocketMine(243): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/myserver/, string /home/myserver/plugins/)
2018-10-07 [12:55:51] [Server thread/DEBUG]: #15 /home/myserver/PocketMine-MP.phar(1): require(string phar:///home/myserver/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
Error: "Call to a member function getContents() on null" (EXCEPTION) in "src/pocketmine/inventory/DoubleChestInventory" at line 76
2018-10-10 [21:34:27] [Server thread/CRITICAL]: Error: "Call to a member function getContents() on null" (EXCEPTION) in "src/pocketmine/inventory/DoubleChestInventory" at line 76
2018-10-10 [21:34:27] [Server thread/DEBUG]: #0 src/pocketmine/inventory/BaseInventory(438): pocketmine\inventory\DoubleChestInventory->getContents(boolean 1)
2018-10-10 [21:34:27] [Server thread/DEBUG]: #1 src/pocketmine/Player(3867): pocketmine\inventory\BaseInventory->sendContents(array Array())
2018-10-10 [21:34:27] [Server thread/DEBUG]: #2 src/pocketmine/Player(2349): pocketmine\Player->sendAllInventories()
2018-10-10 [21:34:27] [Server thread/DEBUG]: #3 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(132): pocketmine\Player->handleInventoryTransaction(CortexPE\network\InventoryTransactionPacket object)
2018-10-10 [21:34:27] [Server thread/DEBUG]: #4 TeaSpoon_dev-247.phar/src/CortexPE/network/InventoryTransactionPacket(81): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(CortexPE\network\InventoryTransactionPacket object)
2018-10-10 [21:34:27] [Server thread/DEBUG]: #5 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): CortexPE\network\InventoryTransactionPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2018-10-10 [21:34:27] [Server thread/DEBUG]: #6 src/pocketmine/network/mcpe/protocol/BatchPacket(114): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(CortexPE\network\InventoryTransactionPacket object)
2018-10-10 [21:34:27] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2018-10-10 [21:34:27] [Server thread/DEBUG]: #8 src/pocketmine/Player(3056): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2018-10-10 [21:34:27] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/RakLibInterface(161): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2018-10-10 [21:34:27] [Server thread/DEBUG]: #10 vendor/pocketmine/raklib/src/server/ServerHandler(98): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 88.XXX.49.186 53911, raklib\protocol\EncapsulatedPacket object, integer 0)
2018-10-10 [21:34:27] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/RakLibInterface(102): raklib\server\ServerHandler->handlePacket()
2018-10-10 [21:34:27] [Server thread/DEBUG]: #12 src/pocketmine/network/Network(94): pocketmine\network\mcpe\RakLibInterface->process()
2018-10-10 [21:34:27] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/RakLibInterface(92): pocketmine\network\Network->processInterface(pocketmine\network\mcpe\RakLibInterface object)
2018-10-10 [21:34:27] [Server thread/DEBUG]: #14 vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
2018-10-10 [21:34:27] [Server thread/DEBUG]: #15 vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
2018-10-10 [21:34:27] [Server thread/DEBUG]: #16 src/pocketmine/Server(2259): pocketmine\snooze\SleeperHandler->sleepUntil(double 1539200067.2562)
2018-10-10 [21:34:27] [Server thread/DEBUG]: #17 src/pocketmine/Server(2134): pocketmine\Server->tickProcessor()
2018-10-10 [21:34:27] [Server thread/DEBUG]: #18 src/pocketmine/Server(1700): pocketmine\Server->start()
2018-10-10 [21:34:27] [Server thread/DEBUG]: #19 src/pocketmine/PocketMine(249): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/gsp_1485/g3.hmserv.eu-19144/, string /home/gsp_1485/g3.hmserv.eu-19144/plugins/)
2018-10-10 [21:34:27] [Server thread/DEBUG]: #20 /home/myserver/PocketMine-MP.phar(1): require(string phar:///home/myserver/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
2018-10-10 [21:34:27] [RakLibServer thread/NOTICE]: Blocked 88.XXX.49.186 for 5 seconds
to day crash server
PocketMine-MP/1544/ TeaSpoon_dev-247.phar
2018-10-11 [19:49:34] [Server thread/CRITICAL]: Error: "Call to a member function getSize() on null" (EXCEPTION) in "src/pocketmine/inventory/DoubleChestInventory" at line 63
2018-10-11 [19:49:34] [Server thread/DEBUG]: #0 src/pocketmine/inventory/BaseInventory(254): pocketmine\inventory\DoubleChestInventory->getItem(integer 0)
2018-10-11 [19:49:34] [Server thread/DEBUG]: #1 TeaSpoon_dev-247.phar/src/CortexPE/tile/Hopper(202): pocketmine\inventory\BaseInventory->canAddItem(pocketmine\item\Steak object)
2018-10-11 [19:49:34] [Server thread/DEBUG]: #2 src/pocketmine/level/Level(755): CortexPE\tile\Hopper->onUpdate()
2018-10-11 [19:49:34] [Server thread/DEBUG]: #3 src/pocketmine/Server(2361): pocketmine\level\Level->doTick(integer 633656)
2018-10-11 [19:49:34] [Server thread/DEBUG]: #4 src/pocketmine/Server(2510): pocketmine\Server->checkTickUpdates(integer 633656, double 1539280174.679)
2018-10-11 [19:49:34] [Server thread/DEBUG]: #5 src/pocketmine/Server(2256): pocketmine\Server->tick()
2018-10-11 [19:49:34] [Server thread/DEBUG]: #6 src/pocketmine/Server(2134): pocketmine\Server->tickProcessor()
2018-10-11 [19:49:34] [Server thread/DEBUG]: #7 src/pocketmine/Server(1700): pocketmine\Server->start()
2018-10-11 [19:49:34] [Server thread/DEBUG]: #8 src/pocketmine/PocketMine(249): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/myserver/, string /home/myserver/plugins/)
2018-10-11 [19:49:34] [Server thread/DEBUG]: #9 /home/myserver/PocketMine-MP.phar(1): require(string phar:///home/myserver/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
2018-10-11 [19:49:34] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump
2018-10-11 [19:49:34] [Server thread/EMERGENCY]: Please upload the "/home/myserver/crashdumps/Thu_Oct_11-19.49.34-CEST_2018.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.
PocketMine-MP Crash Dump Thu Oct 11 19:49:34 CEST 2018
Error: Call to a member function getSize() on null
File: src/pocketmine/inventory/DoubleChestInventory
Line: 63
Type: Error
Code:
[54]
[55] /**
[56] * @return Chest
[57] */
[58] public function getHolder(){
[59] return $this->left->getHolder();
[60] }
[61]
[62] public function getItem(int $index) : Item{
[63] return $index < $this->left->getSize() ? $this->left->getItem($index) : $this->right->getItem($index - $this->left->getSize());
[64] }
[65]
[66] public function setItem(int $index, Item $item, bool $send = \true) : bool{
[67] $old = $this->getItem($index);
[68] if($index < $this->left->getSize() ? $this->left->setItem($index, $item, $send) : $this->right->setItem($index - $this->left->getSize(), $item, $send)){
[69] $this->onSlotChange($index, $old, $send);
[70] return \true;
[71] }
[72] return \false;
[73] }
Backtrace:
#0 src/pocketmine/inventory/BaseInventory(254): pocketmine\inventory\DoubleChestInventory->getItem(integer 0)
#1 TeaSpoon_dev-247.phar/src/CortexPE/tile/Hopper(202): pocketmine\inventory\BaseInventory->canAddItem(pocketmine\item\Steak object)
#2 src/pocketmine/level/Level(755): CortexPE\tile\Hopper->onUpdate()
#3 src/pocketmine/Server(2361): pocketmine\level\Level->doTick(integer 633656)
#4 src/pocketmine/Server(2510): pocketmine\Server->checkTickUpdates(integer 633656, double 1539280174.679)
#5 src/pocketmine/Server(2256): pocketmine\Server->tick()
#6 src/pocketmine/Server(2134): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1700): pocketmine\Server->start()
#8 src/pocketmine/PocketMine(249): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/gsp_1485/g3.hmserv.eu-19144/, string /home/gsp_1485/g3.hmserv.eu-19144/plugins/)
#9 /home/gsp_1485/g3.hmserv.eu-19144/PocketMine-MP.phar(1): require(string phar:///home/gsp_1485/g3.hmserv.eu-19144/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
PocketMine-MP version: 3.2.4 [Protocol 282]
Git commit: a66dd4a7d95c49792d39c7e70442b1ee4b855988
uname -a: Linux g1 4.5.0-0.bpo.2-amd64 #1 SMP Debian 4.5.4-1~bpo8+1 (2016-05-13) x86_64
PHP Version: 7.2.9
Zend version: 3.2.0
OS : Linux, linux
@CortexPE see another crashdump backtrace little bit different than others
PocketMine-MP/1544/ TeaSpoon_dev-247.phar
2018-10-16 [07:43:49] [Server thread/CRITICAL]: Error: "Call to a member function getSize() on null" (EXCEPTION) in "src/pocketmine/inventory/DoubleChestInventory" at line 63
2018-10-16 [07:43:49] [Server thread/DEBUG]: #0 TeaSpoon_dev-247.phar/src/CortexPE/tile/Hopper(154): pocketmine\inventory\DoubleChestInventory->getItem(integer 0)
2018-10-16 [07:43:49] [Server thread/DEBUG]: #1 src/pocketmine/level/Level(755): CortexPE\tile\Hopper->onUpdate()
2018-10-16 [07:43:49] [Server thread/DEBUG]: #2 src/pocketmine/Server(2361): pocketmine\level\Level->doTick(integer 455056)
2018-10-16 [07:43:49] [Server thread/DEBUG]: #3 src/pocketmine/Server(2510): pocketmine\Server->checkTickUpdates(integer 455056, double 1539668629.6956)
2018-10-16 [07:43:49] [Server thread/DEBUG]: #4 src/pocketmine/Server(2256): pocketmine\Server->tick()
2018-10-16 [07:43:49] [Server thread/DEBUG]: #5 src/pocketmine/Server(2134): pocketmine\Server->tickProcessor()
2018-10-16 [07:43:49] [Server thread/DEBUG]: #6 src/pocketmine/Server(1700): pocketmine\Server->start()
2018-10-16 [07:43:49] [Server thread/DEBUG]: #7 src/pocketmine/PocketMine(249): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/myserver/, string /home/myserver/plugins/)
2018-10-16 [07:43:49] [Server thread/DEBUG]: #8 /home/myserver/PocketMine-MP.phar(1): require(string phar:///home/myserver/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
2018-10-16 [07:43:49] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump
2018-10-16 [07:43:49] [Server thread/EMERGENCY]: Please upload the "/home/myserver/crashdumps/Tue_Oct_16-07.43.49-CEST_2018.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.
PocketMine-MP Crash Dump Tue Oct 16 07:43:49 CEST 2018
Error: Call to a member function getSize() on null
File: src/pocketmine/inventory/DoubleChestInventory
Line: 63
Type: Error
Code:
[54]
[55] /**
[56] * @return Chest
[57] */
[58] public function getHolder(){
[59] return $this->left->getHolder();
[60] }
[61]
[62] public function getItem(int $index) : Item{
[63] return $index < $this->left->getSize() ? $this->left->getItem($index) : $this->right->getItem($index - $this->left->getSize());
[64] }
[65]
[66] public function setItem(int $index, Item $item, bool $send = \true) : bool{
[67] $old = $this->getItem($index);
[68] if($index < $this->left->getSize() ? $this->left->setItem($index, $item, $send) : $this->right->setItem($index - $this->left->getSize(), $item, $send)){
[69] $this->onSlotChange($index, $old, $send);
[70] return \true;
[71] }
[72] return \false;
[73] }
Backtrace:
#0 TeaSpoon_dev-247.phar/src/CortexPE/tile/Hopper(154): pocketmine\inventory\DoubleChestInventory->getItem(integer 0)
#1 src/pocketmine/level/Level(755): CortexPE\tile\Hopper->onUpdate()
#2 src/pocketmine/Server(2361): pocketmine\level\Level->doTick(integer 455056)
#3 src/pocketmine/Server(2510): pocketmine\Server->checkTickUpdates(integer 455056, double 1539668629.6956)
#4 src/pocketmine/Server(2256): pocketmine\Server->tick()
#5 src/pocketmine/Server(2134): pocketmine\Server->tickProcessor()
#6 src/pocketmine/Server(1700): pocketmine\Server->start()
#7 src/pocketmine/PocketMine(249): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/myserver/, string /home/myserver/plugins/)
#8 /home/myserver/PocketMine-MP.phar(1): require(string phar:///home/myserver/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
PocketMine-MP version: 3.2.4 [Protocol 282]
Git commit: a66dd4a7d95c49792d39c7e70442b1ee4b855988
uname -a: Linux g1 4.5.0-0.bpo.2-amd64 #1 SMP Debian 4.5.4-1~bpo8+1 (2016-05-13) x86_64
PHP Version: 7.2.9
Zend version: 3.2.0
OS : Linux, linux
Hmm, maybe I should disable hopper until pmmp got this fixed.
@larryTheCoder do you think dktapps team will be fix that i don't see any issue on PMMP issue tracker ?
i will disable hopper on config.yml
sorry for my bad english
Not sure, I think they are working on the fix right now, but the issue is not a priority for him, so... I can't just say that they working on it or not.
@CortexPE @larryTheCoder
tested build 5803ad1 https://poggit.pmmp.io/r/43623/TeaSpoon_dev-249.phar https://jenkins.pmmp.io/job/PocketMine-MP/1573/artifact/PocketMine-MP.phar
Ok server don't crash using this build with hoppers disable no errors "DoubleChestInventory at line 63 "
but many errors :
i wish a quick fix
Hmm could you give a stack trace, oh and paste them on hastebin.com ;)
@larryTheCoder
sorry, but how to generate a stack strace..my server is hosted ?? see attached file on error 59 and 122
DoubleChestInventory" at line 59 =) a player told me problems to open a chest. maybe a problem with TeaSpoon ???
DoubleChestInventory" at line 122 =) a player told me problems to return to spawn. maybe a essentialstp issue ??
sorry for my bad english
Stack trace = The Error, well you give me the log file, so its okay
Seems like a pocketmine issue
no crash with latest build it's fun ..... but no hopper.... I would like a quick fix PMMP....
@CortexPE @MineBuilderFR
see crashdump at the end of this post now server crash Hopper issue ?
TeaSpoon_dev-234.phar PMMP Construction #1434 STABLE https://jenkins.pmmp.io/job/PocketMine-MP/
in config.yml :
hopper: itemTransferEnable: true