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

uPython crashes - Error: Out of Memory #352

Closed
AztecCodes opened this issue Jan 14, 2025 · 11 comments
Closed

uPython crashes - Error: Out of Memory #352

AztecCodes opened this issue Jan 14, 2025 · 11 comments

Comments

@AztecCodes
Copy link

Describe the bug.

When I try to start uPython it will crash after a short loading period.

The error message:

Error: Out of Memory
Not enough RAM to run the app. Please reboot the device.

I never managed to start uPython.

Device Information

  • Firmware: MNTM-DEV E185F322
  • Model: FZ.1
  • SD-Card Format: ExFAT

Reproduction

  1. Turn on your Flipper Zero
  2. Navigate to Apps and open
  3. Open the "Tools" folder
  4. Open the uPython application
  5. Now the device should show the Error: Out of Memory exception

Target

No response

Logs

No response

Anything else?

No response

@Willy-JL
Copy link
Member

here: https://downloadmoreram.com/

@Willy-JL
Copy link
Member

flipper has 256kb of ram and its never enough. we have extra features and it uses a tiny bit more that tips it over the point where its more likely to not work than to work. still, same issue on all firmwares with maybe slightly different chances of success

@AztecCodes
Copy link
Author

@Willy-JL Why have uPython installed with you can't start it?

@Willy-JL
Copy link
Member

you can start it, but its unlikely.

@AztecCodes
Copy link
Author

I see, sadly it never worked for me yet. Also using the Momentum asset pack to save RAM and tried to start uPython after reboot.

@Willy-JL
Copy link
Member

the momentum asset pack is among the heaviest in terms of ram usage. thats probably your issue. you probably go from 10% chance of opening to 0.1% chance of opening by using a large asset pack like that

@AztecCodes
Copy link
Author

@Willy-JL I thought the momentum one is the smallest asset pack. It literally only has one short animation.
Most other asset packs I see have mutliple animations and also stuff like custom icons.

@Willy-JL
Copy link
Member

animations are unloaded from ram before opening apps, icons and fonts are not. momentum pack has the most icons of any pack. the upython app on momentum also fully unloads asset packs icons and fonts before opening, but the impact of things being loaded before is that memory can become fragmented so in some cases thats not enough anyway.

@AztecCodes
Copy link
Author

@Willy-JL Thank you very much! Which asset pack would you recommend that saves most RAM?

@Willy-JL
Copy link
Member

default one, or the blank screen from the website if you want to go overkill

@AztecCodes
Copy link
Author

@Willy-JL Thank you! I will close the ticket then I guess.

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

No branches or pull requests

2 participants