osrf / rocker

A tool to run docker containers with overlays and convenient options for things like GUIs etc.
Apache License 2.0
576 stars 75 forks source link

OGRE EXCEPTION(3:RenderingAPIException) when launching rviz (when running ros:noetic-desktop-full-focal on MacOS) #128

Open alikureishy opened 3 years ago

alikureishy commented 3 years ago

Steps to reproduce (MacOS):

[ WARN] [1616168811.757498321]: OGRE EXCEPTION(3:RenderingAPIException): Unable to create a suitable GLXContext in GLXContext::GLXContext at /build/ogre-1.9-kiU5_5/ogre-1.9-1.9.0+dfsg1/RenderSystems/GL/src/GLX/OgreGLXContext.cpp (line 61)
rviz::RenderSystem: error creating render window: OGRE EXCEPTION(3:RenderingAPIException): Unable to create a suitable GLXContext in GLXContext::GLXContext at /build/ogre-1.9-kiU5_5/ogre-1.9-1.9.0+dfsg1/RenderSystems/GL/src/GLX/OgreGLXContext.cpp (line 61)
[ERROR] [1616168811.757576372]: Unable to create the rendering window after 100 tries.
[ INFO] [1616168811.757612634]: Stereo is NOT SUPPORTED
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_M_construct null not valid
Aborted
tfoote commented 3 years ago

We have only been developing and testing on Ubuntu.

You don't mention what your command line arguments are or what plugins are active.

There may be ways to get X11 to pass through. However I have not seen any documentation of using a GPU inside a containers on MacOS. A PR to improve support for either of these would be appreciated. But getting to rviz working in a container on MacOS is going to take a lot of work.