Closed andermi closed 1 year ago
For me this is a little too good at quitting, see below for what it's doing, without me hitting Ctrl-C...
[mbari_wec_batch-1] [ruby $(which gz) sim-17] #10 Object "/home/hamilton/mbari_wec_ws/install/buoy_gazebo/lib/libNoOpController.so", at 0x7f508022336b, in void gnu_cxx::new_allocator
A crash in the noop? That's.... different
I can't reproduce your crash... could you try sudo apt upgrade
, sudo apt dist-upgrade
, reboot, rebuild? Also, ensure you're on main for mbari_wec_utils and make sure you've checked out commit 7c62a1c
in ros_gz: git checkout 7c62a1c
Hmm, I checked those items but problems persist, we may have to look at this together...
Is this the only branch that fails for you?
And just checking all the boxes, did you do an update before the upgrade (can throw a dist-upgrade in there for good measure too)?
$ sudo apt update
$ sudo apt upgrade
$ sudo apt dist-upgrade
$ sudo reboot
I can be in the office this afternoon, if you are available.
@quarkytale can you see if you get the same crash as @hamilton8415 ?
Tried this branch on docker with other repos updated and ros_gz
on 7c62a1c
, and ran the batch launch file. Apart from sim_pblog failing with:
[mbari_wec_batch-1] [sim_pblog-14] from tf_transformations import euler_from_quaternion
[mbari_wec_batch-1] [sim_pblog-14] ModuleNotFoundError: No module named 'tf_transformations'
[mbari_wec_batch-1] [ERROR] [sim_pblog-14]: process has died [pid 5957, exit code 1, cmd '/home/developer/mbari_wec_ws/install/sim_pblog/lib/sim_pblog/sim_pblog --loghome batch_results_20230607113627 --logdir results_run_2_20230607113709/pblog --ros-args -r __node:=sim_pblog --params-file /home/developer/mbari_wec_ws/install/sim_pblog/share/sim_pblog/config/sim_pblog.yaml'].
(which is weird all rosdeps are installed)
I am not getting any crashes with the batch run, sim run 33 and still counting
[mbari_wec_batch-1] Sim run [33] for 5.0 seconds: door state='closed', scale factor=0.5, battery state=0.5, mean piston position=0.9, IncidentWaveSpectrumType=Bretschneider;Hs:3.0;Tp:14.0
@quarkytale @hamilton8415 I merged this into my other PR #150 and have some more fixes there. Please try that one
Should now be able to
control-c
once when batching and have the sim exit gracefully!