ImagickException cache resources exhausted

I’m trying to upload a file that’s 13200 x 9000 pixels in size but have encountered the following error:

ImagickException

cache resources exhausted `/tmp/4add99bbb7ed44e21f5cda0f20f3358b.jpg' @ error/cache.c/OpenPixelCache/3945

ImagickException: cache resources exhausted `/tmp/4add99bbb7ed44e21f5cda0f20f3358b.jpg' @ error/cache.c/OpenPixelCache/3945 in /home/dh_x69ta3/apollo15hub.org/application/libraries/Omeka/File/Derivative/Strategy/Imagick.php:53
Stack trace:
#0 /home/dh_x69ta3/apollo15hub.org/application/libraries/Omeka/File/Derivative/Strategy/Imagick.php(53): Imagick->mergeimagelayers(14)
#1 /home/dh_x69ta3/apollo15hub.org/application/libraries/Omeka/File/Derivative/Creator.php(76): Omeka_File_Derivative_Strategy_Imagick->createImage('/tmp/4add99bbb7...', '/tmp/fullsize_4...', 'fullsize', 800, 'image/jpeg')
#2 /home/dh_x69ta3/apollo15hub.org/application/models/File.php(358): Omeka_File_Derivative_Creator->create('/tmp/4add99bbb7...', '4add99bbb7ed44e...', 'image/jpeg')
#3 /home/dh_x69ta3/apollo15hub.org/application/models/Job/FileProcessUpload.php(22): File->createDerivatives()
#4 /home/dh_x69ta3/apollo15hub.org/application/libraries/Omeka/Job/Dispatcher/Adapter/Synchronous.php(25): Job_FileProcessUpload->perform()
#5 /home/dh_x69ta3/apollo15hub.org/application/libraries/Omeka/Job/Dispatcher/Default.php(137): Omeka_Job_Dispatcher_Adapter_Synchronous->send('{"className":"J...', Array)
#6 /home/dh_x69ta3/apollo15hub.org/application/models/File.php(205): Omeka_Job_Dispatcher_Default->send('Job_FileProcess...', Array)
#7 /home/dh_x69ta3/apollo15hub.org/application/libraries/Omeka/Record/AbstractRecord.php(280): File->afterSave(Array)
#8 /home/dh_x69ta3/apollo15hub.org/application/libraries/Omeka/Record/AbstractRecord.php(548): Omeka_Record_AbstractRecord->runCallbacks('afterSave', Array)
#9 /home/dh_x69ta3/apollo15hub.org/application/models/Item.php(338): Omeka_Record_AbstractRecord->save()
#10 /home/dh_x69ta3/apollo15hub.org/application/models/Builder/Item.php(205): Item->saveFiles()
#11 /home/dh_x69ta3/apollo15hub.org/application/libraries/globals.php(567): Builder_Item->addFiles('Upload', 'file', Array)
#12 /home/dh_x69ta3/apollo15hub.org/application/models/Item.php(323): insert_files_for_item(Object(Item), 'Upload', 'file', Array)
#13 /home/dh_x69ta3/apollo15hub.org/application/models/Item.php(233): Item->_uploadFiles()
#14 /home/dh_x69ta3/apollo15hub.org/application/libraries/Omeka/Record/AbstractRecord.php(280): Item->beforeSave(Array)
#15 /home/dh_x69ta3/apollo15hub.org/application/libraries/Omeka/Record/AbstractRecord.php(529): Omeka_Record_AbstractRecord->runCallbacks('beforeSave', Array)
#16 /home/dh_x69ta3/apollo15hub.org/application/libraries/Omeka/Controller/AbstractActionController.php(229): Omeka_Record_AbstractRecord->save(false)
#17 /home/dh_x69ta3/apollo15hub.org/application/controllers/ItemsController.php(88): Omeka_Controller_AbstractActionController->editAction()
#18 /home/dh_x69ta3/apollo15hub.org/application/libraries/Zend/Controller/Action.php(516): ItemsController->editAction()
#19 /home/dh_x69ta3/apollo15hub.org/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('editAction')
#20 /home/dh_x69ta3/apollo15hub.org/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#21 /home/dh_x69ta3/apollo15hub.org/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
#22 /home/dh_x69ta3/apollo15hub.org/application/libraries/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()
#23 /home/dh_x69ta3/apollo15hub.org/application/libraries/Omeka/Application.php(73): Zend_Application->run()
#24 /home/dh_x69ta3/apollo15hub.org/admin/index.php(28): Omeka_Application->run()
#25 {main}

I suspect I need to allocate more memory by editing the policy.xml file in ImageMagick and am currently negotiating with the host to change the appropriate settings.

Has anybody else encountered this difficulty and is more memory in fact what was required?

I haven’t seen this specific error in practice, but yes, it’s very likely to be a policy.xml issue.

Good to know, thanks!

This topic was automatically closed 250 days after the last reply. New replies are no longer allowed.