-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Spurious BusFault when trying to start large app #3927
Comments
Bus fault means invalid memory access. Usually they originate from programming errors. Please provide a minimal sample code with correct API usage and overall programming that leads to a BusFault for further investigation. |
@hedger while I was on the hunt for bugs in the application, I discovered the following log output:
This log message always occurs right before the bus fault. I also added a I also tried to create a similar large application by generating random nonsense C code with Python. The resulting binary is as large as the uPython application but it doesn't crash. I think this issue has something to do with how the memory segments are arranged in the binary and how they are loaded into the RAM. |
We have several bugs in backlog that go down to having not enough memory to start and app and additional memory consuming things running in background. Having active RPC session might have an affect, such as connection to qFlipper or sync to mobile app |
FWIW, unrelated, but the issue of Subghz causing an OOM with qFlipper + VGM running has a 50/50 chance of either failing with "out of memory" or BusFault. It seems possible that there is something in the allocator code that can result in a BusFault in out-of-memory scenarios. |
Yeah, pretty sure we have this case in backlog, I will re-check. I believe we should offer to reboot flipper in out of memory scenario |
I am having the same issue. |
#3992 fixes this |
Many thanks for solving this issue - this really did the trick ! |
Describe the bug.
When I try to start a large app on the Flipper using the Buttons and the UI, Flipper crashes and reboots with a BusFault with an occurrence of about 80%. When I do the same using the CLI, crashes are much less common (only about 10%). According to
top
, there is about 33 KB of RAM left when the app is running.Reproduction
Target
No response
Logs
No response
Anything else?
The text was updated successfully, but these errors were encountered: