obsidian-omnisearch icon indicating copy to clipboard operation
obsidian-omnisearch copied to clipboard

[BUG] Omnisearch hangs after I start searching on any mobile device

Open gsommer opened this issue 7 months ago • 1 comments

On any of my Android devices, I start a vault search and the dialog display "searching...". No result is displayed even after a few minutes and I have to cancel with Esc.

I activated vconsole, and it shows

Uncaught (in promise) {"name": "TypeError", "message": "Buffer.isBuffer is not a function", "stack": "TypeError: Buffer.isBuffer is not a function\n at eval (plugin:omnisearch:130:14996)\n at Object.r (plugin:omnisearch:132:1180)\n at sF (plugin:omnisearch:132:155422)\n at FS.exports (plugin:omnisearch:132:156035)\n at Eh.tokenizeForSearch (plugin:omnisearch:132:178545)\n at vh.search (plugin:omnisearch:132:180836)\n at vh.getSuggestions (plugin:omnisearch:132:183972)\n at eval (plugin:omnisearch:77:9509)\n at new Promise ()\n at V (plugin:omnisearch:77:9467)"}

  • Omnisearch version: 1.27.2
  • Obsidian version: 1.9.12
  • Operating system: Android 15/One UI 7.0 (Samsung Galaxy S23) - just one example!
  • Number of indexed documents in your vault (approx.): 1699 files in 8403 ms

Things to try:

  • Does the problem occur when Omnisearch is the only active community plugin:

It only occurs when the Edge TTS plugin is activated. But when it is activated on desktop, it is no problem at all.

  • Does the problem occur when you don't index PDFs, images, or other non-notes files:

TextExtractor is not even installed!

  • Does the problem occur after a cache reset:

Yes

gsommer avatar Sep 04 '25 22:09 gsommer

It only occurs when the Edge TTS plugin is activated

Well I don't know how this plugin works exactly, but the Buffer.isBuffer definitely comes from them.

You should report the issue to the Edge TTS project, because it's probably causing interaction problems with other plugins

scambier avatar Oct 04 '25 07:10 scambier