You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems like some users with super user privilege are causing a crash on the library. Here is the stack trace:
Fatal Exception: java.lang.SecurityException: Resolved path jumped beyond configured root
at androidx.core.content.FileProvider$SimplePathStrategy.getFileForUri(FileProvider.java:864)
at androidx.core.content.FileProvider.openFile(FileProvider.java:630)
at android.content.ContentProvider.openAssetFile(ContentProvider.java:2070)
at android.content.ContentProvider.openAssetFile(ContentProvider.java:2131)
at android.content.ContentProvider$Transport.openAssetFile(ContentProvider.java:496)
at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1860)
at android.content.ContentResolver.openOutputStream(ContentResolver.java:1562)
at com.canhub.cropper.BitmapUtils.writeBitmapToUri(BitmapUtils.kt:460)
at com.canhub.cropper.BitmapCroppingWorkerJob$start$1$1.invokeSuspend(BitmapCroppingWorkerJob.kt:96)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.java:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
Can we add some try/catch to the writeBitmapToUri (BitmapUtils.kt) in order to handle the SecurityException, safely return error and prevent the app from crashing.
The text was updated successfully, but these errors were encountered:
Created the pull request #590, but i was not able to compile the library via JitPack, it gives error: Could not resolve com.vanniktech:gradle-code-quality-tools-plugin:0.23.0.
Seems like some users with super user privilege are causing a crash on the library. Here is the stack trace:
Can we add some try/catch to the writeBitmapToUri (BitmapUtils.kt) in order to handle the SecurityException, safely return error and prevent the app from crashing.
The text was updated successfully, but these errors were encountered: