Error Allowed Memory While Server Is Running Serveral Hours #2421

Closed
PonyPC opened this Issue Dec 20, 2014 · 8 comments

Projects

None yet

3 participants

@PonyPC
PonyPC commented Dec 20, 2014

PocketMine-MP Crash Dump Fri Dec 19 20:20:13 CST 2014

Error: Allowed memory size of 939524096 bytes exhausted (tried to allocate 82185 bytes)
File: /src/pocketmine/level/format/mcregion/McRegion
Line: 133
Type: E_ERROR

Code:
[124]
[125] $biomeColors = \pack("N*", ...$chunk->getBiomeColorArray());
[126]
[127] $ordered = \zlib_encode(
[128] \pack("V", $x) . \pack("V", $z) .
[129] $chunk->getBlockIdArray() .
[130] $chunk->getBlockDataArray() .
[131] $chunk->getBlockSkyLightArray() .
[132] $chunk->getBlockLightArray() .
[133] $chunk->getBiomeIdArray() .
[134] $biomeColors .
[135] $tiles
[136] , ZLIB_ENCODING_DEFLATE, Level::$COMPRESSION_LEVEL);
[137]
[138] $this->getLevel()->chunkRequestCallback($x, $z, $ordered);
[139]
[140] return \null;
[141] }
[142]
[143] public function unloadChunks(){

Backtrace:

PocketMine-MP version: Alpha_1.4dev #879 [Protocol 20; API 1.9.0]
Git commit: 0000000000000000000000000000000000000000
uname -a: Linux ~ 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64
PHP Version: 5.6.2
Zend version: 2.6.0
OS : Linux, linux

Loaded plugins:
SimpleBanItem 1.1.0 by 18wyj2 for API(s) 1.0.0
essentialsTP 1.0.9 by for API(s) 1.0.0
KeepInventory 1.1.0 by boybook for API(s) 1.0.0
GeoLocation 3.0.2 by DarkN3ss & boybook for API(s) 1.1.0
Broadcaster 1.13 by EvolSoft for API(s) 1.8.0
BanCommands 1.0.0 by 18wyj2 for API(s) 1.0.0
PocketGuard 2.1 by MinecrafterJPN for API(s) 1.6.0
SimpleAuth 1.6.0 by PocketMine Team, shoghicp for API(s) 1.8.0
SimpleHelp 1.0.0 by 18wyj2 for API(s) 1.0.0
EconomyAPI 2.0.2 by onebone for API(s) 1.0.0, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1
SignCommand Build_1 by 18WYJ2 for API(s) 1.0.0
EconomyLand 2.0.3 by onebone for API(s) 1.0.0, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1
EconomyShop 2.0.0 by onebone for API(s) 1.3.0, 1.3.1, 1.4.0, 1.4.1
EconomyProperty 2.0.0 by onebone for API(s) 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1
EconomySell 2.0.1 by onebone for API(s) 1.3.0, 1.3.1, 1.4.0, 1.4.1

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

===BEGIN CRASH DUMP===
eNrNWo9v27YS/lcIJ3hIB8uxJP8uPCBN0i57SZqXpCve5iGgJdrWIouqSMVxhv3v7ztSlmSnW9Nh
e++lKCKejnf33R3vSCq/NnS0FI2R23EHw6Hbc/1mQ2SZzBqjXxt6neJV4/Tu9Pr6/XWj2VgKpfic
aEdxLFciZEuxlNmaqehJMDljQ3/Y9TrtYY9N11ooJh4XPFcajAc6i/BLS8YxNeBasIHnDrqW8RWE
z6KYJB+qLDhMZXAv9DJKxGEsHkR8OJPZkuvDZZCJeSSTw4vg2jxgXgwuAPD935qNNM7nUdIYzXis
RLMRyFAQENfrQDJ4Xa+Lh4me6P1pJJfiWMYyU2zMJpOUB/cHk8blN5NGk7Varf1gkSf3zrdzod+U
rEdZxtcHr169NrJ6G6H9jVCZhSIDTBL4FEfTO5GQDQeGa1Bw4d9G2w+kbP/xFWuxHdoTaGbWsJxV
twguvD8LC3Msp9/+Xc4Trvk2r/u7vDf36/NovtDb/N7v8n+G2f8sMzlx1+ROxVmPh33ZrV5q5IYy
xF5JbLIfz8/e3J1eHr8/Obt8d3dy+vb86Pa0yc4pY0aj/eP3F1fXpzc3Z+8v785Pfzg9t2Hz+0XY
/E1A9vUiUsZIM/XglfOtsftafMqF0sfI2CnFZv+RAoP/RZ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ht5SWyKSf6NHBbrvJiPAzSTTb3rLT1nd/BoSEoAwn
hHqBIUcJ/dnNpNkXme28bRQEe4leGcHQomPXTDdajQHmidGem1aKaXOVthGj770j73W/2R0+uk3/
0W96r93XISqJLRAHOhMYYMWPB202Rz4pO+p06Q8OxKMWCbnD3Pcfo1bVPjZSAtWGKJjz8sNEGhBr
MVCfUA2Fbz6K9h37AfbJfiW1NwnTAF1/Uf1NAo+R8zyrCPbPLDajPIvLATaJ5kMLRLv2emKm0/Lt
fFk9L7BW7F0umH5RxcWuvcJYTpWmNlgyY9OzTnWFAGeu0HwqKOHeXJ0brfScBomuTMJ5/FNsvsMW
T6xLtwYuIWcOHY69drft43H/DFGb+X1f8G4Ydrv+oN9zO+0eH7Q9j3emA+73Ox13MPU6bcH2oelq
QW4pL3JTqaLHyum22qvNPQUBvRaz2J6MQTX6BqI7C7ATmXWgtj3r94P+YNDrdqHaH3q+8NvTYX8Y
hkafWixl5UJllpXaRhpZ54NZy3uRRE+bcIDyET0H9cA6qtUFZc3NkY3ukojhKUrtyGvR1+wfqY6+
vzJ1HPQ+UHTIbW9PzfdqWwTpbwN++w/abMYo
===END CRASH DUMP===

@PEMapModder
Collaborator

Your server does not have enough memory. This is not a bug

@PonyPC
PonyPC commented Dec 20, 2014

I've allocated 1G.

@PonyPC
PonyPC commented Dec 20, 2014

I'm a hosting. This issue has been existed for long time from 0.10.0.

@PonyPC
PonyPC commented Dec 20, 2014

Double 256Mb to 512Mb has no effected.
Now double 512Mb to 1G still crashes.

@PonyPC
PonyPC commented Dec 20, 2014

But on Windows Server pm will not crash, so strange odd.

@iJoshuaHD

you should not change "M". for example, the default is 256M, it is not 256MB or 1GB. if you want to allocate 1GB, it should be 1024M and so forth ...

@PonyPC
PonyPC commented Dec 20, 2014

sure, it is 1024M :)
I think the reason is mcregion class can't gc memory on linux , or memory leak on linux.

@PonyPC
PonyPC commented Dec 20, 2014

on the windows, I has allocated 256Mb for 0.10.x pmmp, nothing happended in day and day.

@shoghicp shoghicp added a commit that closed this issue Dec 28, 2014
@shoghicp shoghicp Fixed memory leak issues on chunk generation under 32-bit hosts, fixe…
…d issue with generated chunks not having a provider. Closes #2419, fixes #2308, closes #2421
8d9fbec
@shoghicp shoghicp closed this in 8d9fbec Dec 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment