obsidian-tasks
obsidian-tasks copied to clipboard
Intermittant app lag or freeze when opening note with many task queries
Please check that this issue hasn't been reported before.
- [X] I searched previous Bug Reports didn't find any similar reports.
Expected Behavior
I did find a similar issue in #602 and commented there but as this also occurs at times other than launch it's apparently not similar enough, my apologies.
Notes should open immediately and the app should continue to respond to input while the note loads and/or renders.
Current behaviour
At unpredictable times, opening a note will cause the app to stop responding for a period of time (sometimes 3-4 seconds, sometimes 20 seconds, occasionally it permanently freezes). This has been occurring periodically for at least the last twelve months across both Windows and iPad, multiple verisons of Obsidian and Tasks. It still occurs even with all other plugins turned off and Obsidian restarted. The vault is relatively large: 2800 notes, 19,000 links, 6500 tasks.
The app does not visually update, similar to the description in #602 (ie, if you opened the note in the file explorer, both the note you were on and the note you clicked are highlighted. If you opened it from a sidebar button, the button stays in the visual 'down-press state'. It does not respond to commands (you can't open dev console, but there are no reported errors).
It does not matter how you open the note (hyperlink, hotkey, button, file explorer).
There is some pattern but I have not deduced a reliable way to reproduce it:
- It only happens with notes that have many task queries (at least 8).
- It's only ever the most recent version of the note (these are dailry/weekly notes, so there are many extremely similar notes in the vault). Older notes with exactly the same queries (only different scheduled-before dates) will open fine.
- When it does occur, it's usually restricted to one device: other devices will open the same note without issue.
- Windows seems to be more prone to the issue than iOS
- A note that was openable earlier in the day may suddenly become un-openable on a device later in the day, even though the content has not changed.
- Once a note becomes unopenable on a device, it will stay unopenable until the next day, when the issue for that note resolves.
- It still occurs if the task queries are invalid (because they contain Templator placeholders).
Steps to reproduce
The issue is intermittent and I have not been able to determine steps to reliably reproduce it, but once it does happen to a note, it will keep happening that day, so I have the opportunity to investigate. If there is a debug mode or some kind of instructions you can provide so that I can gather better information for you the next time it happens, I can update the issue.
Which Operating Systems are you using?
- [ ] Android
- [X] iPhone/iPad
- [ ] Linux
- [ ] macOS
- [X] Windows
Obsidian Version
1.4.16
Tasks Plugin Version
5.0.0
Checks
- [X] I have tried it with all other plugins disabled and the error still occurs
Possible solution
No response
Hi @sofie-bird, Thanks ever so much or looking for pre-existing issues... and thank for creating this new issue - much appreciated.
I think I observe the same thing on my side, on iOS and MacOS. I observe the same behavior and still investigating, because I also observed it on a note without any task query.