Android SendBird SDK showing connect failure and also Glide unable to load images

I am seeing SendBird Chat SDK unable to retain connection as well as Glide (Image Loading) library unable to load images in the chat screen. I did the integration of SendBird Chat SDK as per provided documentation and sample code. I had a cross-verified internet connection a few times and it’s working fine at all.

Please checkout logs shown to me in logcat from SendBird Chat SDK:

2021-12-09 18:48:58.898 26102-26352/com.me.myapp E/PINGER: [18:48:58.896 Connection$Pinger:stop():448] Pinger stop timer is null
2021-12-09 18:48:58.907 26102-26352/com.me.myapp E/Sendbird:PINGER: [18:48:58.901 Connection$Pinger:stop():449] Pinger stop timer is null
2021-12-09 18:48:58.916 26102-26521/com.me.myapp W/SendBird: [18:48:58.915 Connection$1:onFailure():194] onFailed instance : com.sendbird.android.Connection@4f32e67
2021-12-09 18:48:58.920 26102-26521/com.me.myapp W/Sendbird: [18:48:58.917 Connection$1:onFailure():195] onFailed instance : com.sendbird.android.Connection@4f32e67
2021-12-09 18:48:58.921 26102-26521/com.me.myapp W/SendBird: [18:48:58.921 Connection$1:onFailure():200] onFailed handler : com.sendbird.android.SocketManager@77c6708
2021-12-09 18:48:58.922 26102-26521/com.me.myapp W/Sendbird: [18:48:58.922 Connection$1:onFailure():201] onFailed handler : com.sendbird.android.SocketManager@77c6708
2021-12-09 18:48:58.923 26102-26521/com.me.myapp W/SendBird: [18:48:58.923 SocketManager:onError():763] >> onError : Socket is closed, reconnecting : true, explicitDisconnect : true
2021-12-09 18:49:03.777 26102-26102/com.me.myapp W/Glide: Load failed for https://file-us-3.sendbird.com/eda9af4c31464fbbac714f1448ace174.jpeg with size [723x478]
    class com.bumptech.glide.load.engine.GlideException: Failed to load resource
2021-12-09 18:49:03.787 26102-26326/com.me.myapp W/com.me.myap: Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
2021-12-09 18:49:03.790 26102-26326/com.me.myapp W/com.me.myap: Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
2021-12-09 18:49:03.790 26102-26326/com.me.myapp W/com.me.myap: Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
2021-12-09 18:49:12.989 26102-26354/com.me.myapp W/SendBird: [18:49:12.987 JobTask$callable$1:call():11] SendBirdException{code=800120, message=timeout}
        at com.sendbird.android.APIRequest.request(APIRequest.java:154)
        at com.sendbird.android.APIRequest.GET(APIRequest.java:113)
        at com.sendbird.android.APIClient$2.call(APIClient.java:3301)
        at com.sendbird.android.APIClient$2.call(APIClient.java:3298)
        at com.sendbird.android.JobTask$callable$1.call(JobTask.kt:9)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:919)
2021-12-09 18:49:13.254 26102-26102/com.me.myapp W/Glide: Load failed for https://file-us-3.sendbird.com/5bca3b42754149cebcc06820d49615cd.jpeg with size [723x478]
    class com.bumptech.glide.load.engine.GlideException: Failed to load resource

Let me know if you need anything else from my end. Looking forward to quick help from your side. Thanks.

1 Like

Yesterday or so I too had difficulties loading the images.

Hey @bipinvaylu,

Can you clarify a bit about the above. Are you saying that currently no images are loading via Glide?

Can you list the SDK version:

Steps to reproduce this:

Screenshots of the issue:

Hey Alex,

Sure, This issue happening randomly and I am seeing that sometimes it gets disconnected as I am seeing in the above-shared logs, and also media is not getting loaded. Whenever I see this issue in the UI at that time shared logs are there in Android Studio Logcat. I haven’t verified this in your sample code but I am sure I followed all the guidelines as per documentation and it’s been happening since last week. I had integrated SendBird about 4 months back in my app.

Can you list the SDK version:

  • SendBird: sendbird-android-sdk:3.0.172, sendbird-syncmanager:1.1.31
  • Glide: glide_version = “4.12.0”
  • Chat kit: stfalcon-studio:Chatkit:0.4.1

Steps to reproduce this:

  1. Just open personal or group chat where you have a few media already shared

Screenshots of the issue:

  • No handy at the moment whenever it will happen again, I will take a few and share them here.

@bipinvaylu,

I was not able to reproduce this in the sample were you?