Comments (10)
i did a little more tinkering the problem seems to be with my .excalidraw files that are interpreted as really really really big text files
and because of that they make the whole thing fall apart is there anyway to fix this?
perhaps a way to exclude a certain folder path from indexing?
from obsidian-omnisearch.
upon more testing the problem seems to be with JavaScript heap out of memory
but the problem is that when i run obsidian using a higher maximum i can't get it to go beyond 4g for some reason it just doesn't listen
from obsidian-omnisearch.
I'll add a setting to make indexing of excalidraw files an opt-in, as a quick fix.
And increasing memory limit in Electron seems to be quite fiddly, if not straight up impossible if you can't build yourself :/
electron/electron#2056
from obsidian-omnisearch.
yeah i've been googling all over the past 6 hours :)))) couldn't find a thing, thank you for the response
from obsidian-omnisearch.
just an idea, can we change anything in that .asar file of obsidian to perhaps make this work differently? i have very limited programming knowledge so i have no idea if this even makes sense
from obsidian-omnisearch.
If you update Omnisearch, I added a (hidden) setting excalidrawIndexing
. You can modify it in yourvault\.obsidian\plugins\omnisearch\data.json
. If you can confirm it "solves" the freeze at startup I'll add a toggle in the settings page 👍
from obsidian-omnisearch.
unfortunately the same problem still very much exists
from obsidian-omnisearch.
Ok so the crash happening while indexing an excalidraw file was just a coincidence. It's possible that your vault is somehow too large for Omnisearch; or actually, Omnisearch's RAM consumption during indexing is too high for Electron.
Could you try this test build? I've reduced the size of batches during indexing, and added pauses between each batch to (hopefully) let the GC do its thing. omnisearch_1.20.4-bugfix.334.1.zip.
You can extract the files right next to the data.json
you previously edited.
from obsidian-omnisearch.
I'm not sure if our problem is same, but when enabling Omnisearch, my OB would stuck for seconds.
The console shows:
Is this normal?
I have 'bout 700+ md files, and 3000 files at all.
from obsidian-omnisearch.
Is this normal? I have 'bout 700+ md files, and 3000 files at all.
Not the same problem, as it looks like Omnisearch is correctly indexing your files. If you have a large cache, it can indeed freeze Obsidian for a few second while all the data is processed and loaded in memory.
from obsidian-omnisearch.
Related Issues (20)
- [Feature request] Show URLs as links in the search results in instead of expanding the full context
- [Feature request] Force enable "Save index to cache"
- Stronger boolean search with date range HOT 3
- Feature Request: Select folder for new notes HOT 1
- [BUG] Hello friend! Cannot find "Omnisearch: In-file search" HOT 5
- [BUG] OCRd and cached image cannot be found in search HOT 4
- [Bug] Incompatibility with plugin "Open in New Tab" HOT 4
- [BUG] Message: "... files need to be indexed. Obsidian may experience ..." at every start of Obsidian HOT 1
- [BUG] iOS crash since 1.22.x HOT 7
- [BUG] Open note instead of navigating to the already opened instance HOT 1
- [BUG] omnisearch-highlight CSS highlight update not effective HOT 5
- [BUG] Save index to cache gets disabled on android
- [BUG] I don't thnk indexing is actully happing HOT 2
- [Feature request] tab complete for folders when running the Omnisearch vault search
- [BUG] With Omnisearch enabled, opening a note instantly after launching Obsidian leads to a delay reading it HOT 3
- [Feature request] Correctly clean Arabic diacritics
- [BUG] Android mobile / Crashes after installing obsidian for first time and tries to initialize the vault HOT 2
- [BUG] In-file search hotkey not triggered in Reader mode HOT 1
- [Feature request] Can you add delay or button press for starting search HOT 2
- What is the shortcut to open the search box for obsidian-omnisearch HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obsidian-omnisearch.