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

Failed to create an OpenGL context. GLXBadDrawable #1314

Open
devvaibhav455 opened this issue Dec 19, 2024 · 2 comments
Open

Failed to create an OpenGL context. GLXBadDrawable #1314

devvaibhav455 opened this issue Dec 19, 2024 · 2 comments

Comments

@devvaibhav455
Copy link

devvaibhav455 commented Dec 19, 2024

ROS2 humble on Nvidia Jetson Orin NX (arm64) with JP 6.0 / Ubuntu 22.04

I have a startup script that launches a ROS2 launch file. One of the executables is rviz with a configuration that I select. Sometimes, I don't see anything on the screen.

I launch rviz2 using below

rviz = ExecuteProcess(
        cmd=[
            'ros2', 'run', 'rviz2', 'rviz2',
            '-d', str(filepath_config_rviz),
            '--ros-args',
            '--remap', '/tf:=/my_namespace/tf',
            '--remap', '/tf_static:=/my_namespace/tf_static',
        ],
        output='screen'
    )

Below is a screenshot of the problem.

rviz_black_screen
image

[ros2-1] [INFO] [1734618134.390282224] [rviz2]: Stereo is NOT SUPPORTED
[ros2-1] [INFO] [1734618134.390545568] [rviz2]: OpenGL version: 4.6 (GLSL 4.6)
[ros2-1] [INFO] [1734618134.445473184] [rviz2]: Stereo is NOT SUPPORTED
[ros2-1] [ERROR] [1734618135.603434496] [rviz2]: Failed to create an OpenGL context. GLXBadDrawable
[ros2-1] [INFO] [1734618135.605991584] [rviz2]: Stereo is NOT SUPPORTED
[ros2-1] [ERROR] [1734618135.731887616] [rviz2]: Failed to create an OpenGL context. GLXBadDrawable
[ros2-1] [INFO] [1734618135.732704128] [rviz2]: Stereo is NOT SUPPORTED

A pass case:
image

I think this is the same as #908 but in my case, I don't face it in every boot.

@mosfet80
Copy link
Contributor

..try this patch #1305

@devvaibhav455
Copy link
Author

@mosfet80 Thanks for the quick patch. Should I just upgrade to https://packages.ubuntu.com/oracular/libogre-1.12-dev?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants