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

Out of RAM error on NFC file launch from file browser #778

Open
FalsePhilosopher opened this issue Jul 11, 2024 · 9 comments
Open

Out of RAM error on NFC file launch from file browser #778

FalsePhilosopher opened this issue Jul 11, 2024 · 9 comments
Labels
bug Something isn't working known issue Team is aware of this issue or issue is already being worked on

Comments

@FalsePhilosopher
Copy link

FalsePhilosopher commented Jul 11, 2024

Describe the bug.

Using the file browser to run a NFC file will produce a out of RAM error.

Reproduction

  1. Open file browser
  2. Scroll to NFC
  3. Scroll to NFC file
  4. Run the file
  5. Out of RAM error

Target

75-E
No response

Logs

No response

Anything else?

No response

@FalsePhilosopher FalsePhilosopher added the bug Something isn't working label Jul 11, 2024
@xMasterX xMasterX added the known issue Team is aware of this issue or issue is already being worked on label Jul 12, 2024
@xMasterX
Copy link
Member

Hi, steps to reproduce doesn't work, we are aware of this issue, its caused by RAM fragmentation which can be caused by anything, like any app, etc.

NFC app itself is too large and in such cases it can't fit when RAM is in this state

One user reported that they had NFC not starting even after reboot EVERY time, I suggested replacing/formatting their microsd and reinstalling firmware, and it somehow worked for them
If thats your case too, try this too

In my case I was able to reproduce this issue only 3 times and it was pretty random, currently we have no ideas how to make NFC app smaller to fit in all RAM conditions

@AztecCodes
Copy link

AztecCodes commented Jul 13, 2024

@xMasterX

In my case the Error occurs sometimes when I used the Flipper Zero before and used some apps and did different things. The "Out of RAM Error" doesn't occur every time and also not very often, but it does happen from time to time. When I restart the Flipper and directly go for the NFC App, this error never occurs.
However when this Error doesn't occur, the NFC App takes an unusually long to load. It takes like 1-2 seconds till it opens up. It is not insanely long, but it is unusual and it wasn't like this in the older versions. All the other Apps open up instantly, It takes always that long for the NFC App to load.

I couldn't find a way to reproduce it every time, but I think the chances that it happens are higher when you did use the device for various things before opening the NFC App.

My experience with your idea for a fix:
I did try out various things you recommended, however the issue still remained on the current release of Unleashed.
With older versions of Unleashed and the current official Flipper Software I don't experience this issue.

When I understand it correctly this issue happens since this release with the updated NFC app. Is there the possibility to add like an option to turn off the additional features if you don't use them? And if you want to use them you can (With experiencing this error from time to time and the slightly longer loading) till a fix for the issue is found.

@FalsePhilosopher
Copy link
Author

FalsePhilosopher commented Jul 14, 2024

I was getting furi crash errors on boot almost every boot from 73-75 and at random times before the out of ram errors. I formatted the sd card and reinstalled 75 from the SD update function. The furi crash errors at boot have gone away and I can launch a NFC file from the file browser, but like AztecCodes has stated that only work from a fresh boot. If you try to open a few ext apps then launch a nfc file from the file browser you will get a out of ram error. I have now gotten a busfault error instead of a out of ram error as well.
Here is a tar with a .mkv video(My OBS settings were stock and this is what it spit out and github doesn't support uploading mkv files) showing the error.
2024-07-13 18-33-32.tar.gz

@AztecCodes
Copy link

I can confirm that I get the busfault error too, but it only happened very few times.
It just happened right now, I didn't use the flipper for like 12 hours and it was on standby, now I tried to start the NFC App from the list and it directly rebooted and showed "busfault" as the error cause.

@Danucosukosuko
Copy link

Yes, the same. I use apps before NFC, and the same error: Out of memory

@Kf637
Copy link

Kf637 commented Sep 14, 2024

I also have the same error.

255467 [I][Loader] Loading /ext/apps/NFC/nfc.fap
255625 [I][Elf] Total size of loaded sections: 76318
255628 [I][Loader] Loaded in 161ms
255642 [W][ViewPort] ViewPort lockup: see applications/services/gui/view_port.c:189
255677 [E][Elf] Not enough memory to load section data
255681 [E][Elf] Error loading section '.rodata'
255685 [E][Elf] Not enough memory

@FalsePhilosopher
Copy link
Author

FalsePhilosopher commented Sep 24, 2024

Hold your back arrow for the quick power off function, does it display the crying dolphin or just turn off power? Yesterday I upgraded from 75e to 78e and the issue persisted. I noticed the different power off menu and went about fixing it. Rebooted into DFU mode, repaired to 1.0.1 from qflipper, once it booted after install I formatted the sd card. I then installed 78e from qflipper and I got my crying dolphin back an it doesn't crash launching files from explorer. I have not done extensive testing, just launched a file from browser and micro python which crashed with a bus error the first time but launched the second time.
Edit: After a crash using the change name function and rebooting I don't have the crying dolphin anymore, maybe it's just because I switched from bt screen sharing to an android qflipper instance to usb linux qflipper it's a different screen idk. My screen is broken, so I need to use some form of display forwarding to use my fz.

@Josue616
Copy link

That doesn't happen with xtreme firmware, but it was archived last July, so there will be no more updates for xtreme firmware, we will only talk about RAM error in NFC app, because xtreme firmware loads the .nfc after opening the list in app, not when you open the application directly.

@AztecCodes
Copy link

@Josue616 You are right. It started to happen from one specific firmware version of Unleashed and Momentum on. I might be able to find out which one it was. Like the loading time was not as long it is now when starting the NFC app and it didn't crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working known issue Team is aware of this issue or issue is already being worked on
Projects
None yet
Development

No branches or pull requests

6 participants