-
Notifications
You must be signed in to change notification settings - Fork 616
java.lang.IllegalArgumentException a lot of them being logged in google play console #1830
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I found a few problems with this issue:
|
@AbdullahNasim00 thanks for reporting. Can you let us know what SDK version(s) are seeing this issue? |
The issue was there till we were using the following SDKs: implementation 'com.google.firebase:firebase-core:17.4.4' In the latest update we have updated the SDKs to: implementation 'com.google.firebase:firebase-core:17.4.4' It's still there in the latest SDK. We started getting this exception from the time we started adding image to our notification. Hope it helps. |
@AbdullahNasim00 I'm also getting a similar kind of crash whenever sending notifications with images, using firebase messaging 20.3.0, so far it has been observed on various devices running android 9 and 10.
One thing I noticed in the stacktrace was this line:
It is only handling In the meanwhile what I've implemented is I've overridden the
@zwu52 would this be a good idea? |
- Switched to stopping an image download by canceling a Future to interrupt the download thread instead of trying to close the InputStream directly since the underlying library does not appear to be thread safe and can throw a variety of Exceptions when close is called on a different thread (#1830 for a previous issue).
- Switched to stopping an image download by canceling a Future to interrupt the download thread instead of trying to close the InputStream directly since the underlying library does not appear to be thread safe and can throw a variety of Exceptions when close is called on a different thread (#1830 for a previous issue).
- Switched to stopping an image download by canceling a Future to interrupt the download thread instead of trying to close the InputStream directly since the underlying library does not appear to be thread safe and can throw a variety of Exceptions when close is called on a different thread (#1830 for a previous issue).
- Switched to stopping an image download by canceling a Future to interrupt the download thread instead of trying to close the InputStream directly since the underlying library does not appear to be thread safe and can throw a variety of Exceptions when close is called on a different thread (#1830 for a previous issue).
This should be fixed in the latest version of the SDK. |
We have started getting the following exception which is only logged in google play console. Not sure about the exact issue but seems like a bug in FirebaseMessagingService SDK.
java.lang.IllegalArgumentException:
at com.android.okhttp.okio.RealBufferedSource.read (RealBufferedSource.java:53)
at com.android.okhttp.internal.http.Http1xStream$ChunkedSource.read (Http1xStream.java:641)
at com.android.okhttp.internal.Util.skipAll (Util.java:177)
at com.android.okhttp.internal.Util.discard (Util.java:159)
at com.android.okhttp.internal.http.Http1xStream$ChunkedSource.close (Http1xStream.java:674)
at com.android.okhttp.okio.RealBufferedSource.close (RealBufferedSource.java:422)
at com.android.okhttp.okio.RealBufferedSource$1.close (RealBufferedSource.java:410)
at com.google.android.gms.internal.firebase_messaging.zzi.zza
at com.google.firebase.messaging.ImageDownload.close
at com.google.firebase.messaging.DisplayNotification.waitForAndApplyImageDownload
at com.google.firebase.messaging.DisplayNotification.handleNotification
at com.google.firebase.messaging.FirebaseMessagingService.dispatchMessage
at com.google.firebase.messaging.FirebaseMessagingService.passMessageIntentToSdk
at com.google.firebase.messaging.FirebaseMessagingService.handleMessageIntent
at com.google.firebase.messaging.FirebaseMessagingService.handleIntent
at com.google.firebase.messaging.EnhancedIntentService.lambda$processIntent$0$EnhancedIntentService
at com.google.firebase.messaging.EnhancedIntentService$$Lambda$0.run (Unknown Source:6)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
at com.google.android.gms.common.util.concurrent.zza.run (Unknown Source:6)
at java.lang.Thread.run (Thread.java:919)
The text was updated successfully, but these errors were encountered: