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

ArrayIndexOutOfBoundsException while closing HttpUrlSource #88

Closed
Myeongwon-Kang opened this issue Sep 6, 2016 · 4 comments
Closed

ArrayIndexOutOfBoundsException while closing HttpUrlSource #88

Myeongwon-Kang opened this issue Sep 6, 2016 · 4 comments
Labels
bug
Milestone

Comments

@Myeongwon-Kang
Copy link

@Myeongwon-Kang Myeongwon-Kang commented Sep 6, 2016

i used version 2.5.0
this is only from android 5.0
thanks

Fatal Exception: java.lang.ArrayIndexOutOfBoundsException
       at com.android.okio.Util.checkOffsetAndCount(Util.java:29)
       at com.android.okio.OkBuffer.write(OkBuffer.java:570)
       at com.android.okio.OkBuffer.read(OkBuffer.java:610)
       at com.android.okio.RealBufferedSource.read(RealBufferedSource.java:56)
       at com.android.okhttp.internal.http.HttpConnection$FixedLengthSource.read(HttpConnection.java:465)
       at com.android.okhttp.internal.Util.skipAll(Util.java:227)
       at com.android.okhttp.internal.http.HttpConnection.discard(HttpConnection.java:235)
       at com.android.okhttp.internal.http.HttpConnection$FixedLengthSource.close(HttpConnection.java:487)
       at com.android.okhttp.internal.Util.closeQuietly(Util.java:97)
       at com.android.okhttp.internal.http.HttpEngine.close(HttpEngine.java:580)
       at com.android.okhttp.internal.http.HttpURLConnectionImpl.disconnect(HttpURLConnectionImpl.java:113)
       at com.danikula.videocache.HttpUrlSource.close(HttpUrlSource.java:80)
       at com.danikula.videocache.ProxyCache.closeSource(ProxyCache.java:160)
       at com.danikula.videocache.ProxyCache.readSource(ProxyCache.java:141)
       at com.danikula.videocache.ProxyCache.access$100(ProxyCache.java:19)
       at com.danikula.videocache.ProxyCache$SourceReaderRunnable.run(ProxyCache.java:179)
       at java.lang.Thread.run(Thread.java:818)
@danikula danikula changed the title crash report ArrayIndexOutOfBoundsException while closing HttpUrlSource Sep 6, 2016
@danikula

This comment has been minimized.

Copy link
Owner

@danikula danikula commented Sep 6, 2016

@Myeongwon-Kang Are you 100% sure this issue is reproduced on 2.5.0 version? This problem was fixed in build 2.5.0.

@Myeongwon-Kang

This comment has been minimized.

Copy link
Author

@Myeongwon-Kang Myeongwon-Kang commented Sep 6, 2016

yes.
incurred only from 5.0!

@cagkanciloglu

This comment has been minimized.

Copy link

@cagkanciloglu cagkanciloglu commented Sep 26, 2016

Fatal Exception: java.lang.ArrayIndexOutOfBoundsException at com.android.okio.Util.checkOffsetAndCount(Util.java:29) at com.android.okio.OkBuffer.skip(OkBuffer.java:391) at com.android.okio.OkBuffer.clear(OkBuffer.java:386) at com.android.okio.RealBufferedSource.close(RealBufferedSource.java:205) at com.android.okio.RealBufferedSource$1.close(RealBufferedSource.java:187) at com.android.okhttp.internal.Util.closeQuietly(Util.java:97) at com.android.okhttp.internal.http.HttpEngine.close(HttpEngine.java:583) at com.android.okhttp.internal.http.HttpURLConnectionImpl.disconnect(HttpURLConnectionImpl.java:113) at com.danikula.videocache.HttpUrlSource.close(SourceFile:86) at com.danikula.videocache.ProxyCache.closeSource(SourceFile:167) at com.danikula.videocache.ProxyCache.readSource(SourceFile:142) at com.danikula.videocache.ProxyCache.access$100(SourceFile:19) at com.danikula.videocache.ProxyCache$SourceReaderRunnable.run(SourceFile:186) at java.lang.Thread.run(Thread.java:818)

I'm also having this issue. Only happens Android 5's.
Version 2.6.0.

@phamd1989

This comment has been minimized.

Copy link

@phamd1989 phamd1989 commented Jan 13, 2017

com.android.okio.Util.checkOffsetAndCount (Util.java:29) com.android.okhttp.internal.http.HttpURLConnectionImpl.disconnect (HttpURLConnectionImpl.java:113) com.danikula.videocache.HttpUrlSource.close (HttpUrlSource.java:89) com.danikula.videocache.ProxyCache.closeSource (ProxyCache.java:168) com.danikula.videocache.ProxyCache.readSource (ProxyCache.java:143) com.danikula.videocache.ProxyCache.access$100 (ProxyCache.java:19) com.danikula.videocache.ProxyCache$SourceReaderRunnable.run (ProxyCache.java:187) java.lang.Thread.run (Thread.java:818)

still an issue on version 2.6.4

danikula added a commit that referenced this issue Apr 23, 2017
@danikula danikula added the bug label Apr 23, 2017
@danikula danikula closed this Apr 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.