Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I cannot flush all caches on the /admin/settings/performance page anymore -- all memory is exhausted by advagg_css_compress/parse.inc, even if I increase the memory limit to extreme sizes:
[Sun Feb 27 22:29:38 2011] [error] PHP Fatal error: Allowed memory size of 167772160 bytes exhausted (tried to allocate 228 bytes) in /MYPATH/sites/all/modules/advagg/advagg_css_compress/parse.inc on line 785, referer: https://MYSITE/admin/settings/performance
[Sun Feb 27 22:36:20 2011] [error] PHP Fatal error: Allowed memory size of 199229440 bytes exhausted (tried to allocate 16 bytes) in /MYPATH/sites/all/modules/advagg/advagg_css_compress/parse.inc on line 977, referer: https://MYSITE/admin/settings/performance
Comment | File | Size | Author |
---|---|---|---|
#9 | advagg-1075238-9.patch | 4.07 KB | mikeytown2 |
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedThis is an issue with the csstidy lib. Looks like I need to test for compressibility before attempting; like I do with jsmin+. Or it could be leaking memory... I'm going to guess memory leaks.
Comment #2
Vacilando CreditAttribution: Vacilando commentedGot the latest dev now and ran /update.php. The process broke and finished with this hard error on the screen:
Fatal error: Allowed memory size of 167772160 bytes exhausted (tried to allocate 16 bytes) in /MYPATH/sites/all/modules/advagg/advagg_css_compress/parse.inc on line 375
Comment #3
mikeytown2 CreditAttribution: mikeytown2 commentedDisable the css compression for now. On my test file it only shaved 1k off of a 200k file.
Comment #4
Vacilando CreditAttribution: Vacilando commentedCorrection: I got confused by the new package folder naming etc. so that what I put above was an error generated from an earlier dev. The latest dev however fails the same way, only with a different line nr:
Fatal error: Allowed memory size of 167772160 bytes exhausted (tried to allocate 125609 bytes) in /MYPATH/sites/all/modules/advagg/advagg_css_compress/output.inc on line 198
Comment #5
mikeytown2 CreditAttribution: mikeytown2 commentedComment #6
mikeytown2 CreditAttribution: mikeytown2 commentedNeed to see if the updated lib leaks memory
https://github.com/Cerdic/CSSTidy
Comment #7
Vacilando CreditAttribution: Vacilando commentedOK, I had to switch off the "Compress CSS" module because of the fatal memory leaks when running system_cron, update.php, performance page cache flush, advagg cache flush, etc. With the sub-module switched off everything works. I am willing to switch it on and test if there's a likely solution, of course -- please update this thread.
Comment #8
mikeytown2 CreditAttribution: mikeytown2 commented#1082598: Use BatchAPI for the Rebuild and flush options on the config page will workaround this issue. It's not the ideal fix but this should prevent PHP from bombing out.
Comment #9
mikeytown2 CreditAttribution: mikeytown2 commentedThis issue should now be worked around with this patch that has been committed.
Comment #10
Vacilando CreditAttribution: Vacilando commentedIt seems these errors have indeed gone. I'll reopen in case they manifest again.