Hebbinkpro / PocketMap

A dynamic map plugin for PocketMine-MP
GNU General Public License v3.0
13 stars 1 forks source link

Allowed memory size exhausted #6

Closed Hebbinkpro closed 1 year ago

Hebbinkpro commented 1 year ago

During a (full world) render, it is possible for this crash to pop-up.

This probably happens because of a memory leak caused by not deleting stored chunk data and/or render images in memory after a render is finished.

I'm working on a fix, but until then it's safe to restart your server after the crash.

Crash Info for context:

Thread: AsyncWorker#0
Error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 24576 bytes)
File: plugins/PocketMap/src/Hebbinkpro/PocketMap/render/RegionChunks
Line: 126
Type: E_ERROR
Backtrace:
#0 pmsrc/src/thread/CommonThreadPartsTrait(133): pocketmine\thread\ThreadCrashInfo::fromLastErrorInfo(array[4], string[13] AsyncWorker#0)
#1 (): pocketmine\thread\Worker->pocketmine\thread\{closure}()
#2 pmsrc/src/thread/CommonThreadPartsTrait(150): pmmp\thread\ThreadSafe->synchronized(object Closure#116233)
#3 (): pocketmine\thread\Worker->onShutdown()