Memory leak with layout builder

Created on 26 September 2022, about 2 years ago
Updated 19 January 2023, almost 2 years ago

Problem/Motivation

When using "Pattern (one for all)" formatter with Layout Builder, the formatter settings doesn't show up, and the PHP memory use become crazy, until it reaches the memory limit.

By the way, "Pattern (one for each)" is not available in the formatter selection.

Steps to reproduce

  1. Open a layout builder edit page
  2. Add a field block in a layout region
  3. Select "Pattern (one for all)" field formatter

Results: no ui_patterns form

Proposed resolution

It seems this issue may come from Drupal\field_formatter\Plugin\Field\FieldFormatter\FieldWrapperBase (introduced in 2.X branch):

There is something about some wrapper added by layout builder, and an infinite loop with variable passed by reference and function nesting.

🐛 Bug report
Status

Closed: won't fix

Version

2.0

Component

Code

Created by

🇫🇷France pdureau Paris

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Status changed to Closed: won't fix almost 2 years ago
Production build 0.71.5 2024