Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QT] Failed to create OpenGL context for format QSurfaceFormat #2614

Open
Roboticistprogrammer opened this issue Sep 6, 2024 · 5 comments
Open
Labels
bug Something isn't working

Comments

@Roboticistprogrammer
Copy link

Environment

  • OS Version: Ubuntu ionic
  • Source or binary build? Source Installation on Docker

Description

  • Expected behavior: I have successfully build the packages (although I have to admit it requires huge RAM, otherwise it doesn't work even if use --parallel-works 1 flag). I sourced my environment and run "gz sim shapes.sdf" to start gazebo.
  • Actual behavior: I get: [QT] Failed to create OpenGL context for format QSurfaceFormat

Steps to reproduce

1.Build the Pakcage.
2.Source the environment
3.gz sim shapes.sdf

Output

image

@Roboticistprogrammer Roboticistprogrammer added the bug Something isn't working label Sep 6, 2024
@Roboticistprogrammer
Copy link
Author

Couple of Updates:
Apparently docker can not access X11 running on the host machine:
image

As you can see I have X11 running on the host machine, I authorized connection but Docker can not connect, thus I get can't display error. any suggestion?

@Roboticistprogrammer
Copy link
Author

Note:
I have tried running my container with rocker, also use -v flag as follows:
image

and I got:
image

But still gazebo doesn't launch:

image

@iche033
Copy link
Contributor

iche033 commented Sep 6, 2024

can you try gz sim -v 4 --headless-rendering shapes.sdf and see if it makes any difference?

@Roboticistprogrammer
Copy link
Author

@iche033 Hi there, unfortunately I couldn't save my container while executing them with rocker, I am trying to have the most impact on this repo so I will continue on WSL, I will hop back on Docker after 13th and continue from here, just wanted to mention so it is not closed.

@azeey
Copy link
Contributor

azeey commented Sep 10, 2024

I'm going to transfer this issue to gz-sim since this repo is specifically for tutorial test cases, I.e, each issue should be about testing a tutorial or running a manual test of a Gazebo functionality. Specific problems with running gz sim should be discussed in a gz-sim issue.

@azeey azeey transferred this issue from gazebosim/gazebo_test_cases Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Inbox
Development

No branches or pull requests

3 participants