-
-
Notifications
You must be signed in to change notification settings - Fork 966
Error While compression The source file doesn't exist. #157
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
Comments
Any solution you get for this? |
I'm also facing this issue:
I think this issue needs to be addressed, I've been facing scattered crashes with this stacktrace in my production app, it may be an edge case issue, or it may be a ticking time bomb 🤔 |
Created Pull request for the same here: #161 |
Fatal Exception: kotlin.io.NoSuchFileException: /storage/emulated/0/Android/media Device Details |
This might be related to this issue: |
@premacck @Pradeep0801 @Manoj-SYS-193 If it is coming due to specific File Manager or Gallery app, please let us know that as well. |
Solved, copy the code from this file and use the methods inside to convert the URI to file. |
Fatal Exception: h.y.k: /data/user/0/com.package/cache/compressor/IMG_2020_07_04_15_09_29_429.jpg: The source file doesn't exist.
at kotlin.io.FilesKt__UtilsKt.copyTo(FilesKt__UtilsKt.java:183)
at kotlin.io.FilesKt__UtilsKt.copyTo$default(FilesKt__UtilsKt.java:181)
at kotlin.io.FilesKt.copyTo$default(FilesKt.java)
at id.zelory.compressor.constraint.DestinationConstraint.satisfy(DestinationConstraint.java:17)
at id.zelory.compressor.Compressor$compress$3.invokeSuspend(Compressor.java:28)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(BaseContinuationImpl.java:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.java:56)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.java:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.java:738)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.java:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.java:665)
The text was updated successfully, but these errors were encountered: