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

mandclu created an issue. See original summary.

  • mandclu committed 316e3a8 on 3.4.x
    Issue #3221364 by mandclu: Out of memory error when using Duration...
mandclu’s picture

Status: Active » Fixed

Merged in a fix for this, improving how the schema is defined, and removing unnecessary code from the duration formatter.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.