[horde] Allowed memory size exhausted (line 130 of "/usr/share/php/Horde/ErrorHandler.php")
Daniel Bareiro
daniel-listas at gmx.net
Thu Mar 7 13:39:13 UTC 2019
Hi, again.
On 15/2/19 13:06, Daniel Bareiro 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.
Unfortunately I had this problem again. After configuring the Horde log
to 'DEBUG' mode these are the entries I get when the issue arises:
----------
ar 7 10:26:42 mail HORDE: Invalid VObject, line 1 did not follow the
icalendar/vcard format [pid 17819 on line 143 of
"/usr/share/php/Sabre/VObject/Reader.php"]
Mar 7 10:26:42 mail HORDE: 1. Horde_Rpc_Webdav->getResponse()
/space/www/horde/rpc.php:160#012 2. Sabre\DAV\Server->exec()
/usr/share/php/Horde/Rpc/Webdav.php:66#012 3.
Sabre\DAV\Server->invokeMethod()
/usr/share/php/Sabre/DAV/Server.php:214#012 4. call_user_func()
/usr/share/php/Sabre/DAV/Server.php:474#012 5.
Sabre\DAV\Server->httpReport()#012 6. Sabre\DAV\Server->broadcastEvent()
/usr/share/php/Sabre/DAV/Server.php:1066#012 7. call_user_func_array()
/usr/share/php/Sabre/DAV/Server.php:433#012 8.
Sabre\CalDAV\Plugin->report()#012 9.
Sabre\CalDAV\Plugin->calendarQueryReport()
/usr/share/php/Sabre/CalDAV/Plugin.php:265#01210.
Sabre\CalDAV\Calendar->calendarQuery()
/usr/share/php/Sabre/CalDAV/Plugin.php:591#01211.
Sabre\CalDAV\Backend\AbstractBackend->calendarQuery()
/usr/share/php/Sabre/CalDAV/Calendar.php:372#01212.
Sabre\CalDAV\Backend\AbstractBackend->validateFilterForObject()
/usr/share/php/Sabre/CalDAV/Backend/AbstractBackend.php:119#01213.
Sabre\VObject\Reader::read()
/usr/share/php/Sabre/CalDAV/Backend/AbstractBackend.php:147#01214.
Sabre\VObject\Reader::readLine() /usr/share/php/Sabre/VObject/Reader.php:70
Mar 7 10:26:51 mail HORDE: Allowed memory size of 134217728 bytes
exhausted (tried to allocate 102776832 bytes) [pid 17819 on line 130 of
"/usr/share/php/Horde/ErrorHandler.php"]
----------
Jan, Mike, does this suggest anything to you?
Thanks for your time.
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/20190307/764ffd23/attachment.bin>
More information about the horde
mailing list