Skip to content

[Bug] web app looses connection to hub, freezes, when trying to run trivial block program #2045

@m10d

Description

@m10d

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    devopsIssues related to continuous integration and distribution of software.software: pybricks-codeIssues with https://code.pybricks.com application

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions