ReadYouApp / ReadYouApp/ReadYou
Crash when saving pictures
Open
Nobody has claimed this yet.
bug
untriaged
- Dominant language
- Kotlin
- Stars
- 7.5k
- Forks
- 330
- PR merge metrics
- No merged PRs in 30d
Description
Checklist
- I've already searched in existing issues and haven't found a similar problem reported.
- I'm using the latest version of the app
- This error caused the app to crash
- This error is reproducible
Which category best fits this error?
Feed Sync
App version
0.16.1
Reproduction steps
Save picture causes crash
Crash report
Version: 0.16.1
Device: OnePlus PLQ110
System: Android 16 (API 36)
Stack trace:
.lang.IllegalArgumentException: MIME type application/octet-stream cannot be inserted into content://media/external_primary/images/media; expected MIME type under image/*
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:153)
at android.content.ContentProviderProxy.insert(ContentProviderNative.java:589)
at android.content.ContentResolver.insert(ContentResolver.java:2269)
at android.content.ContentResolver.insert(ContentResolver.java:2225)
at me.ash.reader.infrastructure.android.AndroidImageDownloader$downloadImage$2.invokeSuspend(AndroidImageDownloader.kt:153)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:9)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:112)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:8)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:3)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:93)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@c86ebe0, Dispatchers.Main.immediate]
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in infrastructure/android/AndroidImageDownloader.kt at line 153, using the reported content resolver MIME-type exception as the entry point. Reproduce saving a picture on the reported Android environment and verify that the image saves successfully without crashing when the operation completes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100