lsa-pucrs / donnie-assistive-robot-sw

Donnie's software (Arduino Firmware, Player Drivers, Stage simulation models, RPi software)
http://donnie-manual.readthedocs.io
GNU General Public License v3.0
6 stars 0 forks source link

donnie_player command crashes randomly on startup #110

Closed rgmaidana closed 6 years ago

rgmaidana commented 6 years ago

Running "donnie_player" with installation from devel branch randomly crashes on Stage start up. Output on the terminal is:

$ donnie_player Executando Donnie software no diretório /opt/donnie/test/stage [1] 2676 [2] 2684 [1]- Done xterm -e "player ${DONNIE_EXEC_PATH}/server_donnie.cfg &> /dev/null" [2]+ Done xterm -e "${DONNIE_PATH}/bin/alerts &> /dev/null"

paulasaicosque commented 6 years ago

screenshot from 2018-04-03 11 50 06

amamory commented 6 years ago

I have a theory that this bug is related to the OS distribution. I use Lubuntu 14.04 in a VM and it almost never crashes. The sound also works flawless. Perhaps this bug appers in Ubuntu (Unity) and Ubuntu Mate.

amamory commented 6 years ago

I realised the bug was related to Stage, not to Player. Then I started to scale down the example, using a simplified Donnie Stage model. I also simulated the original Pionner model used in the simple.cfg example distributed with Player/Stage. I tried to mix Donnie and Pionner models to figure out where was the defective part. It turns out that Donnie model did not have the command bellow in the donnie.world file.

# set the multiple of real time that Stage should try to achieve. Default is 1. # set to 0 to go as fast as possible. speedup 0

Without this line, Stage crashes when a client connects. I also commented the same line in the Pioneer example and Stage also crashed during startup.

Bug closed ! finally !