mpcjanssen / simpletask-android

GNU General Public License v3.0
545 stars 124 forks source link

Syncing with Dropbox duplicates ALL entries #1027

Closed btittelbach closed 4 years ago

btittelbach commented 4 years ago

How to reproduce issue:

  1. Enter Simpletask App, make sure it is synced with Dropbox.
  2. Go to PC, make sure todo.txt has synced.
  3. add a new task to todo.txt
  4. wait sufficently long time until Dropbox has synced
  5. change to Simpletask App on Phone
  6. Watch as Simpletask App updates todo.txt from Dropbox and DUPLICATES every task
  7. verify on PC that a copy of todo.txt has been appended to todo.txt

Observations:

Settings

Debug Log

12-03 18:19:23.990 10389 10389 I Simpletask: onNewIntent: Intent { act=nl.mpcjanssen.simpletask.START_WITH_FILTER flg=0x10000000 cmp=nl.mpcjanssen.todotxtholo/nl.mpcjanssen.simpletask.Simpletask bnds=[18,811][846,868] (has extras) }
12-03 18:19:24.001 10389 10389 I Simpletask: onResume
12-03 18:19:24.001 10389 10389 D TodoList: Reload: Main activity resume
12-03 18:19:24.001 10389 10389 I FSQ     : -> Verify token
12-03 18:19:24.001 10389 18788 I FSQ     : <- Verify token
12-03 18:19:24.001 10389 10389 I FSQ     : -> Reload
12-03 18:19:24.001 10389 10389 I FSQ     : -> Verify token
12-03 18:19:24.001 10389 18787 I FSQ     : <- Reload
12-03 18:19:24.001 10389 18787 I Util    : Sending file sync start broadcast
12-03 18:19:24.001 10389 10389 I Simpletask: handleIntent
12-03 18:19:24.002 10389 10389 D Simpletask: JSON {
12-03 18:19:24.002 10389 10389 D Simpletask:   "CONTEXTS": "",
12-03 18:19:24.002 10389 10389 D Simpletask:   "CONTEXTSnot": false,
12-03 18:19:24.002 10389 10389 D Simpletask:   "PROJECTS": "",
12-03 18:19:24.002 10389 10389 D Simpletask:   "PROJECTSnot": false,
12-03 18:19:24.002 10389 10389 D Simpletask:   "PRIORITIES": "",
12-03 18:19:24.002 10389 10389 D Simpletask:   "PRIORITIESnot": false,
12-03 18:19:24.002 10389 10389 D Simpletask:   "SORTS": "+!by_due_date\n+!completed\n+!by_prio\n+!by_context\n+!alphabetical\n+!file_order\n+!by_project\n+!by_creation_date\n+!in_future\n+!by_threshold_date\n+!by_completion_date\n+!by_lua",
12-03 18:19:24.002 10389 10389 D Simpletask:   "HIDECOMPLETED": true,
12-03 18:19:24.002 10389 10389 D Simpletask:   "HIDEFUTURE": false,
12-03 18:19:24.002 10389 10389 D Simpletask:   "HIDELISTS": false,
12-03 18:19:24.002 10389 10389 D Simpletask:   "HIDETAGS": false,
12-03 18:19:24.002 10389 10389 D Simpletask:   "HIDECREATEDATE": false,
12-03 18:19:24.002 10389 10389 D Simpletask:   "HIDEHIDDEN": true,
12-03 18:19:24.002 10389 10389 D Simpletask:   "CREATEISTHRESHOLD": false,
12-03 18:19:24.002 10389 10389 D Simpletask:   "LUASCRIPT": "",
12-03 18:19:24.002 10389 10389 D Simpletask:   "USE_SCRIPT": false,
12-03 18:19:24.002 10389 10389 D Simpletask:   "LUASCRIPT_TEST_TASK": "",
12-03 18:19:24.002 10389 10389 D Simpletask:   "query": ""
12-03 18:19:24.002 10389 10389 D Simpletask: } (java.lang.String)
12-03 18:19:24.003 10389 18794 I FSQ     : <- Verify token
12-03 18:19:24.004 10389 10389 I TaskAdapter: Text size = 14.0
12-03 18:19:24.004 10389 10389 I TaskAdapter: setFilteredTasks called: nl.mpcjanssen.simpletask.task.TodoList@828ef4
12-03 18:19:24.004 10389 10389 D TodoList: Getting sorted and filtered tasks
12-03 18:19:24.060 10389 10389 D TodoList: Sorting and filtering tasks took 56 ms
12-03 18:19:24.061 10389 10389 D Event   : update UI for event RESUME
12-03 18:19:24.061 10389 10389 D Simpletask: Update applyFilter bar
12-03 18:19:24.061 10389 10389 D Simpletask: Update applyFilter bar
12-03 18:19:24.115 10389 10389 I AlarmReceiver: Executing Alarm callback
12-03 18:19:24.115 10389 10389 I Util    : Sending file changed broadcast
12-03 18:19:24.136 10389 10389 I TodoApplication: Received broadcast FILE_SYNC
12-03 18:19:24.137 10389 10389 I TodoApplication: Loading todolist
12-03 18:19:24.137 10389 10389 D TodoList: Reload: From BROADCAST_FILE_SYNC
12-03 18:19:24.137 10389 10389 I FSQ     : -> Verify token
12-03 18:19:24.137 10389 10389 I FSQ     : -> Reload
12-03 18:19:24.137 10389 18793 I FSQ     : <- Verify token
12-03 18:19:24.138 10389 18799 I FSQ     : <- Reload
12-03 18:19:24.138 10389 18799 I Util    : Sending file sync start broadcast
12-03 18:19:24.998 10389 18799 I TodoList: Remote version: 598cf7d7ec8e45e42d546 (current local 598cf7d7ec8e45e42d546)
12-03 18:19:24.998 10389 18799 I TodoList: Remote version is same, load from cache
12-03 18:19:24.998 10389 18799 I Util    : Sending file sync done changed broadcast
12-03 18:19:24.998 10389 18787 I TodoList: Remote version: 598cf7d7ec8e45e42d546 (current local 598cf7d7ec8e45e42d546)
12-03 18:19:24.998 10389 18787 I TodoList: Remote version is same, load from cache
12-03 18:19:24.999 10389 18787 I Util    : Sending file sync done changed broadcast
12-03 18:19:25.199 10389 18788 D FileStore: Authenticated for <....>
12-03 18:19:25.200 10389 18794 D FileStore: Authenticated for <....>
12-03 18:19:25.217 10389 18793 D FileStore: Authenticated for <....>
12-03 18:19:26.698 10389 10389 I Simpletask: onMenuItemSelected: 2131296512
12-03 18:19:26.739 10389 10389 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@a02dde2
12-03 18:19:26.763 10389 10389 I Preferences: Registering broadcast receiver
12-03 18:19:26.814 10389 10389 W DecorView[]: The visibility of the navigation bar is low, color=ff000000, hasLightNavBar=true, isFloating=false
12-03 18:19:27.046 10389 10416 D OpenGLRenderer: endAllActiveAnimators on 0x7bd8773300 (MenuPopupWindow$MenuDropDownListView) with handle 0x7bd8640ce0
12-03 18:19:42.891 10389 10389 I Simpletask: onResume
12-03 18:19:42.891 10389 10389 D TodoList: Reload: Main activity resume
12-03 18:19:42.891 10389 10389 I FSQ     : -> Verify token
12-03 18:19:42.891 10389 10389 I FSQ     : -> Reload
12-03 18:19:42.891 10389 10389 I FSQ     : -> Verify token
12-03 18:19:42.892 10389 10389 I Simpletask: handleIntent: from m_prefs state
12-03 18:19:42.893 10389 10389 I TaskAdapter: Text size = 14.0
12-03 18:19:42.893 10389 10389 I TaskAdapter: setFilteredTasks called: nl.mpcjanssen.simpletask.task.TodoList@828ef4
12-03 18:19:42.893 10389 10389 D TodoList: Getting sorted and filtered tasks
12-03 18:19:42.898 10389 10409 I FSQ     : <- Reload
12-03 18:19:42.898 10389 10410 I FSQ     : <- Verify token
12-03 18:19:42.898 10389 10409 I Util    : Sending file sync start broadcast
12-03 18:19:42.899 10389 10441 I FSQ     : <- Verify token
12-03 18:19:42.950 10389 10389 D TodoList: Sorting and filtering tasks took 56 ms
12-03 18:19:42.951 10389 10389 I TaskAdapter: Restoring scroll offset 0, 0
12-03 18:19:42.951 10389 10389 D Event   : update UI for event RESUME
12-03 18:19:42.951 10389 10389 D Simpletask: Update applyFilter bar
12-03 18:19:42.952 10389 10389 D Simpletask: Update applyFilter bar
12-03 18:19:43.503 10389 10410 D FileStore: Authenticated for <....>
12-03 18:19:43.504 10389 10441 D FileStore: Authenticated for <....>
12-03 18:19:43.540 10389 10409 I TodoList: Remote version: 598cf7d7ec8e45e42d546 (current local 598cf7d7ec8e45e42d546)
12-03 18:19:43.540 10389 10409 I TodoList: Remote version is same, load from cache
12-03 18:19:43.540 10389 10409 I Util    : Sending file sync done changed broadcast
12-03 18:19:43.640 10389 10389 E ANDR-PERF: IPerf::tryGetService failed!
12-03 18:19:43.675 10389 10389 E ANDR-PERF: IPerf::tryGetService failed!
12-03 18:19:44.393 10389 10389 E ANDR-PERF: IPerf::tryGetService failed!
12-03 18:19:44.407 10389 10389 E ANDR-PERF: IPerf::tryGetService failed!
12-03 18:19:44.455 10389 10389 E ANDR-PERF: IPerf::tryGetService failed!
12-03 18:19:44.788 10389 10389 E ANDR-PERF: IPerf::tryGetService failed!
12-03 18:19:47.362 10389 10389 I Simpletask: onMenuItemSelected: 2131296512
12-03 18:19:47.402 10389 10389 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@eb423b3
12-03 18:19:47.410 10389 10389 I Preferences: Registering broadcast receiver
12-03 18:19:47.434 10389 10389 W DecorView[]: The visibility of the navigation bar is low, color=ff000000, hasLightNavBar=true, isFloating=false
12-03 18:19:47.731 10389 10416 D OpenGLRenderer: endAllActiveAnimators on 0x7bd57db400 (MenuPopupWindow$MenuDropDownListView) with handle 0x7bec192640
12-03 18:20:16.883 10389 10389 I Simpletask: onResume
12-03 18:20:16.883 10389 10389 D TodoList: Reload: Main activity resume
12-03 18:20:16.883 10389 10389 I FSQ     : -> Verify token
12-03 18:20:16.883 10389 10389 I FSQ     : -> Reload
12-03 18:20:16.883 10389 10407 I FSQ     : <- Verify token
12-03 18:20:16.883 10389 10389 I FSQ     : -> Verify token
12-03 18:20:16.884 10389 10389 I Simpletask: handleIntent: from m_prefs state
12-03 18:20:16.885 10389 10418 I FSQ     : <- Reload
12-03 18:20:16.885 10389 10446 I FSQ     : <- Verify token
12-03 18:20:16.885 10389 10418 I Util    : Sending file sync start broadcast
12-03 18:20:16.888 10389 10389 I TaskAdapter: Text size = 14.0
12-03 18:20:16.888 10389 10389 I TaskAdapter: setFilteredTasks called: nl.mpcjanssen.simpletask.task.TodoList@828ef4
12-03 18:20:16.888 10389 10389 D TodoList: Getting sorted and filtered tasks
12-03 18:20:16.967 10389 10389 D TodoList: Sorting and filtering tasks took 78 ms
12-03 18:20:16.968 10389 10389 I TaskAdapter: Restoring scroll offset 0, 0
12-03 18:20:16.968 10389 10389 D Event   : update UI for event RESUME
12-03 18:20:16.968 10389 10389 D Simpletask: Update applyFilter bar
12-03 18:20:16.969 10389 10389 D Simpletask: Update applyFilter bar
12-03 18:20:18.312 10389 10418 I TodoList: Remote version: 598cf7d7ec8e45e42d546 (current local 598cf7d7ec8e45e42d546)
12-03 18:20:18.312 10389 10418 I TodoList: Remote version is same, load from cache
12-03 18:20:18.312 10389 10418 I Util    : Sending file sync done changed broadcast
12-03 18:20:18.312 10389 10407 D FileStore: Authenticated for <....>
12-03 18:20:18.313 10389 10446 D FileStore: Authenticated for <....>
12-03 18:20:20.776 10389 10389 I Simpletask: onMenuItemSelected: 2131296412
12-03 18:20:20.827 10389 10389 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@ed8570
12-03 18:20:20.839 10389 10389 I WebViewFactory: Loading com.android.chrome version 78.0.3904.108 (code 390410837)
12-03 18:20:20.893 10389 10389 I cr_LibraryLoader: Time to load native libraries: 2 ms
12-03 18:20:20.925 10389 10389 I chromium: [INFO:library_loader_hooks.cc(51)] Chromium logging enabled: level = 0, default verbosity = 0
12-03 18:20:20.925 10389 10389 I cr_LibraryLoader: Expected native library version number "78.0.3904.108", actual native library version number "78.0.3904.108"
12-03 18:20:20.954 10389 20979 W cr_ChildProcLH: Create a new ChildConnectionAllocator with package name = com.android.chrome, sandboxed = true
12-03 18:20:20.969 10389 10389 I cr_BrowserStartup: Initializing chromium process, singleProcess=false
12-03 18:20:21.117 10389 10389 D HelpScreen: Loading asset index.en.md into android.webkit.WebView{ee8fc2e VFEDHVC.. ......I. 0,0-0,0 #7f09009d app:id/help_view}(nl.mpcjanssen.simpletask.HelpScreen@f3ae2a5)
12-03 18:20:21.141 10389 21008 W cr_media: Requires BLUETOOTH permission
12-03 18:20:21.206 10389 21015 W VideoCapabilities: Unrecognized profile 2130706433 for video/avc
12-03 18:20:21.206 10389 21015 W VideoCapabilities: Unrecognized profile 2130706434 for video/avc
12-03 18:20:21.209 10389 21015 W VideoCapabilities: Unrecognized profile 2130706433 for video/avc
12-03 18:20:21.209 10389 21015 W VideoCapabilities: Unrecognized profile 2130706434 for video/avc
12-03 18:20:21.213 10389 21015 W VideoCapabilities: Unrecognized profile 4 for video/hevc
12-03 18:20:21.216 10389 10389 W DecorView[]: The visibility of the navigation bar is low, color=ff000000, hasLightNavBar=true, isFloating=false
12-03 18:20:21.219 10389 21015 W VideoCapabilities: Unrecognized profile 2130706433 for video/avc
12-03 18:20:21.219 10389 21015 W VideoCapabilities: Unrecognized profile 2130706434 for video/avc
12-03 18:20:21.225 10389 21015 I VideoCapabilities: Unsupported profile 4 for video/mp4v-es
12-03 18:20:24.030 10389 10389 E ANDR-PERF: IPerf::tryGetService failed!
12-03 18:20:25.813 10389 10389 D SmartSelectEventTracker: New selection session: webview (21da887a267f)
12-03 18:20:25.813 10389 10389 D SmartSelectEventTracker:  0: SELECTION_STARTED/, range=0,1 - smart_range=0,0 (webview/)
--------- beginning of system
12-03 18:20:25.848 10389 10389 D TextClassifierService: No configured system TextClassifierService
12-03 18:20:26.003 10389 21006 D androidtc: Loading ModelFile { path=/data/misc/textclassifier/textclassifier.model name=textclassifier.model version=609 locales=en }
12-03 18:20:26.076 10389 10389 D TextClassifierService: No configured system TextClassifierService
12-03 18:20:26.113 10389 10389 D SmartSelectEventTracker:  1: SELECTION_MODIFIED/other, range=-93,1 - smart_range=0,0 (webview/)
12-03 18:20:26.623 10389 10389 E ANDR-PERF: IPerf::tryGetService failed!
12-03 18:20:27.574 10389 10389 E ANDR-PERF: IPerf::tryGetService failed!
12-03 18:20:28.338 10389 10389 I Simpletask: onNewIntent: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=nl.mpcjanssen.todotxtholo/nl.mpcjanssen.simpletask.Simpletask }
12-03 18:20:28.352 10389 10389 I Simpletask: onResume
12-03 18:20:28.352 10389 10389 D TodoList: Reload: Main activity resume
12-03 18:20:28.352 10389 10389 I FSQ     : -> Verify token
12-03 18:20:28.353 10389 10417 I FSQ     : <- Verify token
12-03 18:20:28.353 10389 10389 I FSQ     : -> Reload
12-03 18:20:28.353 10389 10389 I FSQ     : -> Verify token
12-03 18:20:28.354 10389 10454 I FSQ     : <- Reload
12-03 18:20:28.354 10389 10454 I Util    : Sending file sync start broadcast
12-03 18:20:28.354 10389 10389 I Simpletask: handleIntent: from m_prefs state
12-03 18:20:28.355 10389 10408 I FSQ     : <- Verify token
12-03 18:20:28.356 10389 10389 I TaskAdapter: Text size = 14.0
12-03 18:20:28.356 10389 10389 I TaskAdapter: setFilteredTasks called: nl.mpcjanssen.simpletask.task.TodoList@828ef4
12-03 18:20:28.356 10389 10389 D TodoList: Getting sorted and filtered tasks
12-03 18:20:28.415 10389 10389 D TodoList: Sorting and filtering tasks took 58 ms
12-03 18:20:28.417 10389 10389 I TaskAdapter: Restoring scroll offset 0, 0
12-03 18:20:28.418 10389 10389 D Event   : update UI for event RESUME
12-03 18:20:28.418 10389 10389 D Simpletask: Update applyFilter bar
12-03 18:20:28.419 10389 10389 D Simpletask: Update applyFilter bar
12-03 18:20:28.763 10389 10454 I TodoList: Remote version: 598cf7d7ec8e45e42d546 (current local 598cf7d7ec8e45e42d546)
12-03 18:20:28.763 10389 10454 I TodoList: Remote version is same, load from cache
12-03 18:20:28.763 10389 10454 I Util    : Sending file sync done changed broadcast
12-03 18:20:28.948 10389 10389 E WindowManager: 
12-03 18:20:28.948 10389 10389 E WindowManager: android.view.WindowLeaked: Activity nl.mpcjanssen.simpletask.HelpScreen has leaked window android.widget.PopupWindow$PopupDecorView{7ac8b64 V.E...... R.....I. 0,0-132,66} that was originally added here
12-03 18:20:28.948 10389 10389 E WindowManager:     at android.view.ViewRootImpl.<init>(ViewRootImpl.java:523)
12-03 18:20:28.948 10389 10389 E WindowManager:     at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:346)
12-03 18:20:28.948 10389 10389 E WindowManager:     at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:94)
12-03 18:20:28.948 10389 10389 E WindowManager:     at android.widget.PopupWindow.invokePopup(PopupWindow.java:1434)
12-03 18:20:28.948 10389 10389 E WindowManager:     at android.widget.PopupWindow.showAtLocation(PopupWindow.java:1203)
12-03 18:20:28.948 10389 10389 E WindowManager:     at android.widget.PopupWindow.showAtLocation(PopupWindow.java:1170)
12-03 18:20:28.948 10389 10389 E WindowManager:     at org.chromium.android_webview.PopupTouchHandleDrawable.show(PG:18)
12-03 18:20:28.948 10389 10389 E WindowManager:     at android.os.MessageQueue.nativePollOnce(Native Method)
12-03 18:20:28.948 10389 10389 E WindowManager:     at android.os.MessageQueue.next(MessageQueue.java:376)
12-03 18:20:28.948 10389 10389 E WindowManager:     at android.os.Looper.loop(Looper.java:244)
12-03 18:20:28.948 10389 10389 E WindowManager:     at android.app.ActivityThread.main(ActivityThread.java:6706)
12-03 18:20:28.948 10389 10389 E WindowManager:     at java.lang.reflect.Method.invoke(Native Method)
12-03 18:20:28.948 10389 10389 E WindowManager:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
12-03 18:20:28.948 10389 10389 E WindowManager:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
12-03 18:20:28.948 10389 10389 E WindowManager: 
12-03 18:20:28.948 10389 10389 E WindowManager: android.view.WindowLeaked: Activity nl.mpcjanssen.simpletask.HelpScreen has leaked window android.widget.PopupWindow$PopupDecorView{2c36a82 V.E...... R.....I. 0,0-132,66} that was originally added here
12-03 18:20:28.948 10389 10389 E WindowManager:     at android.view.ViewRootImpl.<init>(ViewRootImpl.java:523)
12-03 18:20:28.948 10389 10389 E WindowManager:     at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:346)
12-03 18:20:28.948 10389 10389 E WindowManager:     at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:94)
12-03 18:20:28.948 10389 10389 E WindowManager:     at android.widget.PopupWindow.invokePopup(PopupWindow.java:1434)
12-03 18:20:28.948 10389 10389 E WindowManager:     at android.widget.PopupWindow.showAtLocation(PopupWindow.java:1203)
12-03 18:20:28.948 10389 10389 E WindowManager:     at android.widget.PopupWindow.showAtLocation(PopupWindow.java:1170)
12-03 18:20:28.948 10389 10389 E WindowManager:     at org.chromium.android_webview.PopupTouchHandleDrawable.show(PG:18)
12-03 18:20:28.948 10389 10389 E WindowManager:     at android.os.MessageQueue.nativePollOnce(Native Method)
12-03 18:20:28.948 10389 10389 E WindowManager:     at android.os.MessageQueue.next(MessageQueue.java:376)
12-03 18:20:28.948 10389 10389 E WindowManager:     at android.os.Looper.loop(Looper.java:244)
12-03 18:20:28.948 10389 10389 E WindowManager:     at android.app.ActivityThread.main(ActivityThread.java:6706)
12-03 18:20:28.948 10389 10389 E WindowManager:     at java.lang.reflect.Method.invoke(Native Method)
12-03 18:20:28.948 10389 10389 E WindowManager:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
12-03 18:20:28.948 10389 10389 E WindowManager:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
12-03 18:20:28.961 10389 10417 D FileStore: Authenticated for <....>
12-03 18:20:28.962 10389 10408 D FileStore: Authenticated for <....>
12-03 18:20:32.379 10389 10389 I Simpletask: onMenuItemSelected: 2131296512
12-03 18:20:32.426 10389 10389 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@ada2c1
12-03 18:20:32.434 10389 10389 I Preferences: Registering broadcast receiver
12-03 18:20:32.459 10389 10389 W DecorView[]: The visibility of the navigation bar is low, color=ff000000, hasLightNavBar=true, isFloating=false
12-03 18:20:32.744 10389 10416 D OpenGLRenderer: endAllActiveAnimators on 0x7bd8611100 (MenuPopupWindow$MenuDropDownListView) with handle 0x7bd87a9fa0
12-03 18:20:33.297 10389 10389 I Simpletask: onResume
12-03 18:20:33.297 10389 10389 D TodoList: Reload: Main activity resume
12-03 18:20:33.297 10389 10389 I FSQ     : -> Verify token
12-03 18:20:33.298 10389 10389 I FSQ     : -> Reload
12-03 18:20:33.298 10389 18785 I FSQ     : <- Verify token
12-03 18:20:33.298 10389 10389 I FSQ     : -> Verify token
12-03 18:20:33.298 10389 10389 I Simpletask: handleIntent: from m_prefs state
12-03 18:20:33.299 10389 18789 I FSQ     : <- Reload
12-03 18:20:33.299 10389 18789 I Util    : Sending file sync start broadcast
12-03 18:20:33.299 10389 18799 I FSQ     : <- Verify token
12-03 18:20:33.299 10389 10389 I TaskAdapter: Text size = 14.0
12-03 18:20:33.299 10389 10389 I TaskAdapter: setFilteredTasks called: nl.mpcjanssen.simpletask.task.TodoList@828ef4
12-03 18:20:33.299 10389 10389 D TodoList: Getting sorted and filtered tasks
12-03 18:20:33.331 10389 10389 D TodoList: Sorting and filtering tasks took 31 ms
12-03 18:20:33.331 10389 10389 I TaskAdapter: Restoring scroll offset 0, 0
12-03 18:20:33.332 10389 10389 D Event   : update UI for event RESUME
12-03 18:20:33.332 10389 10389 D Simpletask: Update applyFilter bar
12-03 18:20:33.332 10389 10389 D Simpletask: Update applyFilter bar
12-03 18:20:33.440 10389 10389 E cr_WebContentsImpl: UserDataHost can't be found
12-03 18:20:33.440 10389 10389 E cr_WebContentsImpl: UserDataHost can't be found
12-03 18:20:33.673 10389 18789 I TodoList: Remote version: 598cf7d7ec8e45e42d546 (current local 598cf7d7ec8e45e42d546)
12-03 18:20:33.673 10389 18789 I TodoList: Remote version is same, load from cache
12-03 18:20:33.673 10389 18789 I Util    : Sending file sync done changed broadcast
12-03 18:20:33.880 10389 18785 D FileStore: Authenticated for <....>
12-03 18:20:33.880 10389 18799 D FileStore: Authenticated for <....>
12-03 18:20:34.735 10389 10389 I Simpletask: onMenuItemSelected: 2131296504
12-03 18:20:34.784 10389 10389 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@176a364
12-03 18:20:34.817 10389 10389 W DecorView[]: The visibility of the navigation bar is low, color=ff000000, hasLightNavBar=true, isFloating=false
12-03 18:20:35.104 10389 10416 D OpenGLRenderer: endAllActiveAnimators on 0x7be8c61700 (MenuPopupWindow$MenuDropDownListView) with handle 0x7bd58594e0
12-03 18:20:35.862 10389 10389 I Simpletask: onResume
12-03 18:20:35.862 10389 10389 D TodoList: Reload: Main activity resume
12-03 18:20:35.862 10389 10389 I FSQ     : -> Verify token
12-03 18:20:35.862 10389 18787 I FSQ     : <- Verify token
12-03 18:20:35.863 10389 10389 I FSQ     : -> Reload
12-03 18:20:35.863 10389 18788 I FSQ     : <- Reload
12-03 18:20:35.863 10389 18788 I Util    : Sending file sync start broadcast
12-03 18:20:35.863 10389 10389 I FSQ     : -> Verify token
12-03 18:20:35.864 10389 10389 I Simpletask: handleIntent: from m_prefs state
12-03 18:20:35.865 10389 10389 I TaskAdapter: Text size = 14.0
12-03 18:20:35.865 10389 10389 I TaskAdapter: setFilteredTasks called: nl.mpcjanssen.simpletask.task.TodoList@828ef4
12-03 18:20:35.865 10389 10389 D TodoList: Getting sorted and filtered tasks
12-03 18:20:35.869 10389 18794 I FSQ     : <- Verify token
12-03 18:20:35.917 10389 10389 D TodoList: Sorting and filtering tasks took 51 ms
12-03 18:20:35.919 10389 10389 I TaskAdapter: Restoring scroll offset 0, 0
12-03 18:20:35.919 10389 10389 D Event   : update UI for event RESUME
12-03 18:20:35.919 10389 10389 D Simpletask: Update applyFilter bar
12-03 18:20:35.920 10389 10389 D Simpletask: Update applyFilter bar
12-03 18:20:36.334 10389 18794 D FileStore: Authenticated for <....>
12-03 18:20:36.539 10389 18788 I TodoList: Remote version: 598cf7d7ec8e45e42d546 (current local 598cf7d7ec8e45e42d546)
12-03 18:20:36.539 10389 18788 I TodoList: Remote version is same, load from cache
12-03 18:20:36.539 10389 18788 I Util    : Sending file sync done changed broadcast
12-03 18:20:36.557 10389 18787 D FileStore: Authenticated for <....>
12-03 18:20:45.591 10389 10389 I Simpletask: onMenuItemSelected: 2131296512
12-03 18:20:45.624 10389 10389 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@694e1c3
12-03 18:20:45.631 10389 10389 I Preferences: Registering broadcast receiver
12-03 18:20:45.653 10389 10389 W DecorView[]: The visibility of the navigation bar is low, color=ff000000, hasLightNavBar=true, isFloating=false
12-03 18:20:45.957 10389 10416 D OpenGLRenderer: endAllActiveAnimators on 0x7bd08cf900 (MenuPopupWindow$MenuDropDownListView) with handle 0x7bd7b584e0
12-03 18:21:12.780 10389 10389 E ANDR-PERF: IPerf::tryGetService failed!
12-03 18:21:31.204 10389 10389 E ANDR-PERF: IPerf::tryGetService failed!
12-03 18:21:32.573 10389 10389 I Simpletask: onResume
12-03 18:21:32.573 10389 10389 D TodoList: Reload: Main activity resume
12-03 18:21:32.573 10389 10389 I FSQ     : -> Verify token
12-03 18:21:32.573 10389 10389 I FSQ     : -> Reload
12-03 18:21:32.573 10389 18793 I FSQ     : <- Verify token
12-03 18:21:32.574 10389 10389 I FSQ     : -> Verify token
12-03 18:21:32.574 10389 10410 I FSQ     : <- Reload
12-03 18:21:32.574 10389 10410 I Util    : Sending file sync start broadcast
12-03 18:21:32.574 10389 10441 I FSQ     : <- Verify token
12-03 18:21:32.574 10389 10389 I Simpletask: handleIntent: from m_prefs state
12-03 18:21:32.576 10389 10389 I TaskAdapter: Text size = 14.0
12-03 18:21:32.576 10389 10389 I TaskAdapter: setFilteredTasks called: nl.mpcjanssen.simpletask.task.TodoList@828ef4
12-03 18:21:32.576 10389 10389 D TodoList: Getting sorted and filtered tasks
12-03 18:21:32.633 10389 10389 D TodoList: Sorting and filtering tasks took 57 ms
12-03 18:21:32.635 10389 10389 I TaskAdapter: Restoring scroll offset 0, 0
12-03 18:21:32.635 10389 10389 D Event   : update UI for event RESUME
12-03 18:21:32.636 10389 10389 D Simpletask: Update applyFilter bar
12-03 18:21:32.636 10389 10389 D Simpletask: Update applyFilter bar
12-03 18:21:33.063 10389 10441 D FileStore: Authenticated for <....>
12-03 18:21:33.063 10389 10410 I TodoList: Remote version: 598cf7d7ec8e45e42d546 (current local 598cf7d7ec8e45e42d546)
12-03 18:21:33.063 10389 10410 I TodoList: Remote version is same, load from cache
12-03 18:21:33.063 10389 10410 I Util    : Sending file sync done changed broadcast
12-03 18:21:33.372 10389 18793 D FileStore: Authenticated for <....>
12-03 18:21:35.853 10389 10389 I Simpletask: onMenuItemSelected: 2131296512
12-03 18:21:35.883 10389 10389 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@72ea35e
12-03 18:21:35.891 10389 10389 I Preferences: Registering broadcast receiver
12-03 18:21:35.914 10389 10389 W DecorView[]: The visibility of the navigation bar is low, color=ff000000, hasLightNavBar=true, isFloating=false
12-03 18:21:36.202 10389 10416 D OpenGLRenderer: endAllActiveAnimators on 0x7bd6bc3400 (MenuPopupWindow$MenuDropDownListView) with handle 0x7bd59f8680
12-03 18:21:36.293 10389 10389 I AlarmReceiver: Executing Alarm callback
12-03 18:21:36.294 10389 10389 I Util    : Sending file changed broadcast
12-03 18:21:36.294 10389 10389 I TodoApplication: Received broadcast FILE_SYNC
12-03 18:21:36.294 10389 10389 I TodoApplication: Loading todolist
12-03 18:21:36.294 10389 10389 D TodoList: Reload: From BROADCAST_FILE_SYNC
12-03 18:21:36.294 10389 10389 I FSQ     : -> Verify token
12-03 18:21:36.294 10389 10389 I FSQ     : -> Reload
12-03 18:21:36.294 10389 10409 I FSQ     : <- Verify token
12-03 18:21:36.294 10389 10418 I FSQ     : <- Reload
12-03 18:21:36.294 10389 10418 I Util    : Sending file sync start broadcast
12-03 18:21:36.750 10389 10418 I TodoList: Remote version: 598cf7d7ec8e45e42d546 (current local 598cf7d7ec8e45e42d546)
12-03 18:21:36.750 10389 10418 I TodoList: Remote version is same, load from cache
12-03 18:21:36.750 10389 10418 I Util    : Sending file sync done changed broadcast
12-03 18:21:36.845 10389 10409 D FileStore: Authenticated for <....>
12-03 18:21:38.840 10389 10389 E ANDR-PERF: IPerf::tryGetService failed!
12-03 18:21:40.583 10389 10389 I Simpletask: onResume
12-03 18:21:40.583 10389 10389 D TodoList: Reload: Main activity resume
12-03 18:21:40.583 10389 10389 I FSQ     : -> Verify token
12-03 18:21:40.583 10389 10389 I FSQ     : -> Reload
12-03 18:21:40.583 10389 10407 I FSQ     : <- Verify token
12-03 18:21:40.583 10389 10389 I FSQ     : -> Verify token
12-03 18:21:40.583 10389 10446 I FSQ     : <- Reload
12-03 18:21:40.583 10389 10446 I Util    : Sending file sync start broadcast
12-03 18:21:40.583 10389 10389 I Simpletask: handleIntent: from m_prefs state
12-03 18:21:40.584 10389 10454 I FSQ     : <- Verify token
12-03 18:21:40.585 10389 10389 I TaskAdapter: Text size = 14.0
12-03 18:21:40.585 10389 10389 I TaskAdapter: setFilteredTasks called: nl.mpcjanssen.simpletask.task.TodoList@828ef4
12-03 18:21:40.585 10389 10389 D TodoList: Getting sorted and filtered tasks
12-03 18:21:40.635 10389 10389 D TodoList: Sorting and filtering tasks took 50 ms
12-03 18:21:40.636 10389 10389 I TaskAdapter: Restoring scroll offset 0, 0
12-03 18:21:40.636 10389 10389 D Event   : update UI for event RESUME
12-03 18:21:40.637 10389 10389 D Simpletask: Update applyFilter bar
12-03 18:21:40.637 10389 10389 D Simpletask: Update applyFilter bar
12-03 18:21:41.153 10389 10454 D FileStore: Authenticated for <....>
12-03 18:21:41.153 10389 10407 D FileStore: Authenticated for <....>
12-03 18:21:41.153 10389 10446 I TodoList: Remote version: 598cf7d7ec8e45e42d546 (current local 598cf7d7ec8e45e42d546)
12-03 18:21:41.153 10389 10446 I TodoList: Remote version is same, load from cache
12-03 18:21:41.153 10389 10446 I Util    : Sending file sync done changed broadcast
12-03 18:21:45.014 10389 10389 I Simpletask: onMenuItemSelected: 2131296574
12-03 18:21:45.014 10389 10389 I Util    : Sending file changed broadcast
12-03 18:21:45.015 10389 10389 I TodoApplication: Received broadcast FILE_SYNC
12-03 18:21:45.015 10389 10389 I TodoApplication: Loading todolist
12-03 18:21:45.015 10389 10389 D TodoList: Reload: From BROADCAST_FILE_SYNC
12-03 18:21:45.015 10389 10389 I FSQ     : -> Verify token
12-03 18:21:45.015 10389 10389 I FSQ     : -> Reload
12-03 18:21:45.015 10389 10417 I FSQ     : <- Verify token
12-03 18:21:45.015 10389 10408 I FSQ     : <- Reload
12-03 18:21:45.015 10389 10408 I Util    : Sending file sync start broadcast
12-03 18:21:45.364 10389 10416 D OpenGLRenderer: endAllActiveAnimators on 0x7bd8ef9100 (MenuPopupWindow$MenuDropDownListView) with handle 0x7bd861fba0
12-03 18:21:45.546 10389 10408 I TodoList: Remote version: 598cf7d7ec8e45e42d546 (current local 598cf7d7ec8e45e42d546)
12-03 18:21:45.546 10389 10408 I TodoList: Remote version is same, load from cache
12-03 18:21:45.546 10389 10408 I Util    : Sending file sync done changed broadcast
12-03 18:21:46.059 10389 10417 D FileStore: Authenticated for <....>
12-03 18:21:49.351 10389 10389 D TodoList: Complete
12-03 18:21:49.354 10389 10389 D TodoList: Notified changed
12-03 18:21:49.354 10389 10389 D TodoList: Save: /todo.txt
12-03 18:21:49.374 10389 10389 I FSQ     : -> Backup
12-03 18:21:49.374 10389 10389 D Simpletask: Handle mode
12-03 18:21:49.375 10389 10389 D TodoList: Notified changed
12-03 18:21:49.375 10389 18789 I FSQ     : <- Backup
12-03 18:21:49.378 10389 10389 D Event   : update UI for event UPDATE_PENDING_CHANGES
12-03 18:21:49.378 10389 10389 I TodoApplication: Received broadcast TASKLIST_CHANGED
12-03 18:21:49.379 10389 10389 I TodoApplication: Redrawing widgets 
12-03 18:21:49.379 10389 10389 D MyAppWidgetProvider: onUpdate 54
12-03 18:21:49.389 10389 10389 I TodoApplication: Updating widget: 54
12-03 18:21:49.390 10389 10389 I Simpletask: Tasklist changed, refiltering adapter
12-03 18:21:49.391 10389 10389 I TaskAdapter: Text size = 14.0
12-03 18:21:49.392 10389 10389 I TaskAdapter: setFilteredTasks called: nl.mpcjanssen.simpletask.task.TodoList@828ef4
12-03 18:21:49.392 10389 10389 D TodoList: Getting sorted and filtered tasks
12-03 18:21:49.428 10389 10389 D TodoList: Sorting and filtering tasks took 35 ms
12-03 18:21:49.429 10389 10389 I TaskAdapter: Restoring scroll offset 0, 0
12-03 18:21:49.429 10389 10389 D Event   : update UI for event TASK_LIST_CHANGED
12-03 18:21:49.429 10389 10389 I TodoApplication: Received broadcast TASKLIST_CHANGED
12-03 18:21:49.430 10389 10389 I TodoApplication: Redrawing widgets 
12-03 18:21:49.430 10389 10389 D MyAppWidgetProvider: onUpdate 54
12-03 18:21:49.435 10389 10389 I TodoApplication: Updating widget: 54
12-03 18:21:49.435 10389 10389 I Simpletask: Tasklist changed, refiltering adapter
12-03 18:21:49.436 10389 10389 I TaskAdapter: Text size = 14.0
12-03 18:21:49.436 10389 10389 I TaskAdapter: setFilteredTasks called: nl.mpcjanssen.simpletask.task.TodoList@828ef4
12-03 18:21:49.436 10389 10389 D TodoList: Getting sorted and filtered tasks
12-03 18:21:49.468 10389 10389 D TodoList: Sorting and filtering tasks took 31 ms
12-03 18:21:49.469 10389 10389 I TaskAdapter: Restoring scroll offset 0, 0
12-03 18:21:49.469 10389 10389 D Event   : update UI for event TASK_LIST_CHANGED
12-03 18:21:49.486 10389 10389 I TaskAdapter: Text size = 14.0
12-03 18:21:49.486 10389 10389 I TaskAdapter: setFilteredTasks called: nl.mpcjanssen.simpletask.task.TodoList@828ef4
12-03 18:21:49.486 10389 10401 D WidgetService: Widget 54: setFilteredTasks called
12-03 18:21:49.486 10389 10389 D TodoList: Getting sorted and filtered tasks
12-03 18:21:49.486 10389 10401 I FSQ     : -> Verify token
12-03 18:21:49.487 10389 10401 D WidgetService: Getting applyFilter from preferences for widget 54
12-03 18:21:49.487 10389 18785 I FSQ     : <- Verify token
12-03 18:21:49.487 10389 10401 D WidgetService: Retrieved widget 54 query
12-03 18:21:49.509 10389 10389 D TodoList: Sorting and filtering tasks took 23 ms
12-03 18:21:49.509 10389 10401 D TodoList: Getting sorted and filtered tasks
12-03 18:21:49.510 10389 10389 I TaskAdapter: Restoring scroll offset 0, 0
12-03 18:21:49.510 10389 10389 D Simpletask: Update applyFilter bar
12-03 18:21:49.510 10389 10389 D Simpletask: Update applyFilter bar
12-03 18:21:49.525 10389 10401 D TodoList: Sorting and filtering tasks took 16 ms
12-03 18:21:49.525 10389 10401 D WidgetService: Widget 54: setFilteredTasks returned 371 tasks
12-03 18:21:49.528 10389 10389 I TaskAdapter: Text size = 14.0
12-03 18:21:49.528 10389 10389 I TaskAdapter: setFilteredTasks called: nl.mpcjanssen.simpletask.task.TodoList@828ef4
12-03 18:21:49.528 10389 10389 D TodoList: Getting sorted and filtered tasks
12-03 18:21:49.545 10389 10389 D TodoList: Sorting and filtering tasks took 17 ms
12-03 18:21:49.546 10389 10389 I TaskAdapter: Restoring scroll offset 0, 0
12-03 18:21:49.546 10389 10389 D Simpletask: Update applyFilter bar
12-03 18:21:49.546 10389 10389 D Simpletask: Update applyFilter bar
12-03 18:21:49.547 10389 10389 D TodoList: Scheduled save in 2922
12-03 18:21:50.068 10389 18785 D FileStore: Authenticated for <....>
12-03 18:21:50.551 10389 10389 D TodoList: Scheduled save in 1918
12-03 18:21:51.552 10389 10389 D TodoList: Scheduled save in 917
12-03 18:21:51.872 10389 10389 I Simpletask: onMenuItemSelected: 2131296574
12-03 18:21:51.872 10389 10389 I Util    : Sending file changed broadcast
12-03 18:21:51.873 10389 10389 I TodoApplication: Received broadcast FILE_SYNC
12-03 18:21:51.873 10389 10389 I TodoApplication: Loading todolist
12-03 18:21:51.873 10389 10389 D TodoList: Reload: From BROADCAST_FILE_SYNC
12-03 18:21:51.873 10389 10389 I FSQ     : -> Verify token
12-03 18:21:51.873 10389 18799 I FSQ     : <- Verify token
12-03 18:21:51.875 10389 10389 I TodoList: Not loading, changes pending
12-03 18:21:51.875 10389 10389 I TodoList: Saving instead of loading
12-03 18:21:51.875 10389 10389 D TodoList: Save: /todo.txt
12-03 18:21:51.894 10389 10389 I FSQ     : -> Backup
12-03 18:21:51.895 10389 10389 D Event   : update UI for event UPDATE_PENDING_CHANGES
12-03 18:21:51.895 10389 18794 I FSQ     : <- Backup
12-03 18:21:51.906 10389 10389 D TodoList: Scheduled save in 3000
12-03 18:21:52.221 10389 10416 D OpenGLRenderer: endAllActiveAnimators on 0x7bd7bd2f00 (MenuPopupWindow$MenuDropDownListView) with handle 0x7bd0396b20
12-03 18:21:52.288 10389 18799 D FileStore: Authenticated for <....>
12-03 18:21:52.910 10389 10389 D TodoList: Scheduled save in 1997
12-03 18:21:53.909 10389 10389 D TodoList: Scheduled save in 997
12-03 18:21:54.910 10389 10389 I Simpletask: onMenuItemSelected: 2131296512
12-03 18:21:54.934 10389 10389 D TodoList: Executing pending Save
12-03 18:21:54.934 10389 10389 I FSQ     : -> Save
12-03 18:21:54.934 10389 18788 I FSQ     : <- Save
12-03 18:21:54.934 10389 18788 I Util    : Sending file sync start broadcast
12-03 18:21:54.935 10389 18788 I TodoList: Saving todo list, size 372
12-03 18:21:54.935 10389 18788 I FileStore: Saving 372 tasks to Dropbox.
12-03 18:21:54.937 10389 18788 I FileStore: Last seen rev 598cf7d7ec8e45e42d546
12-03 18:21:54.940 10389 18788 I FileStore: Saving to file /todo.txt
12-03 18:21:54.948 10389 10389 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@98427cd
12-03 18:21:54.958 10389 10389 I Preferences: Registering broadcast receiver
12-03 18:21:54.991 10389 10389 W DecorView[]: The visibility of the navigation bar is low, color=ff000000, hasLightNavBar=true, isFloating=false
12-03 18:21:55.282 10389 10416 D OpenGLRenderer: endAllActiveAnimators on 0x7bd570be00 (MenuPopupWindow$MenuDropDownListView) with handle 0x7bd72edb00
12-03 18:21:56.982 10389 18788 I FileStore: New rev 598cfeee96f395e42d546
12-03 18:21:56.983 10389 18788 I TodoList: Remote version is 598cfeee96f395e42d546
12-03 18:21:56.983 10389 18788 I Util    : Sending file sync done changed broadcast
12-03 18:21:56.983 10389 10389 D Event   : update UI for event UPDATE_PENDING_CHANGES
12-03 18:22:09.431 10389 10442 D CalendarSync: Checking whether calendar sync is needed
12-03 18:22:09.489 10389 10442 D CalendarSync: Syncing due/threshold calendar reminders...
12-03 18:22:10.027 10389 10442 D CalendarSync: Sync finished: 0 inserted, 43 unchanged, 1 deleted
12-03 18:22:33.309 10389 10389 E ANDR-PERF: IPerf::tryGetService failed!
12-03 18:22:50.760 10389 10389 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@4e6b9b2
12-03 18:22:50.833 10389 10389 W DecorView[]: The visibility of the navigation bar is low, color=ff000000, hasLightNavBar=true, isFloating=false
12-03 18:23:16.777 10389 10389 E ANDR-PERF: IPerf::tryGetService failed!
12-03 18:23:16.910 10389 10389 E ANDR-PERF: IPerf::tryGetService failed!
12-03 18:23:17.426 10389 10389 E ANDR-PERF: IPerf::tryGetService failed!
12-03 18:23:17.429 10389 10389 E ANDR-PERF: IPerf::tryGetService failed!
12-03 18:23:18.988 10389 10389 E ANDR-PERF: IPerf::tryGetService failed!
12-03 18:23:19.035 10389 10389 E ANDR-PERF: IPerf::tryGetService failed!
12-03 18:23:19.601 10389 10389 E ANDR-PERF: IPerf::tryGetService failed!
12-03 18:23:19.637 10389 10389 E ANDR-PERF: IPerf::tryGetService failed!
12-03 18:23:19.649 10389 10389 E ANDR-PERF: IPerf::tryGetService failed!
12-03 18:23:20.130 10389 10389 E ANDR-PERF: IPerf::tryGetService failed!
12-03 18:23:20.188 10389 10389 E ANDR-PERF: IPerf::tryGetService failed!
12-03 18:23:32.414 10389 10389 E ANDR-PERF: IPerf::tryGetService failed!
12-03 18:23:34.213 10389 10389 E ANDR-PERF: IPerf::tryGetService failed!
12-03 18:23:34.620 10389 10389 E ANDR-PERF: IPerf::tryGetService failed!
12-03 18:23:34.886 10389 10389 E ANDR-PERF: IPerf::tryGetService failed!
12-03 18:23:35.851 10389 10389 E ANDR-PERF: IPerf::tryGetService failed!
12-03 18:23:36.247 10389 10389 E ANDR-PERF: IPerf::tryGetService failed!
12-03 18:23:36.481 10389 10389 E ANDR-PERF: IPerf::tryGetService failed!
12-03 18:23:38.208 10389 10389 E ANDR-PERF: IPerf::tryGetService failed!
mpcjanssen commented 4 years ago

Thank you for this very clear issue report. Is this a recent issue or did it also occur on older versions?

mpcjanssen commented 4 years ago

I can't reproduce this at the moment. Will investigate further. Is anything else touching todo.txt besides Simpletask?

mpcjanssen commented 4 years ago

The current logging doesn't seem to include a case where a change was made on dropbox. Could you get a new logging directly after the issue occurred?

btittelbach commented 4 years ago

well, the bug happened regularly multiple times a day ... until I ready your post and tried to replicate the issue once more for a new debug log. Since then... is has not occured. Will post a debug log, as soon as the issue reappears, though I hope it does not.

mpcjanssen commented 4 years ago

I have had more reports of this issue. Will investigate as soon as I have some time.

leviwheatcroft commented 4 years ago

I've run into this. I'm syncing with nextcloud. On my PC todo.txt is updated by todour.

Not sure if this is helpful because I'm unable to confirm, however I'm sure that the first time I ran into this I "fixed it" by force closing simpletask, or maybe just by using the sync option in the UI. (sorry I can't remember which).

More recently, when force closing / syncing didn't work, I noticed that the duplicates had actually been written to todo.txt.

I guess I'm saying, is it possible that items are duplicated in the simpletask interface, and thereafter they may be written to todo.txt in certain circumstances? It seems like I've encountered both:

Frustratingly, I can't replicate the issue at this time. I seem to be able to make changes from both simpletask and from todour without issue.

mpcjanssen commented 4 years ago

I don't think it will solve the issue. But the latest versions on https://www.mpcjanssen.nl/artifacts/ should at least improve the logging. Could you try with a version from there.

btittelbach commented 4 years ago

The issue reappeared after I added a few todos on my phone. No other device connected to that dropbox account was online for the last 24h, so the todo.txt file was not modified externaly.

simpletask_debuglog.txt

not sure how useful the debuglog is though. One of the first lines states Config : Getting 804 items todoList from cache which is already twice as many items as there should be.

btittelbach commented 4 years ago

Happened again. This time I believe the new debuglog finally shows relevant information. :-)

2020-01-04 simpletask debuglog.txt

mpcjanssen commented 4 years ago

It seems to be a race condition triggered when a Simpletask alarm is pending in the background (for example to update widgets after midnight) and where in the mean time the app itself is also loading the task list because it is started.

Do you have battery saving enabled for Simpletask?

mpcjanssen commented 4 years ago

@btittelbach could you try again with the latest test build from https://mpcjanssen.nl/artifacts?

btittelbach commented 4 years ago

Battery saving is the default and SimpleTask is not being explicitly excepted so probably yes.

I installed the latest test build, will see how that goes. It seems to display the same version number though.

Btw: I observed the following: If duplicates are shown and if I then use "Open tasklist file" to re-open the current todo.txt before adding a new todo item, the duplicates are gone.

Only if I add a new task while duplicates are shown, will the (cached?) duplicated list saved to dropbox.

mpcjanssen commented 4 years ago

yes that behaviour seems to indicate there is a duplication issue while loading from file or cache. this incorrect list will only be saved after a local change.

inkarkat commented 4 years ago

I was just about to report this issue when I found this existing one. I've encountered the duplication of todo.txt three times in the past weeks (while using the app a few times a week). I'm mostly managing my todo list on the PC using todo.txt-cli. Since the first occurrence, I take great care to wait for the app to finish syncing (i.e. for the rotating blue line at the bottom to disappear) before working with the app, but it still seems to happen.

I also had the "duplicated in the app, but not in the todo.txt file" issue once; I think I had to sign out of Dropbox and then sign in again for it to disappear.

It's great that this is being worked on, as it's quite annoying!

mpcjanssen commented 4 years ago

@inkarkat would you also be willing to test with a development build from https://mpcjanssen.nl/artifacts ?

btittelbach commented 4 years ago

Happy to report, so far, since installing the development build, I have not encounterd the issue.

mpcjanssen commented 4 years ago

@btittelbach thanks for confirming. I will prepare a new release.

btittelbach commented 4 years ago

Heads up, that the issue reappeared with the PlayStore update from March 28th to Version "Simpletask dropbox v10.5.1" It is also seems to happen more frequently now.

mpcjanssen commented 4 years ago

Probably introduced by removing all synchronisation to fix slow startup. Will investigate again

mpcjanssen commented 4 years ago

Unintended side effect of the fix for #1043 . Will try to fix it using another approach than global code locking.

mpcjanssen commented 4 years ago

@btittelbach can you try again with a version from https://www.mpcjanssen.nl/artifacts/10.5.1-7-2c2f6ea/ I used a different way to hopefully fix this issue without reintroducing #1043 .

btittelbach commented 4 years ago

Installed it and will report.

Btw: it seems the bug behaved slightly differently now, in that sometimes reopening the todo.txt file in Simpletask would remove the duplicates. Unless you add a task, then the duplicates are saved to DB.

Btw: saw there is a dokuwiki version of Simpletask: awesome 😁

mpcjanssen commented 4 years ago

I use the dokuwiki version exclusively myself.

btittelbach commented 4 years ago

Happy to report: Have not experienced any issues with duplicates in the last seven days.

mpcjanssen commented 4 years ago

Thanks for letting me know.