question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The BPI-M3 board with Android reboots sometimes when opens the Recognition View

See original GitHub issue

I have a Banana Pi board BPI-M3 with Android OS on it. When I access Recognition View sometimes the entire system reboots. I cant even target the reason of such behavior. I tried to debug the board with adb logcat but the latest logs don’t even say that the system is going to reboot. The latest logs belong to the test app.

I’m so confused for now. What can be the reason of such behavior? Is it a hardware problem? Or maybe the system reboots when the CPU is overloaded. CPU consumption sometimes jumps up to 100% maybe this causes the board reboot?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
sladomiccommented, Jan 22, 2017

Try this in the onCameraFrame method (e.g. before the return line). This should free the memory after every frame. I already use it in another project with the OpenCV camera view. If it’s successful in your setup I could include it in the code.

System.runFinalization();
Runtime.getRuntime().gc();
System.gc();
0reactions
sladomiccommented, Apr 1, 2017

@hexenskull can you please retest with the latest version? You can decrease the video size, so the CPU should struggle less

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix an Android device that's restarting or crashing - Google Help
Try the following steps if your phone has any of these problems: Randomly reboots or restarts; Shuts down without restarting; Restarts constantly: Go...
Read more >
Does Your Android Phone Keep Restarting? 7 Ways to Fix It
If your Android phone restarts constantly, it might be a dodgy app, an overheating issue, or something else entirely.
Read more >
Why Your Android Phone Keeps Restarting (And 9 Ways to Fix)
Press and hold the Power and Volume Down buttons at the same time until you see a screen with a red exclamation mark....
Read more >
Rescue Party | Android Open Source Project
However, sometimes devices end up in reboot loops, which cause users ... with that level, and lets the device proceed to see if...
Read more >
Android phone keeps restarting – How to Fix? - iSmash
Third Party apps – using third-party apps can corrupt the software on your device. High CPU frequency – this can be a potential...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found