Skip to content
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

GZip crash (found in Crashlytics) #323

Closed
KennyGoers opened this issue Nov 3, 2017 · 10 comments
Closed

GZip crash (found in Crashlytics) #323

KennyGoers opened this issue Nov 3, 2017 · 10 comments

Comments

@KennyGoers
Copy link

KennyGoers commented Nov 3, 2017

I'm starting to see more instances of the following crash:

Caused by java.lang.NullPointerException
at okio.GzipSource.updateCrc(GzipSource.java:189)
at okio.GzipSource.read(GzipSource.java:82)
at okio.RealBufferedSource$1.read(RealBufferedSource.java:430)
at java.io.InputStreamReader.read(InputStreamReader.java:231)
at java.io.BufferedReader.fillBuf(BufferedReader.java:145)
at java.io.BufferedReader.readLine(BufferedReader.java:397)

Seeking pointers as to why this might be happening to start with.

Seeing only in Android 4.4.2

Thanks,

@swankjesse
Copy link
Member

All device manufacturers?

@KennyGoers
Copy link
Author

Not all I think, but list includes Quanta, Acer, ZTE, alps and PCD and still only 4.4.2

@donatienthorez
Copy link

I also encounter the same bug on Android 4.4.2 (96%) and also 4.4.1 (4%).

Here are the list of devices manufacturers I get :
Acer,QMobile, InFocus, Panasonic,HTC, iBallMobile, TECNO, Micromax, Vodafone, bq, Gigabyte, Sony

@visiolink
Copy link

Also seeing the same on Android 4.4 using okhttp 3.9.0 with stacktrace:

Caused by: java.lang.NullPointerException:
at okio.GzipSource.updateCrc (GzipSource.java:189)
at okio.GzipSource.read (GzipSource.java:82)
at okio.RealBufferedSource.request (RealBufferedSource.java:67)
at okio.RealBufferedSource.rangeEquals (RealBufferedSource.java:408)
at okio.RealBufferedSource.rangeEquals (RealBufferedSource.java:392)
at okhttp3.internal.Util.bomAwareCharset (Util.java:449)

@swankjesse
Copy link
Member

I wonder if it's caused by running out of memory in native code.

@visiolink
Copy link

I guess the root cause of this is the same as square/okhttp#3641

So probably this can also be worked around with:
android.enableD8=false

@JakeWharton
Copy link
Member

JakeWharton commented Dec 18, 2017 via email

@visiolink
Copy link

Confirmed to be temporarily avoided by disabling D8.

@swankjesse swankjesse added the bug label Feb 4, 2018
@swankjesse
Copy link
Member

If anyone has a fix that prevents the problem, I’m receptive. Otherwise I think this is a problem in the platform.

@madsager
Copy link

Update from the D8 side on this one. Turns out the VM on these devices had yet another bug. We have landed a workaround for the VM bug in D8 which will be part of Android Studio 3.1 stable (and will make its way into android studio 3.2 over the next couple of weeks as well).

D8-side bug: https://issuetracker.google.com/75408029

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants