Skip to content
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

Heap allocation when VM not running. #10086

Open
bill88t opened this issue Feb 21, 2025 · 1 comment
Open

Heap allocation when VM not running. #10086

bill88t opened this issue Feb 21, 2025 · 1 comment

Comments

@bill88t
Copy link

bill88t commented Feb 21, 2025

CircuitPython version and board name

Adafruit CircuitPython 9.2.4 on 2025-01-29; 01Space 0.42 OLED ESP32C3 with ESP32-C3FH4
Main branch too

Code/REPL

Auto-reload is off.
Running in safe mode! Not running saved code.

You are in safe mode because:
CircuitPython core code crashed hard. Whoops!
Heap allocation when VM not running.
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.

Behavior

Safe mode.

Description

Happens only after a reset. Not on cold-boot. Can't reproduce on any other c3 board I have. Probably related to the display.

Additional information

No response

@bill88t bill88t added the bug label Feb 21, 2025
@tannewt tannewt added this to the Long term milestone Feb 21, 2025
@tannewt
Copy link
Member

tannewt commented Feb 21, 2025

If the display init args aren't right, then the display code will try to raise an exception. Raising an exception requires a VM allocation and can lead to this safe mode when the VM isn't setup.

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

No branches or pull requests

2 participants