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

ANR / Gateway freezing on Android version 7.0 #132

Open
rosteve opened this issue Jun 12, 2018 · 6 comments
Open

ANR / Gateway freezing on Android version 7.0 #132

rosteve opened this issue Jun 12, 2018 · 6 comments

Comments

@rosteve
Copy link

rosteve commented Jun 12, 2018

Device details


Device tested

key value
medic-gateway version 1.5.0
device make Samsung
device model J5
can the problem be recreated on this device? yes
Android version 7.0

Observed behaviour

When the gateway is left unattended for a couple of hours (approx. 3-4 hours), it doesn't respond and any sms report sent to it or received is not forwarded until you force it to refresh or give a miss-call

Also the phone generally freezes intermittently and becomes unresponsive._

The gateway becomes responsive when we connect it to the machine or source of power hence its hard to collect the source of the gateway app misbehaving in the logs since we need to connect it to a machine. Also the gateway does not hang when it is persistently connected to the laptop to take logs.

Steps we have taken to try to mitigate this

  1. We have tried to enable stay awake in developer's mode
  2. Removed battery optimization
  3. Changed advanced settings of the phone which did help by extending the time of the gateway freezing by few hours; but if the phone is left undisturbed it freezes.
  4. Taken a couple of logs (some overnight) but the logs seem to to be pretty clean
    The above unfortunately did not stop the issue.

Expected behaviour

The gateway app should not freeze and should send/receive reports in the background even when the gateway is idling.

Steps to recreate

  1. Log into the gateway (the credentials will be provided upon request)
  2. Leave the gateway unattended for few hours and hope that it stops interacting with the WebApp.

One can connect to the gateway using teamviewer [Note: If the gateway phone is connected using the TeamViewer, it starts responding.

You can get more information on this issue on the standard-asia channel, where we've been having discussion around this

cc: @shreyakb @ngamita @mukesh2006 @kanikamedic @alxndrsn

@rosteve rosteve changed the title Gateway freezing intermittently on Android version 7.0 ANR / Gateway freezing on Android version 7.0 Jun 12, 2018
@alxndrsn
Copy link
Contributor

@rosteve your first three mitigation steps look like a great checklist of things to do as part of gateway phone setup.

It's worth noting that Stay Awake is only meant to work when the phone is plugged in to external power.

The gateway becomes responsive when we connect it to the machine or source of power

@ngamita @derickl & all: Would it be reasonable to recommend that all gateway phones:

  1. hava Developer Options > Stay Awake enabled, and
  2. stay plugged in to mains power as much as possible

?

I understand that both of these are onerous and don't provide the simplest usability imaginable. However, from the report above it sounds like they solve the existing problem. Perhaps we can use them while we search for a long-term solution that is easier for users to implement.

@alxndrsn
Copy link
Contributor

Related: #127, #126

@derickl
Copy link
Member

derickl commented Jun 12, 2018

@alxndrsn that's reasonable given the current situation (it's the simplest fix)

@derickl
Copy link
Member

derickl commented Jun 12, 2018

@Osoro - is downgrading a viable alternative - that is if we haven't had similar issues with Android < 7.0

@rosteve
Copy link
Author

rosteve commented Jun 12, 2018

Yeah, that's that a viable alternative since we noticed its works well with <= 6.0 but @mukesh2006 would be best to answer this

@rosteve rosteve closed this as completed Jun 12, 2018
@rosteve rosteve reopened this Jun 12, 2018
@mukesh2006
Copy link

@alxndrsn @derickl @ngamita @rosteve We can request the partners to buy a phone with Android <= 6.0 but downgrading might not be a viable option for them at their end.

As @rosteve already tested it on Android 6.0.1, and the gateway was not freezing, I don't think it's worth downgrading the Android version on the gateway phone which @kanikamedic has.

@MaxDiz MaxDiz added this to Needs triage in Core Engineers Backlog via automation Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

4 participants