Autoware 1.12.0 crashes as it's launched.
OS: Ubuntu 18.04
ROS Version: Melodic
CUDA Version: 10.0 (Not Used)
Qt version: 5.9.5
Build Type: From Source
I have followed the instructions from https://gitlab.com/autowarefoundation/autoware.ai/autoware/wikis/Source-Build to build from source.
And installed all required dependencies. Went with the build 1.12.0 and compiled without CUDA.
Here is the output from build process and there doesn't seem to be any issues with it apart from some warnings: https://gist.github.com/xmfcx/15ba41aa62c93e25ab2108a794c6d909
And followed the instructions from https://gitlab.com/autowarefoundation/autoware.ai/autoware/wikis/ROSBAG-Demo
cd autoware.ai
source install/setup.bash
roslaunch runtime_manager runtime_manager.launch
And some window comes and disappears immediately and this is the output:
mfc@mfc-P65:~/projects/autoware.ai$ roslaunch runtime_manager runtime_manager.launch
... logging to /home/mfc/.ros/log/d149ba46-e8e7-11e9-b3d8-00d861077e93/roslaunch-mfc-P65-15311.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://mfc-P65:45305/
SUMMARY
========
PARAMETERS
* /rosdistro: melodic
* /rosversion: 1.14.3
NODES
/
run (runtime_manager/run)
ROS_MASTER_URI=http://localhost:11311
process[run-1]: started with pid [15353]
sudo: no tty present and no askpass program specified
[run-1] process has finished cleanly
log file: /home/mfc/.ros/log/d149ba46-e8e7-11e9-b3d8-00d861077e93/run-1*.log
all processes on machine have died, roslaunch will exit
shutting down processing monitor...
... shutting down processing monitor complete
done
And instead if I run it with rosrun,
mfc@mfc-P65:~/projects/autoware.ai$ rosrun runtime_manager run
Process Manager
[sudo] password for mfc:
After entering the password, it instacrashes after showing a window for less than a second again.
There is no error report, I don't even know how to debug it since this autoware.ai/install/runtime_manager/share/runtime_manager/scripts/run
file is a bash script that runs other terminals or python scripts.
Asked by xmfcx on 2019-10-07 11:30:53 UTC
Answers
So, I ran rosrun runtime_manager runtime_manager_dialog.py
and it worked.
Then I thought, it should open another terminal but it isn't, so maybe it's about the terminal I am using.
I use xfce4-terminal with no modifications apart from using a color scheme natively.
In the autoware.ai/install/runtime_manager/share/runtime_manager/scripts/run
script here,
if [ $(which mate-terminal) ]; then
TERMINAL=mate-terminal
elif [ $(which xfce4-terminal) ]; then
TERMINAL=xfce4-terminal
elif [ $(which lxterminal) ]; then
TERMINAL=lxterminal
elif [ $(which konsole) ]; then
TERMINAL=konsole
OPTION_WORKING_DIR='--workdir'
OPTION_CORE_GEOMETRY=''
OPTION_RM_GEOMETRY=''
OPTION_PM_GEOMETRY=''
OPTION_COMMAND='-e'
OPTION_TITLE='-T'
fi
it is checking between various terminals so I started trying these terminals.
Tried xterm, lxterminal and still same response from running rosrun runtime_manager run
Then I tried the ugly mate-terminal and it just worked. Not sure why but I couldn't make it work with xfce4-terminal, lxterminal, xterm. But works with mate-terminal.
I won't install/try konsole because it is trying to install so many KDE related dependencies.
I would like to hear if it can work with xfce4-terminal too.
Asked by xmfcx on 2019-10-08 05:34:29 UTC
Comments
I have the same problem, same setup, and this solution works. I agree that this is likely an open bug with terminal compatibility.
Asked by Michael Davinroy on 2020-01-20 21:47:21 UTC
I used source install/local_setup.bash
instead of source install/setup.bash
and it worked.
Asked by MichaelWu666 on 2020-07-07 15:46:40 UTC
Comments
rosrun runtime_manager runtime_manager_dialog.py
What about this script?
Asked by kosuke_murakami on 2019-10-08 01:54:28 UTC
@kosuke_murakami it actually does work and I can run Autoware with that. Are there any limitations to run it with that script? Also why is it not running with the normal instructions?
Asked by xmfcx on 2019-10-08 05:14:56 UTC