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

Login takes a long time #3031

Open
martonp opened this issue Oct 18, 2024 · 5 comments
Open

Login takes a long time #3031

martonp opened this issue Oct 18, 2024 · 5 comments

Comments

@martonp
Copy link
Contributor

martonp commented Oct 18, 2024

When I login, it stays on the loading screen for a long time. If I refresh the page and enter my password, it immediately goes to the wallets page. It would be better if it was quicker after the first password entry.

@martonp martonp changed the title Login takes a long tim Login takes a long time Oct 18, 2024
@norwnd
Copy link
Contributor

norwnd commented Oct 19, 2024

Can confirm, often takes longer than 5 seconds for me even on M3 pro mac (probably establishes some connections during startup in blocking manner).

@buck54321
Copy link
Member

If someone could identify what part of Login is actually taking a long time, that'd be a start. I have some memory that it's taking a long time connecting to a native spv wallet, but I'm not certain.

@ukane-philemon
Copy link
Contributor

Connecting wallets took the most time for me on a very good internet connection. 34 and 18 seconds respectively.

I have just 3 wallets, dcr, btc and ltc.

2024-10-23 15:10:41.400 [INF] CORE: Connecting wallets started by 2024-10-23 16:10:06.528011 +0100 WAT m=+11.695277194 and finished in 34.872953222s

....

2024-10-23 15:10:41.406 [INF] CORE: Resuming trades started by 2024-10-23 16:10:41.402306 +0100 WAT m=+46.569649780 and finished in 4.156821ms

....

2024-10-23 15:10:41.711 [INF] CORE: Connecting to dex servers started by 2024-10-23 16:10:41.407894 +0100 WAT m=+46.575237592 and finished in 303.999903ms

2024-10-23 15:13:17.810 [INF] CORE: Connecting wallets started by 2024-10-23 16:12:59.612841 +0100 WAT m=+28.132553629 and finished in 18.197418874s

...

2024-10-23 15:13:17.810 [INF] CORE: Resuming trades started by 2024-10-23 16:13:17.810252 +0100 WAT m=+46.330005168 and finished in 72.792µs

....

2024-10-23 15:13:18.081 [INF] CORE: Connecting to dex servers started by 2024-10-23 16:13:17.81034 +0100 WAT m=+46.330092941 and finished in 271.066312ms

@martonp
Copy link
Contributor Author

martonp commented Oct 24, 2024

My main question is, why does it sit there loading, but if I refresh and reenter the password, it immediately goes to the wallets page.

@norwnd
Copy link
Contributor

norwnd commented Nov 19, 2024

If someone could identify what part of Login is actually taking a long time, that'd be a start.

For one, "connecting to DEX servers..." seems to be a blocking operation during login because, from what I've gathered, there is some server maintenance happening at the moment and my app (at 1.0.2) is stuck (for many minutes) at the following screen:

image

It's probably better to connect to server(s) in background and redirect user to wallet(s) page as soon as they fill in their password at login page, like martonp suggests, simply because wallet data is readily available for displaying for the most part (it's not 100% fresh until wallets fully sync, but it's probably better than showing a load-screen for several seconds).

Additionally, there might be more "issues" related to connecting to server(s) during login, namely I see the following notifications that suggest my Bison app actually did connect to the server:

image

but for some reason it's still stuck at login screen. So either something isn't right with that notification message, or more likely - there isn't a proper handling (or web-page transition) for the case when

  • user tries to login into Bison wallet
  • while at the same time there is a temporary connectivity issue between Bison wallet and server (due to temporary internet blip, or server restarting or similar)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants