MOV-AI / movai-flow

MOV.AI Flow™ - The IDE that brings visualization and structure to ROS
Other
121 stars 15 forks source link

Gazebo execution error #237

Open gmchoi96 opened 9 months ago

gmchoi96 commented 9 months ago

Have you checked our docs before proceeding?

Issue Description

When running Gazebo, the following error occurs:

[GUI] [Err] [Application.cc:757] [QT] Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 1, profile QSurfaceFormat::OpenGLContextProfile(NoProfile))

The nvidia driver was also installed, and rviz and mov.ai are running.

Steps to Reproduce

  1. Thinking it was a temporary error, I tried both installation methods: optionA (source) & optionB (debian).
  2. I tried both host network mode and isolated network mode.
  3. However, gazebo does not run and an error appears.

Actual Behaviour

When entering the command movavi-flow-simulator, gazebo should run normally. I think it works. Generally gazebo works fine, not mov.ai

Expected Behaviour

It seems that driver-related problems occur when running gazebo through docker. This is because there is no driver problem when running Gazebo normally, and I think the problem is the same as the Gazebo problem that occurred when I installed the nvidia driver incorrectly before.

Screenshots/GIFs

image image image

Versions

image

Possible workarounds

Additional Details

guide-bot[bot] commented 9 months ago

Thanks for opening this Issue! We need you to:

  1. Fill out the description.

    Action: Edit description and replace <!- ... --> with actual values.

MithunKinarullathil commented 9 months ago

@gmchoi96 Thank you for the report. We are looking into it.

MithunKinarullathil commented 9 months ago

@gmchoi96 Can you try to do this command (xhost +local:docker >/dev/null 2>&1 ) on the terminal and launch the simulator using movai-flow-simulator command please?

AlexFernandes-MOVAI commented 9 months ago

@gmchoi96 I think your MOVAI Flow installation is all good, we have positive traces showing NVIDIA GPU card found, NVIDIA Container Toolkit found and the container itself is starting so, everything seems to be well detected and working at the driver level at this step.

However, if you have done and redone the installation of the drivers after starting MOVAI Flow, I would recommend you to reboot your host (yes only way to fix some issues about lib and drivers mismatch), recreate the containers with movai-flow-reset and then follow the steps of @MithunKinarullathil:

xhost +local:docker
movai-flow-launch
movai-flow-simulator

Finally, note that you can also have hit this issue or similar where CUDA, libmesa and nvidia-drivers are conflicting and prevent QT and OpenGL to work correctly...

gmchoi96 commented 9 months ago

@MithunKinarullathil @AlexFernandes-MOVAI Thanks for replying

Unfortunately, it didn't work out the way you suggested.

  1. movai-flow-reset
  2. xhost +local:docker >/dev/null 2>&1
  3. movai-flow-launch
  4. movai-flow-simulator

the error was the same

issue About the given link This is a newly installed driver that also removed the nvidia driver provided by default in Ubuntu.

additionally Is there any need to modify the docker_compose.yml file?

I saw a post saying it was solved by editing the file... but I couldn't try it because the process wasn't detailed.

MithunKinarullathil commented 9 months ago

@MithunKinarullathil @AlexFernandes-MOVAI Thanks for replying

Unfortunately, it didn't work out the way you suggested.

  1. movai-flow-reset
  2. xhost +local:docker >/dev/null 2>&1
  3. movai-flow-launch
  4. movai-flow-simulator

the error was the same

issue About the given link This is a newly installed driver that also removed the nvidia driver provided by default in Ubuntu.

additionally Is there any need to modify the docker_compose.yml file?

No, there isn't. We tested in several PCs and it worked without any modifications.

I saw a post saying it was solved by editing the file... but I couldn't try it because the process wasn't detailed.

If you could provide the link that would be helpful. We currently are not able to figure out the issue. If you have solved the issue, please feel free to open a PR.