support icon indicating copy to clipboard operation
support copied to clipboard

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

Open poopmaster400 opened this issue 10 months ago • 10 comments

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 avatar Feb 17 '25 08:02 poopmaster400

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

laurensvalk avatar Feb 17 '25 09:02 laurensvalk

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

Yes it does, the same issue

poopmaster400 avatar Feb 17 '25 10:02 poopmaster400

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?

laurensvalk avatar Feb 17 '25 10:02 laurensvalk

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

poopmaster400 avatar Feb 17 '25 11:02 poopmaster400

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.

dlech avatar Feb 17 '25 18:02 dlech

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.

laurensvalk avatar Feb 17 '25 19:02 laurensvalk

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

poopmaster400 avatar Feb 17 '25 20:02 poopmaster400

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.

dlech avatar Feb 17 '25 21:02 dlech

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

poopmaster400 avatar Feb 18 '25 20:02 poopmaster400

Possibly related, but hard to say for sure.

Image

laurensvalk avatar Feb 25 '25 08:02 laurensvalk

Possibly related, but hard to say for sure.

Image

Well, for some reason it works now. I think it was only a temporary issue.

poopmaster400 avatar Mar 06 '25 20:03 poopmaster400