JetUML
JetUML copied to clipboard
Unable to open diagram with large Canvas
Description
Depending on hardware, a large diagram size (set through View | Set Diagram Size) makes it look like nothing happens when a user attempts to create a new diagram or open any recent file that has too large a diagram size.
This problem is due to an underlying JavaFX bug. The workaround is to use a smaller diagram size. Alternatively, this Stack Overflow post provides an alternative that uses command-line arguments to the virtual machine.
Steps to reproduce It is only possible to reproduce this bug when JetUML is open on a display that cannot support the diagram size.
- Open JetUML and click
View | Set Diagram Size, select the max size. - Create a new Class diagram (for example)
The following exception will be raised by the graphics system:
java.lang.NullPointerException
at javafx.graphics/com.sun.javafx.sg.prism.NGCanvas$RenderBuf.validate(NGCanvas.java:213)
at javafx.graphics/com.sun.javafx.sg.prism.NGCanvas.initCanvas(NGCanvas.java:641)
at javafx.graphics/com.sun.javafx.sg.prism.NGCanvas.renderContent(NGCanvas.java:604)
at javafx.graphics/com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2072)
at javafx.graphics/com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1964)
at javafx.graphics/com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:270)
Configuration
- JetUML Release: 2.1 and up
- OS + version: Windows, Mac
- Java version: 14