[horde] Allowed memory size exhausted (line 130 of "/usr/share/php/Horde/ErrorHandler.php")

Daniel Bareiro daniel-listas at gmx.net
Fri Feb 15 16:06:50 UTC 2019


Hi, Jan.

On 15/2/19 05:37, Jan Schneider wrote:

>> Some time ago I am observing this error in the syslog:
>>
>> ----------
>> HORDE: Allowed memory size of 134217728 bytes exhausted (tried to
>> allocate 106430464 bytes) [pid 700 on line 130 of
>> "/usr/share/php/Horde/ErrorHandler.php"]
>> ----------
>>
>> As I see, the block referred to in the error is the following:
>>
>> ----------
>> 125                 if (is_object($error)) {
>> 126                     echo '<h3>' .
>> Horde_Core_Translation::t("Details") . '</h3>';
>> 127                     echo '<h4>' . Horde_Core_Translation::t("The
>> full error message is logged in Horde's log file, and is shown below
>> only to administrators. Non-a    dministrative users will not see error
>> details.") . '</h4>';
>> 128                     ob_flush();
>> 129                     flush();
>> 130                     echo '<div id="details"><pre>' .
>> htmlspecialchars(print_r($error, true)) . '</pre></div>';
>> 131                 }
>> ----------
>>
>> Any information to fix it would be appreciated, since this error appears
>> approximately every 10 min in the syslog. If there is any way I can
>> provide more debug information, please let me know.
>>
>> I'm using Horde Groupware 5.2.22.

> This only happens when logged in as an administrator. The error
> backtrace is simple too large to be displayed.

Fortunately I was able to solve this problem.

It seems that it was related to the error I mentioned in another message
in this thread that appeared a few seconds before the memory exhaustion
error:

----------
Invalid VObject, line 1 did not follow the icalendar/vcard
format [pid 1051 on line 143 of "/usr/share/php/Sabre/VObject/Reader.php"]
----------

Apparently the php-saber-vobject package has the
/usr/share/php/Sabre/VObject/Reader.php file.

It seems that I didn't have this Debian package installed:

----------
# aptitude search php-sabre-vobject
p   php-sabre-vobject
          - library to parse and manipulate iCalendar and vCard objects
p   php-sabre-vobject-3
          - library to parse and manipulate iCalendar and vCard objects
----------

So I try to install it by previously making a backup of the previous
version of /usr/share/php/Sabre/VObject/Reader.php:

Out of curiosity I was checking if after the installation there were
differences between both files:

----------
# diff /usr/share/php/Sabre/VObject/Reader.php
/usr/share/php/Sabre/VObject/Reader.php.bkp
87c87
<     static private function readLine(&$lines, $options = 0) {
---
>     private static function readLine(&$lines, $options = 0) {
179c179
<     static private function readParameters($parameters) {
---
>     private static function readParameters($parameters) {
----------

I'm not sure if there will be anything beyond that difference in other
files, but Sabre's error and memory exhaustion no longer occurs.


Kind regards,
Daniel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <https://lists.horde.org/archives/horde/attachments/20190215/e11cd0ad/attachment.bin>


More information about the horde mailing list