Skip to content
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] Obsidian Crashing While Indexing PDF With Omnisearch #316

Open
JamesIslan opened this issue Nov 21, 2023 · 2 comments
Open

[BUG] Obsidian Crashing While Indexing PDF With Omnisearch #316

JamesIslan opened this issue Nov 21, 2023 · 2 comments

Comments

@JamesIslan
Copy link

Hello! I'm trying to use Omnisearch to index some of my OCR PDF files inside Obsidian. However, i'm facing some problems with it, as the amount of files is big. I noticed that the obsidian.exe process reach 4GB on the Task Manager, and after that the program crashes and forces me to reload. When i do that, the plugin automatically disables the file cache indexing. I really need the cache to be enabled, as the indexing without it would take a really long time on every program opening. I would like to know if there's a way to limit the RAM usage of the Obsidian process to be always below 4GB, so that the crash stop occurring. I've already tried to index the PDF files one by one, but as some of the files have big size (~100MB), this workaround isn't enough, and after some files are indexed, the crash occur anyway. Any solution or hint would be really appreciating!

image

  • Omnisearch version: 1.19.0
  • Obsidian version: 1.4.16
  • Operating system: Windows 11 23H2
  • Number of indexed documents in your vault (approx.): 1500

Things to try:

  • Does the problem occur when Omnisearch is the only active community plugin: Yes
  • Does the problem occur when you don't index PDFs, images, or other non-notes files: No
  • Does the problem occur after a cache reset: Yes
@scambier
Copy link
Owner

I think that unfortunately, you're hitting the limits of Omnisearch here. The cache is simply too large, and disables itself to avoid bootloop crashes. I can only recommend to not index your PDFs, or place the biggest ones in an excluded folder 🤷‍♂️

I'll leave this open for now and see if a fix is possible in Minisearch.

@scambier
Copy link
Owner

@JamesIslan I have updated the cache loading mechanism in the latest Omnisearch update (1.23). Could you please check and report if your issue still persists?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants