Closed jerryneedell closed 5 years ago
I had similar problems while developing the snake game for the Hallowing M0 Express. The code is at https://github.com/deshipu/hallowing-snake
I ran the example above overnight. It didn't go into safe mode but it did throw an IOError
22 exception on this line in adafruit_slideshow.py
:
self._image_file = open(image_name, "rb")
I suspect something got smashed. I'm rerunning with a breakpoint on the lowest-level exception handling so I can catch something like this.
@jerryneedell How many images were in your slideshow?
Four
Thanks, I was seeing the exception above within half an hour or so with 13 images; reduced it to 12, and it's running for a couple of hours, but doesn't seem critical. In the bug above, the value passed in instead of the image_name
string was the integer 14
, which is suspiciously close to 13. Hence my try to reduce it by one and see if I see something similar.
Edit: a red herring: with 12 images, I still see 14
as the bad argument.
I let this run overnight, unconnected to USB, and it didn't crash. There are still problems related to USB connect/disconnect (#1681), but #1721 or other fixes may have fixed the underlying problem here.
Anyone still worried about this or can I close it?
No worries from me ... I know how to open an issue if it comes back ;-)
closing since it appears to be working now.
I have been running the slideshowsd.py example bleow as code.py on a PyPortal with current master with no data connection, just a wall supply. After a few hours, the slideshow stops and I see on the screen that it has entered safe mode. The reason is not displayed. If I then do a hard reset, it restarts the code.py slideshow normally. May be related to #1681 but no USB connection is necessary and once started, this code does not write to the REPL.
CP Build:
this is the code running: