Allowed memory size error on gdlib : generate_image_thumbnail

Allowed memory size error on gdlib : generate_image_thumbnail

by David Ligne -
Number of replies: 1

Hello,

We are on Moodle 2.8.6, and very frequently have this kind of error in our php error log :

[05-Nov-2015 09:33:59 America/Montreal] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 4896 bytes) in /app/apache2/htdocs/moodle/lib/gdlib.php on line 290

It happens (seemingly randomly) in the imagecreatefromstring method, but I haven't been able to reproduce it through the interface.

Does anyone have ideas or hints on this?

Thank you

Average of ratings: -
In reply to David Ligne

Re: Allowed memory size error on gdlib : generate_image_thumbnail

by David Ligne -

We tested directly our GD library, and it does cause the problem.

Nothing to do with the Moodle code.