shoghicp / BigBrother

Allows the connection of Minecraft: PC clients to PocketMine-MP servers. Made for PocketMine-MP
GNU Lesser General Public License v3.0
115 stars 86 forks source link

Warning and chunks #25

Open herenickname opened 9 years ago

herenickname commented 9 years ago

When i join on server, client spawn in air, and in console i see: [NOTICE] ArrayOutOfBoundsException: "Undefined offset: 1" (E_NOTICE) in "/BigBrother_v1.4.0-beta.phar/src/shoghicp/BigBrother/DesktopPlayer" at line 176 [CRITICAL] Could not tick level Lobby: Undefined offset: 1 Build:913

tuomas56 commented 9 years ago

Same Here, Crash dump below:

PocketMine-MP Crash Dump Mon Jan 5 12:32:48 GMT 2015

Error: Uninitialized string offset: 19
File: /BigBrother_v1.4.0-beta.phar/src/shoghicp/BigBrother/network/Packet
Line: 122
Type: notice

THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: BigBrother v1.4.0-beta

Code:
[113]   protected function getTriad(){
[114]       return unpack("N", "\x00" . $this->get(3))[1];
[115]   }
[116] 
[117]   protected function getLTriad(){
[118]       return unpack("N", "\x00" . strrev($this->get(3)))[1];
[119]   }
[120] 
[121]   protected function getByte(){
[122]       return ord($this->buffer{$this->offset++});
[123]   }
[124] 
[125]   protected function getString(){
[126]       return $this->get($this->getVarInt());
[127]   }
[128] 
[129]   protected function getVarInt(){
[130]       return Binary::readVarInt($this->buffer, $this->offset);
[131]   }
[132] 

Backtrace:
#0 /BigBrother_v1.4.0-beta.phar/src/shoghicp/BigBrother/network/protocol/PlayerBlockPlacementPacket(48): shoghicp\BigBrother\network\Packet->getByte()
#1 /BigBrother_v1.4.0-beta.phar/src/shoghicp/BigBrother/network/Packet(206): shoghicp\BigBrother\network\protocol\PlayerBlockPlacementPacket->decode()
#2 /BigBrother_v1.4.0-beta.phar/src/shoghicp/BigBrother/network/ProtocolInterface(196): shoghicp\BigBrother\network\Packet->read(string ÿÿÿÿÿÿÿÿÿ, integer 1)
#3 /BigBrother_v1.4.0-beta.phar/src/shoghicp/BigBrother/network/ProtocolInterface(229): shoghicp\BigBrother\network\ProtocolInterface->handlePacket(shoghicp\BigBrother\DesktopPlayer DesktopPlayer(1), string ÿÿÿÿÿÿÿÿÿ)
#4 /src/pocketmine/Server(2206): shoghicp\BigBrother\network\ProtocolInterface->process()
#5 /src/pocketmine/Server(2100): pocketmine\Server->tick()
#6 /src/pocketmine/Server(1976): pocketmine\Server->tickProcessor()
#7 /src/pocketmine/Server(1693): pocketmine\Server->start()
#8 /src/pocketmine/PocketMine(442): pocketmine\Server->__construct(pocketmine\CompatibleClassLoader object, pocketmine\utils\MainLogger object, string phar:///Users/tuomas/Downloads/PM-MP/PocketMine-MP.phar/, string /Users/tuomas/Downloads/PM-MP/, string /Users/tuomas/Downloads/PM-MP/plugins/)
#9 (1): require(string phar:///Users/tuomas/Downloads/PM-MP/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

PocketMine-MP version: 1.4.1dev #930 [Protocol 20; API 1.11.0]
Git commit: 0000000000000000000000000000000000000000
uname -a: Darwin MacBook-Pro.local 14.0.0 Darwin Kernel Version 14.0.0: Wed Jul 16 00:46:31 PDT 2014; root:xnu-2782.1.43.0.2~2/RELEASE_X86_64 x86_64
PHP Version: 5.6.4
Zend version: 2.6.0
OS : Darwin, mac

Loaded plugins:
BigBrother 1.4.0-beta by shoghicp for API(s) 1.8.0

----------------------REPORT THE DATA BELOW THIS LINE-----------------------

===BEGIN CRASH DUMP===
eNoDAAAAAAE=
===END CRASH DUMP===