question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] ROS launch can not load launch file that includes gazebo (program path 'PATH' is missing or invalid)

See original GitHub issue

System 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:

image

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

  1. Download the following example repository.
  2. Start the ROS: Gazebo launch (works) launch file that is found in the .vscode/launch.json file of the example_repository.
  3. See the errors that appear.

gazebo_problem

expected behaviour

Some weeks ago, the launch file would still launch.

Vscode developer tools log

image

Extra info

  • Bug is also present in the normal vscode version.
  • Setting export DISPLAY=:0.0 doesn’t solve the issue.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:30 (12 by maintainers)

github_iconTop GitHub Comments

3reactions
ooeyguicommented, Jan 16, 2022

@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.

3reactions
ooeyguicommented, Jul 15, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found