-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
JS heap out of memory when using detail view #19
Comments
Hello @Dzar34, looks like you have too many notes for the Detail View as it will have to load the content for every note (unfortunately, will have to investigate if there is a better solution). If that doesn’t help I will take a look at it. And I will try to find a solution for it to work with any amount of notes. |
Thanks for responding! I did turn off detail view, but I am still getting the same error. I have 10,650 notes 😳 I may just be an outlier! |
I was able to reproduce the error by creating a vault with 10.000 notes each with 100 words. It looks like the notes load just fine (independent of detail view state). Logging the current memory usage reveals that the extension uses about 0.06 GB which should not be enough to reach the memory limit of node. Help from someone with more experience is greatly appreciated as I currently don't know how to fix this. |
Found a way to get this fixed. Seems like Raycast can't handle rendering for more than 1k-3k list items. With the newest commit only 1000 items will be rendered and they change based on the search query. You can try out the new version by cloning the repository, running |
This has been fixed with version 1.6.0 which has now been released. |
It works great!! Thanks so much for creating this and working on a fix. I love it! |
Hello, thanks for building this! Unfortunately, every time I attempt to search my vault, I can see a list of my notes for a split second, then I get an error. Message copied below. Thanks for any help!
Error: Worker terminated due to reaching memory limit: JS heap out of memory
__node_internal_captureLargerStackTrace:errors:464:5
NodeError:errors:371:5
Worker.[kOnExit]:worker:279:26
Worker..onexit:worker:201:20
The text was updated successfully, but these errors were encountered: