[Android] Stackoverflow error after upgrade to v100
```
FATAL EXCEPTION: DefaultDispatcher-worker-67
Process: org.zotero.android.debug, PID: 7375
java.lang.StackOverflowError: stack size 1039KB
at com.google.gson.internal.$Gson$Types.getRawType($Gson$Types.java:133)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.write(ReflectiveTypeAdapterFactory.java:245)
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.api.pojo.sync.ItemResponse$Companion.parsePositionFields(ItemResponse.kt:267)
at org.zotero.android.api.pojo.sync.ItemResponse$Companion.parseFields(ItemResponse.kt:88)
at org.zotero.android.api.pojo.sync.ItemResponse$Companion.parseFields$default(ItemResponse.kt:47)
at org.zotero.android.api.mappers.ItemResponseMapper.initAnnotation(ItemResponseMapper.kt:268)
at org.zotero.android.api.mappers.ItemResponseMapper.fromJson(ItemResponseMapper.kt:130)
at org.zotero.android.sync.SyncBatchProcessor.sync(SyncBatchProcessor.kt:212)
at org.zotero.android.sync.SyncBatchProcessor.process(SyncBatchProcessor.kt:115)
at org.zotero.android.sync.SyncBatchProcessor.process(SyncBatchProcessor.kt:96)
at org.zotero.android.sync.SyncBatchProcessor.access$process(SyncBatchProcessor.kt:31)
at org.zotero.android.sync.SyncBatchProcessor$start$2$1.invokeSuspend(SyncBatchProcessor.kt:82)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:100)
14:23:20.676 E 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)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@5836e37, LimitedDispatcher@a14dfa4]
```
FATAL EXCEPTION: DefaultDispatcher-worker-67
Process: org.zotero.android.debug, PID: 7375
java.lang.StackOverflowError: stack size 1039KB
at com.google.gson.internal.$Gson$Types.getRawType($Gson$Types.java:133)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.write(ReflectiveTypeAdapterFactory.java:245)
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.api.pojo.sync.ItemResponse$Companion.parsePositionFields(ItemResponse.kt:267)
at org.zotero.android.api.pojo.sync.ItemResponse$Companion.parseFields(ItemResponse.kt:88)
at org.zotero.android.api.pojo.sync.ItemResponse$Companion.parseFields$default(ItemResponse.kt:47)
at org.zotero.android.api.mappers.ItemResponseMapper.initAnnotation(ItemResponseMapper.kt:268)
at org.zotero.android.api.mappers.ItemResponseMapper.fromJson(ItemResponseMapper.kt:130)
at org.zotero.android.sync.SyncBatchProcessor.sync(SyncBatchProcessor.kt:212)
at org.zotero.android.sync.SyncBatchProcessor.process(SyncBatchProcessor.kt:115)
at org.zotero.android.sync.SyncBatchProcessor.process(SyncBatchProcessor.kt:96)
at org.zotero.android.sync.SyncBatchProcessor.access$process(SyncBatchProcessor.kt:31)
at org.zotero.android.sync.SyncBatchProcessor$start$2$1.invokeSuspend(SyncBatchProcessor.kt:82)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:100)
14:23:20.676 E 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)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@5836e37, LimitedDispatcher@a14dfa4]
```
-
dax7edited September 23, 2024I recently updated the zotero android app on play store and getting this error. How to solve this ?
-
dax7As far as I can tell, this issue is due to syncing annotations in snapshots.
-
dstillmanSorry about that. This should be fixed in 1.0.0-102. Thanks for reporting.
-
dax7Thank you for posting a quick update.