Observation re: Android Sync

Good morning,

I would like to share a peculiar observation I have now made serveral times when trying to sync Joplin on my Android device; I wonder if anyone has noticed this too or can shed some light on what is happening.

I run Joplin on an Android 10 mobile device and on a linux desktop; they sync encrypted via Dropbox.

I already posted the first part several months ago: when starting a sync on the mobile device, the sync will start running but not actually do anything, no progress & no status at all, cancel has no effect, and in the past I could only finally solve this by reinstalling Joplin (which takes about a day for the db).

What I now noted is that when this occurs (I usually let the mobile sync attempt run for 10-15 minutes) and I then go to the desktop Joplin and start a sync, this apparently solves the problem.

The desktop sync will run and finish without a problem within seconds. Going back to the mobile device the sync there says "Unable to acquire a lock" and has terminated. Starting the mobile sync again then results in a perfectly normal sync that runs & finishes in time.

So it looks like the sync on the mobile device has somehow spent the entire time it was running trying to get a lock but didn't (because if it had acquired the lock, the desktop sync would not have succeeded), but it registered immediately that the desktop Joplin had set the lock and terminated the mobile sync attempt.

I hope this description makes sense; any good explanation for this?

Regards,
kai.

3 Likes

I noticed similar thing and heard it from other users. However I can't reproduce the initiation for this state.

The logs during the state doesn't seem to show anything notable as well

For me it's rare but persistent state that happens every month or so

Linux appimage
Dropbox
Joplin 2.12.3
Android 13
LineageOS 20

11-15T20:19:55: Synchronizer: "Could not refresh lock - cancelling sync. Error was:", "Error: Lock has expired
Code: lockExpired
Error: Lock has expired
    at construct (native)
    at apply (native)
    at _construct (address at index.android.bundle:1:2571499)
    at Wrapper (address at index.android.bundle:1:2571156)
    at construct (native)
    at _createSuperInternal (address at index.android.bundle:1:2570232)
    at call (native)
    at JoplinError (address at index.android.bundle:1:2570610)
    at ?anon_0_ (address at index.android.bundle:1:2851418)
    at next (native)
    at fulfilled (address at index.android.bundle:1:2847064)
    at tryCallOne (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:53:16)
    at anonymous (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:139:27)
    at apply (native)
    at anonymous (address at index.android.bundle:1:218004)
    at _callTimer (address at index.android.bundle:1:216953)
    at _callReactNativeMicrotasksPass (address at index.android.bundle:1:217117)
    at callReactNativeMicrotasks (address at index.android.bundle:1:219092)
    at __callReactNativeMicrotasks (address at index.android.bundle:1:120398)
    at anonymous (address at index.android.bundle:1:119491)
    at __guard (address at index.android.bundle:1:120239)
    at flushedQueue (address at index.android.bundle:1:119402)
    at invokeCallbackAndReturnFlushedQueue (address at index.android.bundle:1:119345)"
11-14T18:33:08: Synchronizer: "Could not refresh lock - cancelling sync. Error was:", "Error: Lock has expired
Code: lockExpired
Error: Lock has expired
    at construct (native)
    at Wrapper (address at index.android.bundle:1:2570496)
    at construct (native)
    at _createSuperInternal (address at index.android.bundle:1:2569572)
    at call (native)
    at JoplinError (address at index.android.bundle:1:2569950)
    at ?anon_0_ (address at index.android.bundle:1:2780479)
    at next (native)
    at fulfilled (address at index.android.bundle:1:2776125)
    at tryCallOne (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:53:16)
    at anonymous (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:139:27)
    at apply (native)
    at anonymous (address at index.android.bundle:1:217496)
    at _callTimer (address at index.android.bundle:1:216445)
    at _callReactNativeMicrotasksPass (address at index.android.bundle:1:216609)
    at callReactNativeMicrotasks (address at index.android.bundle:1:218584)
    at __callReactNativeMicrotasks (address at index.android.bundle:1:119890)
    at anonymous (address at index.android.bundle:1:118983)
    at __guard (address at index.android.bundle:1:119731)
    at flushedQueue (address at index.android.bundle:1:118894)
    at invokeCallbackAndReturnFlushedQueue (address at index.android.bundle:1:118837)"
11-07T15:27:11: Synchronizer: "There was some errors:"
11-07T15:27:11: Synchronizer: "Error: On file f2af5dd90153489294af664aed7e8784.md: Invalid property format: ---: ---
id: f2af5dd90153489294af664aed7e8784
item_type: 1
item_id: 1d5458fe611f4143aa117db4c1ae7180
item_updated_time: 1699355888997
title_diff: "[{\"diffs\":[[1,\"note 1 resource 1\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":17}]"
body_diff: "[{\"diffs\":[[1,\"note 1 resource 1\\\n\\\n\\\n![1908267.jpg](:/0fb2f6c43db54724990d0e83f83d8719)\\\n\\\n\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":72}]"
metadata_diff: {"new":{"id":"1d5458fe611f4143aa117db4c1ae7180","parent_id":"ed8a9cfde0094aa69c90c6437abc91d6","latitude":"47.23571370","longitude":"39.70150500","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":0,"markup_language":1,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":""},"deleted":[]}
updated_time: 2023-11-07T11:19:13.109Z
created_time: 2023-11-07T11:19:13.109Z
type_: 13
---
Error: On file f2af5dd90153489294af664aed7e8784.md: Invalid property format: ---: ---
id: f2af5dd90153489294af664aed7e8784
item_type: 1
item_id: 1d5458fe611f4143aa117db4c1ae7180
item_updated_time: 1699355888997
title_diff: "[{\"diffs\":[[1,\"note 1 resource 1\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":17}]"
body_diff: "[{\"diffs\":[[1,\"note 1 resource 1\\\n\\\n\\\n![1908267.jpg](:/0fb2f6c43db54724990d0e83f83d8719)\\\n\\\n\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":72}]"
metadata_diff: {"new":{"id":"1d5458fe611f4143aa117db4c1ae7180","parent_id":"ed8a9cfde0094aa69c90c6437abc91d6","latitude":"47.23571370","longitude":"39.70150500","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":0,"markup_language":1,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":""},"deleted":[]}
updated_time: 2023-11-07T11:19:13.109Z
created_time: 2023-11-07T11:19:13.109Z
type_: 13
---
    at ?anon_0_ (address at index.android.bundle:1:2563645)
    at next (native)
    at anonymous (address at index.android.bundle:1:2554407)
    at tryCallTwo (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:61:9)
    at doResolve (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:216:25)
    at Promise (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:82:14)
    at anonymous (address at index.android.bundle:1:2554234)
    at unserialize (address at index.android.bundle:1:2563361)
    at ?anon_0_ (address at index.android.bundle:1:2773339)
    at next (native)
    at fulfilled (address at index.android.bundle:1:2756809)
    at tryCallOne (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:53:16)
    at anonymous (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:139:27)
    at apply (native)
    at anonymous (address at index.android.bundle:1:217496)
    at _callTimer (address at index.android.bundle:1:216445)
    at _callReactNativeMicrotasksPass (address at index.android.bundle:1:216609)
    at callReactNativeMicrotasks (address at index.android.bundle:1:218584)
    at __callReactNativeMicrotasks (address at index.android.bundle:1:119890)
    at anonymous (address at index.android.bundle:1:118983)
    at __guard (address at index.android.bundle:1:119731)
    at flushedQueue (address at index.android.bundle:1:118894)
    at callFunctionReturnFlushedQueue (address at index.android.bundle:1:118750)"
11-07T15:27:10: Synchronizer: "Error: On file f2af5dd90153489294af664aed7e8784.md: Invalid property format: ---: ---
id: f2af5dd90153489294af664aed7e8784
item_type: 1
item_id: 1d5458fe611f4143aa117db4c1ae7180
item_updated_time: 1699355888997
title_diff: "[{\"diffs\":[[1,\"note 1 resource 1\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":17}]"
body_diff: "[{\"diffs\":[[1,\"note 1 resource 1\\\n\\\n\\\n![1908267.jpg](:/0fb2f6c43db54724990d0e83f83d8719)\\\n\\\n\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":72}]"
metadata_diff: {"new":{"id":"1d5458fe611f4143aa117db4c1ae7180","parent_id":"ed8a9cfde0094aa69c90c6437abc91d6","latitude":"47.23571370","longitude":"39.70150500","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":0,"markup_language":1,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":""},"deleted":[]}
updated_time: 2023-11-07T11:19:13.109Z
created_time: 2023-11-07T11:19:13.109Z
type_: 13
---
Error: On file f2af5dd90153489294af664aed7e8784.md: Invalid property format: ---: ---
id: f2af5dd90153489294af664aed7e8784
item_type: 1
item_id: 1d5458fe611f4143aa117db4c1ae7180
item_updated_time: 1699355888997
title_diff: "[{\"diffs\":[[1,\"note 1 resource 1\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":17}]"
body_diff: "[{\"diffs\":[[1,\"note 1 resource 1\\\n\\\n\\\n![1908267.jpg](:/0fb2f6c43db54724990d0e83f83d8719)\\\n\\\n\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":72}]"
metadata_diff: {"new":{"id":"1d5458fe611f4143aa117db4c1ae7180","parent_id":"ed8a9cfde0094aa69c90c6437abc91d6","latitude":"47.23571370","longitude":"39.70150500","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":0,"markup_language":1,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":""},"deleted":[]}
updated_time: 2023-11-07T11:19:13.109Z
created_time: 2023-11-07T11:19:13.109Z
type_: 13
---
    at ?anon_0_ (address at index.android.bundle:1:2563645)
    at next (native)
    at anonymous (address at index.android.bundle:1:2554407)
    at tryCallTwo (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:61:9)
    at doResolve (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:216:25)
    at Promise (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:82:14)
    at anonymous (address at index.android.bundle:1:2554234)
    at unserialize (address at index.android.bundle:1:2563361)
    at ?anon_0_ (address at index.android.bundle:1:2773339)
    at next (native)
    at fulfilled (address at index.android.bundle:1:2756809)
    at tryCallOne (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:53:16)
    at anonymous (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:139:27)
    at apply (native)
    at anonymous (address at index.android.bundle:1:217496)
    at _callTimer (address at index.android.bundle:1:216445)
    at _callReactNativeMicrotasksPass (address at index.android.bundle:1:216609)
    at callReactNativeMicrotasks (address at index.android.bundle:1:218584)
    at __callReactNativeMicrotasks (address at index.android.bundle:1:119890)
    at anonymous (address at index.android.bundle:1:118983)
    at __guard (address at index.android.bundle:1:119731)
    at flushedQueue (address at index.android.bundle:1:118894)
    at callFunctionReturnFlushedQueue (address at index.android.bundle:1:118750)"
11-07T15:20:29: Synchronizer: "Error: On file dbc74f4811ee493d946826faccbd6239.md: Invalid property format: ---: ---
id: dbc74f4811ee493d946826faccbd6239
parent_id: 62aca3c687344830bbdff5b1f715e943
item_type: 1
item_id: 0e033938ec684852bc356aae1ef86a80
item_updated_time: 1699346084707
title_diff: "[]"
body_diff: "[{\"diffs\":[[0,\"char\"],[-1,\"se\"],[1,\"ls\\\n\\\n\\\n\"]],\"start1\":63,\"start2\":63,\"length1\":6,\"length2\":9}]"
metadata_diff: {"new":{},"deleted":[]}
updated_time: 2023-11-07T08:43:58.695Z
created_time: 2023-11-07T08:43:58.695Z
type_: 13
---
Error: On file dbc74f4811ee493d946826faccbd6239.md: Invalid property format: ---: ---
id: dbc74f4811ee493d946826faccbd6239
parent_id: 62aca3c687344830bbdff5b1f715e943
item_type: 1
item_id: 0e033938ec684852bc356aae1ef86a80
item_updated_time: 1699346084707
title_diff: "[]"
body_diff: "[{\"diffs\":[[0,\"char\"],[-1,\"se\"],[1,\"ls\\\n\\\n\\\n\"]],\"start1\":63,\"start2\":63,\"length1\":6,\"length2\":9}]"
metadata_diff: {"new":{},"deleted":[]}
updated_time: 2023-11-07T08:43:58.695Z
created_time: 2023-11-07T08:43:58.695Z
type_: 13
---
    at ?anon_0_ (address at index.android.bundle:1:2563645)
    at next (native)
    at anonymous (address at index.android.bundle:1:2554407)
    at tryCallTwo (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:61:9)
    at doResolve (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:216:25)
    at Promise (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:82:14)
    at anonymous (address at index.android.bundle:1:2554234)
    at unserialize (address at index.android.bundle:1:2563361)
    at ?anon_0_ (address at index.android.bundle:1:2773339)
    at next (native)
    at fulfilled (address at index.android.bundle:1:2756809)
    at tryCallOne (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:53:16)
    at anonymous (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:139:27)
    at apply (native)
    at anonymous (address at index.android.bundle:1:217496)
    at _callTimer (address at index.android.bundle:1:216445)
    at _callReactNativeMicrotasksPass (address at index.android.bundle:1:216609)
    at callReactNativeMicrotasks (address at index.android.bundle:1:218584)
    at __callReactNativeMicrotasks (address at index.android.bundle:1:119890)
    at anonymous (address at index.android.bundle:1:118983)
    at __guard (address at index.android.bundle:1:119731)
    at flushedQueue (address at index.android.bundle:1:118894)
    at callFunctionReturnFlushedQueue (address at index.android.bundle:1:118750)"
11-07T15:20:29: Synchronizer: "There was some errors:"
11-07T15:20:28: Synchronizer: "Error: On file dbc74f4811ee493d946826faccbd6239.md: Invalid property format: ---: ---
id: dbc74f4811ee493d946826faccbd6239
parent_id: 62aca3c687344830bbdff5b1f715e943
item_type: 1
item_id: 0e033938ec684852bc356aae1ef86a80
item_updated_time: 1699346084707
title_diff: "[]"
body_diff: "[{\"diffs\":[[0,\"char\"],[-1,\"se\"],[1,\"ls\\\n\\\n\\\n\"]],\"start1\":63,\"start2\":63,\"length1\":6,\"length2\":9}]"
metadata_diff: {"new":{},"deleted":[]}
updated_time: 2023-11-07T08:43:58.695Z
created_time: 2023-11-07T08:43:58.695Z
type_: 13
---
Error: On file dbc74f4811ee493d946826faccbd6239.md: Invalid property format: ---: ---
id: dbc74f4811ee493d946826faccbd6239
parent_id: 62aca3c687344830bbdff5b1f715e943
item_type: 1
item_id: 0e033938ec684852bc356aae1ef86a80
item_updated_time: 1699346084707
title_diff: "[]"
body_diff: "[{\"diffs\":[[0,\"char\"],[-1,\"se\"],[1,\"ls\\\n\\\n\\\n\"]],\"start1\":63,\"start2\":63,\"length1\":6,\"length2\":9}]"
metadata_diff: {"new":{},"deleted":[]}
updated_time: 2023-11-07T08:43:58.695Z
created_time: 2023-11-07T08:43:58.695Z
type_: 13
---
    at ?anon_0_ (address at index.android.bundle:1:2563645)
    at next (native)
    at anonymous (address at index.android.bundle:1:2554407)
    at tryCallTwo (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:61:9)
    at doResolve (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:216:25)
    at Promise (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:82:14)
    at anonymous (address at index.android.bundle:1:2554234)
    at unserialize (address at index.android.bundle:1:2563361)
    at ?anon_0_ (address at index.android.bundle:1:2773339)
    at next (native)
    at fulfilled (address at index.android.bundle:1:2756809)
    at tryCallOne (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:53:16)
    at anonymous (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:139:27)
    at apply (native)
    at anonymous (address at index.android.bundle:1:217496)
    at _callTimer (address at index.android.bundle:1:216445)
    at _callReactNativeMicrotasksPass (address at index.android.bundle:1:216609)
    at callReactNativeMicrotasks (address at index.android.bundle:1:218584)
    at __callReactNativeMicrotasks (address at index.android.bundle:1:119890)
    at anonymous (address at index.android.bundle:1:118983)
    at __guard (address at index.android.bundle:1:119731)
    at flushedQueue (address at index.android.bundle:1:118894)
    at callFunctionReturnFlushedQueue (address at index.android.bundle:1:118750)"
11-07T15:20:02: Synchronizer: "There was some errors:"
11-07T15:20:02: Synchronizer: "Error: On file dbc74f4811ee493d946826faccbd6239.md: Invalid property format: ---: ---
id: dbc74f4811ee493d946826faccbd6239
parent_id: 62aca3c687344830bbdff5b1f715e943
item_type: 1
item_id: 0e033938ec684852bc356aae1ef86a80
item_updated_time: 1699346084707
title_diff: "[]"
body_diff: "[{\"diffs\":[[0,\"char\"],[-1,\"se\"],[1,\"ls\\\n\\\n\\\n\"]],\"start1\":63,\"start2\":63,\"length1\":6,\"length2\":9}]"
metadata_diff: {"new":{},"deleted":[]}
updated_time: 2023-11-07T08:43:58.695Z
created_time: 2023-11-07T08:43:58.695Z
type_: 13
---
Error: On file dbc74f4811ee493d946826faccbd6239.md: Invalid property format: ---: ---
id: dbc74f4811ee493d946826faccbd6239
parent_id: 62aca3c687344830bbdff5b1f715e943
item_type: 1
item_id: 0e033938ec684852bc356aae1ef86a80
item_updated_time: 1699346084707
title_diff: "[]"
body_diff: "[{\"diffs\":[[0,\"char\"],[-1,\"se\"],[1,\"ls\\\n\\\n\\\n\"]],\"start1\":63,\"start2\":63,\"length1\":6,\"length2\":9}]"
metadata_diff: {"new":{},"deleted":[]}
updated_time: 2023-11-07T08:43:58.695Z
created_time: 2023-11-07T08:43:58.695Z
type_: 13
---
    at ?anon_0_ (address at index.android.bundle:1:2563645)
    at next (native)
    at anonymous (address at index.android.bundle:1:2554407)
    at tryCallTwo (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:61:9)
    at doResolve (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:216:25)
    at Promise (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:82:14)
    at anonymous (address at index.android.bundle:1:2554234)
    at unserialize (address at index.android.bundle:1:2563361)
    at ?anon_0_ (address at index.android.bundle:1:2773339)
    at next (native)
    at fulfilled (address at index.android.bundle:1:2756809)
    at tryCallOne (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:53:16)
    at anonymous (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:139:27)
    at apply (native)
    at anonymous (address at index.android.bundle:1:217496)
    at _callTimer (address at index.android.bundle:1:216445)
    at _callReactNativeMicrotasksPass (address at index.android.bundle:1:216609)
    at callReactNativeMicrotasks (address at index.android.bundle:1:218584)
    at __callReactNativeMicrotasks (address at index.android.bundle:1:119890)
    at anonymous (address at index.android.bundle:1:118983)
    at __guard (address at index.android.bundle:1:119731)
    at flushedQueue (address at index.android.bundle:1:118894)
    at invokeCallbackAndReturnFlushedQueue (address at index.android.bundle:1:118837)"
11-07T15:20:01: Synchronizer: "Error: On file dbc74f4811ee493d946826faccbd6239.md: Invalid property format: ---: ---
id: dbc74f4811ee493d946826faccbd6239
parent_id: 62aca3c687344830bbdff5b1f715e943
item_type: 1
item_id: 0e033938ec684852bc356aae1ef86a80
item_updated_time: 1699346084707
title_diff: "[]"
body_diff: "[{\"diffs\":[[0,\"char\"],[-1,\"se\"],[1,\"ls\\\n\\\n\\\n\"]],\"start1\":63,\"start2\":63,\"length1\":6,\"length2\":9}]"
metadata_diff: {"new":{},"deleted":[]}
updated_time: 2023-11-07T08:43:58.695Z
created_time: 2023-11-07T08:43:58.695Z
type_: 13
---
Error: On file dbc74f4811ee493d946826faccbd6239.md: Invalid property format: ---: ---
id: dbc74f4811ee493d946826faccbd6239
parent_id: 62aca3c687344830bbdff5b1f715e943
item_type: 1
item_id: 0e033938ec684852bc356aae1ef86a80
item_updated_time: 1699346084707
title_diff: "[]"
body_diff: "[{\"diffs\":[[0,\"char\"],[-1,\"se\"],[1,\"ls\\\n\\\n\\\n\"]],\"start1\":63,\"start2\":63,\"length1\":6,\"length2\":9}]"
metadata_diff: {"new":{},"deleted":[]}
updated_time: 2023-11-07T08:43:58.695Z
created_time: 2023-11-07T08:43:58.695Z
type_: 13
---
    at ?anon_0_ (address at index.android.bundle:1:2563645)
    at next (native)
    at anonymous (address at index.android.bundle:1:2554407)
    at tryCallTwo (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:61:9)
    at doResolve (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:216:25)
    at Promise (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:82:14)
    at anonymous (address at index.android.bundle:1:2554234)
    at unserialize (address at index.android.bundle:1:2563361)
    at ?anon_0_ (address at index.android.bundle:1:2773339)
    at next (native)
    at fulfilled (address at index.android.bundle:1:2756809)
    at tryCallOne (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:53:16)
    at anonymous (/root/react-native/ReactAndroid/hermes-engine/.cxx/MinSizeRel/5p1x2e66/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:139:27)
    at apply (native)
    at anonymous (address at index.android.bundle:1:217496)
    at _callTimer (address at index.android.bundle:1:216445)
    at _callReactNativeMicrotasksPass (address at index.android.bundle:1:216609)
    at callReactNativeMicrotasks (address at index.android.bundle:1:218584)
    at __callReactNativeMicrotasks (address at index.android.bundle:1:119890)
    at anonymous (address at index.android.bundle:1:118983)
    at __guard (address at index.android.bundle:1:119731)
    at flushedQueue (address at index.android.bundle:1:118894)
    at invokeCallbackAndReturnFlushedQueue (address at index.android.bundle:1:118837)"
1 Like

I have the same problem, except my phone has Android 13 and desktop is on Windows 11.
I also can't reproduce, but very often I get a "lock" error when the sync is started on the phone.

1 Like

I'm getting this never ending cancel behaviour on Windows 11. I've found that I can Quit the app on Windows. Leave it off for a few minutes and then re-start. After the restart, the app syncs very quickly. I've started trying this on my Android device and it seems to work also. Althought I have to force quit on Android. I have a Mac, Windows and Android device syncing to Nextcloud.

My suspicion is that the app is getting locked on a file on my Nextcloud and won't let go. Or perhaps the cancel command doesn't initiate because Joplin has gotten stuck doing something on the sync. When I quit, it has time to let go the lock and then it will work.

My other thought on this is perhaps after 10 min of doing something on the sync Joplin gets booted from Nextcloud and doesn't know what to do. But this is all speculation as I also can't replicate it. It just seems to happen now and again.

1 Like

I forget to mention that I'm using Dropbox as Synchronisation target.

This recent thread outlines a different workaround: I solved Android stopped syncing

It also links the most recent Github issue for this bug.

1 Like