[Bug] web app looses connection to hub, freezes, when trying to run trivial block program
Describe the bug
Some time ago this worked on this tablet (android tablet, chromium-based default browser), just haven't used pybricks in a while. Refreshed the page to ensure latest, about says v3.5.0 (Pybricks Code v2.5.1)
To reproduce Steps to reproduce the behavior:
- open code.pybricks.com
- re-install pybricks fw just in case
- start hub (blue light is
flash-flash-pausefor pairing) - connect bluetooth (blue light goes solid)
- enter repl mode, blue light fadding in/out,
dir()outputs reasonable stuff, can runhello_world()function - press stop button on web app. Blue light goes back to solid.
- Repeat # 5 & 6 for good measure to ensure things seem to still be working after exiting repl --> same result
- press run (
playsym) on UI to run the program below - a second or so later, the hub light goes back to
flash-flash-pausepairing. - app seems still responsive, but if I click around (say
settingson left bar, then back tofileson left bar) the app screen (well, web page within browser) goes blank white, and never comes back. Browser itself is still functioning normally. - refresh the code.pybricks page; page loads, I can connect again to hub & start over; same result.
Expected behavior runs the program
I tried a few other permutations of trivial block programs.
Screenshots
We had some report a similar problem (white screen in Pybricks Code) via email recently. I sounds like we might have an issue with the web server not serving the .wasm files that are needed to compile the code when doing download and run. This would explain why REPL works but download and run a program doesn't. We are looking into it.
We had some report a similar problem
If i missed something in my search of open issues, feel free to link & close this.
Thanks for your reply.
Hoping for an update here - I've updated the (web) app and re-installed pybricks fw, and am still seeing the same issue ... which means I can't help my kid program
We haven't had any reports of anyone else having problems for a while, so I thought the server issue was fixed. Maybe your problem is different after all.
Does the same problem happen on https://beta.pybricks.com?
Yes, just tried beta.pybricks (including install fw via beta, jic it matters). Same result, when "run" hub goes from solid blue to flashing blue, ui eventually becomes whitescreen.
-------- Original Message -------- On 3/17/25 12:03 PM, David Lechner wrote:
We haven't had any reports of anyone else having problems for a while, so I thought the server issue was fixed. Maybe your problem is different after all.
Does the same problem happen on https://beta.pybricks.com?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
[dlech]dlech left a comment (pybricks/support#2045)
We haven't had any reports of anyone else having problems for a while, so I thought the server issue was fixed. Maybe your problem is different after all.
Does the same problem happen on https://beta.pybricks.com?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
The fact that the hub light changes tells me that either the hub is crashing and rebooting or that the host computer Bluetooth isn't happy and is disconnecting.
If you could capture Bluetooth packets and share that with us, we could see if that is the problem. You can find some instructions on how to do that at https://bleak.readthedocs.io/en/latest/troubleshooting.html#capture-bluetooth-traffic
And for the white screen issue, if you could open the Developer Tools in your browser and check the console and network tabs (for network, you will need to do a page refresh) to check for errors. If you need more help figuring out how to do that, let me know.
Or if you have a different computer you can try, that could be helpful too.