Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Problem/Motivation
When switching to the Duration formatter, consistent out of memory errors were observed, especially when using Smart Date with the Date Augmenter API, but possibly without:
[27-Jun-2021 06:35:59 America/Toronto] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 262144 bytes) in /Users/martin/Sites/modules/web/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php on line 173
[27-Jun-2021 06:35:59 America/Toronto] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0
[27-Jun-2021 06:35:59 America/Toronto] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0
[27-Jun-2021 06:35:59 America/Toronto] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0
This is potentially related to #3210905: Smart Date with Duration in Layout builder causes endless loop since the errors are similar.
Comments
Comment #3
mandclu CreditAttribution: mandclu at Northern Commerce commentedMerged in a fix for this, improving how the schema is defined, and removing unnecessary code from the duration formatter.