element-hq / element-android

A Matrix collaboration client for Android.
https://element.io/
GNU Affero General Public License v3.0
3.38k stars 725 forks source link

Sending image is slow #7616

Open rajil opened 1 year ago

rajil commented 1 year ago

Steps to reproduce

  1. Share a photo from Gallery to Element Room (self hosted)
  2. Element starts uploading, says 'Waiting/Sending Message'.

Outcome

What happened instead?

Element continues to say waiting and takes several minutes to upload.

Rage shake uploaded with title 'sending image is slow'

Your phone model

No response

Operating system version

No response

Application version and app store

Element 1.5.7

Homeserver

Synapse 1.71.0+focal1

Will you send logs?

Yes

Are you willing to provide a PR?

No

rajil commented 1 year ago

Sharing the same image to fluffychat is instant with the same homeserver.

DoM1niC commented 1 year ago

ok strange here is all fine -> current Develop Branch

wapsi commented 1 year ago

I've been facing this issue as well for couple of months now, but I'm not 100% sure if the issue is exactly the same I'm having:

If I share some media (photo or video) from my gallery, or if I share some media from Element and select the destination app to be Element, it keeps loading the list of my rooms / p2p chats for a while (like 10 seconds) before I can select the room to where I want to share the item (earlier it wasn't that slow). After that dialog, everything works fast and the actual media upload finishes quickly.

I tested also with another account, which is not joined into so many rooms: the loading phase is a bit faster, but it still keeps loading couple of dozens different rooms for almost 10 seconds, which is quite weird...

brunofontes commented 1 year ago

This also happens to me. Sometimes the upload fails and the retry button does never work. Downloading the images is sometimes very slow as well.

But if I use other tool as "tut", the upload is instantaneous.