Annotating PDF leads to sync error
dstillman opened this issue · comments
https://forums.zotero.org/discussion/110380/android-highlight-annotation-not-syncing
https://forums.zotero.org/discussion/110399/android-annotating-pdf-leads-to-sync-error
Leading to "No library found. Try logging out and back in again", which would lead to a loss of the annotations.
(+0007231): [INFO] PdfReaderViewModel: database annotation changed
(+0000001): [INFO] PDFReaderActionHandler: insert key DHNWSGXA
(+0000004): [INFO] PdfReaderViewModel: annotation changed - DHNWSGXA; [boundingBox, lines, lineArray]
(+0003000): [INFO] SyncScheduler: requested normal sync for specific(identifiers=[custom(type=myLibrary)])
(+0000003): [INFO] SyncScheduler: start normal sync for specific(identifiers=[custom(type=myLibrary)])
(+0000383): [ERROR] java.lang.NumberFormatException: For input string: "223,537"
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
at java.lang.Double.parseDouble(Double.java:538)
at org.zotero.android.files.FormattedDoubleJsonSerializer.serialize(FormattedDoubleJsonSerializer.kt:18)
at org.zotero.android.files.FormattedDoubleJsonSerializer.serialize(FormattedDoubleJsonSerializer.kt:10)
at com.google.gson.internal.bind.TreeTypeAdapter.write(TreeTypeAdapter.java:81)
at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:69)
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.write(CollectionTypeAdapterFactory.java:97)
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.write(CollectionTypeAdapterFactory.java:61)
at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:69)
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.write(CollectionTypeAdapterFactory.java:97)
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.write(CollectionTypeAdapterFactory.java:61)
at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:69)
at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.write(MapTypeAdapterFactory.java:208)
at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.write(MapTypeAdapterFactory.java:145)
at com.google.gson.Gson.toJson(Gson.java:735)
at com.google.gson.Gson.toJson(Gson.java:714)
at com.google.gson.Gson.toJson(Gson.java:669)
at com.google.gson.Gson.toJson(Gson.java:649)
at org.zotero.android.database.objects.RItem.createAnnotationPosition(RItem.kt:315)
at org.zotero.android.database.objects.RItem.getUpdateParameters(RItem.kt:253)
at org.zotero.android.database.requests.ReadUpdatedItemUpdateParametersDbRequest.process(ReadUpdatedObjectUpdateParametersDbRequest.kt:118)
at org.zotero.android.database.requests.ReadLibrariesDataDbRequest.updates(ReadLibrariesDataDbRequest.kt:227)
at org.zotero.android.database.requests.ReadLibrariesDataDbRequest.process(ReadLibrariesDataDbRequest.kt:56)
at org.zotero.android.database.requests.ReadLibrariesDataDbRequest.process(ReadLibrariesDataDbRequest.kt:20)
at org.zotero.android.sync.syncactions.LoadLibraryDataSyncAction.result(LoadLibraryDataSyncAction.kt:73)
at org.zotero.android.sync.SyncUseCase.processCreateLibraryActions(SyncEngine.kt:665)
at org.zotero.android.sync.SyncUseCase.process(SyncEngine.kt:154)
at org.zotero.android.sync.SyncUseCase.access$process(SyncEngine.kt:53)
at org.zotero.android.sync.SyncUseCase$processNextAction$1.invokeSuspend(SyncEngine.kt:144)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
exception=For input string: "223,537"
(+0000002): [ERROR] received unknown error - java.lang.NumberFormatException: For input string: "223,537"
(+0000001): [INFO] Sync: aborted
(+0000001): [INFO] Error: org.zotero.android.sync.SyncError$Fatal$allLibrariesFetchFailed