I have been developing a few websites using D8 over the past few months. An error message I got a lot was this one:
Twig_Error_Runtime: An exception has been thrown during the rendering of a template ("A stray drupal_render() invocation with $is_root_call = TRUE is causing bubbling of attached assets to break.") in "themes/example/templates/menu.html.twig" at line 36. in Twig_Template->displayWithErrorHandling() (line 328 of core/vendor/twig/twig/lib/Twig/Template.php).
In this case I tried to use an Object of
Drupal\Core\Template\Attribute as the
$attributes paramenter of the Drupal Twig Extension
The message doesn't really tell me what went wrong. I think this message appears in a lot of different cases. Can we improve it somehow?