Thanks to visit codestin.com
Credit goes to github.com

Skip to content

CircuitPython 4.x hang on PyGamer after about 10 minutes of while loop playing stereo audio #2005

@kevinjwalters

Description

@kevinjwalters

I've got a CircuitPython hang that I've seen on 4.1.0 rc0 and rc1 if I leave some code running. Takes about ten minutes on a PyGamer to hang, it's not predictable but will do it on about one in four executions. The serial connection (Windows 8.1 desktop) becomes disconnected but probably with no close (tapping a key in terminal window makes it realise the PyGamer's gone away) and the CIRCUITPY becomes inaccessible. I left the PyGamer screen illuminated and that's almost same printed line as I see on serial out. I say almost because I get one extra line on the USB serial rather than screen which surprises me a little. If I reset it doesn't do that safe mode thing. I tried 4.0.2 and it didn't seem to do it but because this occurs infrequently I can't say for sure whether 4.0.2 is ok or not.

The output to DAC stops changing too.

I've got GND/A0/A1 from Feather style connector on the back connected to a 'scope. I also have the standard small speaker attached but it's not enabled by the code. I wouldn't expect that to affect things.

I have not seen any MemoryError exceptions during development - seems unlikely memory is being exceeded and certainly no exception seen on output.

I don't have a JLink debugger setup so am a bit limited on gathering more data on this.

Will supply code later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions