CommandManager run "setToolActive" error

There is already a rendered viewport. I execute setToolActive and report an error.

I found that the method “ renderingEngineCache.get (id)” returned the undefined. Who can help me? Is there a lack of configuration?