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

ports/stm32: Fix print overload crash on stop. #127

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

kwagyeman
Copy link
Member

Because the new VM abort feature doesn't instantly kill running C code anymore on stop... a script that's generating a large amount of print output will continue to fill the CDC buffers even after the script has been stopped and the USB IRQ is turned off.

When this happens usbd_cdc_tx_always() will get stuck for 500ms a character at a time time from the print output. While the camera has not technically crashed... it will fall off the USB bus and generally become unresponsive.

This fix causes the loop to exit using the same conditions already built-into the code right now.

@kwagyeman kwagyeman added the bug label Jul 31, 2024
@iabdalkader iabdalkader merged commit 2f3666b into openmv:openmv-1.23 Jul 31, 2024
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants