obsidian-tasks: Obsidian Mobile: Queries stuck on "Loading Tasks ..."
Expected Behavior
Query finds and displays tasks.
Current Behavior
All my queries just display “Loading Tasks …”. But just on mobile. It works on the desktop app.
Steps to Reproduce
That’s the hard part. It works perfectly fine on the desktop app. The vault is shared through iCloud. It worked until recently, when I merged two vaults. So, in relation to #590 I guess there is some malformed task(s) around, but I can’t figure out which one without some proper debugging and I don’t know how I should go about that on the iOS mobile app.
The queries are very simple. For example:
```tasks
happens 2022-06-25
short mode
Context (Environment)
- Obsidian Mobile version: 1.2.3 (57)
- Obsidian version: 0.14.15
- Tasks version: 1.8.0
- I have tried it with all other plugins disabled and the error still occurs (and I did completly close Obsidian in between)
- I have tried to reinstall the tasks plugin
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 38 (1 by maintainers)
Commits related to this issue
- feat: Report to users if there is a failure reading a task. See #829 — committed to obsidian-tasks-group/obsidian-tasks by claremacrae 2 years ago
- fix: Prevent Tasks getting stuck 'Loading Tasks...' Also add a message to users if other file-reading issues occur in future. Obsidian CachedMetadata was telling us that there is a task on lineNumbe... — committed to obsidian-tasks-group/obsidian-tasks by claremacrae a year ago
- fix: Prevent Tasks getting stuck 'Loading Tasks...' (#1524) Also add a message to users if other file-reading issues occur in future. Obsidian CachedMetadata was telling us that there is a task on... — committed to obsidian-tasks-group/obsidian-tasks by claremacrae a year ago
I am re-opening this, as a number of users are reporting being stuck at ‘Loading tasks’ again, and this is the issue with the best description of workarounds and things to check.
Good morning Clare
Thanks for the the detailed explanations. Following your informations I stopped going in the direction of research malformed tasks. Instead I did a complete re-initialization of my Obsidian Vault.
It works perfectly right now. The tasks are loading on mobile as well. Some stats:
But… I have this weird thing, where my vault is also a git repository at the same time. The git folder contains some 800 files and I can really imagine, that the iCloud sync broke some stuff.
Thanks a lot for your help, highly appreciated!
Hi @maksim77, I appreciate the suggestion, but I feel that documenting for user how to get a console needs rather more information than “you just need to install a plugin…”. I would want it to say the settings to use, and what to do with the data.
I suggest not worrying about it now, though. There have been no more reports of stuck loading tasks since the last release.
I know it’s another time the same, but I could confirm that:
Thx!!! Sergi
Ok, thanks for the further update!
I have heard it said that using more than one sync mechanism can cause problems for Obsidian. I wondered whether Git in combination with iOS Sync might have been an issue?
In any case, there is useful info in this issue that I hope will help others experiencing the same problem.
And last but not least, I had to turn on safe mode and revert to the default theme. Startup on mobile was horrible slow and there were hickups all the time where Obsidian mobile frozen for a few moments. After recustomizing and turning off safe mode Obsidian mobile reindex a part of the vault and everything worked fine.
Has nothing to do with Tasks, but iOS sync and Obsidian mobile seem prone to bugs.
Rejoiced too soon 😃 It just worked for a first sync, then failed again. I tried to see if I can pin it to specific files and voilà, I found two old notes with Kindle highlight exports, which contained unknown unicode chars. Removing the chars and leaving everything else as is has fixed the problem.
The files in question
Hi @thgie, many thanks for the update. Glad you got it working.