Closed slootsky closed 1 year ago
I just tested with 7.3.3 and I get the same result there.
Adafruit CircuitPython 7.3.3 on 2022-08-29; Adafruit FunHouse with ESP32S2 Board ID:adafruit_funhouse
It does NOT occur with 8.0.0-beta0
Adafruit CircuitPython 8.0.0-beta.0 on 2022-08-18; Adafruit FunHouse with ESP32S2 Board ID:adafruit_funhouse
If you put the from adafruit_funhouse import FunHouse
into code.py
instead of in another.py
, does it work fine in 7.3.x?
If so, this might be a manifestation of #2687, but usually that doesn't cause a crash. The fact that 8.0.0-beta.0 doesn't crash may or may not reflect an 8.0.0-whatever fix.
@dhalbert Yes. Moving from adafruit_funhouse import FunHouse to code.py makes it go away.
This of course means that I can't use FunHouse in another.py though.
What I've started doing is putting my main code in a secondary file that has the name of the project (eg co2monitor.py) and then importing that into code.py after doing some common setup and initialization.
Given that this seems to be another manifestation of #2687, this is fixed in 9.0.0-alpha.2 because long-lived heap was removed.
CircuitPython version
Code/REPL
Behavior
Sometimes a soft reboot or the reboot button doesn't cause the problem, but using the power switch will.
config.txt secrets.txt another.txt code.txt
Additional information
This is just about as minimal as I could get the code and still have the problem.
Any of the following will make it work again