pico-clock-green-python icon indicating copy to clipboard operation
pico-clock-green-python copied to clipboard

pico-clock breaks after some minutes

Open the-it opened this issue 3 years ago • 6 comments

After running for some minutes, the program crashes and leaves the user with a line of dots (in the shape of one row of the picture to show). Most of the time, this state persists and will not recover. So you have to plug the device out and in again.

Nevertheless, I encountered two times where the clock miraculously returned to the program flow :shrug: . 2021-10-01 14 45 15

the-it avatar Oct 12 '21 08:10 the-it

This is an interesting one.

We leak memory apparently.

free memory: 320
..........
Active since 1010 seconds
free memory: 160
..........
Active since 1020 seconds
free memory: 155616
..........
Active since 1030 seconds
free memory: 155456

But the garbage collecting than kicks in. My suspicion is that this happens sometimes to late.

Will run some further tests. Use the clock during the day with instrumentation.

the-it avatar Oct 13 '21 08:10 the-it

Kind of a red herring. I had two breaks today ... both in very healthy memory conditions. :shrug:

the-it avatar Oct 13 '21 16:10 the-it

I have also had this happen a few times. after a little bit of time it seems to fix itself.

cpyarger avatar Oct 14 '21 05:10 cpyarger

I had this happen with the C code for a while when I first got the device… I ended up trying a different Pico and it hasn't happened since. It could have been the removal and reinsertion, or it could have been a problem with something in the Pico being borderline but other than during a power cut, that one hasn't been off since.

GeoffRiley avatar Oct 27 '21 11:10 GeoffRiley

Might be solved by #19

jcoquerygithub avatar Jun 03 '22 15:06 jcoquerygithub

@the-it can you check if, with the new code, you still have issues, mine is now running for month without problem. thx for your feedback.

jcoquerygithub avatar Sep 19 '22 17:09 jcoquerygithub