You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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.
The text was updated successfully, but these errors were encountered: