Drupal 8 Menu Tree issue in my contrib theme possibly because of "Convert menu tree building to a service."
Does https://drupal.org/node/2226481 help you?

This should be something like

\Drupal::service('menu_link.tree')-&gt;renderMenu($main_link_source);