1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Solved (EXCEPTION) in "src/pocketmine/network/mcpe/NetworkCompression" at line 35

Discussion in 'Help' started by TeraCube, Jul 23, 2018.

  1. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    zlib_decode(): data error" in my server test using:
    https://jenkins.pmmp.io/job/PocketMine-MP/1284/artifact/PocketMine-MP.phar

    PMMP or plugin issue
    thanks

    Code:
    2018-07-22 [21:11:06] [Server thread/CRITICAL]: ErrorException: "zlib_decode(): data error" (EXCEPTION) in "src/pocketmine/network/mcpe/NetworkCompression" at line 35
    2018-07-22 [21:11:06] [Server thread/DEBUG]: #0 (): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string zlib_decode(): data error, string phar:///home/gsp_1485/urlmyservertest/PocketMine-MP.phar/src/pocketmine/network/mcpe/NetworkCompression.php, integer 35, array Array())
    2018-07-22 [21:11:06] [Server thread/DEBUG]: #1 src/pocketmine/network/mcpe/NetworkCompression(35): zlib_decode(string x...a``Z......>.., integer 67108864)
    2018-07-22 [21:11:06] [Server thread/DEBUG]: #2 src/pocketmine/network/mcpe/NetworkSession(147): pocketmine\network\mcpe\NetworkCompression::decompress(string x...a``Z......>..)
    2018-07-22 [21:11:06] [Server thread/DEBUG]: #3 src/pocketmine/network/mcpe/RakLibInterface(143): pocketmine\network\mcpe\NetworkSession->handleEncoded(string x...a``Z......>..)
    2018-07-22 [21:11:06] [Server thread/DEBUG]: #4 vendor/pocketmine/raklib/src/server/ServerHandler(98): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 31.36.68.27 46649, raklib\protocol\EncapsulatedPacket object, integer 0)
    2018-07-22 [21:11:06] [Server thread/DEBUG]: #5 src/pocketmine/network/mcpe/RakLibInterface(97): raklib\server\ServerHandler->handlePacket()
    2018-07-22 [21:11:06] [Server thread/DEBUG]: #6 src/pocketmine/network/Network(91): pocketmine\network\mcpe\RakLibInterface->process()
    2018-07-22 [21:11:06] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/RakLibInterface(74): pocketmine\network\Network->processInterface(pocketmine\network\mcpe\RakLibInterface object)
    2018-07-22 [21:11:06] [Server thread/DEBUG]: #8 vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
    2018-07-22 [21:11:06] [Server thread/DEBUG]: #9 vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
    2018-07-22 [21:11:06] [Server thread/DEBUG]: #10 src/pocketmine/Server(2259): pocketmine\snooze\SleeperHandler->sleepUntil(double 1532286666.0694)
    2018-07-22 [21:11:06] [Server thread/DEBUG]: #11 src/pocketmine/Server(2130): pocketmine\Server->tickProcessor()
    2018-07-22 [21:11:06] [Server thread/DEBUG]: #12 src/pocketmine/Server(1709): pocketmine\Server->start()
    2018-07-22 [21:11:06] [Server thread/DEBUG]: #13 src/pocketmine/PocketMine(243): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/gsp_1485/urlmyservertest/, string /home/gsp_1485/urlmyservertest/plugins/)
    2018-07-22 [21:11:06] [Server thread/DEBUG]: #14 /home/gsp_1485/urlmyservertest/PocketMine-MP.phar(1): require(string phar:///home/gsp_1485/urlmyservertest/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
    2018-07-22 [21:11:06] [RakLibServer thread/NOTICE]: Blocked 31.XX.XX.27 for 5 seconds
     
  2. hikingjungle

    hikingjungle Baby Zombie

    Messages:
    123
    GitHub:
    hikingjungle
    Try your server with with a different version of pocketmine.phar, if that doesn't work try the server with no plugins.
    If it's the plugins, add plugins back to the server one by one until the problem happens again, and then you will know which is the offending plugin
     
    TeraCube likes this.
  3. dktapps

    dktapps Administrator Staff Member PMMP Team

    Messages:
    774
    GitHub:
    dktapps
    It's a PM bug, fixed.
     
    corytortoise and TeraCube like this.
  4. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    @dktaps
    thanks
     
  5. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
  6. hikingjungle

    hikingjungle Baby Zombie

    Messages:
    123
    GitHub:
    hikingjungle
    what is your network compression level in pocketmine.yaml?
     
    TeraCube likes this.
  7. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    compression-level: 7
    thanks

    Code:
    network:
     #Threshold for batching packets, in bytes. Only these packets will be compressed
     #Set to 0 to compress everything, -1 to disable.
     batch-threshold: 256
     #Compression level used when sending batched packets. Higher = more CPU, less bandwidth usage
     compression-level: 7
     #Use AsyncTasks for compression. Adds half/one tick delay, less CPU load on main thread
     async-compression: false
     #Experimental, only for Windows. Tries to use UPnP to automatically port forward
     upnp-forwarding: false
     #Maximum size in bytes of packets sent over the network (default 1492 bytes). Packets larger than this will be
     #fragmented or split into smaller parts. Clients can request MTU sizes up to but not more than this number.
     max-mtu-size: 1492
    
     
  8. hikingjungle

    hikingjungle Baby Zombie

    Messages:
    123
    GitHub:
    hikingjungle
    TeraCube likes this.
  9. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
  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.