[bug] ROS launch can not load launch file that includes gazebo (program path 'PATH' is missing or invalid)
See original GitHub issueSystem info
Version: 1.58.0-insider Commit: 3e0c442a8ee9fdc037d627d70fe291f72af04cfd Date: 2021-06-16T05:18:57.982Z Electron: 12.0.11 Chrome: 89.0.4389.128 Node.js: 14.16.0 V8: 8.9.255.25-electron.0 OS: Linux x64 5.8.0-55-generic ROS VERSION: ROS 1 Noetic VSCODE-ROS VERSION:
what is the bug
This week I was not able to debug a ROS launch script anymore if it contained a launch script that loads the gzserver. Every time I try to launch such a file, it gives me the following error messages:
Further in the /gazebo_gui
console, it gives the following error message:
The program '/opt/ros/noetic/lib/gazebo_ros/gzserver' has exited with code 42 (0x0000002a).
Repro steps
- Download the following example repository.
- Start the
ROS: Gazebo launch (works)
launch file that is found in the.vscode/launch.json
file of the example_repository. - See the errors that appear.
expected behaviour
Some weeks ago, the launch file would still launch.
Vscode developer tools log
Extra info
- Bug is also present in the normal vscode version.
- Setting
export DISPLAY=:0.0
doesn’t solve the issue.
Issue Analytics
- State:
- Created 2 years ago
- Comments:30 (12 by maintainers)
Top Results From Across the Web
Reem Gazebo launch error - ROS Answers
Env: Ubuntu 12.04, ROS Hydro, Followed the instructions on Launching a REEM Gazebo simulation. Installation went fine, but met with error ...
Read more >Tutorial : Using roslaunch - Gazebo
Tutorial: Using roslaunch to start Gazebo, world files and URDF models. There are many ways to start Gazebo, open world models and spawn...
Read more >Known Issues — Omniverse Robotics documentation
If running Omniverse Isaac Sim headless connected via the remote client and you exit on shutdown the following error can occur, it can...
Read more >[Solved] OpenGL issues with Gazebo and VMWare
After installing ROS and Gazebo, and if you are starting your simulation launch file, you may get the following error in the terminal....
Read more >Gazebo cannot launch: Ubuntu 20.04 LTS - Stack Overflow
Which ROS distro are you using it with? How have you installed it? (Source or binary). If you have built it from source,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@KoganOleg Thanks!
@rickstaa For this specific bug, I’m working on a fix to improve detecting of bat/sh/bash/cmd files so that it doesn’t just fail out right. I hope to have that committed in a few days. Once that bug fix is committed, I’ll close this issue. I have a couple of blocking things like this going into the 0.8.0 release.
gzserver and gzclient are shell scripts. Our code detects python, but not shell scripts, so it treats it as a binary program.
I’m going to add some code to detect this case and just launch it.