ReadYouApp / ReadYouApp/ReadYou

Crash when saving pictures

Open
#1,247 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.