使用 plantuml gui 时出现 Stackoverflow 错误

Stackoverflow error when using plantuml gui

我一直在通过以下命令使用 Plantuml gui。

java -jar plantuml.jar -gui

它工作了一段时间,但突然我开始收到以下错误。一切都变慢了,不再生成图表图像,GUI 没有列出我选择的文件夹中的图像文件。任何帮助将不胜感激。

Exception in thread "AWT-EventQueue-0" java.lang.WhosebugError
        at java.io.InputStream.<init>(Unknown Source)
        at java.io.FileInputStream.<init>(Unknown Source)
        at net.sourceforge.plantuml.AFileRegular.open(AFileRegular.java:57)
        at net.sourceforge.plantuml.preproc.FileWithSuffix.getReader(FileWithSuffix.java:65)
        at net.sourceforge.plantuml.preproc.StartDiagramExtractReader.getReadLine(StartDiagramExtractReader.java:106)
        at net.sourceforge.plantuml.preproc.StartDiagramExtractReader.containsStartDiagram(StartDiagramExtractReader.java:136
)
        at net.sourceforge.plantuml.preproc2.PreprocessorInclude3.getReaderInclude(PreprocessorInclude3.java:326)
        at net.sourceforge.plantuml.preproc2.PreprocessorInclude3.manageFileInclude(PreprocessorInclude3.java:262)
        at net.sourceforge.plantuml.preproc2.PreprocessorInclude3.access0(PreprocessorInclude3.java:75)
        at net.sourceforge.plantuml.preproc2.PreprocessorInclude3$Inner.readLineInternal(PreprocessorInclude3.java:149)
        at net.sourceforge.plantuml.preproc2.ReadLineInsertable.readLine(ReadLineInsertable.java:65)
        at net.sourceforge.plantuml.preproc2.Preprocessor2.readLine(Preprocessor2.java:87)

我找到问题了。 WhosebugError 应该给了我提示,但我错过了。通常它与递归循环有关。 我正在使用文件包含功能并有一个循环文件​​引用。所以 plantuml 正在(或者更确切地说,我正在发送它)进入无限循环,因此它 运行 出栈 space。