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

[Bug] Unresponsive stop button after idle for a few minutes #307

Closed
laurensvalk opened this issue Apr 14, 2021 · 3 comments
Closed

[Bug] Unresponsive stop button after idle for a few minutes #307

laurensvalk opened this issue Apr 14, 2021 · 3 comments
Labels
bug Something isn't working software: pybricks-code Issues with https://code.pybricks.com application software: pybricks-micropython Issues with Pybricks MicroPython firmware (or EV3 runtime)

Comments

@laurensvalk
Copy link
Member

laurensvalk commented Apr 14, 2021

Describe the bug

I was working on this demo. Usually, the hub and/or Pybricks Code got stuck, unable to stop, if I left it on for a few minutes while working on the article.

I think Pybricks Code recovered after manually shutting down the hub with a long button press, so no hard refresh was required.

To reproduce
Run this demo. Press a few keys drive around. Then forget about the robot while you leave it running.

Drink a coffee and come back. Find Pybricks Code and the hub unresponsive.

Pybricks Code v1.0.0-beta.14

Version 89.0.4389.90 (Official Build) Built on Ubuntu , running on Ubuntu 18.04 (64-bit)

Expected behavior
Keep working after ☕

On the Pybricks Code side, I expected something to happen when I clicked stop, such as an error or disconnect.

Screenshots
image

@laurensvalk laurensvalk added bug Something isn't working software: pybricks-code Issues with https://code.pybricks.com application software: pybricks-micropython Issues with Pybricks MicroPython firmware (or EV3 runtime) labels Apr 14, 2021
@dlech
Copy link
Member

dlech commented Apr 14, 2021

I have a feeling that this is the same sort of firmware problem as #304 and/or #232.

From the Pybricks Code side, there is currently nothing in the Pybricks protocol that acknowledges the receipt of a command. And it is possible for user programs to catch a SystemExit exception, so Pybricks Code shouldn't necessarily expect for a program to actually stop after the stop button is pressed.

@laurensvalk
Copy link
Member Author

I have a feeling that this is the same sort of firmware problem

Same here, but I thought I'd keep reporting in order to get a minimal / reproducable case.

@laurensvalk
Copy link
Member Author

This should be fixed by #306.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working software: pybricks-code Issues with https://code.pybricks.com application software: pybricks-micropython Issues with Pybricks MicroPython firmware (or EV3 runtime)
Projects
None yet
Development

No branches or pull requests

2 participants