element-hq / element-android

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

High resolution images fail to render & Image replies don't show images #8558

Open Riven-Spell opened 1 year ago

Riven-Spell commented 1 year ago

Steps to reproduce

There are two different cases where this will happen, one is guaranteed, the other is random.

The guaranteed case:

  1. From another client (e.g. Element Web), reply to a message with an image
  2. Open the chat
  3. No image is present in the message.
  4. The image can be viewed in the "uploads" section of the chat info.

The random (1 in 3) case:

  1. Receive an image, either from another user, or by sending it from another client
  2. Open the chat
  3. The image is transparent/does not exist, but the message displays like it has an image. Clicking on the image does not display it either.
  4. The image is also empty in the "uploads" section of the chat info.

In both cases, hitting the download button when attempting to view the image will successfully pull it.

Outcome

What did you expect?

I expected the image that was sent to be displayed.

What happened instead?

The image either did not appear, or appeared invisible.

Your phone model

Pixel 7 Pro

Operating system version

Android 13 TQ2A.230505.002

Application version and app store

F-Droid Element version 1.5.32, Matrix SDK Version 1.5.32, olm version 3.2.12

Homeserver

synadm output: Server version 1.86.0, Python version 3.9.2

Will you send logs?

Yes

Are you willing to provide a PR?

Yes

Riven-Spell commented 1 year ago

I have shook & uploaded 3 bug reports w/ images regarding this. How would I go about linking them to the issue?

Riven-Spell commented 1 year ago

I suspect the "random" case is related to the resolution of images sent. The ones that tend to disappear are generally extremely high resolution images (~3000x4000), or high file size (~several MB).

Riven-Spell commented 1 year ago

https://img3.gelbooru.com//images/7c/b1/7cb1e85fd9ec5231b747fb2df82c1e5e.png

This image (sfw) should reliably fail to render on Element for Android.

ninchuka commented 1 year ago

I have shook & uploaded 3 bug reports w/ images regarding this. How would I go about linking them to the issue?

mention the issue number in the rageshake when it asks for more information and element android is mainly in maintenance mode and the main focus is on element x android