Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to prevent plugin? setComponents() on null

Comments in 'Plugin Development' started by Creeperface, Jul 28, 2015.

  1. Xenturio
    Offline

    Xenturio Active Member

    Joined:
    Sep 19, 2014
    Posts:
    333
    Minecraft User:
    Xenturio
  2. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    Fatal error: Call to a member function setComponents() on null in phar:///hlserver/27579/PocketMine-MP.phar/src/pocketmine/entity/Entity__64bit.php on line 1427[17:04:03] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump[17:04:03] [Server thread/EMERGENCY]: Please upload the "/hlserver/27579/CrashDump_Tue_Jul_28-17.04.03-UTC_2015.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.

    but i dont know what is the reason :(
  3. Xenturio
    Offline

    Xenturio Active Member

    Joined:
    Sep 19, 2014
    Posts:
    333
    Minecraft User:
    Xenturio
  4. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    who? i have not setcomponents() method in my plugin
  5. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    We can't help you until you give a backtrace we can read.
  6. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    sorry what do you mean?
  7. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Enable debug.
  8. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    i have in pocketmine.yml level: 1 but it doesnt show any debug should i enable ansii?
  9. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    No. Do 2.lol . It says please make it > 1. It is not >= 1
    PEMapModder likes this.
  10. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    thx xD
    Legoboy0215 likes this.
  11. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    so ok there is server log with debug:
    Code:
    2015-08-01 [13:33:18] [Server thread/DEBUG]: Level "BedWars1" took 54.81ms, setting tick rate to 2 ticks
    2015-08-01 [13:33:20] [Server thread/DEBUG]: Raising level "BedWars1" tick rate to 1 ticks
    2015-08-01 [13:33:21] [Server thread/DEBUG]: Level "BedWars1" took 54.4ms, setting tick rate to 2 ticks
    2015-08-01 [13:33:21] [Server thread/DEBUG]: Raising level "BedWars1" tick rate to 1 ticks
    2015-08-01 [13:33:22] [Server thread/DEBUG]: Level "BedWars1" took 50.85ms, setting tick rate to 2 ticks
    2015-08-01 [13:33:22] [Server thread/DEBUG]: Level "BedWars_hub" took 273.22ms, setting tick rate to 5 ticks
    2015-08-01 [13:33:22] [Server thread/DEBUG]: Raising level "BedWars1" tick rate to 1 ticks
    2015-08-01 [13:33:22] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 4 ticks
    2015-08-01 [13:33:22] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 3 ticks
    2015-08-01 [13:33:22] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 2 ticks
    2015-08-01 [13:33:23] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 1 ticks
    2015-08-01 [13:33:23] [Server thread/DEBUG]: Level "BedWars1" took 54.59ms, setting tick rate to 2 ticks
    2015-08-01 [13:33:23] [Server thread/DEBUG]: Raising level "BedWars1" tick rate to 1 ticks
    2015-08-01 [13:33:23] [Server thread/DEBUG]: Level "BedWars1" took 50.69ms, setting tick rate to 2 ticks
    2015-08-01 [13:33:23] [Server thread/DEBUG]: Raising level "BedWars1" tick rate to 1 ticks
    2015-08-01 [13:33:24] [Server thread/DEBUG]: Level "BedWars1" took 50.07ms, setting tick rate to 2 ticks
    2015-08-01 [13:33:24] [Server thread/DEBUG]: Raising level "BedWars1" tick rate to 1 ticks
    2015-08-01 [13:33:25] [Server thread/DEBUG]: Level "BedWars1" took 51.39ms, setting tick rate to 2 ticks
    2015-08-01 [13:33:25] [Server thread/DEBUG]: Raising level "BedWars1" tick rate to 1 ticks
    2015-08-01 [13:33:25] [Server thread/DEBUG]: Level "BedWars1" took 53.08ms, setting tick rate to 2 ticks
    2015-08-01 [13:33:26] [Server thread/DEBUG]: Raising level "BedWars1" tick rate to 1 ticks
    2015-08-01 [13:33:26] [Server thread/DEBUG]: Level "BedWars1" took 53.17ms, setting tick rate to 2 ticks
    2015-08-01 [13:33:26] [Server thread/DEBUG]: Raising level "BedWars1" tick rate to 1 ticks
    2015-08-01 [13:33:27] [Server thread/DEBUG]: Level "BedWars1" took 54.38ms, setting tick rate to 2 ticks
    2015-08-01 [13:33:28] [Server thread/DEBUG]: Raising level "BedWars1" tick rate to 1 ticks
    2015-08-01 [13:33:28] [Server thread/DEBUG]: Level "BedWars1" took 60.05ms, setting tick rate to 2 ticks
    2015-08-01 [13:33:28] [Server thread/DEBUG]: Raising level "BedWars1" tick rate to 1 ticks
    2015-08-01 [13:33:28] [Server thread/DEBUG]: Level "BedWars1" took 61.75ms, setting tick rate to 2 ticks
    2015-08-01 [13:33:29] [Server thread/DEBUG]: Raising level "BedWars1" tick rate to 1 ticks
    2015-08-01 [13:33:29] [Server thread/DEBUG]: Level "BedWars1" took 50.18ms, setting tick rate to 2 ticks
    2015-08-01 [13:33:29] [Server thread/DEBUG]: Raising level "BedWars1" tick rate to 1 ticks
    2015-08-01 [13:33:29] [Server thread/DEBUG]: Level "BedWars1" took 53.61ms, setting tick rate to 2 ticks
    2015-08-01 [13:33:38] [Server thread/DEBUG]: Level "BedWars_hub" took 273.26ms, setting tick rate to 5 ticks
    2015-08-01 [13:33:38] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 4 ticks
    2015-08-01 [13:33:38] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 3 ticks
    2015-08-01 [13:33:38] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 2 ticks
    2015-08-01 [13:33:38] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 1 ticks
    2015-08-01 [13:33:41] [Server thread/DEBUG]: Raising level "BedWars1" tick rate to 1 ticks
    2015-08-01 [13:33:41] [Server thread/DEBUG]: Level "BedWars1" took 50.92ms, setting tick rate to 2 ticks
    2015-08-01 [13:33:54] [Server thread/DEBUG]: Level "BedWars1" took 315.37ms, setting tick rate to 3 ticks
    2015-08-01 [13:34:10] [Server thread/DEBUG]: Level "BedWars1" took 355.82ms, setting tick rate to 4 ticks
    2015-08-01 [13:34:27] [Server thread/DEBUG]: Level "BedWars_hub" took 304.68ms, setting tick rate to 6 ticks
    2015-08-01 [13:34:27] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 5 ticks
    2015-08-01 [13:34:27] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 4 ticks
    2015-08-01 [13:34:27] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 3 ticks
    2015-08-01 [13:34:27] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 2 ticks
    2015-08-01 [13:34:27] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 1 ticks
    2015-08-01 [13:34:58] [Server thread/DEBUG]: Level "BedWars_hub" took 304.37ms, setting tick rate to 6 ticks
    2015-08-01 [13:34:58] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 5 ticks
    2015-08-01 [13:34:58] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 4 ticks
    2015-08-01 [13:34:59] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 3 ticks
    2015-08-01 [13:34:59] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 2 ticks
    2015-08-01 [13:34:59] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 1 ticks
    2015-08-01 [13:35:26] [Server thread/DEBUG]: Level "BedWars_hub" took 347.5ms, setting tick rate to 6 ticks
    2015-08-01 [13:35:26] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 5 ticks
    2015-08-01 [13:35:26] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 4 ticks
    2015-08-01 [13:35:26] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 3 ticks
    2015-08-01 [13:35:26] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 2 ticks
    2015-08-01 [13:35:26] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 1 ticks
    2015-08-01 [13:35:37] [Server thread/DEBUG]: Level "BedWars1" took 362.71ms, setting tick rate to 5 ticks
    2015-08-01 [13:35:40] [Server thread/DEBUG]: Raising level "BedWars1" tick rate to 4 ticks
    2015-08-01 [13:35:52] [Server thread/DEBUG]: Level "BedWars1" took 393.19ms, setting tick rate to 5 ticks
    2015-08-01 [13:36:26] [Server thread/DEBUG]: Level "BedWars1" took 320.92ms, setting tick rate to 6 ticks
    2015-08-01 [13:36:40] [Server thread/INFO]: Atucatier[/178.40.107.170:51095] logged in with entity id 1797 at (BedWars_hub, 127, 5, 128)
    2015-08-01 [13:36:41] [Server thread/DEBUG]: Level "BedWars_hub" took 280.71ms, setting tick rate to 5 ticks
    2015-08-01 [13:36:41] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 4 ticks
    2015-08-01 [13:36:41] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 3 ticks
    2015-08-01 [13:36:41] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 2 ticks
    2015-08-01 [13:36:41] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 1 ticks
    2015-08-01 [13:36:45] [Server thread/INFO]: < Atucatier> cc
    2015-08-01 [13:37:15] [Server thread/DEBUG]: Level "BedWars_hub" took 330.75ms, setting tick rate to 6 ticks
    2015-08-01 [13:37:16] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 5 ticks
    2015-08-01 [13:37:16] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 4 ticks
    2015-08-01 [13:37:16] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 3 ticks
    2015-08-01 [13:37:16] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 2 ticks
    2015-08-01 [13:37:16] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 1 ticks
    2015-08-01 [13:37:23] [Server thread/INFO]: mazda[/89.102.61.12:48223] logged out due to client disconnect
    2015-08-01 [13:37:24] [Server thread/WARNING]: Atucatier moved wrongly!
    2015-08-01 [13:37:39] [Server thread/DEBUG]: Level "BedWars_hub" took 269.64ms, setting tick rate to 5 ticks
    2015-08-01 [13:37:39] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 4 ticks
    2015-08-01 [13:37:39] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 3 ticks
    2015-08-01 [13:37:40] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 2 ticks
    2015-08-01 [13:37:40] [Server thread/DEBUG]: Raising level "BedWars_hub" tick rate to 1 ticks
    2015-08-01 [13:38:05] [Server thread/DEBUG]: Level "BedWars1" took 358.44ms, setting tick rate to 7 ticks
    2015-08-01 [13:38:16] [Server thread/WARNING]: Atucatier moved wrongly!
    2015-08-01 [13:38:30] [Server thread/DEBUG]: Level "BedWars1" took 394.56ms, setting tick rate to 8 ticks
    2015-08-01 [13:38:39] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump
    2015-08-01 [13:38:39] [Server thread/EMERGENCY]: Please upload the "/hlserver/27579/CrashDump_Sat_Aug_1-13.38.39-UTC_2015.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.
    
    
  12. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    And the crash dump?
  13. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    This is still same see my first message
  14. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    Or
    Fatal error: Call to a member function setComponents() on null in phar:///hlserver/27579/PocketMine-MP.phar/src/pocketmine/entity/Entity__64bit.php on line 1427[17:04:03] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump[17:04:03] [Server thread/EMERGENCY]: Please upload the "/hlserver/27579/CrashDump_Tue_Jul_28-17.04.03-UTC_2015.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.
  15. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    We can't hack into your server and see what is on the /hlserver/27579/CrashDump_Tue_Jul_28-17.04.03-UTC_2015.log file...
  16. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    Code:
    Error: Call to a member function setComponents() on null
    File: /src/pocketmine/entity/Entity__64bit
    Line: 1427
    Type: E_ERROR
    
    Code:
    [1418]         $from = Position::fromObject($this, $this->level);
    [1419]         $to = Position::fromObject($pos, $pos instanceof Position ? $pos->getLevel() : $this->level);
    [1420]         $this->server->getPluginManager()->callEvent($ev = new EntityTeleportEvent($this, $from, $to));
    [1421]         if($ev->isCancelled()){
    [1422]             return \false;
    [1423]         }
    [1424]         $this->ySize = 0;
    [1425]         $pos = $ev->getTo();
    [1426] 
    [1427]         $this->setMotion($this->temporalVector->setComponents(0, 0, 0));
    [1428]         if($this->setPositionAndRotation($pos, $yaw === \null ? $this->yaw : $yaw, $pitch === \null ? $this->pitch : $pitch) !== \false){
    [1429]             $this->resetFallDistance();
    [1430]             $this->onGround = \true;
    [1431] 
    [1432]             $this->lastX = $this->x;
    [1433]             $this->lastY = $this->y;
    [1434]             $this->lastZ = $this->z;
    [1435] 
    [1436]             $this->lastYaw = $this->yaw;
    [1437]             $this->lastPitch = $this->pitch;
    
    Backtrace:
    #0 (): pocketmine\Server->crashDump()
    
    PocketMine-MP version: 1.5dev #1258 [Protocol 27; API 1.12.0]
    Git commit: 0000000000000000000000000000000000000000
    uname -a: Linux sith 3.19.0 #2 SMP Sat Jul 18 18:32:05 CEST 2015 x86_64
    PHP Version: 5.6.4
    Zend version: 2.6.0
    OS : Linux, linux
    
    Loaded plugins:
    MTCore 1 by CreeperFace for API(s) 1.12.0
    BedWars 1 by CreeperFace for API(s) 1.12.0
    
  17. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Can you find any crash dumps where Backtrace is more than one line?
  18. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Are you using the $player->teleport function anywhere in your plugin?
  19. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
  20. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    In what handler or where?

Share This Page

Advertisement