Skip to content

[Bug] NXT REPL hangs or craches after a command is entered #2272

@BertLindeman

Description

@BertLindeman

Utterly premature, but maybe still good to report now.

Describe the bug
What is the problem?

Starting at pybricks-micropython build "3931 pbio/protocol: Add slots info to hub capabilities and status."
the REPL hangs or crashes.

Flash was done with pybricksdev v1.2.0

To reproduce
Scenario-1 starting with the REPL active:

  • type print() and [enter]
    terminal goes to the next line and crash (NXT display empty) or a hang.

Scenario-2 starting with the REPL active:

  • press CTRL-A
  • press CTRL-B
  • press CTRL-D
  • press CTRL-C
    this goes all fine.
  • press CTRL-E
  • type print() and [enter]
    all OK the prompt === is presented each [enter].
  • press CTRL-D
    terminal goes to the next line and crash (NXT display empty) or a hang.

Did not try to paste any command in raw paste mode.

Sometimes (not so easy to hear) after the hang /crash there is clicking (twice per second) where the reset click is once per second.

Expected behavior
What did you expect to happen instead?
Normal micropython response for the command.

Screenshots
There is a saying that a picture is worth a 1000 words. Screenshots really help to identify and solve problems.

Tested with

Build Git hash test result
3888 2c7a38e7 OK
3895 b851bc1b OK
3901 6f88e2de OK
3917 0d7d7847 OK
3931 ed3272de crash / hang
3933 2099b06d crash / hang
3936 ddb5cfc0 crash / hang
3937 d76f61ae crash / hang
3940 343793b9 not sure if I tested this one
3946 20c4a07f crash / hang

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform: NXTIssues related to LEGO MINDSTORMS NXTsoftware: pybricks-micropythonIssues with Pybricks MicroPython firmware (or EV3 runtime)

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions