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

Prolonged use restarts the phone... #53

Open
fi8er1 opened this issue Feb 26, 2015 · 2 comments
Open

Prolonged use restarts the phone... #53

fi8er1 opened this issue Feb 26, 2015 · 2 comments

Comments

@fi8er1
Copy link
Contributor

fi8er1 commented Feb 26, 2015

Turning the flash on and leaving it on with the screen off for about more than 20 minutes restarts the phone.
Occurred a couple of times.

@om26er
Copy link
Member

om26er commented Feb 26, 2015

I have seen that as well, need to dig into logcat to see what is causing
that. My guess is its a bug in Android or its handling some OOM situation
badly.

On Fri, Feb 27, 2015 at 12:22 AM, Mohsin Falak notifications@github.com
wrote:

Turning the flash on and leaving it on with the screen off for about more
than 20 minutes restarts the phone.
Happened couple of times.


Reply to this email directly or view it on GitHub
#53.

@om26er
Copy link
Member

om26er commented Mar 22, 2015

I have changed the Service to be a Foreground service, which basically makes its priority similar to an Activity. So it won't get killed. My hunch is that the phone might have been restarted while trying to kill the service in a bad state and a firmware bug caused it to restart the device.

Please test the latest code and see if you are still able to crash your device.

Another scenario might be that the SurfaceView leaks memory and the prolonged usage of the Torch makes system to an Out of Memory (OOM) situation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants