Skip to content

Download Exception: Catch exception when failing to save original export image#118

Merged
riggaroo merged 6 commits intomainfrom
bugfix/export-crash
Sep 10, 2025
Merged

Download Exception: Catch exception when failing to save original export image#118
riggaroo merged 6 commits intomainfrom
bugfix/export-crash

Conversation

@riggaroo
Copy link
Collaborator

@riggaroo riggaroo commented Sep 8, 2025

It could happen that we lose access to this image in between first access and later trying to save it again.

Fatal Exception: java.io.FileNotFoundException: File not found for uri: content://media/picker/0/com.google.android.apps.photos.cloudpicker/media/...XYZ
       at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(DatabaseUtils.java:164)
       at android.content.ContentProviderProxy.openTypedAssetFile(ContentProviderNative.java:814)
       at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:2069)
       at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1884)
       at android.content.ContentResolver.openInputStream(ContentResolver.java:1554)
       at com.android.developers.androidify.util.LocalFileProviderImpl$saveUriToSharedStorage$2.invokeSuspend(LocalFileProvider.kt:112)
       at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
       at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
       at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.java:124)
       at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89)
       at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.java:586)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:820)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:717)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:704)
        

…happen that we lose access to this image.

java.io.FileNotFoundException: File not found for uri:
@riggaroo riggaroo marked this pull request as ready for review September 8, 2025 11:17
@riggaroo riggaroo requested a review from tiwiz as a code owner September 8, 2025 11:17
@riggaroo riggaroo merged commit bb3e59a into main Sep 10, 2025
4 checks passed
@riggaroo riggaroo deleted the bugfix/export-crash branch September 10, 2025 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants