Skip to content

Fun House hard crash when send data to IO #10520

@FoamyGuy

Description

@FoamyGuy

This basic reproducer code seems to consistently cause a hard crash on the Fun House. It is a very pared down version of this project: https://learn.adafruit.com/funhouse-mail-slot-detector code

from adafruit_funhouse import FunHouse

funhouse = FunHouse(default_bg=None, scale=3)

def send_io_data(mail_value):
    funhouse.network.push_to_io("mail", mail_value)


print("before send to io")
send_io_data(1)
print("after send to io")

I have tested on both of these versions and behavior is the same on both.

Adafruit CircuitPython 9.2.8 on 2025-05-28; Adafruit FunHouse with ESP32S2
Adafruit CircuitPython 10.0.0-beta.0 on 2025-07-15; Adafruit FunHouse with ESP32S2

When the code runs it prints

before send to io
Connecting to AP NetworkName

Then seems to get stuck. The USB serial and file connection disconnect after a few seconds. After several more seconds eventually the device reboots and comes in safe mode with this hard crash message:

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions