ftcommunity-TXT icon indicating copy to clipboard operation
ftcommunity-TXT copied to clipboard

robopro programs do not run simtimes in the FT GUI

Open hypnotoad opened this issue 2 years ago • 5 comments

it is reported that some rpp programs do not run in offline mode (online is working): https://forum.ftcommunity.de/viewtopic.php?f=33&t=8086&p=62953#p62953.

hypnotoad avatar Jul 23 '23 08:07 hypnotoad

Working: test2.rpp.zip

hypnotoad avatar Jul 23 '23 08:07 hypnotoad

The RoboPro program FTS.rpp below is only working before FT GUI is left. After FT GUI was left and restarted or after a new boot of the CFW and start of FT GUI the program cannot be executed anymore correctly (corrected version July 24th):

FTS.zip

In case another RoboPro Program is selected, loaded and executed (after new start of FT GUI) this works perfectly and afterwords also FTS.rpp is executed properly again.

uffi63 avatar Jul 23 '23 15:07 uffi63

I guess this will be a difficult problem. I could reproduce the problem with the following commands:

ssh txt
su -
pgrep xinit | xargs kill
chroot /rom/ /bin/su - ROBOPro -c "strace -f -e open ./TxtControlMain /dev/ttyO2 65000"

To stop the TxtControlMain, one can use another terminal (and then use the last above command to start it again):

su -
pgrep -u ROBOPro | xargs kill -9

When the file is loaded from flash, there is a segmentation fault.

The strace log indicates it is sent to a thread which does something with the sound system (1539 in nok.txt and 1573 in ok.txt. Permissions of /dev/video0 and the /dev/snd files seem all ok.

However, I learned to be carful to focus on particular threads. Another idea is that it crashes in the video thread between "status A" and "status B".

hypnotoad avatar Jul 25 '23 21:07 hypnotoad

test2.rpp (which did not crash) does not mention video initialization: test2.txt

hypnotoad avatar Jul 25 '23 21:07 hypnotoad

I would continue to test which robopro component causes the behaviour. When I add a camera to test2.rpp, it still works test3.rpp.zip. I don't see anything special in the log files: test3.txt

hypnotoad avatar Jul 25 '23 21:07 hypnotoad