Hello,
I've had two decode issues in our production app. I'm not sure how they got triggered (the conditions under which the issue happened). However, this happened only on Redmi Note 9 Pro for 7 and 5 events on same user.
Fatal Exception: kotlinx.serialization.json.internal.JsonDecodingException: Cannot read Json element because of unexpected end of the input at path: $
JSON input:
at kotlinx.serialization.SerializationException.<init>(SerializationException.java:51)
at kotlinx.serialization.json.internal.JsonException.<init>(JsonException.java:16)
at kotlinx.serialization.json.internal.JsonDecodingException.<init>(JsonDecodingException.java:21)
at kotlinx.serialization.json.internal.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:24)
at kotlinx.serialization.json.internal.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:32)
at kotlinx.serialization.json.internal.AbstractJsonLexer.fail(AbstractJsonLexer.kt:580)
at kotlinx.serialization.json.internal.AbstractJsonLexer.fail$default(AbstractJsonLexer.kt:578)
at kotlinx.serialization.json.internal.JsonTreeReader.read(JsonTreeReader.java:107)
at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeJsonElement(StreamingJsonDecoder.kt:50)
at kotlinx.serialization.json.JsonElementSerializer.deserialize(JsonElementSerializers.kt:50)
at kotlinx.serialization.json.JsonElementSerializer.deserialize(JsonElementSerializers.kt:27)
at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:69)
at kotlinx.serialization.json.internal.JsonStreamsKt.decodeByReader(JsonStreams.kt:111)
at kotlinx.serialization.json.io.IoStreamsKt.decodeFromSource(IoStreams.kt:63)
at io.github.xxfast.kstore.file.extensions.VersionedCodec.decode(VersionedCodec.java:92)
at io.github.xxfast.kstore.KStore$read$2.invokeSuspend(KStore.kt:62)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:101)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.java:113)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.java:589)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:823)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:720)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:707)
Fatal Exception: kotlinx.serialization.json.internal.JsonDecodingException: Cannot read Json element because of unexpected end of the input at path: $
JSON input:
at kotlinx.serialization.SerializationException.<init>(SerializationException.java:51)
at kotlinx.serialization.json.internal.JsonException.<init>(JsonException.java:16)
at kotlinx.serialization.json.internal.JsonDecodingException.<init>(JsonDecodingException.java:21)
at kotlinx.serialization.json.internal.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:24)
at kotlinx.serialization.json.internal.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:32)
at kotlinx.serialization.json.internal.AbstractJsonLexer.fail(AbstractJsonLexer.kt:580)
at kotlinx.serialization.json.internal.AbstractJsonLexer.fail$default(AbstractJsonLexer.kt:578)
at kotlinx.serialization.json.internal.JsonTreeReader.read(JsonTreeReader.java:107)
at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeJsonElement(StreamingJsonDecoder.kt:50)
at kotlinx.serialization.json.JsonElementSerializer.deserialize(JsonElementSerializers.kt:50)
at kotlinx.serialization.json.JsonElementSerializer.deserialize(JsonElementSerializers.kt:27)
at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:69)
at kotlinx.serialization.json.internal.JsonStreamsKt.decodeByReader(JsonStreams.kt:111)
at kotlinx.serialization.json.io.IoStreamsKt.decodeFromSource(IoStreams.kt:63)
at io.github.xxfast.kstore.file.extensions.VersionedCodec.decode(VersionedCodec.java:92)
at io.github.xxfast.kstore.KStore$read$2.invokeSuspend(KStore.kt:62)
at io.github.xxfast.kstore.KStore$read$2.invoke(KStore.kt:12)
at io.github.xxfast.kstore.KStore$read$2.invoke(KStore.kt:12)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:42)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(BuildersKt__Builders_common.kt:164)
at kotlinx.coroutines.BuildersKt.withContext(Builders.kt:1)
at io.github.xxfast.kstore.KStore.read(KStore.kt:60)
at io.github.xxfast.kstore.KStore.get(KStore.kt:80)
Hello,
I've had two decode issues in our production app. I'm not sure how they got triggered (the conditions under which the issue happened). However, this happened only on Redmi Note 9 Pro for 7 and 5 events on same user.