lingochamp / okdownload

A Reliable, Flexible, Fast and Powerful download engine.
Apache License 2.0
5.13k stars 767 forks source link

java.io.IOException: The current offset on block-info isn't update #511

Open nannan111 opened 6 days ago

nannan111 commented 6 days ago

catch unknown error java.io.IOException: The current offset on block-info isn't update correct, 48176155 != 53291524 on 7 at com.liulishuo.okdownload.core.file.MultiPointOutputStream.inspectComplete(MultiPointOutputStream.java:264) at com.liulishuo.okdownload.core.interceptor.BreakpointInterceptor.interceptFetch(BreakpointInterceptor.java:123) at com.liulishuo.okdownload.core.download.DownloadChain.processFetch(DownloadChain.java:241) at com.liulishuo.okdownload.core.interceptor.RetryInterceptor.interceptFetch(RetryInterceptor.java:57) at com.liulishuo.okdownload.core.download.DownloadChain.processFetch(DownloadChain.java:241) at com.liulishuo.okdownload.core.download.DownloadChain.start(DownloadChain.java:211) at com.liulishuo.okdownload.core.download.DownloadChain.run(DownloadChain.java:276) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:487) at java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644) at java.lang.Thread.run(Thread.java:1012)

下载的是你提供的500m那个zip,很容易出现这个异常,用的是你另一个工程https://github.com/tianshaokai/okdownload?tab=readme-ov-file,我设置了多线程下载,google手机

yangfeng1994 commented 4 days ago

我下载的是102兆的,也非常容易出现这种情况。是必现的