obsidian-tasks-group / obsidian-tasks

Task management for the Obsidian knowledge base.
https://publish.obsidian.md/tasks/
MIT License
2.53k stars 231 forks source link

Obsidian mobile iOS app: query on tasks always display "Loading Tasks ..." #1033

Closed xiumuyo closed 1 year ago

xiumuyo commented 2 years ago

Expected Behavior

Tasks' query function on mobile app works the same as desktop.

Current behaviour

Every time I open obsidian mobile, and wait for a long time, It always displays "Loading Tasks ...".

Steps to reproduce

I'm using the codes like these. They all work fine on desktop, but on mobile, all the queries stuck on "Loading Tasks ..."

hide task count
due on 2022-08-13
not done
hide task count
tag includes #todo/important
sort by tags
not done
hide task count
exclude sub-items
path includes all my life
tag do not include #todo/someday
tag do not include #todo/important/noturgent
sort by priority
sort by due
sort by tag
sort by path
(done after [2022-08-07]) AND (done before [2022-08-15])
sort by done
hide task count

Which Operating Systems are you using?

Obsidian Version

0.15.9

Tasks Plugin Version

1.11.1

Checks

claremacrae commented 2 years ago

Hi @xiumuyo, thank you for the thorough report.

I've only seen this happen when I have made large numbers of changes to notes on another device, and then go to Obsidian on iPhone or iPad, and it seems that the syncing and reading of changed files takes so long that Tasks seems to get stuck.

In this situation, I sometimes force-quite Obsidian and re-start - or a more thorough process is:

  1. Close any open notes that have Tasks blocks in
  2. wait until all change have definitely synced.
  3. Force-quit Obsidian: https://www.idownloadblog.com/2021/11/01/how-to-force-quit-apps-iphone-ipad/
  4. Re-start Obsidian

This has always solved it for me, and is consistent with what the plugin's original author recommended in #96.

Please let us know how it goes.

claremacrae commented 2 years ago

@xiumuyo, If that doesn't help, please provide more info about your Obsidian setup, such as:

xiumuyo commented 2 years ago

@claremacrae Thank you for your suggestions. I have followed the process and double checked all the notes in my vault have been synced and kept locally. And I waited 20 min and there still shows "Loading Tasks ..."

More info:

claremacrae commented 2 years ago

Thanks @xiumuyo, that isn't a huge vault. I don't have experience of syncing with iCloud though. But I have heard that it sometimes erases all docs and then re-syncs them, which could be a problem.

I am unsure from your message whether you went ahead and did force-quit? That does usually fix it. What did it do for you?

xiumuyo commented 2 years ago

I followed the steps you gave, but it didn't solve the problem. I recently updated the plugin to 1.12.0 and still have the same problem. @claremacrae

claremacrae commented 2 years ago

Sorry to hear that. I really expected Force Quit to solve the problem.

Unfortunately at the moment I don't have any suggestions. Sorry.

Notes for any developers who might be able to help:

Possible causes to investigate:

claremacrae commented 2 years ago

I will be tracking this issue in #829.