esteinberg / plantuml4idea

Intellij IDEA plugin for PlantUML
Apache License 2.0
618 stars 111 forks source link

Setting a very high dpi causes the IDE to run out of memory #422

Closed cartesian-plane closed 2 months ago

cartesian-plane commented 2 months ago

If the tool window is open while editing the uml.txt file, making a typo like: skinparam dpi 3000 (adding an extra 0) will trigger a warning from intelliJ; something about running out of heap memory.

Could this be fixed by doing some simple validation before rendering is started?

krasa commented 2 months ago

No, but you could reduce these values obrazek

krasa commented 2 months ago

Well, it seems that plantuml always returns a huge SVG image, and SVG preview limit does not work correctly, it should limit the rendered image so it would appear zoomed out, now it just reduces the detail, which is quite useless.

krasa commented 2 months ago

Thanks, it should now work as expected