ReadYouApp / ReadYouApp/ReadYou

App crashed

Open
#1,275 0 comments 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
  1. Sync feeds
Crash report
Version: 0.16.1
Device: motorola moto g54 5G
System: Android 15 (API 35)

Stack trace: 

.google.gson.JsonSyntaxException: java.io.EOFException: End of input at line 1 column 8193 path $.
	at com.google.gson.Gson.fromJson(Gson.java:38)
	at me.ash.reader.domain.data.DiffMapHolder$commitDiffsFromCache$1.invokeSuspend(DiffMapHolder.kt:66)
	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}@7a4f854, Dispatchers.IO]
Caused by: java.io.EOFException: End of input at line 1 column 8193 path $.
	at com.google.gson.stream.JsonReader.nextNonWhitespace(JsonReader.java:40)
	at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:227)
	at com.google.gson.stream.JsonReader.peek(JsonReader.java:5)
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:1)
	at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:110)
	at com.google.gson.Gson.fromJson(Gson.java:18)
	... 6 more

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 with DiffMapHolder.kt at the commitDiffsFromCache call reported on line 66, then inspect the Gson parsing path used during feed sync. Run the feed synchronization flow and determine how the reported truncated JSON input is handled; done means synchronization no longer crashes with this parsing failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.