Open JackMostow opened 6 years ago
I think the simplest solution that requires the least amount of parameters is to reboot after a long time of inactivity. Like 10 minutes.
Kevin found and fixed the reproducible freezes and added some verbose logging at the point where we suspect intermittent freezes may occur, so that VMC can catch them tomorrow if they recur. It turns out that we can't distinguish a frozen screen with random tapping from normal activity, which makes auto-timeout not quite as attractive. I'm mainly concerned about use cases for item 4. Thoughts?
What's item 4?
Sorry, I mean "4. When is it actually undesirable to exit during prolonged inactivity?" in my post above.
Ah, I think you updated the post, it originally only had 3 items. Um, I'm not sure I have a major concern about rebooting (as long as sufficient time has passed, don't do it after just a few minutes).
@amyogan, @judithodili, et al. - Freezes, where RoboTutor stops responding to any input, are the scariest type of bug because to escape them in kiosk mode requires rebooting the tablet, which is harder and less obvious than restarting after a crash or tapping Back to escape when an activity gets stuck.
We have found and fixed some specific freezes, but there's no way to ensure we've fixed all of them. Is there a way to ensure escape from freezes? One way is to kill the apk if it detects prolonged inactivity, i.e. a timer reaches a limit on the time since the last detected actions. As one might expect, this approach has known solutions, one of which @amogh112 has already implemented.
To avoid timing out while loading assets, don't start the timer until after loading them.
We want your advice on these questions and on use cases we may not have considered but ought to:
Thanks! - Jack