Author Topic: PHP fatal error: Imagick cache resources exhausted  (Read 4647 times)

Offline brewmarsh

  • Junior Indexer
  • **
  • Posts: 11
  • Helpful: +0/-0
PHP fatal error: Imagick cache resources exhausted
« on: 2019-06-04, 06:34:17 am »
I'm getting this error regularly now in postprocessing.

Code: [Select]
PHP Fatal error:  Uncaught ImagickException: cache resources exhausted `' @ error/cache.c/OpenPixelCache/3984 in /mnt/nzedb/nzedb/ReleaseImage.php:101
Stack trace:
#0 /mnt/nzedb/nzedb/ReleaseImage.php(101): Imagick->readimageblob('\xFF\xD8\xFF\xE0\x00\x10JFIF\x00\x01\x01\x01\x00...')
#1 /mnt/nzedb/nzedb/ReleaseImage.php(128): nzedb\ReleaseImage->fetchImage('/var/www/nZEDb/...')
#2 /mnt/nzedb/nzedb/processing/post/ProcessAdditional.php(1623): nzedb\ReleaseImage->saveImage('04135e9babbf1dd...', '/var/www/nZEDb/...', '/var/www/nZEDb/...', 650, 650)
#3 /mnt/nzedb/nzedb/processing/post/ProcessAdditional.php(1438): nzedb\processing\post\ProcessAdditional->_processJPGMessageIDs()
#4 /mnt/nzedb/nzedb/processing/post/ProcessAdditional.php(746): nzedb\processing\post\ProcessAdditional->_processMessageIDDownloads()
#5 /mnt/nzedb/nzedb/processing/post/ProcessAdditional.php(566): nzedb\processing\post\ProcessAdditional->_processReleases()
#6 /mnt/nzedb/misc/update/nix/multiprocessing/.do_not_run/switch.php(248): nzedb\processing\post\Proce in /mnt/nzedb/nzedb/ReleaseImage.php on line 101

Reading on some forums they suggested checking the output of this command:
Code: [Select]
identify -list resource
Resource limits:
  Width: 16KP
  Height: 16KP
  Area: 128MP
  Memory: 256MiB
  Map: 512MiB
  Disk: 1GiB
  File: 768
  Thread: 8
  Throttle: 0
  Time: unlimited

I'd appreciate any tips!

Offline Wally73

  • Overlord
  • ******
  • Posts: 266
  • Helpful: +31/-1
  • i'm nuts
Re: PHP fatal error: Imagick cache resources exhausted
« Reply #1 on: 2019-06-10, 04:35:07 am »
Never seen those kind of errors

better report an issue on https://github.com/nZEDb/nZEDb/issues

Offline brewmarsh

  • Junior Indexer
  • **
  • Posts: 11
  • Helpful: +0/-0
Re: PHP fatal error: Imagick cache resources exhausted
« Reply #2 on: 2019-10-17, 08:45:34 am »
FYI I ended up rebuilding the server and have not found this problem again.