Image takes time to load

Apparently there is a bug with the image component. It doesn’t matter where the images come from (assets, external storage). The loading of the images takes between 4 and 83 seconds. Tested on various devices with Android 8, 9.

Note: I repeated these tests again later in the evening and found that the results could hardly be reproduced. The delayed display of the image was still there, but minimal. This morning, however, the problems could be reproduced again. I have no idea what exactly was / is the cause. I suspect it is related to the stability / quality of the WiFi. When the WiFi is diabled, the problems do not arise. (No internet is required in my test APK.)

To work around this issue (bug) (until there is a fix), you have 2 options:

  1. Place the image(s) in an arrangement as a background image
  2. disconnect WiFi (using Taifun’s WiFi extension: App Inventor Extensions: WiFi | Pura Vida Apps)

Check this APK: imageLoad_bug.apk (4.9 MB) (Note: enable WiFi on your device !)
Note: There are no issues at all in AI2: imageLoad_AI2.apk (3.4 MB)

Here is one of my tests (Galaxy Note8 Android 9, Galaxy A3 Android 8):

Screen1:

Screen2:

5 Likes

Nice testing @bodymindpower.

3 Likes

There is no need to answer once and once again.
The bug is already fixed for next release.

3 Likes

Thanks for taking your time for all the testing.

I’ve found systematically that I have the slowest load speeds for the images between midnight and noon (i’m in South América), don’t know if it’s maybe a server issue and most of Kodular apps are in the other side of the world (India). I don’t know. Just a thought.

1 Like

It would be nice to communicate this to the audience…

1 Like

A post was split to a new topic: Sharing payed extensions

I can’t find a clue anywhere that the problem has been fixed.
By the way, I would also be interested in what exactly causes the problem.

Looks like there are two topics about the same issue.

1 Like

Bug had nothing to do with internet connection or else.
Reason: The image was loaded async while the whole process was in another async method.

Yes, that’s annoying.
Thanks for the hint, I will test it.

1 Like

Ok, thanks. But why do I have no issues if the WiFi is disconnected?

I checked the app on the Beta server and everything seems to be fine now.

3 Likes

Anyone get the solution? :pensive:

Yes. I have the solution for you.
Be patient and wait for the next release. I already told that the bug is fixed for next release.

2 Likes

OK thanks for your hard working :metal:

2 Likes

I think cause of the probem is that, when internet connection is off then images loads form assets while when it is on it loads from the kodular server assets, because if someone not give the permission for storage it directly loads from the server, thats why if internet turned off images load instantly from the storage not from interent.

thanks for such testing, now im going to check for wifi extension but you provided it, thanks for it…

is there any way to turn on/off internet connection using any extension, this extension is only for wifi. what about internet connection ?

NO

3 Likes

But I’m really curious as to why it works when WiFi is disconnected.

And how can this behavior be explained?

I did these tests on serveral devices with the same result.
@Mika said that “had nothing to do with internet connection or else”, but there must be a reason for that behavior. I like to get to the bottom of things.

4 Likes

I agree. This also a serious concern