Skip to content

PyPortal crash -- EventCountdown example #1680

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jerryneedell opened this issue Mar 22, 2019 · 6 comments
Closed

PyPortal crash -- EventCountdown example #1680

jerryneedell opened this issue Mar 22, 2019 · 6 comments

Comments

@jerryneedell
Copy link
Collaborator

jerryneedell commented Mar 22, 2019

I am finding that the PyPortal EventCoundown example causes a (HardFault) reboot to safe mode with the current CP Master build. https://github.com/adafruit/Adafruit_Learning_System_Guides/tree/master/PyPortal_EventCountdown Warning -- it may also corrupt the FS. I have had varying results with this -- Sometimes it runs but the background splash disappears. Sometimes it crashes....

Run on:
Adafruit CircuitPython 4.0.0-beta.5-17-gfce63b17c on 2019-03-21; Adafruit PyPortal with samd51j20

This example ran successfully on previous CP versions -- not sure of latest version tested, but I think I tried Beta5

@jerryneedell jerryneedell changed the title PyPoertal crash -- EvenCountdown example PyPoertal crash -- EventCountdown example Mar 22, 2019
@jerryneedell jerryneedell changed the title PyPoertal crash -- EventCountdown example PyPortal crash -- EventCountdown example Mar 22, 2019
@dhalbert
Copy link
Collaborator

I have tried this a few times. I am consistently seeing the background disappear, but otherwise it hasn't crashed. Does it crash right away, or should I let it run a while?

@jerryneedell
Copy link
Collaborator Author

jerryneedell commented Mar 24, 2019

@dhalbert With the default settings, it does not crash immediately -- infact, it seems to be running OK today,
However, if I cahange the event date to:

14,16c14,16
< EVENT_MONTH = 6
< EVENT_DAY = 28
< EVENT_HOUR = 17
---
> EVENT_MONTH = 4
> EVENT_DAY = 15
> EVENT_HOUR = 9

it crashes immediately on first update. That is, I see the background, then after a few seconds, it crashes.

Update -- I cannot reproduce the failure with the default setting, but it still crashes if it change the date as noted above -- I also tried EVENT_MONTH = 5 and it still crashed...

@jerryneedell
Copy link
Collaborator Author

jerryneedell commented Mar 24, 2019

very strange -- I run eventcountdown.py on the PyPortal, it runs OK -- I then copied eventcountdown.py to new_copy.py -- When I run new_copy.py it crashes...
a diff of the files does not report any difference.

In all cases, I am running this from the REPL not code.py.

even stranger, any of the examples (that is different dates) run OK if loaded as code.py.....
(the background still disappears)
My head hurts...

@deshipu
Copy link

deshipu commented Mar 24, 2019

I think it might depend on where the file is in the partition table, how it is split into blocks, and other things like that. On a non-express board you could just copy the current.uf2 file to reproduce the whole filesystem exactly, perhaps we could have some tool to dump the filesystem off the flash chip on the express boards as well?

@dhalbert
Copy link
Collaborator

The essence of this bug is described in #1695. I don't know about the hard crashes, but that may be yet some other bug, or else it's a manifestation of the #1695 bug. Could close this in favor of #1680.

@dhalbert dhalbert added this to the 4.0.0 - Bluetooth milestone Mar 25, 2019
@dhalbert
Copy link
Collaborator

I think this is fixed by #1714. Could you reopen if you are still seeing crashes? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants