Fatal Error: RakLib Thread crashed

Discussion in 'Help' started by TeraCube, Jan 26, 2019.

  1. TeraCube

    TeraCube Zombie

    Messages:
    259
    GitHub:
    teracube
    hi

    today my server crash with 73/100 players connected

    Code:
    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 8388616 bytes) in phar:///home/myserver/PocketMine-MP.phar/vendor/pocketmine/raklib/src/server/Session.php on line 472
    [36m[15:55:50] [m[31m[Server thread/EMERGENCY]: RakLib crashed![m
    [36m[15:55:50] [m[31m[Server thread/CRITICAL]: Exception: "RakLib Thread crashed" (EXCEPTION) in "src/pocketmine/network/mcpe/RakLibInterface" at line 113[m
    see attached all crashdump files

    what is the problem ? plugin issue ?

    thanks
     

    Attached Files:

  2. Joedude104

    Joedude104 Creeper

    Messages:
    1
    GitHub:
    joedude104
    having same problem when i up the ram in server\bin\php\php.ini or i could just say php.ini
     
  3. TeraCube

    TeraCube Zombie

    Messages:
    259
    GitHub:
    teracube
    another crash today wtih 90/100 players connected
    Code:
    PocketMine-MP Crash Dump Mon Jul 22 14:31:09 CEST 2019
    
    Error: RakLib Thread crashed
    File: src/pocketmine/network/mcpe/RakLibInterface
    Line: 112
    Type: Exception
    
    Code:
    [103]
    [104]     public function setNetwork(Network $network){
    [105]         $this->network = $network;
    [106]     }
    [107]
    [108]     public function process() : void{
    [109]         while($this->interface->handlePacket()){}
    [110]
    [111]         if(!$this->rakLib->isRunning() and !$this->rakLib->isShutdown()){
    [112]             throw new \Exception("RakLib Thread crashed");
    [113]         }
    [114]     }
    [115]
    [116]     public function closeSession(string $identifier, string $reason) : void{
    [117]         if(isset($this->players[$identifier])){
    [118]             $player = $this->players[$identifier];
    [119]             unset($this->identifiers[spl_object_hash($player)]);
    [120]             unset($this->players[$identifier]);
    [121]             unset($this->identifiersACK[$identifier]);
    [122]             $player->close($player->getLeaveMessage(), $reason);
    
    Backtrace:
    #0 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
    #1 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
    #2 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
    #3 src/pocketmine/Server(2348): pocketmine\snooze\SleeperHandler->sleepUntil(double 1563798669.1028)
    #4 src/pocketmine/Server(2205): pocketmine\Server->tickProcessor()
    #5 src/pocketmine/Server(1784): pocketmine\Server->start()
    #6 src/pocketmine/PocketMine(274): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[34] /home/teracube/, string[42] /home/teracube/plugins/)
    #7 (1): require(string[89] phar:///home/teracube/PocketMine-MP.phar/src/pocketmine/Pocke)
    
    PocketMine-MP version: 3.9.1 [Protocol 361]
    Git commit: aaa01bb6f87082fc4cf4c251c06f1a590d886f2e
    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.3.5
    Zend version: 3.3.5
    OS : Linux, linux


    Code:
    2019-07-22 [14:31:09] [Server thread/EMERGENCY]: RakLib crashed!
    2019-07-22 [14:31:09] [Server thread/CRITICAL]: Exception: "RakLib Thread crashed" (EXCEPTION) in "src/pocketmine/network/mcpe/RakLibInterface" at line 112
    2019-07-22 [14:31:09] [Server thread/DEBUG]: #0 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
    2019-07-22 [14:31:09] [Server thread/DEBUG]: #1 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
    2019-07-22 [14:31:09] [Server thread/DEBUG]: #2 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
    2019-07-22 [14:31:09] [Server thread/DEBUG]: #3 src/pocketmine/Server(2348): pocketmine\snooze\SleeperHandler->sleepUntil(double 1563798669.1028)
    2019-07-22 [14:31:09] [Server thread/DEBUG]: #4 src/pocketmine/Server(2205): pocketmine\Server->tickProcessor()
    2019-07-22 [14:31:09] [Server thread/DEBUG]: #5 src/pocketmine/Server(1784): pocketmine\Server->start()
    2019-07-22 [14:31:09] [Server thread/DEBUG]: #6 src/pocketmine/PocketMine(274): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[34] /home/teracube/, string[42] /home/teracube/plugins/)
    2019-07-22 [14:31:09] [Server thread/DEBUG]: #7 (1): require(string[89] phar:///home/teracube/PocketMine-MP.phar/src/pocketmine/Pocke)
    2019-07-22 [14:31:09] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump
    2019-07-22 [14:31:09] [Server thread/EMERGENCY]: Please upload the "/home/teracube/crashdumps/Mon_Jul_22-14.31.09-CEST_2019.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.
     
  4. TeraCube

    TeraCube Zombie

    Messages:
    259
    GitHub:
    teracube
  5. TeraCube

    TeraCube Zombie

    Messages:
    259
    GitHub:
    teracube
    bad news
    server crash when i put memory_limit=6024M on php.ini
    i think there is no effect and memory remain 134 M =) 134217728 bytes and not 6 GB


    Code:
    root! g1:/usr/local/games/php7-20190606/bin/php7/bin# cat php.ini
    date.timezone=CEST
    short_open_tag=0
    asp_tags=0
    phar.readonly=0
    phar.require_hash=1
    igbinary.compact_strings=0
    zend.assertions=-1
    error_reporting=-1
    display_errors=1
    display_startup_errors=1
    recursionguard.enabled=0 ;disabled due to minor performance impact, only enable this if you need it for debugging
    ;zend_extension=opcache.so
    opcache.enable=1
    opcache.enable_cli=1
    opcache.save_comments=1
    opcache.fast_shutdown=0
    opcache.max_accelerated_files=4096
    opcache.interned_strings_buffer=8
    opcache.memory_consumption=128
    opcache.optimization_level=0xffffffff
    memory_limit=6024M
    
     
    Last edited: Jul 24, 2019
  6. SleepSpace9

    SleepSpace9 Witch

    Messages:
    71
    GitHub:
    sleepspace9
    Is the php.ini you've edited in the same directory that is used in your `start.sh` to reference the php binary? Or in other words, are you running PocketMine-MP.phar using `/usr/local/games/php7-20190606/bin/php7/bin/php` ?
    I ask because your pmmp server directory seems to be /home/gsp_1485/g3.hmserv.eu-19144/ and by default the php binary would be in `/home/gsp_1485/g3.hmserv.eu-19144/bin/php7/bin/`.
     

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.