-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Untraceable fatal Exception caused by java.lang.IllegalArgumentException: byteString == null #2281
Comments
Somehow your cache is being corrupted. Are you able to reproduce? |
Unable to reproduce. Seems to happen randomly On Sun, Feb 21, 2016, 12:14 PM Jesse Wilson [email protected]
|
No clear action for us to take here. If you can figure out how to reproduce this, please let us know. |
Sounds good. Thanks for looking into it On Sun, Feb 21, 2016 at 9:44 PM Jesse Wilson [email protected]
|
It has been also reported here: hub4j/github-api#265 (effectively, from one of Jenkins plugins). CC @ligi . Maybe he could provide reproduction steps |
Reproduced, have test case ;) |
Not reproducible for me just to add it's happening on Motorola Marshmallow for me: http://crashes.to/s/e86f7ac4202 |
I have started seeing a similar crash in my app in the field, being reported by Firebase. Since I don't have a device with the problem in front of me I can't get a lot more information. I am using retrofit:2.7.0, But the stack trace is similar: Fatal Exception: java.lang.IllegalArgumentException okio.Buffer.write (Buffer.java:955) |
@martin-academia which version of OkHttp are you using? The error suggests a corrupted cache entry, so either we try to work out root cause (code, or external factors) or improve error handling for this case.
Ideally we would need a reproduction with 4.9.0 or 3.12.12? I know that might be hard if you can't repro yourself. |
Oh interesting, we didn't have an explicit dependency on OkHttp in our build.gradle, so I assume we were getting some default from retrofit 2.7.0. |
One thing I noticed: When we were constructing the OkHttpClient, we created the cache with |
That's a great data point. 3.14 isn't maintained. So we would fix a bug on 4.x (Kotlin and Android 5+) or 3.12.x (legacy Android) |
We are facing daily crashes because of this issue. Is there any update on this? |
We don't have a reproduction for this, the suggested one above turned out not to be the case. |
Originally in Retrofit issues, Jake told me to post this here:
From time to time I am experiencing this fatal error when performing a request. It only happens to one request at a time and I cannot get it to go away until I uninstall and reinstall the application. I am using:
com.squareup.retrofit2:retrofit:2.0.0-beta3
and here is the error:
Let me know if you need more information
EDIT: I was able to get the error to stop if I went to system setting and cleared the app cache manually
The text was updated successfully, but these errors were encountered: