I had no problems with testing on my system, but since some days it’s no more possible.
After facing an exception on starting autotest on my code I tried to go back for finding the root cause.
Now I’m running on current master (08b8a43ab583301b0f1de358d8a0273caf97e24b/14.June)
Linux Mint 20.4 (Ubuntu 20.04)
(Btw: Also sim_vehicle.py is not running, because it’s not connecting. Maybe a component is not running correctly.)
That’s the output of “./Tools/autotest/autotest.py test.Plane.MainFlight”: autotest_error.txt (4.7 KB)
Could an experienced developer have a look at it, please.
I have no idea where to dig deeper for finding the cause of that problem.
if sim_vehicle.py doesn’t work then you probably got an compilation issue.
Try to clean up you repo with waf clean or waf distclean .
Then watch for error on the xterm when using sim_vehicle.py
Ok so that is mavproxy log. What is needed it what happen in the other window that should open when using sim_vehicle.py !
If no other window open, install xterm :
The autotest failure is related to pexpect but don’t give a clue on what fails. With sim_vehicle.py, we see that the sitl binary fails to start as you don’t have anything into the xterm.
do you get something by launching SITL manually ? /home/willy/ardupilot/build/sitl/bin/arduplane -S --model plane --speedup 1 --defaults /home/willy/ardupilot/Tools/autotest/default_params/plane.parm -I0
It should print at least :
Setting SIM_SPEEDUP=1.000000
Starting sketch ‘ArduPlane’
Starting SITL input
Using Irlock at port : 9005
bind port 5760 for 0
Serial port 0 on TCP port 5760
Waiting for connection …
Then in another terminal you could connect mavproxy :
mavproxy.py --master=tcp:0.0.0.0:5760 --console
This is what sim_vehicle.py does, but doing manually should show you the full print strace
This is unexpected … unfortunately, I got no clue why it happens. I will need to ask some other dev. But normally your system is configured correctly. So either you got an issue with the toolchain and SITL end up compiled weirdly or you got some linux safety beeing overzealous.
In former years I used ICEs and SW-debuggers, but on ardupilot-project I’m not familiar with that.
Could you give me a helping hand to start SITL plane in a debugger to go through line by line?
@khancyr I’m very very sorry - while debugging I realized that I’m not on master, but on my own dev branch. After switching to master, all worked as it should. But after switching back to my dev branch that was not able to build because of an error ?!
Dont know what happened or what I’ve done wrong.
But via that way I learned much about separate start of SITL and debugging with VS Code
Thank you again Pierre