RakLibServer thread/NOTICE

Discussion in 'Development' started by NickteeChunky, Dec 30, 2020.

  1. NickteeChunky

    NickteeChunky Witch

    Messages:
    59
    GitHub:
    nickteechunky
    Sometimes, when I start my private server and teleport or just move to a certain area, I instantly crashed and this appears in console. What's weird is this only happens sometimes, not every time I start my server.

    I have no clue what the issue is but I suggest it could be some kind of world data corruption in a few chunks.
    If you have any advice or information, please let me know. (message attached below)

    Thanks in advance.

    Note: it's not a connectivity issue

    Update: https://pmmp.readthedocs.io/en/rtfd/faq/connecting/raklibthreadblocked.html
    Read this; is there any way I can see the 5000+ packets that run within a tick

    Code:
    [13:46:15] [RakLibServer thread/NOTICE]: Blocked 127.0.0.1 for 300 seconds
     
    Last edited: Dec 30, 2020
  2. minijaham

    minijaham Zombie

    Messages:
    222
    GitHub:
    minijaham
    This usually happens with a voting plugin. Remove one plugin at a time to see what's causing it
     
  3. GamakCZ

    GamakCZ Zombie Pigman

    Messages:
    604
    GitHub:
    GamakCZ
  4. NickteeChunky

    NickteeChunky Witch

    Messages:
    59
    GitHub:
    nickteechunky
    So what's the solution, just set a raklibserver packet limit at 4999?
     
  5. NickteeChunky

    NickteeChunky Witch

    Messages:
    59
    GitHub:
    nickteechunky
    I'm not using any kind of proxy
     
  6. GamakCZ

    GamakCZ Zombie Pigman

    Messages:
    604
    GitHub:
    GamakCZ
    Set the limit to PHP_INT_MAX constant
     
  7. OguzhanUmutlu

    OguzhanUmutlu Witch

    Messages:
    53
    GitHub:
    OguzhanUmutlu
    Use this task file:
    PHP:
    <?php
    namespace myfile\test;

    use 
    pocketmine\scheduler\Task;

    class 
    MyTask extends Task {
     public function 
    __construct(Main $plugin) {
        
    $this->plugin $plugin;
      }
      public function 
    onRun(int $tick) {
        
    $list array_map(function($entry) : string{
          return 
    $entry->getName();
        }, 
    $this->plugin->getServer()->getIPBans()->getEntries());
        if(
    in_array("127.0.0.1"$list)) {
          
    $this->plugin->getServer()->getIPBans()->remove("127.0.0.1");
          
    $this->plugin->getServer()->getNetwork()->unblockAdress("127.0.0.1");
        }
      }
    }
    --------------------
    Main:
    PHP:
    <?php
    namespace myfile\test;

    use 
    pocketmine\plugin\PluginBase;

    class 
    Main extends PluginBase {
      public function 
    onEnable() {
        
    $this->getScheduler()->scheduleRepeatingTask((new MyTask($this)), 1);
      }
    }
     
    Last edited: Jan 4, 2021
  8. GamakCZ

    GamakCZ Zombie Pigman

    Messages:
    604
    GitHub:
    GamakCZ
    This is so unefficient way. Setting packet limit to some big int is all you need to fix it.
     
    ethaniccc likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.