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

Android app loses data, resets to "join community" state #415

Closed
holmesworcester opened this issue Apr 2, 2022 · 5 comments
Closed

Android app loses data, resets to "join community" state #415

holmesworcester opened this issue Apr 2, 2022 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@holmesworcester
Copy link
Contributor

holmesworcester commented Apr 2, 2022

Steps to reproduce:

  1. Join our internal community on mobile
  2. Use the app normally for some period

Expected: app keeps working

Actual: eventually the app restarts or is killed, and you get kicked back to the "join community" screen

Notes:

  1. It's possible that restarting is the thing that triggers this, i.e. that account state is never saved.
  2. When this happened to me, the "reset" happened when I switched to another app. But also it seemed that I had to be in the channel for some amount of time... I'm not sure.
  3. It also seems like it happens more in communities with lots of messages.
  4. App data appears to be saved, because after reset the app is using a lot of data. It looks like it has synced all our community's messages.
@holmesworcester holmesworcester added the bug Something isn't working label Apr 2, 2022
@siepra siepra changed the title android app loses data, resets to "join community" state Android app loses data, resets to "join community" state Aug 16, 2022
@siepra siepra self-assigned this Sep 6, 2022
@siepra siepra removed their assignment Sep 7, 2022
@siepra
Copy link
Contributor

siepra commented Sep 7, 2022

It looks like it's easy to reproduce in a mature community like our own

@vinkabuki vinkabuki self-assigned this Sep 8, 2022
@vinkabuki vinkabuki removed their assignment Sep 8, 2022
@vinkabuki
Copy link
Contributor

Not enough information provided to work on this. No steps to reproduce or even a info when does it happen? on runtime? on restart?

@Dinek007 Dinek007 self-assigned this Sep 8, 2022
@Dinek007 Dinek007 removed their assignment Sep 8, 2022
@holmesworcester
Copy link
Contributor Author

holmesworcester commented Sep 9, 2022

This looks like one solution:

rt2zz/redux-persist#284 + https://www.npmjs.com/package/redux-persist-filesystem-storage

I'm also curious if there's a way we can store less data in redux persist, e.g. just the latest messages in each channel, the channel list, user info, etc. My memory of the reason for redux-persist is that it improved app start time by a lot, and simplified saving everything.

Any solution that allows us to use the app regularly without it crashing/resetting in this way is acceptable. We do not have to tackle performance or efficiency issues at this point if there's some way we can get the app to work.

@siepra
Copy link
Contributor

siepra commented Sep 12, 2022

PR with a fix proposition #907

@siepra
Copy link
Contributor

siepra commented Nov 21, 2022

I'm closing this ticket and moving it to "done" column as it's not easily testable by QA and we haven't seen this problem for a few weeks already

@siepra siepra closed this as completed Nov 21, 2022
@holmesworcester holmesworcester moved this to Done in Quiet Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

4 participants