Not downloading #50
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Did not download
Tested on :
Tested with :
Tried :
Changing dns
Wifi / data
Changing save location
Downloading only one chapter
Granted storage permission
Video :
https://1.filedit.ch/1/qaGWgOQOYGjmzcdQQam.mp4
I cannot reproduce this issue(
I can reproduce this on Nexus 5 Emulator with Android 5.1. There is exactly the same problem as he has. I can also show the logs that I caught during testing.
java.io.FileNotFoundException (an exception appeared when trying to download chapter)
W/System.err: java.io.FileNotFoundException: /storage/sdcard/Android/data/org.koitharu.kotatsu.debug/cache/pages/journal.bin: open failed: ENOENT (No such file or directory) at libcore.io.IoBridge.open(IoBridge.java:456) at java.io.FileInputStream.(FileInputStream.java:76) at com.tomclaw.cache.Journal.readJournal(Journal.java:133) at com.tomclaw.cache.DiskLruCache.create(DiskLruCache.java:36) at com.tomclaw.cache.DiskLruCache.create(DiskLruCache.java:31) at org.koitharu.kotatsu.local.data.PagesCache.(PagesCache.kt:16) W/System.err: at org.koitharu.kotatsu.reader.ReaderModuleKt$readerModule$1$2.invoke(ReaderModule.kt:13) at org.koitharu.kotatsu.reader.ReaderModuleKt$readerModule$1$2.invoke(ReaderModule.kt:13) at org.koin.core.instance.InstanceFactory.create(InstanceFactory.kt:53) at org.koin.core.instance.SingleInstanceFactory.create(SingleInstanceFactory.kt:46) at org.koin.core.instance.SingleInstanceFactory$get$1.invoke(SingleInstanceFactory.kt:53) at org.koin.core.instance.SingleInstanceFactory$get$1.invoke(SingleInstanceFactory.kt:51) at org.koin.mp.KoinPlatformTools.synchronized(PlatformToolsJVM.kt:20) at org.koin.core.instance.SingleInstanceFactory.get(SingleInstanceFactory.kt:51) at org.koin.core.registry.InstanceRegistry.resolveInstance$koin_core(InstanceRegistry.kt:103) W/System.err: at org.koin.core.scope.Scope.resolveValue(Scope.kt:223) at org.koin.core.scope.Scope.resolveInstance(Scope.kt:211) at org.koin.core.scope.Scope.get(Scope.kt:193) at org.koitharu.kotatsu.download.ui.service.DownloadService.onCreate(DownloadService.kt:207) at android.app.ActivityThread.handleCreateService(ActivityThread.java:2761) at android.app.ActivityThread.access$1800(ActivityThread.java:151) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1386) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory) at libcore.io.Posix.open(Native Method) at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186) at libcore.io.IoBridge.open(IoBridge.java:442) ... 28 moreStrictMode (an error appeared when launching the application with this allegedly downloaded manga)
E/StrictMode: A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks. java.lang.Throwable: Explicit termination method 'close' not called at dalvik.system.CloseGuard.open(CloseGuard.java:184) at java.util.zip.ZipFile.(ZipFile.java:173) at java.util.zip.ZipFile.(ZipFile.java:130) at org.koitharu.kotatsu.local.data.CbzFetcher.fetch(CbzFetcher.kt:25) at org.koitharu.kotatsu.local.data.CbzFetcher.fetch(CbzFetcher.kt:16) at coil.intercept.EngineInterceptor$intercept$2.invokeSuspend(EngineInterceptor.kt:405) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)I hope this will help in solving the problem.
Looks like
DiskLruCacheis buggy...@ztimms73 I have a theory that this may be caused by lack of free disk space. Unfortunately, I can't run the emulator on my laptop due to low performance so cannot reproduce this issue. Can you check it?
And you can also try this patch
@nv95 ok, I will check this tomorrow)
Same emulator (Nexus 4, Android 5.1), same issue even using a patch(
The emulator has enough free space on the internal storage. I tried changing the download locations, but the result is the same
On other versions of Android (>= SDK 23), downloading works without problems
Do you need more details from me on this issue?
Tested on device with api 22, not reproducing(
@yant0 can you check #134 and try to download chapter please?
its spew this error :
Same error occur wether i download a single chapter or multiple chapters
Asus. Android 10 corvus, no root.
i will try it with anothee phone soon
Uh oh...
Fixed in 3.1.1. If there are any other problems with downloading, I will reopen the issue.
It fixed the error but is still not downloading properly.
https://bun.filedit.ch/erofHLJBTfHVNuhkkVy.mp4
Its fine with manually tappinh the missing chapter to download. Its not working when using multiple selection and using the download button on top right.
The 23.4kb file that the manga downloaded is only the cover... if that helps in anyway
@yant0 can you please try this build: https://github.com/nv95/Kotatsu/releases/tag/testbuild-170422
It works but theres some issue :
another different behaviour is the chapter being downloaded in .jpeg instead of .cbz, i personally dont mind that.
Is the problem active at the moment?
Works now 👍 thank you