Skip to content

Simulator error on soft reboot #70

@microbit-robert

Description

@microbit-robert

When using CTRL-C, CTRL-D (or just CTRL-D after program completion) in the simulator serial to restart a program running music/audio, an error occurs and the simulator ends up in a state between started and stopped. Example program below:

import music
music.play(['c', 'd', 'e', 'c'])

Error in console: TypeError: Cannot read properties of undefined (reading 'createOscillator').

Confused state:
image

Additional error messages for using speech.say:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions