Author Topic: All in one chart error  (Read 1994 times)

0 Members and 1 Guest are viewing this topic.

Offline Paul

  • VIP
  • Sr. Member
  • *
  • Posts: 97
    • View Profile
All in one chart error
« on: October 17, 2019, 13:07:32 »
I seem to get this null pointer exception (see below) when running the 'all in one' chart for any individual. The other (postscript) charts work fine it's just this one. As far as I'm aware there are no issues creating SVG files on my system as I use Inkscape to do that regularly. Is the report broken or does the problem lie elsewhere?

Also, I notice that the output is restricted to .svg rather than .pdf or .png as the report description says (personally I don't care which format is used but svg is probably favourite  ;D)

Code: [Select]
*** Exception caught java.lang.NullPointerException
at org.apache.batik.svggen.ImageHandlerBase64Encoder.encodeImage(ImageHandlerBase64Encoder.java:157)
at org.apache.batik.svggen.ImageHandlerBase64Encoder.handleHREF(ImageHandlerBase64Encoder.java:133)
at org.apache.batik.svggen.ImageHandlerBase64Encoder.handleHREF(ImageHandlerBase64Encoder.java:72)
at org.apache.batik.svggen.DefaultImageHandler.handleImage(DefaultImageHandler.java:63)
at org.apache.batik.svggen.SimpleImageHandler.handleImage(SimpleImageHandler.java:100)
at org.apache.batik.svggen.SVGGraphics2D.drawImage(SVGGraphics2D.java:739)
at org.apache.batik.ext.awt.g2d.AbstractGraphics2D.drawImage(AbstractGraphics2D.java:776)
at genj.renderer.MediaRenderer.render(MediaRenderer.java:227)
at ancestris.report.svgtree.output.GraphicsTreeElements.drawIndiBox(GraphicsTreeElements.java:492)
at ancestris.report.svgtree.output.RotateTreeElements.drawIndiBox(RotateTreeElements.java:58)
at ancestris.report.svgtree.output.FlipTreeElements.drawIndiBox(FlipTreeElements.java:47)
at ancestris.report.svgtree.output.TreeRendererBase.drawTree(TreeRendererBase.java:110)
at ancestris.report.svgtree.output.TreeRendererBase.drawTree(TreeRendererBase.java:124)
at ancestris.report.svgtree.output.TreeRendererBase.render(TreeRendererBase.java:60)
at ancestris.report.svgtree.output.TreeRendererBase.render(TreeRendererBase.java:52)
at ancestris.report.svgtree.output.RotateRenderer.render(RotateRenderer.java:74)
at ancestris.report.svgtree.graphics.TitleRenderer.render(TitleRenderer.java:93)
at ancestris.report.svgtree.graphics.FooterRenderer.render(FooterRenderer.java:137)
at ancestris.report.svgtree.graphics.SvgWriter.write(SvgWriter.java:42)
at ancestris.report.svgtree.graphics.GraphicsFileOutput.output(GraphicsFileOutput.java:43)
at ancestris.report.svgtree.ReportGraphicalTree.start(ReportGraphicalTree.java:100)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at genj.report.Report.start(Report.java:880)
at genj.report.Runner.run(Runner.java:68)
at java.base/java.lang.Thread.run(Thread.java:834)

Linux Mint 19.1 xfce 64 bit, openjdk 11.0.4 2019-07-16



Offline Zurga

  • VIP
  • Supernatural Member
  • *
  • Posts: 2 890
    • View Profile
Re: All in one chart error
« Reply #1 on: October 17, 2019, 13:36:45 »
Which extension did you choose for your report ?
Postscript is not an option for this chart (only svg, pdf, png or sreen)
I don't have this error with any extensions.

Zurga

Edit : OK, gotcha only with Java 11 sdk.
With Java 8, no trouble.
Will try to fix it.
« Last Edit: October 17, 2019, 13:40:23 by Zurga »

Offline Paul

  • VIP
  • Sr. Member
  • *
  • Posts: 97
    • View Profile
Re: All in one chart error
« Reply #2 on: October 17, 2019, 13:52:20 »
Just to note: There is no option to choose output format, ie the only options are .svg or 'all files' in the file selector. If I force .pdf in the filename I end up with output.pdf.svg

EDIT svg is the only output option for this report, ps is the only option for the other charts
« Last Edit: October 17, 2019, 13:54:45 by Paul »

Offline Zurga

  • VIP
  • Supernatural Member
  • *
  • Posts: 2 890
    • View Profile
Re: All in one chart error
« Reply #3 on: October 17, 2019, 14:13:02 »
I have committed a modification which should correct your case.
This should be OK tomorrow with the update.

At the bottom of the options screen, you can see "svg". click on it, this should allow you to choose another option.

Zurga

Offline Paul

  • VIP
  • Sr. Member
  • *
  • Posts: 97
    • View Profile
Re: All in one chart error
« Reply #4 on: October 17, 2019, 14:25:36 »
Great! Many thanks (I was running it from the context menu which bypasses the options)

Offline Zurga

  • VIP
  • Supernatural Member
  • *
  • Posts: 2 890
    • View Profile
Re: All in one chart error
« Reply #5 on: October 17, 2019, 14:37:07 »
Bypass, bypass....
Just open the report from the main menu.
Choose your output format.
Launch one to be sure.
Then go back into your favourite editor for your favourite context menu action.
Launch the report from the context menu.
Enjoy the correct output format.

Zurga

Offline Paul

  • VIP
  • Sr. Member
  • *
  • Posts: 97
    • View Profile
Re: All in one chart error
« Reply #6 on: October 17, 2019, 15:03:42 »
 ;D OK thanks.

Offline Paul

  • VIP
  • Sr. Member
  • *
  • Posts: 97
    • View Profile
Re: All in one chart error
« Reply #7 on: October 18, 2019, 07:49:58 »
I can confirm this works as expected (even from context menu :D) - many thanks!

Paul