circuitpython: Importing some libraries on 7.0.0 (FeatherS2) causes hard crash
CircuitPython version
Adafruit CircuitPython 7.0.0 on 2021-09-20; FeatherS2 with ESP32S2
Code/REPL
>>> from arcti.ntp import NTP
>>>
^ Works fine (https://discord.com/channels/327254708534116352/537365702651150357/894552574345220158)
>>> from adafruit_gc_iot_core import MQTT_API, Cloud_Core
<< hard crash >>
Running in safe mode! Not running saved code.
You are in safe mode because:
CircuitPython core code crashed hard. Whoops!
Crash into the HardFault_Handler.
Please file an issue with the contents of your CIRCUITPY drive at
https://github.com/adafruit/circuitpython/issues
Press any key to enter the REPL. Use CTRL-D to reload.
Behavior
Running in safe mode! Not running saved code.
You are in safe mode because: CircuitPython core code crashed hard. Whoops! Crash into the HardFault_Handler. Please file an issue with the contents of your CIRCUITPY drive at https://github.com/adafruit/circuitpython/issues
Press any key to enter the REPL. Use CTRL-D to reload.
Description
Importing some libraries causes a hard crash. I have my own little folder of helper libs that import fine. The adafruit_gc_Iot_core lib causes hard crashes for me (though it’s intermittent - other times its a stack recursion limit issue, given the coupling, seems related)
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (2 by maintainers)
The
DEBUG=1
builds don’t fit anymore on ESP32-S2. Your build is probalby fine otherwise. You can turn off several modules and make them fit. See https://github.com/adafruit/circuitpython/issues/4984#issuecomment-915384864 as an example of what to turn off. The code region is not overflowing; it’s something else, and we need to figure out the best way to make theDEBUG
builds easier.