BIDMCDigitalPsychiatry / LAMP-platform

The LAMP Platform (issues and documentation).
https://docs.lamp.digital/
Other
12 stars 10 forks source link

Invalid State Exception : Invalid End Time #654

Closed nsrilakshmi96 closed 1 year ago

nsrilakshmi96 commented 2 years ago

Describe the bug App not responding and closes automatically due to illegal state exception. Participant is on the latest beta version of the android app.

The researcher dashboard shows last passive GPS and Accelerometer in 55 and in 56 minutes respectively.

Screenshots If applicable, add screenshots to help explain your problem.

https://user-images.githubusercontent.com/46331228/173739304-33ec33b7-dcea-44c6-a085-826c25733ec2.mp4 Screenshot_20220615-101549_Chrome

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context We had to clear app data and relogin for the app to start working again.

saranya-sajeev commented 1 year ago

@avaidyam From the google fit source code we found that, invalid end time exception is thrown when the start time is grater than the end time. We are keeping a timestamp to save the time of last synced record and same is using for fetching Google fit data. We have updated the code by using another variable for fetching Google fit data and we have checked in a device in which issue was reproduced. Seems it is working on that device. After QA testing we will update you and will push to beta.

saranya-sajeev commented 1 year ago

@avaidyam QA testing is completed and we will push this along with 653 after completing the QA testing of 653.