-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remote Render result with Localhost PlantUML PicoWeb cannot be zoomed #412
Comments
So @krasa you're saying that the ability to zoom using remote rendering isn't possible? PS adjusting for what you said above, here's what my PlantUML settings now look like: I'll also note that with "SVG Preview OFF, Remote Rendering ON", when I click the zoom + / - buttons in the PlantUML Preview window, the PlantUML plugin is calling my Localhost PlantUML PicoWeb instance -- but still, the displayed Sequence Diagram is not zooming in or out... Now I'm curious: Is the remote render request returning a PNG or a SVG? |
PlantUML PicoWeb does not zoom, you can do it only by source code.
It returns SVG for SVG Preview, otherwise PNG. Zooming SVG should work. There also might be a memory leak if your heap stays full Easily diagnosable with https://eclipse.dev/mat/ |
Hi @krasa As I've set the PLANTUML limit to 16384, I used: It now fills the entire width of my 3360x1890 43" monitor. Much easier to read now! :) I just enabled "Show Memory Indicator". Here's all "memory" Actions: I've actually been monitoring the heap with VisualVM -- trying to prevent the OOM's by clicking the "Perform GC" when it gets too high. I recently restarted IntelliJ, so here's where we stand at this moment: |
That looks fine. But you can try a new build if you like: |
that does not prevent OOM imho - it gets that high by design, some say it is possible but unlikely https://stackoverflow.com/a/8719124 |
Thank you @krasa for the above. I need to complete my diagram ASAP so I'll try out the new build after I get that done. |
Hi! I build enormous sequence diagrams in PlantUML -- my current diagram is 375 lines and counting.
Trying to render that with the plugin's own PlantUML jar -- or with an external PlantUML jar (installed with MacOS Homebrew) -- very quickly pushes IntelliJ to report Out Of Memory errors.
So I run
I then configure the PlantUML4Idea plugin to remote render using
http://127.0.0.1:8080
-- and voila! I get sequence diagrams in the PlantUML preview window which appear to be generated by my localhost PlantUML PicoWeb instance.However, I still get Out Of Memory Errors with IntelliJ with the "SVG Preview" feature enabled -- apparently that seems to use IntelliJ heap -- so I have to turn off SVG Preview to stop those Out Of Memory errors.
The result of "⬛️ SVG Preview ☑️ Remote Rendering"?
IntelliJ memory is fine, but the diagram in the PlantuML preview window will not allow me to zoom in or out -- and with a resulting image that is 4880x11434, the writing is tiny.
I will note that I've tried adding the
-tsvg
option to thejava
line above. Doesn't make a difference.Help?
Here's the result of my "About IntelliJ Idea" window:
The text was updated successfully, but these errors were encountered: