Skip to content

Troubleshooting

Search this page for the text of your error (Ctrl-F). If it isn’t here, see Asking for help.

pixi isn’t on your PATH. Run this, then open a new terminal:

Terminal window
echo 'export PATH="$HOME/.pixi/bin:$PATH"' >> ~/.bashrc

You are in a plain terminal. ros2 only exists inside the pixi environment:

Terminal window
cd ~/avbotz/thalassic
pixi shell
Package 'sub_bringup' not found: "package 'sub_bringup' not found, searching: [...]"

The workspace isn’t built: run pixi run build. If you have just built it inside a pixi shell, exit that shell and open it again.

  1. Read the first error, not the last. Scroll up to the first line containing error:; later errors are often caused by it. Ignore warnings.
  2. Did you just pull? Run the update steps. This fixes most build failures after a pull.
  3. Is a package in a submodule failing, or a folder empty? Run git submodule update --init --recursive.
  4. Is the error in a file you didn’t change? Try a clean build: pixi run clean, then pixi run build.
  5. Did it run out of memory? If the build dies with Killed, or your computer freezes, build with fewer jobs at once: pixi run build --parallel-workers 1.
  6. Did you run out of disk space? Check with df -h ~.

The whole log for one package is in log/latest_build/<package>/stdout_stderr.log.

Check whether it needed a rebuild. C++ always does.

task 'up' received more arguments than expected
file 'seed:=42_launch.py' was not found

You left out the --. Launch arguments have to come after it:

Terminal window
pixi run up -- seed:=42

The window doesn’t open, or it crashes straight away

Section titled “The window doesn’t open, or it crashes straight away”

The simulator’s window needs OpenGL 4.3. Check what your computer has:

Terminal window
sudo apt install mesa-utils
glxinfo -B | grep "core profile version"

If that’s below 4.3, or you are in a virtual machine, run with no window. Everything but the cameras still works:

Terminal window
pixi run up -- headless:=true

A few at startup are normal. If they keep coming, your computer is overloaded: close other programs and lower the simulator’s load:

Terminal window
pixi run up -- rendering_quality:=low window_width:=800 window_height:=450

Or, if you don’t need the cameras, use headless:=true.

Messages that look like errors but aren’t

Section titled “Messages that look like errors but aren’t”

These appear on normal runs:

Message What it is
Sub is killed, waiting... The mission waiting for the kill switch to release. This takes about 6 seconds
Texture has 1 channels while expected 3 channels! Harmless
No timestamp set for diagnostic message Harmless
dropped a frame, while shutting down Harmless
process has died [... exit code -6 ...], while shutting down The simulator doesn’t exit tidily

A run hangs or acts strangely after an earlier one

Section titled “A run hangs or acts strangely after an earlier one”

The earlier run may not have shut down fully. Clear it:

Terminal window
pixi run reset

If the simulator is still going after that, pkill -f stonefish_simulator stops it.

Work through these in order, in a pixi shell:

  1. Is it armed? Run ros2 topic echo --once /marlin_v3/control/armed. If false, the kill switch is engaged or a sensor is missing; sub_control’s messages in the terminal say what it’s waiting for. Arming takes about 12 seconds after startup.
  2. Was your command accepted? Run ros2 topic echo --once --field command_rejected /marlin_v3/control/error. If it’s true, the terminal running the simulator says why.
  3. Is the topic right? It needs the /marlin_v3/ at the start. Compare with ros2 topic list.
  4. Is the mode right? A mode of 0 means “leave this axis alone”, whatever the target says. See Send your first command.

Waiting for at least 1 matching subscription(s)... that never ends

Section titled “Waiting for at least 1 matching subscription(s)... that never ends”

Once or twice is normal. If it goes on, nothing is listening on that topic: either the simulator isn’t running, or the topic name is wrong.

ros2 topic list only shows /parameter_events and /rosout

Section titled “ros2 topic list only shows /parameter_events and /rosout”

Your terminal can’t see the stack. Check these:

  1. Is the stack running, and has it finished starting?
  2. Did you use pixi shell in this terminal, from the thalassic folder?
  3. Do both terminals have the same ROS_DOMAIN_ID and ROS_AUTOMATIC_DISCOVERY_RANGE? Check with env | grep ROS.

If that all looks fine, run ros2 daemon stop and try again. If it still fails, stop the stack, then run pixi run reset.

An error mentioning rmw_create_node, or nodes that stop finding each other after a crash

Section titled “An error mentioning rmw_create_node, or nodes that stop finding each other after a crash”

A crash left stale files behind. Run pixi run reset.

Failed to load mission ...: a port with name [...] is found in the XML

Section titled “Failed to load mission ...: a port with name [...] is found in the XML”

The step has no setting by that name, probably a typo; the message gives the step and the line. Check it against the list of steps.

Mission file '...' does not exist. Available missions:

Section titled “Mission file '...' does not exist. Available missions:”

Check the spelling. A name is looked up in the installed missions. For a file of your own, give the full path, with $HOME rather than ~, which doesn’t work in this position: mission:=$HOME/avbotz/playground/my_mission.xml. If you have just added a file to resources/missions/, build sub_mission so it can be found.

The move didn’t finish in time: the target is too far to reach before the timeout, or the robot is stuck on a prop. error xyz says how far it still had to go, and the simulator’s window shows where it is.

For example, prelim times out on its way back from the default dock (course:=D), about 2.3 m short of its target, but it finishes from course:=A.

This is expected in the simulator: the gate model doesn’t detect much there. To test mission logic, use a hard_coded_* mission.

  1. Is a model loaded? Nothing is detected until one is: see Each task has its own network.
  2. Are you using headless:=true? That has no cameras.
  3. Is it the simulator? Real-world models don’t do well on simulated images.

Download the models with pixi run fetch-weights.

  • Is the stack running? foxglove_bridge starts along with it.
  • Is the address exactly ws://localhost:8765?
  • Is it an old run that has hung? Run pixi run reset, then start it again.

The panels are missing, or it says it can’t find them

Section titled “The panels are missing, or it says it can’t find them”

Install the extensions, then restart Foxglove.

Click the 6-DOF Teleop panel first: it only listens while it has focus. Its status line says if the robot is killed or not armed.

A formatting check failed. Format, then commit again:

Terminal window
pixi run format
git add -u
git commit

pixi run errors when committing, about a missing environment

Section titled “pixi run errors when committing, about a missing environment”

The hooks need the environment to exist. Run pixi install.

Permission denied (publickey), or an error about authentication when pushing

Section titled “Permission denied (publickey), or an error about authentication when pushing”

Your SSH key isn’t set up, or you cloned with an https:// address. See Before you start.

You may not be in the avbotz GitHub organization yet. Ask a lead to add you.

If you have been stuck for about 30 minutes, ask. Include:

  1. What you were trying to do.
  2. The exact command you ran.
  3. The exact error, as text. Paste it, not a photo of the screen, with the lines before it.
  4. What you already tried.
I'm trying to run my mission from the first-mission tutorial.
I ran: pixi run up -- mission:=~/avbotz/playground/my_first_mission.xml
I get: [mission-4] [ERROR] ... Mission file '...' does not exist.
I've checked that the file is there with ls.

When you solve something that isn’t on this page, add it here.