element-android icon indicating copy to clipboard operation
element-android copied to clipboard

Sync sometimes never finishes/is very slow

Open SimonBrandner opened this issue 3 years ago • 8 comments

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 avatar May 11 '22 17:05 SimonBrandner

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.

aidaho avatar May 14 '22 21:05 aidaho

does the sync eventually start and complete?

ouchadam avatar May 23 '22 16:05 ouchadam

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 avatar May 24 '22 15:05 SimonBrandner

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?

SimonBrandner avatar May 30 '22 06:05 SimonBrandner

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.

https://github.com/vector-im/element-ios/issues/6239

toshanmugaraj avatar Jun 09 '22 09:06 toshanmugaraj

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.

toshanmugaraj avatar Jun 09 '22 09:06 toshanmugaraj

I increased the severity to treat this issue as a P1. We will check the issue after the completion of https://github.com/vector-im/element-android/issues/6498 and https://github.com/vector-im/element-android/issues/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.

manuroe avatar Aug 03 '22 14:08 manuroe

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?

SimonBrandner avatar Aug 03 '22 14:08 SimonBrandner