You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto-reload is off.
Running in safe mode! Not running saved code.
You are in safe mode because:
CircuitPython core code crashed hard. Whoops!
Hard fault: memory access or instruction error.
Please file an issue with your program at github.com/adafruit/circuitpython/issues.
Press reset to exit safe mode.
Press any key to enter the REPL. Use CTRL-D to reload.
Description
My Python program is a scheduler to activate relays connected to the Pico which in turn can force a driveway gate to open during periods in the day based upon a private Google calendar.
The program runs fine. In earlier builds of CircuitPython there were memory issues with the HTTP requests over time so I forced a nightly reboot. I've had that in place since. I recently upgraded the version of CircuitPython along with the libraries. That required a new dependency to adafruit_connection_manager.mpy from adafruit_requests.mpy. I added the new dependent library, but did not see any code changes required due to this new dependency.
I have a separate Pico I use to do long-term tests after CircuitPython updates and it sits on my desktop. It has been running fine without issue for the last four days, but this morning it was frozen. When I connected into Putty I received the above "Running in safe mode!" error stating the CircuitPython core code crashed. The error asked me to post the issue which I'm doing here. If I have a memory access error within Python, which I've done on multiple occasions, Python just crashes and gives me a line number. This is very different.
Additional information
If I try to follow the instructions and press CTRL-D, it comes back with "soft reboot" but then immediately crashes with the same original message. The one difference is when I first looked at the board the green light on the board was not blinking. It normally blinks when it isn't running a program. When I am running a program and since I'm using WiFi, the light goes off and stays off. After the soft reset/crash the green light at least started blinking so that is a slight change post reboot.
Powering off the chip then back on for a hard reboot puts it back into play and it is running for now. Unknown why it hard crashed though.
You can watch the test harness after power on at https://youtube.com/shorts/nXUUagNr-7k. The test harness has the same relay I use on the driveway gate (Liftmaster). The LEDs to the right right are wired for blue to relay NC and green for NO. The 8th relay is set for the gate, and during this test is scheduled in the Google calendar to be open which is why the relay fires after Internet calendar check and closes the power for the green node.
The text was updated successfully, but these errors were encountered:
@Hobbes4Pres Please re-test with CircuitPython 9.2.5. This release includes an update (#10027) that improves lwip (the IP stack used by CircuitPython) memory management.
CircuitPython version
Code/REPL
Behavior
Auto-reload is off.
Running in safe mode! Not running saved code.
You are in safe mode because:
CircuitPython core code crashed hard. Whoops!
Hard fault: memory access or instruction error.
Please file an issue with your program at github.com/adafruit/circuitpython/issues.
Press reset to exit safe mode.
Press any key to enter the REPL. Use CTRL-D to reload.
Description
My Python program is a scheduler to activate relays connected to the Pico which in turn can force a driveway gate to open during periods in the day based upon a private Google calendar.
The program runs fine. In earlier builds of CircuitPython there were memory issues with the HTTP requests over time so I forced a nightly reboot. I've had that in place since. I recently upgraded the version of CircuitPython along with the libraries. That required a new dependency to adafruit_connection_manager.mpy from adafruit_requests.mpy. I added the new dependent library, but did not see any code changes required due to this new dependency.
I have a separate Pico I use to do long-term tests after CircuitPython updates and it sits on my desktop. It has been running fine without issue for the last four days, but this morning it was frozen. When I connected into Putty I received the above "Running in safe mode!" error stating the CircuitPython core code crashed. The error asked me to post the issue which I'm doing here. If I have a memory access error within Python, which I've done on multiple occasions, Python just crashes and gives me a line number. This is very different.
Additional information
If I try to follow the instructions and press CTRL-D, it comes back with "soft reboot" but then immediately crashes with the same original message. The one difference is when I first looked at the board the green light on the board was not blinking. It normally blinks when it isn't running a program. When I am running a program and since I'm using WiFi, the light goes off and stays off. After the soft reset/crash the green light at least started blinking so that is a slight change post reboot.
Powering off the chip then back on for a hard reboot puts it back into play and it is running for now. Unknown why it hard crashed though.
You can watch the test harness after power on at https://youtube.com/shorts/nXUUagNr-7k. The test harness has the same relay I use on the driveway gate (Liftmaster). The LEDs to the right right are wired for blue to relay NC and green for NO. The 8th relay is set for the gate, and during this test is scheduled in the Google calendar to be open which is why the relay fires after Internet calendar check and closes the power for the green node.
The text was updated successfully, but these errors were encountered: