10000 Large Files on MEMENTO Causes Device Reset & Eventual Hard Crash · Issue #8944 · adafruit/circuitpython · GitHub
[go: up one dir, main page]

Skip to content
Large Files on MEMENTO Causes Device Reset & Eventual Hard Crash #8944
Closed
@FoamyGuy

Description

@FoamyGuy

CircuitPython version

Adafruit CircuitPython 9.0.0-beta.1 on 2024-02-17; Adafruit Camera with ESP32S3

Code/REPL

# Doesn't seem to matter
print("Hello World!")

Behavior

I've noticed that putting files of around 900kb in size on the MEMENTO drive seems to cause problems for the device. Originally I noticed this with a .bmp file that is 900kb I can provide that if it's though to be important, but I've since replicated the same issue using this "dummy" text file that was filled with 900kb of As, spaces and newlines.
dummy.txt

So far I have observed the same issues when pasting the file from an Ubuntu PC and a Raspberry Pi with standard OS.

Sometimes attempting to paste the dummy.txt file once causes the device to reset and then show a hard fault message if you ctrl-c / ctrl-d in the serial console.

Other times pasting a single copy of dummy.txt suceeds, but then if you attempt to paste a second one thus far I have not seen it succeed. It has always reset part way thru the paste and then come back up with a hard fault message in serial

Theoretically the drive should be large enough to store 3 copies of the dummy text file. But I always observe trouble from the first or second and the trouble never seems like symptoms of drive full.

When my device does get into a bad state I can recover it by deleting the large dummy file and then using storage.erase_filesystem() in REPL.

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.

In cases where the dummy file was copied multiple times I renamed it to a new name before pasting the second time so it was not overwriting the original.

Description

No response

Additional information

No response

Metadata

Metadata

Assignees

Labels

boardNew board or update to a single boardbugespressifapplies to multiple Espressif chips

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0