Page 1 of 1

OpenDocument Export Fails (MacOS)

Posted: Tue Dec 21, 2021 9:24 pm
by kleftis
Whenever I attempt to export a game to OpenDocument format, an empty .odt file is created. If I attempt to export a single diagram, I get an empty .odg file. The logs show the following error:

211221 141420.205 net.gowrite.sgf.SGFUtil log WARNING: Error in export background task
java.lang.NullPointerException
at java.base/java.io.Reader.<init>(Reader.java:167)
at java.base/java.io.InputStreamReader.<init>(InputStreamReader.java:93)
at gowrite.export.openDoc.OOBase.readResoure(OOBase.java:164)
at gowrite.export.openDoc.OOExportConvert.writeDocEnd(OOExportConvert.java:102)
at gowrite.export.openDoc.OOExportConvert.endDrawing(OOExportConvert.java:79)
at gowrite.export.openDoc.OOMediaContext.endPaint(OOMediaContext.java:98)
at gowrite.export.MediaContext.outputBoard(MediaContext.java:125)
at gowrite.export.openDoc.OODocContext.printDiagram(OODocContext.java:60)
at gowrite.export.openDoc.OODocContext.writeGraphics(OODocContext.java:87)
at gowrite.export.openDoc.OODocContext.iterateNode(OODocContext.java:247)
at gowrite.gui.print.PrintContext.iterate(PrintContext.java:265)
at gowrite.export.openDoc.OODocContext.printPage(OODocContext.java:278)
at gowrite.export.ExportContext.print(ExportContext.java:45)
at gowrite.gui.print.ExportJob.print(ExportJob.java:152)
at gowrite.gui.EditActions$ExportBase$1.run(EditActions.java:795)
at gowrite.gui.GuiUtil$3.run(GuiUtil.java:248)

This happens with either java 11 or java 17.

Export to HTML (with diagrams in any of .png, .pdf, and .svg) works fine.

I am using GOWrite 3.1.5 on both MacOS High Sierra and Catalina.

Re: OpenDocument Export Fails (MacOS)

Posted: Wed Dec 22, 2021 8:19 am
by lpaatero
Thank you for the report. It seems all 3.x versions have been broken this way.
I will create updated version soon.

/Lauri

Re: OpenDocument Export Fails (MacOS)

Posted: Wed Dec 22, 2021 11:30 am
by lpaatero
Fix is now in GOWrite 3.1.6

/Lauri