Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

robopro programs do not run simtimes in the FT GUI #289

Open
hypnotoad opened this issue Jul 23, 2023 · 5 comments
Open

robopro programs do not run simtimes in the FT GUI #289

hypnotoad opened this issue Jul 23, 2023 · 5 comments
Assignees

Comments

@hypnotoad
Copy link
Collaborator

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
Copy link
Collaborator Author

Working: test2.rpp.zip

@uffi63
Copy link

uffi63 commented Jul 23, 2023

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.

@hypnotoad hypnotoad self-assigned this Jul 25, 2023
@hypnotoad
Copy link
Collaborator Author

hypnotoad commented Jul 25, 2023

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
Copy link
Collaborator Author

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

@hypnotoad
Copy link
Collaborator Author

hypnotoad commented Jul 25, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants