element-hq / element-android

A Matrix collaboration client for Android.
https://element.io/
Apache License 2.0
3.32k stars 705 forks source link

Sharing a picture via Riot/X fails. It worked in Riot.im #886

Closed the-moog closed 3 years ago

the-moog commented 4 years ago

If I take a photo, press share then select a room I get a red excamation mark rather than a picture. In Riot.im this works ok, the picture is posted to the room.

You also used to get a prompt to decide what size picture to share.

bmarty commented 4 years ago

We will check that, thanks

bmarty commented 4 years ago

Please check with upcoming RiotX v0.17.0 if it works better

the-moog commented 4 years ago

I'll test it but won't use Riot/X until it supports configurable identity servers. We use features of MA1SD/MXISD that we can't do without.

LeoniePhiline commented 4 years ago

I cannot send pictures any more since 0.17.

I get "Waiting..." and an indeterminate progress bar which will never resolve. A long press shows a bottom sheet saying "Sending message".

Screenshot_20200305_110325_im vector riotx

The RiotX folder contains successfully downsampled images.

dreamerchris commented 4 years ago

Same here, I made a screenshot and pressed send from the phone gallery to riotx app then selected the room to send it and first time it timedout second time still waiting after more than 10 minutes

Screenshot_2020-03-06-18-44-21-980_im vector riotx Screenshot_2020-03-06-18-44-41-520_im vector riotx

dreamerchris commented 4 years ago

Same after clear cache

LeoniePhiline commented 4 years ago

I'm already waiting for two days.

It's pretty nasty having to scroll up by 14 pretending-to-be-sending images just to see the newest messages in the 1:1 chat.

If at least the pictures were sorted at their send dateTime rather than always appear at the bottom, that would make things better.

There's also no way to cancel sending of single items or clear the entire queue.

Dragnucs commented 4 years ago

I am also stuck with this. I tried sending some video from the gallery. This usually works without issue, but today, I had a network issue and the phone switched from the slow Wi-Fi to mobile data, thus interrupting the upload. The video is still sending for a few hours now.

Dragnucs commented 4 years ago

I got rid of the pending upload by deleting the file then clearing the cache from the application settings. I am not sure if the file deletion did help.

LeoniePhiline commented 4 years ago

I tried that, but it didn't work for me unfortunately.

I have ~15 pics stalled at upload and clogging my conversation - and no way to remove them. :(

Dragnucs commented 4 years ago

@LeoniePhiline have you tried the option from Android or RiotX? The one that worked for me is RiotX > drawer > Account settings > General > Clear cache > restart the application.

Edit: I am on the Dev branch.

LeoniePhiline commented 4 years ago

This worked! Fantastic. Yeah I had previously cleared the cache via the Android Apps Settings - that had not had any effect.

LeoniePhiline commented 4 years ago

So I tried sending a new photo, and it again got stalled right away. Can I help with any log output etc. to see why they get stuck? I have already had success sending pics, so it's not a general problem, but a very very common one.

Dragnucs commented 4 years ago

It seems to happen a lot on slow or intermittent connexion. I send. A lot of pictures and most of the time it works. I have 4G.

LeoniePhiline commented 4 years ago

I also observed this happening when switching between 4G and wifi while pics were meant to be uploaded.

But it also happened to me at home in wlan where i did not observe any connection flakiness at that time.

Bubu commented 4 years ago

I just sent a rageshake for this.I could send a picture into one chat but couldn't upload any into another chat.

bmarty commented 3 years ago

Sending of attachment has been reworked, feel free to re-open the issue or to open a new one if you still have pb about that.