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

Stuck at initial loading spinner #4159

Closed
alreadydone opened this issue Jun 15, 2020 · 8 comments
Closed

Stuck at initial loading spinner #4159

alreadydone opened this issue Jun 15, 2020 · 8 comments
Labels
a-data-sync Zulip's event system, event queues, staleness/liveness P1 high-priority

Comments

@alreadydone
Copy link

Since yesterday, when trying to start Zulip on my Android, the "Z" wheel keeps spinning and the messages never show up. I have tried to clear cache and update, but wouldn't like to uninstall/reinstall or clear all local data, since my server list / login info would be lost. Any idea/suggestions? Thanks for your attention.

@agrawal-d
Copy link
Member

agrawal-d commented Jun 15, 2020

A release was made available to all users on 13 June. Perhaps this is due to the update. Do you recall updating the app recently?

If you use Play Store, you can see recently updated apps:
From the Play Store home screen, tap the Menu icon Menu (upper-left). Tap My apps & games. Then tap 'Installed'.

@alreadydone
Copy link
Author

Sorry? Today is June 15 and the latest release seems to be made on May 6 https://github.com/zulip/zulip-mobile/releases/tag/26.28.151. I first experienced the problem with an unknown earlier version, and just updated to the latest version on Google Play Store (which also shows May 6), and it doesn't help.

@agrawal-d
Copy link
Member

agrawal-d commented Jun 15, 2020

13 July 13 June. Sorry for the typo!

Hmm. I was basing my comment on this message. From that, I understood that Greg released the app on GitHub much earlier, and then to the respective stores on 13th. I'm not sure. @gnprice?

@gnprice
Copy link
Member

gnprice commented Jun 16, 2020

@alreadydone Thanks for the report! That sounds like a nasty symptom -- sorry you're running into it.

What version of the app are you using? You can see this in the Play Store (tap the arrow next to "What's new", scroll down to "App info", and look at the "Version" item), or in the app (go to settings -> Diagnostics, and it's at the top.)

The observations above are all consistent with having just updated to 26.28.151. It's dated May 6 because that's when the release was created, but then it was in beta for a while until June 13.

@gnprice gnprice added a-data-sync Zulip's event system, event queues, staleness/liveness P1 high-priority labels Jun 16, 2020
@gnprice gnprice changed the title [Android] Zulip won't start Stuck at initial loading spinner Jun 16, 2020
@alreadydone
Copy link
Author

@gnprice The version currently on my device is indeed 26.28.151, but I only updated to this version after I've experienced the problem, so the problem should already exist in an earlier version (I don't remember the old version number and don't know how to find out; I probably haven't updated for a few months).

@gnprice
Copy link
Member

gnprice commented Jun 17, 2020

@alreadydone That's helpful, thanks.

One thing that's going on here and which we should certainly improve is:

  • When you launch the app, we go straight to loading current data from the last server you were using. So far that's good -- most people most of the time will want to use the same server they used last, and this helps make the experience good for that case.
  • Once that data loads, we show the whole app UI, including the place to go switch to a different account/server.
  • If on the other hand that attempted load is outright rejected by the server, e.g. saying your login is invalid, then we take you to the screen where you can choose a different account/server, or log in anew on that one.
  • But if the load neither succeeds, nor gets a proper rejection from the server, but just hangs for a long time... then we just stay in limbo at the loading screen. :-/ This is very likely the cause of what you're seeing.

So we should fix that.

I'm also curious to try to potentially debug why the app stopped being able to load your data from the server in the first place. Do you have any ideas about what might have changed when this started happening? On the server you'd used last before seeing this problem (which is the server the app will be trying to load from), did you make any changes around that time? Is it a server you or someone else runs independently, or is it on zulip.com / zulipchat.com?

@chrisbobbe
Copy link
Contributor

chrisbobbe commented Jun 17, 2020

EDIT: moved to CZO, here.

@gnprice
Copy link
Member

gnprice commented Apr 13, 2021

Closing because we don't have information to be able to debug the interaction with the server.

We have #4165 open for a change related to this that we realized we should make.

@gnprice gnprice closed this as completed Apr 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a-data-sync Zulip's event system, event queues, staleness/liveness P1 high-priority
Projects
None yet
Development

No branches or pull requests

4 participants