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

Image with size 720x1280 or less pixels not displayed in chat view

Open gerryfrancis opened this issue 4 years ago • 3 comments

  • Android version: Android 10.

  • Device: Fairphone FP2 (Lineage OS 17.1 build QQ3A.200805.001 from 2021-04-30).

  • Delta Chat version: 1.19.2 (latest nightly build).

  • Expected behavior: Images with a size of 720 x 1280 or less pixels should be displayed in messages.

  • Actual behavior: Images with a size of 720 x 1280 or less pixels are not displayed in messages. (The place where the image supposed to be is blank.)

  • Steps to reproduce the problem: -- Receive a message with an image of 720 x 1280 or less pixels size. (A PNG file should fail as described.)

  • Screenshots: Screenshot_20210504-103522_Delta_Chat_2

  • Logs: N/A.

gerryfrancis avatar May 04 '21 08:05 gerryfrancis

I just found out that images with a size of less than 720 x 1280 cause the issue, too. Description adjusted...

gerryfrancis avatar May 04 '21 14:05 gerryfrancis

Exception log from @adbenitez

05-03 23:27:28.831  5333  5764 E Parcel  : Class not found when unmarshalling: org.thoughtcrime.securesms.database.Address
05-03 23:27:28.831  5333  5764 E Parcel  : java.lang.ClassNotFoundException: org.thoughtcrime.securesms.database.Address
05-03 23:27:28.831  5333  5764 E Parcel  :      at java.lang.Class.classForName(Native Method)
05-03 23:27:28.831  5333  5764 E Parcel  :      at java.lang.Class.forName(Class.java:454)
05-03 23:27:28.831  5333  5764 E Parcel  :      at android.os.Parcel.readParcelableCreator(Parcel.java:3031)
05-03 23:27:28.831  5333  5764 E Parcel  :      at android.os.Parcel.readParcelable(Parcel.java:2981)
05-03 23:27:28.831  5333  5764 E Parcel  :      at android.os.Parcel.readValue(Parcel.java:2883)
05-03 23:27:28.831  5333  5764 E Parcel  :      at android.os.Parcel.readArrayMapInternal(Parcel.java:3261)
05-03 23:27:28.831  5333  5764 E Parcel  :      at android.os.BaseBundle.initializeFromParcelLocked(BaseBundle.java:292)
05-03 23:27:28.831  5333  5764 E Parcel  :      at android.os.BaseBundle.unparcel(BaseBundle.java:236)
05-03 23:27:28.831  5333  5764 E Parcel  :      at android.os.BaseBundle.getString(BaseBundle.java:1160)
05-03 23:27:28.831  5333  5764 E Parcel  :      at android.content.Intent.getStringExtra(Intent.java:8548)
05-03 23:27:28.831  5333  5764 E Parcel  :      at com.android.server.wm.ActivityStarter.startActivity(ActivityStarter.java:765)
05-03 23:27:28.831  5333  5764 E Parcel  :      at com.android.server.wm.ActivityStarter.startActivity(ActivityStarter.java:676)
05-03 23:27:28.831  5333  5764 E Parcel  :      at com.android.server.wm.ActivityStarter.startActivityMayWait(ActivityStarter.java:1776)
05-03 23:27:28.831  5333  5764 E Parcel  :      at com.android.server.wm.ActivityStarter.execute(ActivityStarter.java:607)
05-03 23:27:28.831  5333  5764 E Parcel  :      at com.android.server.wm.ActivityTaskManagerService.startActivityAsUser(ActivityTaskManagerService.java:1615)
05-03 23:27:28.831  5333  5764 E Parcel  :      at com.android.server.wm.ActivityTaskManagerService.startActivityAsUser(ActivityTaskManagerService.java:1512)
05-03 23:27:28.831  5333  5764 E Parcel  :      at com.android.server.wm.ActivityTaskManagerService.startActivity(ActivityTaskManagerService.java:1466)
05-03 23:27:28.831  5333  5764 E Parcel  :      at android.app.IActivityTaskManager$Stub.onTransact(IActivityTaskManager.java:1655)
05-03 23:27:28.831  5333  5764 E Parcel  :      at android.os.Binder.execTransactInternal(Binder.java:1056)
05-03 23:27:28.831  5333  5764 E Parcel  :      at android.os.Binder.execTransact(Binder.java:1029)
05-03 23:27:28.831  5333  5764 E Parcel  : Caused by: java.lang.ClassNotFoundException: org.thoughtcrime.securesms.database.Address
05-03 23:27:28.831  5333  5764 E Parcel  :      ... 20 more

The image for testing from @adbenitez 2

link2xt avatar May 04 '21 18:05 link2xt

the image is shown properly if the glide plugin we use for APNG and animated webp are disabled, so it seems an issue with https://github.com/penfeizhou/APNG4Android, I opened an issue there:

https://github.com/penfeizhou/APNG4Android/issues/119

adbenitez avatar Oct 16 '21 22:10 adbenitez

@adbenitez Any news on this issue? Thanks in advance!

gerryfrancis avatar Jan 02 '23 15:01 gerryfrancis

@gerryfrancis The issue was fixed in APNG but on DC (1.34.12) no...

ghost avatar Feb 05 '23 19:02 ghost

In regard to https://github.com/deltachat/deltachat-android/issues/1915 , we still have issues with images that are not displayed in chats, although there is new evidence: When that happens, such entries can be found in the log:

04-06 11:19:40.948 2189 2189 W ThumbnailView: Not re-loading slide file:///data/user/0/chat.delta.beta/files/accounts/378b7cfa-a213-4ff9-8291-057dfd33def3/dc.db-blobs/image_2023-04-06_09-02-31.webp 04-06 11:19:40.972 2189 2189 W ThumbnailView: Not re-loading slide file:///data/user/0/chat.delta.beta/files/accounts/378b7cfa-a213-4ff9-8291-057dfd33def3/dc.db-blobs/image_2023-04-06_09-02-43.webp

There seems to be a false interpretation, because although the images were loaded (delivered) into the chat, they should be loaded for displaying as well (unless they are still in RAM).

The funny thing is: When you scroll back to images that were sent/received earlier, but not displayed, all of sudden they appear in the chat.

gerryfrancis avatar Apr 06 '23 10:04 gerryfrancis