Deltachat-android: Navigation with too many lag through the emoji panel

Created on 24 Jun 2020  路  10Comments  路  Source: deltachat/deltachat-android

  • Operating System Android 6.0.1
  • Delta Chat Version: 1.10.3
  • Expected behavior: Smooth navigation through the panel of emojis
  • Actual behavior: Navigation with too many lag

  • Steps to reproduce the problem: When I enter the section of diversified emojis the app gets very slow, and the general performance of my phone too

  • Screenshots:
  • Logs:
    deltachat-log-20200624-093820.txt
bug

Most helpful comment

i had a look at the source code to get the exact meaning of:

memory=53M (0.58% free, 256M max)

  • 53 mb: "total amount of memory in the Java virtual machine" resp. "the total amount of memory currently available for current and future objects"
  • 0.58% of these 53 mb are currently free, garbage collection is done to get more free memory
  • 256 mb: "the maximum amount of memory that the virtual machine will use" - however, in practise, this amount seems to be shared with other apps, so it may not be really reachable. this is not necessarily the amount of memory physically available in the device.

All 10 comments

maybe, this is related to the 256MB memory, can confirm that things are not-so-good with few ram (256MB ram seems to be low-end nowadays).

and yes, compared to the old one, the new emoji panel seems to consume more ram, maybe we can tweak that, however, also not sure if there are significant changes compared to the signal upstream, cc @cyBerta

256mb is that amount of memory that android assign to delta?

@gilbertolazaro92 Well, the log you have provided states 0.58% free memory, that would be ~1.5 MB... ;)

i had a look at the source code to get the exact meaning of:

memory=53M (0.58% free, 256M max)

  • 53 mb: "total amount of memory in the Java virtual machine" resp. "the total amount of memory currently available for current and future objects"
  • 0.58% of these 53 mb are currently free, garbage collection is done to get more free memory
  • 256 mb: "the maximum amount of memory that the virtual machine will use" - however, in practise, this amount seems to be shared with other apps, so it may not be really reachable. this is not necessarily the amount of memory physically available in the device.

Have 1.5 gb with at least 400 or 350 mb free when I use that versions, also both device storage and sd card have 1.4 and 2 gb free but when navigate through that specific section of the emoji panel(diversified emojis) the general performance of the phone decrease considerably

had a closer look on the issue with @cyBerta today, we did not found a "simple" solution, it's just _many_ views, that need to be handled. they are created on the fly and recreated as needed to save memory, all this seems fine at a first glance, however, this may led to some lag when there is too few memory available (for whatever reason).

so, concrete ideas/pr welcome :)

maybe related https://github.com/signalapp/Signal-Android/issues/8453 (Delta Chat is using the emoji picker from Signal)

Cannot see any constraint at my device (S3 mini, Android 4.1.2).
I use DC 1.2.1 with some tweaks. But things around emoji panel is not changed related to original 1.2.1.

I use DC 1.2.1 with some tweaks. But things around emoji panel is not changed related to original 1.2.1.

this is not true - or a misunderstanding :) the emoji-panel was completely revamped in 1.10.3 , see https://github.com/deltachat/deltachat-android/pull/1410 and also subsequent fixes targeting android4.

to check, if you are actually using the new emoji-selector, long-tap etc. on the pointing hand 鈽濓笍:

I think I have the old code. Long-tap to any icon doesn't show any action as described here.

the old code does not have this issue. however, tbh, i am also failing to reproduce that on my slower devices currently.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gerryfrancis picture gerryfrancis  路  4Comments

AndreasLattmann picture AndreasLattmann  路  4Comments

adbenitez picture adbenitez  路  4Comments

gerroon picture gerroon  路  3Comments

r10s picture r10s  路  4Comments