Repository navigation
Prefer GLFW X11 backend when no Wayland display is set (cherry-pick #11) - #12
Merged
lgulich merged 1 commit intoOct 7, 2026
Merged
Conversation
GLFW >= 3.4 built with both Wayland and X11 probes Wayland first when XDG_SESSION_TYPE is unset, so inside Docker libwayland prints "error: XDG_RUNTIME_DIR is invalid or not set in the environment." before GLFW falls back to X11. Hint the X11 platform before every glfwInit() (viewer and camera plugin, which can each carry their own statically linked GLFW) when WAYLAND_DISPLAY is unset. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 0c75738)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Cherry-pick of #11 (merged to
main) ontoimpedence-control-support, the branch Isaac ROS pins. Only conflict was include order inmujoco_simulation.cpp(kept bothglfw_platform.hppandrender_loop_exit.hpp).See #11 for root cause (GLFW 3.4 probes Wayland first when
XDG_SESSION_TYPEis unset; libwayland printsXDG_RUNTIME_DIR is invalid or not setinside Docker).Evidence
Isaac
mainBazel build overridingmujoco_ros2_controlwith this branch,unitree_g1_controller_manager.launch.py hardware_type:=mujoco initial_controller_group:=agile_velocity, env withoutXDG_RUNTIME_DIR/XDG_SESSION_TYPE/WAYLAND_DISPLAY:XDG_RUNTIME_DIR is invalid→2After (this branch): →
0; controllers switch successfully.//ros_ws/src/isaac_ros_robots/unitree_g1/unitree_g1_bringup:test_agile_velocity_ros2_controlPASSED; all//ros_ws/src/isaac_ros_robots/...and mujoco_ros2_control deb targets build.Merge Danger
Door: two-way
Blast Radius: small
Only GLFW platform selection when
WAYLAND_DISPLAYis unset.🤖 Generated with Claude Code