DarkFlippers / unleashed-firmware

Flipper Zero Unleashed Firmware
https://t.me/flipperzero_unofficial
GNU General Public License v3.0
16.94k stars 1.41k forks source link

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

Open FalsePhilosopher opened 2 months ago

FalsePhilosopher commented 2 months ago

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

xMasterX commented 2 months ago

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 commented 2 months ago

@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 commented 1 month ago

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 commented 1 month ago

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 commented 3 weeks ago

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