-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
[Bug] Shutdown not working on TechnicHub #1438
Comments
Thanks for reporting! We've got a next beta released scheduled for this week, but I think this issue is a high priority one to fix directly after. |
This appears to be introduced in pybricks/pybricks-micropython@04fd2e7 |
Just for the record: The both scenario's also hit this problem on a technichub at
Not only the technichub though. Seen on movehub and cityhub. |
We have an old hack that shuts down the bluetooth process. When starting a new task after that in a cleanup routine such as added in 04fd2e7, the hub will never finish the task, which prevents the user program from stopping. We have several proper fixes in place now, and we are about to merge some updates that will make all Bluetooth task objects static, so we should remove this hack. Fixes pybricks/support#1438
Found the likely culprit! If this fix looks okay we can include it in this week's beta.
While technically true (the symptoms stated there), the above commit is in fact one part of a series of proper fixes that allow us to remove an old hack that I think it a root cause of various Bluetooth-related shutdown issues. |
We have an old hack that shuts down the bluetooth process. When starting a new task after that in a cleanup routine such as added in 04fd2e7, the hub will never finish the task, which prevents the user program from stopping. We have several proper fixes in place now, and we are about to merge some updates that will make all Bluetooth task objects static, so we should remove this hack. Fixes pybricks/support#1438
We have an old hack that shuts down the bluetooth process. When starting a new task after that in a cleanup routine such as added in 04fd2e7, the hub will never finish the task, which prevents the user program from stopping. We have several proper fixes in place now, and we are about to merge some updates that will make all Bluetooth task objects static, so we should remove this hack. Fixes pybricks/support#1438
Confirmed fixed on
First scenario stops the hub. |
Describe the bug
The hub is blinking blue very fast instead of shutting down. The problem appeared when updating my TechnicHub to the last Beta version:
('technichub', '3.4.0b1', 'v1.20.0-23-g6c633a8dd on 2024-02-01')
The previous version and Inventorhub do not have this problem. There are two ways to reproduce:
First way to reproduce
Second way to reproduce
run the program and long-press the button while it is running.
The text was updated successfully, but these errors were encountered: