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] Run button greyed out on "code.pybricks.com" #2068

Open
poopmaster400 opened this issue Feb 17, 2025 · 10 comments
Open

[Bug] Run button greyed out on "code.pybricks.com" #2068

poopmaster400 opened this issue Feb 17, 2025 · 10 comments
Labels
bug Something isn't working software: pybricks-code Issues with https://code.pybricks.com application

Comments

@poopmaster400
Copy link

The Run button is greyed out when a hub is connected with the new firmware and wont let me run any code at all.

On reproducing the problem i have no clue, i still cant even get it back to normal

Image

The code visible is the code i ran before it broke, i dont know or think it is the problem

@poopmaster400 poopmaster400 added the triage Issues that have not been triaged yet label Feb 17, 2025
@poopmaster400 poopmaster400 changed the title [Bug] Run button greyed out [Bug] Run button greyed out on "code.pybricks.com" Feb 17, 2025
@laurensvalk
Copy link
Member

Does this persist if you close the browser, and try again?

@poopmaster400
Copy link
Author

Does this persist if you close the browser, and try again?

Yes it does, the same issue

@laurensvalk
Copy link
Member

Was it working before? Does it make a difference if you try it with https://beta.pybricks.com/, installing the firmware from there as well?

@poopmaster400
Copy link
Author

Was it working before? Does it make a difference if you try it with https://beta.pybricks.com/, installing the firmware from there as well?

It was working before and i just tested with a linux device. Pairing with the same hub works just fine.

Running on beta firmware results in the same issue.
To mention i am doing this on a school controlled Chromebook, but since it was working fine i dont know if that is the issue

@dlech
Copy link
Member

dlech commented Feb 17, 2025

Is it possible that there is a program running on the hub?

The run button state depends on two things. A) that there is an active file open and B) that the hub state is "idle". The "idle" state depends on if we think some command that starts or stops a program is in progress or not in the IDE or if the hub tells us a user program is running.

I have a Chromebook I could try later to see if that has something to do with it.

@laurensvalk
Copy link
Member

To be clear, does this happen right after connecting, or right after clicking the play button to start it?

Is it possible that there is a program running on the hub?

The stop button should be enabled in that case.

What could be happening is that the hub is not sending status messages or Pybricks Code is not receiving them. I've also seen this sometimes after starting a program, but usually not consistently.

@dlech dlech added bug Something isn't working software: pybricks-code Issues with https://code.pybricks.com application and removed triage Issues that have not been triaged yet labels Feb 17, 2025
@poopmaster400
Copy link
Author

To be clear, does this happen right after connecting, or right after clicking the play button to start it?

Is it possible that there is a program running on the hub?

The stop button should be enabled in that case.

What could be happening is that the hub is not sending status messages or Pybricks Code is not receiving them. I've also seen this sometimes after starting a program, but usually not consistently.

Sorry for late reply. Yes it happens right after connecting and i have reinstalled the official firmware and the pybricks firmware many times so that would rule an active program out. right?

I have got no clue as to why this is happening. Well i need to sleep, i can maybe reply tomorrow sometime

@dlech
Copy link
Member

dlech commented Feb 17, 2025

What could be happening is that the hub is not sending status messages or Pybricks Code is not receiving them.

I think this is the mostly likely reason. It could be that something changed in the ChromeOS Bluetooth stack that causes BLE notifications to not work.

@poopmaster400
Copy link
Author

What could be happening is that the hub is not sending status messages or Pybricks Code is not receiving them.

I think this is the mostly likely reason. It could be that something changed in the ChromeOS Bluetooth stack that causes BLE notifications to not work.

Maybe, and fixing that would be hard i assume

@laurensvalk
Copy link
Member

Possibly related, but hard to say for sure.

Image

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
Projects
None yet
Development

No branches or pull requests

3 participants