- Merge request !155fix: resume page region component tree rendering fiber when it is suspended in... β (Open) created by wotnak
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.
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.
None.
Active
1.0
β¦Β to be triaged
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.