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

fix: java.io.IOException: The current offset on block-info isn't upd… #344

Closed
wants to merge 1 commit into from

Conversation

ckjavacoder
Copy link

java.io.IOException: The current offset on block-info isn't update correct, x!= -1

@rantianhua
Copy link
Collaborator

This cannot solve the problem. I have a pull request for this #346.

@rantianhua rantianhua closed this Dec 7, 2019
@ckjavacoder
Copy link
Author

我应用了#346 还是不能下载https://cdn.llscdn.com/yy/files/xs8qmxn8-lls-LLS-5.8-800-20171207-111607.apk 还是会到 Error
12-09 09:17:10.724 21083-21083/com.liulishuo.okdownload.sample E/SingleActivity: download error
java.io.IOException: The current offset on block-info isn't update correct, 8436771 != 14664668 on 1
at com.liulishuo.okdownload.core.file.MultiPointOutputStream.inspectComplete(MultiPointOutputStream.java:267)
at com.liulishuo.okdownload.core.interceptor.BreakpointInterceptor.interceptFetch(BreakpointInterceptor.java:123)
at com.liulishuo.okdownload.core.download.DownloadChain.processFetch(DownloadChain.java:220)
at com.liulishuo.okdownload.core.interceptor.RetryInterceptor.interceptFetch(RetryInterceptor.java:57)

这个异常只会有多线程下载情况下出现 我这边的 connectionCount

所以我这个改动应该和#346不一样

@ckjavacoder
Copy link
Author

可能是我问题描述错了应该是 The current offset on block-info isn't update correct, 8436771 != 14664668 on 1

@rantianhua
Copy link
Collaborator

那你这个属于另外的问题,我会用你提供的链接尝试一下看看。

@fazhongxu
Copy link

fazhongxu commented Dec 19, 2019

我也遇到了 ,The current offset on block-info isn't update correct, 2490532 != 2605681 on 2
Android10 ,华为mate20 Pro升级的Android10,小米9,别的手机完全正常,Android9,Android6,都试过,没问题

@mradzinski
Copy link

Why was this closed @rantianhua? This issue is still happening for everyone running Android 10: The current offset on block-info isn't update correct, 932763 != 4998011 on 0. Does #346 fixes it? If not then this PR needs to be reopened, tested and merged ASAP.

@saeed74
Copy link

saeed74 commented Oct 22, 2020

The current offset on block-info isn't update correct also still Happening on android 11

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

Successfully merging this pull request may close these issues.

6 participants