unresolved3169/Turanic

Out of Memery

Closed this issue · 4 comments

Fatal error: Out of memory (allocated 146800640) (tried to allocate 131072 bytes) in C:\Users\Administrator\Desktop\Lobby\src\pocketmine\Server.php on line 2149

Then server crash

Crash file upload ?

Turanic Crash Dump Thu Sep 14 12:44:13 +06 2017

Error: Out of memory (allocated 146800640) (tried to allocate 131072 bytes)
File: /src/pocketmine/Server
Line: 2149
Type: E_ERROR

Code:
[2140] 			if($p->isConnected()){
[2141] 				$targets[] = $this->identifiers[spl_object_hash($p)];
[2142] 			}
[2143] 		}
[2144] 
[2145] 		if(!$forceSync and $this->networkCompressionAsync){
[2146] 			$task = new CompressBatchedTask($str, $targets, $this->networkCompressionLevel);
[2147] 			$this->getScheduler()->scheduleAsyncTask($task);
[2148] 		}else{
[2149] 			$this->broadcastPacketsCallback(zlib_encode($str, ZLIB_ENCODING_DEFLATE, $this->networkCompressionLevel), $targets);
[2150] 		}
[2151] 
[2152] 		Timings::$playerNetworkTimer->stopTiming();
[2153] 	}
[2154] 
[2155] 	public function broadcastPacketsCallback($data, array $identifiers){
[2156] 		$pk = new BatchPacket();
[2157] 		$pk->payload = $data;
[2158] 		$pk->encode();
[2159] 		$pk->isEncoded = true;

Backtrace:
#0 (): pocketmine\Server->crashDump(boolean)