Infinite loop when rendering page regions

Created on 30 September 2025, 21 days ago

Overview

This currently happens only when using the `11.x` dev branch of Drupal core.

With the recently committed core change πŸ“Œ Entity lazy multiple front loading Active that makes use of fibers in the EntityStorageBase, when using canvas page regions, the site hangs on load.

This is caused by how fibers are used in CanvasPageVariant when rendering the component tree of a canvas page region to allow for special handling of 'title' and 'messages' blocks.
Before the core change, component tree rendering fiber was suspended only when processing those two blocks and resumed when executing special cases for those blocks. But now the fiber is also suspended when loading entities, for example components used in the page region, and the while loop that handles suspended fiber doesn't correctly handle the situation when the fiber is suspended in cases other than for those two special blocks.

It looks like originally LogicException was supposed to be thrown in such a case, but it is only returned in the match expression instead of being thrown.

Proposed resolution

Add support for handling fiber suspension during rendering of the component tree of page regions in cases other than for the two special blocks.

The easiest way to fix it would probably be to replace the default case in the match expression that currently returns a LogicException object with resuming the fiber instead. As far as I can see, it resolves the problem and doesn't affect any other functionality.

User interface changes

None.

πŸ› Bug report
Status

Active

Version

1.0

Component

… to be triaged

Created by

πŸ‡΅πŸ‡±Poland wotnak

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

Merge Requests

Comments & Activities

Not all content is available!

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

Production build 0.71.5 2024