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

Most upvoted comments

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.

  • on desktop, moved all files out of the vault, except the .obsidian folder
  • delete the vault through the mobile app and made sure, it is not present anymore on desktop either
  • made a new vault through the mobile app, and closed the app completely
  • on desktop, moved all files back in
  • also on desktop, reinstalled and setup all plugins I need, including Tasks

It works perfectly right now. The tasks are loading on mobile as well. Some stats:

  • around 1600 files
  • around 3500 tasks

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!

Yes, of course! You just need to install this plugin.

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:

  • It’s some glitch with some ‘strange/non-unicode’ character of any note of the vault (not only the ones with tasks).
  • I thought that was syncing problem, but not, syncing could make it slower, but the issue when ‘starts’ is for always.
  • As soon as you find the note and delete it the vault works as a charm.
  • Quesiton… dataviews approach to searching in notes. Search engine should be similar not?? (Sorry if it’s stupid question).

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.