zetbaitsu / Compressor

An android image compression library.
7.08k stars 963 forks source link

Fatal Exception: java.io.IOException close failed: EACCES (Permission denied) #211

Open YugeCse opened 1 year ago

YugeCse commented 1 year ago

Hi, I found a bug, the log is:

libcore.io.Linux.close (Linux.java)

kotlin.io.FilesKt__UtilsKt.copyTo$default (FilesKt__Utils.kt:172)
id.zelory.compressor.UtilKt.copyToCache (Util.kt:172)
id.zelory.compressor.Compressor$compress$3.invokeSuspend (Compressor.java:172)
id.zelory.compressor.Compressor$compress$3.invoke (Compressor.java:10)
kotlinx.coroutines.intrinsics.UndispatchedKt.a (Undispatched.kt:5)

kotlinx.coroutines.BuildersKt.withContext (Builders.kt:75)
id.zelory.compressor.Compressor.compress (Compressor.java:9)
id.zelory.compressor.Compressor.compress$default (Compressor.java:9)

Can you help me solve the problem? Thank you !

YugeCse commented 1 year ago

The device is HuaWei "ELS-AN00"