lucasvanmol / obsidian-latex-ocr

Generate LaTeX equations from images in your clipboard or vault
GNU General Public License v3.0
75 stars 2 forks source link

[BUG]: Fails to load on 1.7.4 #28

Closed xRyul closed 11 minutes ago

xRyul commented 12 hours ago

This plugin is awesome! Saves loads of time during lectures! While everyone is still writing out their formulas, I am already annotating how it works! It is grreat, however it seems to fail after the latest Obsidian update v1.7.4:

image

lucasvanmol commented 5 hours ago

Hi there, thanks for raising this issue!

What model are you trying to use? The huggingface API or locally? Was it running fine before 1.7.4?

xRyul commented 58 minutes ago

HuggingFace API.

It used to work fine before Obsidian update.

Now it wont let me even load the settings.

image

image

Plugin failure: latex-ocr Error: Could not call remote method 'decryptString'. Check that the method signature is correct. Underlying error: Error: Error while decrypting the ciphertext provided to safeStorage.decryptString.Underlying stack: Error: Error while decrypting the ciphertext provided to safeStorage.decryptString.
    at C:\Users\Daniel\AppData\Local\Obsidian\resources\app.asar\node_modules\@electron\remote\dist\src\main\server.js:465:71
    at IpcMainImpl.<anonymous> (C:\Users\Daniel\AppData\Local\Obsidian\resources\app.asar\node_modules\@electron\remote\dist\src\main\server.js:323:27)
    at IpcMainImpl.emit (node:events:513:28)
    at WebContents.<anonymous> (node:electron/js2c/browser_init:2:89772)
    at WebContents.emit (node:events:513:28)

    at C:\Users\Daniel\AppData\Local\Obsidian\resources\app.asar\node_modules\@electron\remote\dist\src\main\server.js:468:25
    at IpcMainImpl.<anonymous> (C:\Users\Daniel\AppData\Local\Obsidian\resources\app.asar\node_modules\@electron\remote\dist\src\main\server.js:323:27)
    at IpcMainImpl.emit (node:events:513:28)
    at WebContents.<anonymous> (node:electron/js2c/browser_init:2:89772)
    at WebContents.emit (node:events:513:28)
Plugin failure: latex-ocr TypeError: Cannot read properties of undefined (reading 'unload')
    at LatexOCR.onunload (plugin:latex-ocr:20834:16)
    at e.unload (app.js:1:1230407)
    at e.<anonymous> (app.js:1:2382096)
    at app.js:1:237228
    at Object.next (app.js:1:237333)
    at app.js:1:236249
    at new Promise (<anonymous>)
    at v (app.js:1:235994)
    at e.unloadPlugin (app.js:1:2381983)
    at e.<anonymous> (app.js:1:2385352)
    at app.js:1:237228
    at Object.next (app.js:1:237333)
    at app.js:1:236249
    at new Promise (<anonymous>)
    at v (app.js:1:235994)
    at e.disablePlugin (app.js:1:2385226)
    at e.<anonymous> (app.js:1:2386013)
    at app.js:1:237228
    at Object.next (app.js:1:237333)
    at app.js:1:236249
    at new Promise (<anonymous>)
    at v (app.js:1:235994)
    at e.disablePluginAndSave (app.js:1:2385859)
    at t.<anonymous> (app.js:1:3079117)
    at app.js:1:237228
    at Object.next (app.js:1:237333)
    at app.js:1:236249
    at new Promise (<anonymous>)
    at v (app.js:1:235994)
    at t.changeCallback (app.js:1:3078927)
    at t.setValue (app.js:1:1404969)
    at t.<anonymous> (app.js:1:3079080)
    at app.js:1:237228
    at Object.next (app.js:1:237333)
    at a (app.js:1:236051)
lucasvanmol commented 31 minutes ago

It seems like the API key is malformed somehow... I'll be able to fix it so it doesn't crash on start up, but for now could you try uninstalling the plugin and redownloading it? Make sure the plugin folder is deleted fully, Obsidian is sometimes weird about this but if the plugin folder is gone you should be good to reinstall. You'll then have to put in your API key in again.

xRyul commented 11 minutes ago

It seems like the API key is malformed somehow... I'll be able to fix it so it doesn't crash on start up, but for now could you try uninstalling the plugin and redownloading it? Make sure the plugin folder is deleted fully, Obsidian is sometimes weird about this but if the plugin folder is gone you should be good to reinstall. You'll then have to put in your API key in again.

This is actually embarrassing. But reinstalling the plugin actually fixed it! Many thanks!