|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59449 Uncaught exception 'ImagickException' with message 'memory allocation failed
Submitted: 2010-10-05 07:52 UTC Modified: 2013-02-18 00:35 UTC
Avg. Score:4.4 ± 0.9
Reproduced:7 of 7 (100.0%)
Same Version:1 (14.3%)
Same OS:4 (57.1%)
From: samro dot subhro at gmail dot com Assigned:
Status: No Feedback Package: imagick (PECL)
PHP Version: 5.2.5 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
30 - 16 = ?
Subscribe to this entry?

 [2010-10-05 07:52 UTC] samro dot subhro at gmail dot com
Getting error Uncaught exception 'ImagickException' with message 'memory allocation failed while trying to write an image. Working fine with windows XAMPP server but getting error on Linux server

Reproduce code:
$thumb = new Imagick();

Expected result:
This should work fine

Actual result:
This is showing a FATAL error

Its showing 
Fatal error: Uncaught exception 'ImagickException' with message 'memory allocation failed `/home/p21628/domains/' @ error/gif.c/WriteGIFImage/1627' in /home/p21628/domains/ Stack trace: #0 /home/p21628/domains/ Imagick->writeimage('test.gif') #1 {main} thrown in /home/p21628/domains/ on line 4


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-12 05:26 UTC] a dot catel at weelya dot com
Same here
 [2010-11-18 06:53 UTC]
Do you have memory available?
 [2013-02-18 00:35 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 [2016-12-25 13:58 UTC] miqrogroove at gmail dot com
I'm experiencing same problem on BlueHost with a simple WordPress image upload.

   'message' => 'memory allocation failed `2016-10-19-02-15-300x225.gif\' @ error/gif.c/WriteGIFImage/1633',
   'string' => '',
   'code' => 400,
   'file' => '/wp-includes/class-wp-image-editor.php',
   'line' => 424,
   'trace' => 
  array (
    0 => 
    array (
      'function' => 'writeimage',
      'class' => 'Imagick',
      'type' => '->',
      'args' => 
      array (
        0 => '2016-10-19-02-15-300x225.gif',
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Jun 25 07:01:23 2021 UTC