imrickysu / logseq-plugin-on-this-day

A logseq plugin to show all history journals on this day
MIT License
4 stars 0 forks source link

[deferred timeout] async call #15 #5

Open justaprussian opened 7 months ago

justaprussian commented 7 months ago

Two of three times error message [deferred timeout] async call #15 comes up after a while without showing any results. Hitting the plugin-icon again usually leads to results after a while, in some cases [deferred timeout] async call #15 comes up again. So sometimes I need to start the process three times in order to get results.

Logseq-linux-x64-0.10.6.appimage on Kubuntu 22.04.3 LTS.

PS: Thank you for this very handy piece of software, I really appreciate it!

imrickysu commented 7 months ago

Hi @justaprussian , thanks for reporting this issue! I'm glad you like this plugin.

I haven't encountered this issue myself but I found similar reports on other plugins. Some initial research says that since Logseq heavily relies on asynchronous operations for various tasks like data fetching, rendering, or other background processes, this error may occur when it encounters timeouts if an operation takes longer than expected to complete.

Since On This Day plugin needs to query data, it's possible that data query takes longer than the timeout threshold if there are lots of data, or if the query is slow (e.g. if you're not using SSD hard disk, or (less likely) your storage is on network.).

The investigation may take some time. But I'll try to fix it or workaround it so that you don't need to push the button multiple times.

justaprussian commented 7 months ago

investigation

Perhaps this might help: Today the plugin didn't show any results at all, see screenshot. After quitting and restarting Logseq, results showed up almost immediately. 2024-02-20_095407_spectacle

justaprussian commented 5 months ago

Update: After two more months, the plugin has become unusable on my main-graph. On other graphs it works flawless. 2024-05-07_192001_spectacle