joethei / obsidian-plantuml

Generate PlantUML Diagrams inside Obsidian.md
MIT License
368 stars 18 forks source link

Using local jar leaks in Electron local storage #47

Closed stonkie closed 10 months ago

stonkie commented 1 year ago

Using the local JAR option, the images seem to be stored in cache in Electron's local storage.

However, they don't seem to get cleaned up which eventually leads to exceeded quota errors and being unable to render diagrams.

Reproduction is pretty simple. Just modify a diagram repeatedly and see the list grow here :

image

stonkie commented 1 year ago

Cleaning up the local storage gets it back on its feet for a little while.

ReidWeb commented 1 year ago

Able to reproduce, will attempt to produce a scenario you can step through in a git repo at some pt soon

At high level, reproduction steps match those outlined by stonkie - make a bunch of updates to a diagram.

Oddly i don't have anything in my local storage, had to outright clean the app storage