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

Sync sometimes never finishes/is very slow #6027

Closed
SimonBrandner opened this issue May 11, 2022 · 8 comments · Fixed by #6917
Closed

Sync sometimes never finishes/is very slow #6027

SimonBrandner opened this issue May 11, 2022 · 8 comments · Fixed by #6917
Assignees
Labels
A-Performance A-Sync O-Occasional Affects or can be seen by some users regularly or most users rarely S-Critical Prevents work, causes data loss and/or has no workaround T-Defect Something isn't working: bugs, crashes, hangs and other reported problems X-Regression

Comments

@SimonBrandner
Copy link

Steps to reproduce

  1. Don't use Element for a while
  2. Open Element
  3. Wait for it to sync
  4. Wait for it to sync
  5. Wait for it to sync
  6. It has taken several minutes

Outcome

What did you expect?

The sync to be very quick

What happened instead?

It took several minutes

Your phone model

M2004J19C; Moto G7 plus

Operating system version

11 (API 30) V12.5.5.0.RJCEUXM-REL; 10 (API 29) fac4a-REL

Application version and app store

1.4.13

Homeserver

matrix.org; element.io

Will you send logs?

Yes

@SimonBrandner SimonBrandner added the T-Defect Something isn't working: bugs, crashes, hangs and other reported problems label May 11, 2022
@SimonBrandner SimonBrandner added A-Performance X-Regression A-Sync S-Major Severely degrades major functionality or product features, with no satisfactory workaround O-Occasional Affects or can be seen by some users regularly or most users rarely labels May 11, 2022
@aidaho
Copy link

aidaho commented May 14, 2022

In my case I've waited for 20 minutes without any progress.
Workaround is to unsubscribe from all the channels you don't actively participate in, then kill and start the app again.

I too believe this is probably a regression, as I'm primarily using Element from desktop and only occasionally launch it on the phone to send a pic.
Previously the android app synced within reasonable timeframe.

@ouchadam
Copy link
Contributor

does the sync eventually start and complete?

@SimonBrandner
Copy link
Author

does the sync eventually start and complete?

It quite certainly starts but I am not sure if it ever ends - when this happens I tend to just kill the app and start it again, the sync status then shows a decreased number of rooms to process and then finishes

@SimonBrandner
Copy link
Author

Ok, so I think it does finish but it can take up to several minutes to do that

Is there any more info I could provide?

@toshanmugaraj
Copy link
Contributor

toshanmugaraj commented Jun 9, 2022

I don't see such delay in sync for iOS. In iOS they have recently also further improved by updating the Realm framework. Seems it has improved the decryption tasks performance.

element-hq/element-ios#6239

@toshanmugaraj
Copy link
Contributor

toshanmugaraj commented Jun 9, 2022

When I receive a notification, and I tap it to view, and when the application is not used for a long , it starts syncs for around 1 to 1.5 min , before I can read the message. And user interface is little confusing, as when user expects to see the new message immediately.
Can be better if at there is a progress indication for the Sync.

@SimonBrandner SimonBrandner changed the title Sync can take up to several minutes Sync sometimes never finishes Jul 28, 2022
@SimonBrandner SimonBrandner changed the title Sync sometimes never finishes Sync sometimes never finishes/is very slow Jul 28, 2022
@manuroe manuroe added S-Critical Prevents work, causes data loss and/or has no workaround and removed S-Major Severely degrades major functionality or product features, with no satisfactory workaround labels Aug 3, 2022
@manuroe
Copy link
Member

manuroe commented Aug 3, 2022

I increased the severity to treat this issue as a P1.
We will check the issue after the completion of #6498 and #5842 that will change the threading model.
ElementR-Android that will use the Rust crypto module will also have an impact in, hopefully, the good way.

@SimonBrandner
Copy link
Author

I increased the severity to treat this issue as a P1. We will check the issue after the completion of #6498 and #5842 that will change the threading model. ElementR-Android that will use the Rust crypto module will also have an impact in, hopefully, the good way.

Do you have a rough time estimate for that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Performance A-Sync O-Occasional Affects or can be seen by some users regularly or most users rarely S-Critical Prevents work, causes data loss and/or has no workaround T-Defect Something isn't working: bugs, crashes, hangs and other reported problems X-Regression
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants