Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't import backup #6163

Open
3 tasks done
ChaRob8747 opened this issue Jun 20, 2024 · 1 comment
Open
3 tasks done

Can't import backup #6163

ChaRob8747 opened this issue Jun 20, 2024 · 1 comment
Labels
bug Something isn't working can't reproduce

Comments

@ChaRob8747
Copy link

ChaRob8747 commented Jun 20, 2024

Steps to reproduce

  1. Create a backup
  2. Pull it to computer (mac) with adb
  3. Factory-reset device (Google Pixel 4a)
  4. Push it to device with adb
  5. Reinstall LibreTube
  6. Load backup
  7. Error!

Expected behavior

LibreTube should be in the same state it was before I factory reset my smartphone.

Actual behavior

First time, it crashed. Subsequent tries, it gave me an error message I'll try to attach in a reply here.

LibreTube version

0.23.2

Android version

Android 14

Other details

I switched from LineageOS to crdroid. Also, I can't attach the backup file itself outa fear it contains private information.

Acknowledgements

  • I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
  • I have written a short but informative title.
  • I will fill out all of the requested information in this form.
@ChaRob8747 ChaRob8747 added the bug Something isn't working label Jun 20, 2024
@ChaRob8747
Copy link
Author

kotlinx.serialization.json.internal.JsonDecodingException: Expected end of the object '}', but had 'EOF' instead at path: $.watchPositions[380] JSON input: },{"videoId":"y9Jds326gks","..... at kotlinx.serialization.json.internal.WriteModeKt.JsonDecodingException(SourceFile:1) at kotlinx.serialization.json.internal.WriteModeKt.JsonDecodingException(SourceFile:2) at kotlinx.serialization.json.internal.AbstractJsonLexer.fail(SourceFile:52) at kotlinx.serialization.json.internal.AbstractJsonLexer.fail$default(SourceFile:13) at kotlinx.serialization.json.internal.AbstractJsonLexer.fail$kotlinx_serialization_json(SourceFile:73) at kotlinx.serialization.json.internal.AbstractJsonLexer.unexpectedToken(SourceFile:48) at kotlinx.serialization.json.internal.AbstractJsonLexer.consumeNextToken(SourceFile:11) at kotlinx.serialization.json.internal.StreamingJsonDecoder.endStructure(SourceFile:53) at com.github.libretube.db.obj.WatchPosition$$serializer.deserialize(SourceFile:54) at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue$1(SourceFile:92) at kotlin.ResultKt.decodeSerializableElement(SourceFile:11) at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableElement(SourceFile:46) at kotlinx.serialization.internal.CollectionLikeSerializer.readElement(SourceFile:8) at kotlinx.serialization.internal.AbstractCollectionSerializer.merge(SourceFile:35) at kotlinx.serialization.internal.AbstractCollectionSerializer.deserialize(SourceFile:6) at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue$1(SourceFile:92) at kotlin.ResultKt.decodeNullableSerializableElement(SourceFile:30) at com.github.libretube.obj.BackupFile$$serializer.deserialize(SourceFile:1) at com.github.libretube.obj.BackupFile$$serializer.deserialize(SourceFile:2) at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue$1(SourceFile:92) at okio.Utf8.decodeByReader(SourceFile:26) at kotlin.math.MathKt.decodeFromStream(SourceFile:17) at com.github.libretube.helpers.BackupHelper.restoreAdvancedBackup(SourceFile:196) at com.github.libretube.ui.preferences.BackupRestoreSettings$getBackupFile$1$1.invokeSuspend(SourceFile:49) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(SourceFile:9) at kotlinx.coroutines.DispatchedTask.run(SourceFile:115) at androidx.work.impl.WorkerWrapper$1.run(SourceFile:76) at kotlinx.coroutines.scheduling.TaskImpl.run(SourceFile:3) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(SourceFile:92) Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@9db29a, Dispatchers.IO]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working can't reproduce
Projects
None yet
Development

No branches or pull requests

2 participants