-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Very slow load of flashcard modal (since 1.11.2) #914
Comments
I'm experiencing the same issue on a MacBook Pro (MacOS 13.04.1) after the most recent update.
What is more, on my iPhone the flashcard review modal won't show up at all. Versions:
|
I have the same issue. OS: Windows 10, Android 13 |
I've always experienced times when there are very slow load times, i.e. prior to recent upgrades of either Obsidian or the plugin. I haven't paid too much attention, but I'm quite sure this has happened for either:
Sometimes with load times probably of the order of 30 seconds. When the plugin first loads, or when opening the flashcard review deck selection tree, the plugin iterates through every note in the vault to find flashcards. This overall process hasn't changed. If you turn on logging, the actual load times will be available through the chrome debugger tools (ctrl-shift-i) My vault has about 3000 markdown files, load times on Windows 10 Desktop using 1.12.1 are: |
I turned on logging and tested a few loads using the previous and current versions of the plugin, both with the current version of Obsidian. This was on my Windows 11 PC. Plugin Version 1.11.2
Plugin Version 1.12.2
|
Thanks @bgreenawald for summarizing that so clearly. I'll look into it in the next few days... |
dear @bgreenawald, could You explain how to switch the plugin to old version? |
@19031988 I used the BRAT plugin (https://github.com/TfTHacker/obsidian42-brat) which lets you load plugins from Github and pointed it to the 1.11.2 release. |
Hi there To implement enhancements for 1.12, I needed to make use of a different Obsidian API for obtaining tags. This likely is the cause of the slow down. I have reverted the code to use the API that was originally used, but because I personally didn't experience the slow down, I can't test myself. Could you please try... There is a file called You will need to copy that to the obsidian plug-in folder, e.g. Then reload the plug-in, or restart obsidian. There is some extra debug. This might give a clue about the reason for our different experiences. Ronny |
dear @ronzulu . I used a file from your zip.
|
Hi @19031988 thanks for trying that out Could you please send through a screenshot from the developer console.
Thanks |
dear @ronzulu here You are |
Dear @19031988 Sorry, I forgot to mention one thing. Before taking the screenshot, wait for the status bar to display the plugin's info: Then after that, click on the flashcard icon, and wait for the flashcard tree to be displayed. Then take the screenshot like you did earlier. And happy birthday for a couple of weeks ago :-) Cheers |
dear @ronzulu here You are again. And the greatest thanks for happy-birthday-words ) |
Hi again I've come up with a new version which logs quite detailed timing info. It doesn't fix the problem, but hopefully will give me enough info to identify the problem. Could you please try this out: After restarting Obsidian (or reloading the plugin), wait for the initial load to complete, i.e. when the status bar shows the plugin info: From the developer console, you should see something like: IMPORTANT: Click on "show more..." Because there is so much info, save the log to a file, right-click: And post the file to me. Also please take a screenshot of the end part of the log - should include something like the info in the highlighted area below: Cheers |
@ronzulu here you are. Great that you don't give up) |
Hi @19031988 thanks for that (and the encouragement) I've updated If you could please try the new version with extra logging, and post the log file, that would be appreciated. Cheers |
@ronzulu here you are the updated log. It is exciting how is deep this rabbit hole ) |
Hi @ronzulu For what it's worth, I also attach a log of the plugin's performance on my system. I do appreciate your looking into this issue! Cheers |
Hi @19031988 Thanks for that. for some reason the last few lines from the log wasn't saved (the highlighted lines shown below). If you still have that session open, a screenshot would be great: Otherwise, please go through the process again, save the log and take a screenshot of the last page of the debug outlook. The log file and screenshot must be from the same session. Thanks |
I think I've fixed the issue, could you please try: If this hasn't worked, please send through the log file again. Cheers |
Hi, Thanks again – this works very well for me and the load time is considerably shorter! |
dear @ronzulu ! Big yes it works! |
Great, thanks @jharst @19031988 for all the back and forth diagnosing this! @bgreenawald are you able to give this a test? Would be good if you can before I put in the PR. |
Hey @ronzulu Unfortunately, my computer isn't letting me download the latest beta for some reason. It's triggering my anti-virus and completely blocking the download (I've never seen it do this before and don't know how to fix it). If you can upload the raw Best, |
Hi @bgreenawald Unfortunately GitHub won't late me upload a JavaScript file... So I've put the zip file on dropbox, hopefully you can download: Cheers |
The newest beta has ~5-second load times for me. Seems like the issue is largely resolved. Best, |
Describe the bug
Extremely sluggish performance when loading the flashcard review modal. I will click the "Review Flashcards" button and nothing will happen. After ~30 seconds, the review flashcards modal will finally pop up. The issue occurs on the most recent versions of the plugin on both Windows Desktop and Android. This seems related either to the most recent plugin version or the most recent Obsidian version as 2 days ago things were working fine.
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: