Milan Tenk
Milan Tenk

Reputation: 2715

Android is always rebooting after random timeinterval, when OpenCV CameraBridgeViewBase is used

I wrote a very simple app for Android, witch is using OpenCV for Android (in Java). I am using CameraBridgeViewBase and the adequate callbacks for processing the images. But if I use the app, after the estimation of a random time the Android os reboots. The version of the plattform is 4.3, the device is Nexus 4.

Are there any ideas, how could this happen? What can cause this?

Upvotes: 1

Views: 240

Answers (2)

Milan Tenk
Milan Tenk

Reputation: 2715

I had to modifie the Android version, with 4.2.2 it worked fine.

Upvotes: 0

Christian
Christian

Reputation: 1174

This sounds like a stack overflow and/or out of memory. I've had similar issues, although not rebooting. Be sure to release all bitmaps as soon as you are done with them. A way to avoid excessive memory use when doing image processing, is to use the same bitmap object to get the data each time, instead of making a new one for each frame.

Upvotes: 1

Related Questions