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] web app looses connection to hub, freezes, when trying to run trivial block program #2045

Open
m10d opened this issue Feb 4, 2025 · 2 comments
Labels
devops Issues related to continuous integration and distribution of software. software: pybricks-code Issues with https://code.pybricks.com application

Comments

@m10d
Copy link

m10d commented Feb 4, 2025

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:

  1. open code.pybricks.com
  2. re-install pybricks fw just in case
  3. start hub (blue light is flash-flash-pause for pairing)
  4. connect bluetooth (blue light goes solid)
  5. enter repl mode, blue light fadding in/out, dir() outputs reasonable stuff, can run hello_world() function
  6. press stop button on web app. Blue light goes back to solid.
  7. Repeat # 5 & 6 for good measure to ensure things seem to still be working after exiting repl --> same result
  8. press run (play sym) on UI to run the program below
  9. a second or so later, the hub light goes back to flash-flash-pause pairing.
  10. app seems still responsive, but if I click around (say settings on left bar, then back to files on left bar) the app screen (well, web page within browser) goes blank white, and never comes back. Browser itself is still functioning normally.
  11. 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
Image

@m10d m10d added the triage Issues that have not been triaged yet label Feb 4, 2025
@dlech
Copy link
Member

dlech commented Feb 4, 2025

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.

@dlech dlech added software: pybricks-code Issues with https://code.pybricks.com application devops Issues related to continuous integration and distribution of software. and removed triage Issues that have not been triaged yet labels Feb 4, 2025
@m10d
Copy link
Author

m10d commented Feb 4, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devops Issues related to continuous integration and distribution of software. software: pybricks-code Issues with https://code.pybricks.com application
Projects
None yet
Development

No branches or pull requests

2 participants