Author Topic: Report issues in v13  (Read 2131 times)

0 Members and 1 Guest are viewing this topic.

Offline mygrove

  • VIP
  • Full Member
  • *
  • Posts: 32
    • View Profile
Report issues in v13
« on: July 10, 2024, 20:29:23 »
I have a couple of issues with reports.

1. The Individual timeline report fails to produce a valid PDF version. The Console output is as follows:

Quote
Report begin
Graphic ready
PDF conversion start
*** Exception caught java.lang.OutOfMemoryError: Java heap space
   at org.apache.fop.svg.PDFGraphics2D.applyUnknownPaint(PDFGraphics2D.java:1039)
   at org.apache.fop.svg.PDFGraphics2D.fill(PDFGraphics2D.java:1568)
   at org.apache.batik.gvt.FillShapePainter.paint(FillShapePainter.java:83)
   at org.apache.batik.gvt.CompositeShapePainter.paint(CompositeShapePainter.java:126)
   at org.apache.batik.gvt.ShapeNode.primitivePaint(ShapeNode.java:153)
   at org.apache.batik.gvt.AbstractGraphicsNode.paint(AbstractGraphicsNode.java:509)
   at org.apache.batik.gvt.ShapeNode.paint(ShapeNode.java:143)
   at org.apache.batik.gvt.CompositeGraphicsNode.primitivePaint(CompositeGraphicsNode.java:165)
   at org.apache.batik.gvt.AbstractGraphicsNode.paint(AbstractGraphicsNode.java:509)
   at org.apache.batik.gvt.CompositeGraphicsNode.primitivePaint(CompositeGraphicsNode.java:165)
   at org.apache.batik.gvt.AbstractGraphicsNode.paint(AbstractGraphicsNode.java:509)
   at org.apache.batik.gvt.CompositeGraphicsNode.primitivePaint(CompositeGraphicsNode.java:165)
   at org.apache.batik.gvt.CanvasGraphicsNode.primitivePaint(CanvasGraphicsNode.java:159)
   at org.apache.batik.gvt.AbstractGraphicsNode.paint(AbstractGraphicsNode.java:509)
   at org.apache.batik.gvt.CompositeGraphicsNode.primitivePaint(CompositeGraphicsNode.java:165)
   at org.apache.batik.gvt.AbstractGraphicsNode.paint(AbstractGraphicsNode.java:509)
   at org.apache.fop.svg.PDFTranscoder.transcode(PDFTranscoder.java:185)
   at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstractTranscoder.java:142)
   at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:158)
   at ancestris.reports.inditimeline.ReportIndiTimeLine.createPdfFile(ReportIndiTimeLine.java:697)
   at ancestris.reports.inditimeline.ReportIndiTimeLine.start(ReportIndiTimeLine.java:222)
   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
   at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.base/java.lang.reflect.Method.invoke(Method.java:568)
   at genj.report.Report.start(Report.java:874)
   at genj.report.Runner.run(Runner.java:68)
   at java.base/java.lang.Thread.run(Thread.java:840)

It produces a small pdf file, but it cannot be opened.

2. The customisable "Information Sheets" are output in French even though my language settings in Preferences are all set to English.

Thanks.

Offline Zurga

  • VIP
  • Supernatural Member
  • *
  • Posts: 4 277
    • View Profile
Re: Report issues in v13
« Reply #1 on: July 10, 2024, 20:48:02 »
1 - What is the size of the memory you have allocated to the software ?
Pdf conversion is memory consuming.

2 - These sheets are in French only.
These are examples to give an example of what it is possible to do.
Perhaps we need to translate at least one of them.

Zurga

Offline mygrove

  • VIP
  • Full Member
  • *
  • Posts: 32
    • View Profile
Re: Report issues in v13
« Reply #2 on: July 10, 2024, 22:22:05 »
1. 8GB RAM

2. Not a good feel for English users! Are the templates accessible to users or is this something developers need to change?

Offline Zurga

  • VIP
  • Supernatural Member
  • *
  • Posts: 4 277
    • View Profile
Re: Report issues in v13
« Reply #3 on: July 10, 2024, 22:32:33 »
1 - What is the size of the svg generated ?

2 - You have access : https://docs.ancestris.org/books/user-guide/page/information-sheets-of-individualsfamilies

Zurga

Offline mygrove

  • VIP
  • Full Member
  • *
  • Posts: 32
    • View Profile
Re: Report issues in v13
« Reply #4 on: July 11, 2024, 18:07:01 »
1. The svg is only 86k.

2. Thank you, I will study those pages.

Offline Zurga

  • VIP
  • Supernatural Member
  • *
  • Posts: 4 277
    • View Profile
Re: Report issues in v13
« Reply #5 on: July 11, 2024, 18:25:00 »
I'm really surprised that with 8Gb allocated to the software you have memory usage problems even for this conversion.

Could you display the performance toolbar (menu "Options" => "Configure Toolbars" check "Performance")
You will see the really usage of memory during the use of Ancestris.

Which version of Java do you use ?

Zurga

Offline mygrove

  • VIP
  • Full Member
  • *
  • Posts: 32
    • View Profile
Re: Report issues in v13
« Reply #6 on: July 11, 2024, 21:13:36 »
I'm using Java 17 (that comes with my distribution - Anttix).

The performance toolbar shows that 'at rest' it is using between 180 and 700 MB. When I run the pdf timeline it does spike a little but not outside this range.

Offline Zurga

  • VIP
  • Supernatural Member
  • *
  • Posts: 4 277
    • View Profile
Re: Report issues in v13
« Reply #7 on: July 11, 2024, 23:33:47 »
When you type "java -version" in a console, what is the result ?

Antix is often used with old computer, are you sure to use a 64b distribution of Java ?
If you have a 32b version, the memory maximum usable by Java is 1Gb.
This could explain the memory outage.

Zurga

Offline mygrove

  • VIP
  • Full Member
  • *
  • Posts: 32
    • View Profile
Re: Report issues in v13
« Reply #8 on: July 12, 2024, 21:49:33 »
I have upgraded JDK

Quote
$ java -version
java version "22.0.1" 2024-04-16
Java(TM) SE Runtime Environment (build 22.0.1+8-16)
Java HotSpot(TM) 64-Bit Server VM (build 22.0.1+8-16, mixed mode, sharing)

but I still do not get a pdf file.

Offline Zurga

  • VIP
  • Supernatural Member
  • *
  • Posts: 4 277
    • View Profile
Re: Report issues in v13
« Reply #9 on: July 12, 2024, 23:13:35 »
Sorry to not have any clue to explain this.

Zurga

Offline mother10

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 265
  • Vlinders behandel ik altijd voorzichtig.
    • View Profile
    • Motherware
Re: Report issues in v13
« Reply #10 on: July 13, 2024, 06:30:35 »
Hi,

I had the same problem when I tried to create a pdf out of my more then 17.000 errors when doing a validate GEDCOM.

Originally I had the default 1 MB assigned. I needed it to be 2MB to get it done.

Silly question, but I still ask:
Are you sure you put that 8GB where my arrow points to?

And another silly question:
Did you change from the default 1 directly to 8 ?

Offline mother10

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 265
  • Vlinders behandel ik altijd voorzichtig.
    • View Profile
    • Motherware
Re: Report issues in v13
« Reply #11 on: July 13, 2024, 11:37:49 »
Ok maybe this helps:
I tried to do a timeline report in V13.

First with 2GB after that with 4GB
In both situations I get this error:

Code: [Select]
Report begin
*** Exception caught java.lang.ClassCastException: class genj.gedcom.PropertySimpleValue cannot be cast to class genj.gedcom.PropertyDate (genj.gedcom.PropertySimpleValue and genj.gedcom.PropertyDate are in unnamed module of loader org.netbeans.StandardModule$OneModuleClassLoader @42eeebeb)

at genj.gedcom.PropertyEventDetails.getDate(PropertyEventDetails.java:49)

at genj.gedcom.PropertyEventDetails.getDate(PropertyEventDetails.java:32)

at genj.gedcom.Property.getWhen(Property.java:1809)

at ancestris.reports.inditimeline.ReportIndiTimeLine.createIndividualEvents(ReportIndiTimeLine.java:343)

at ancestris.reports.inditimeline.ReportIndiTimeLine.start(ReportIndiTimeLine.java:155)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.base/java.lang.reflect.Method.invoke(Unknown Source)

at genj.report.Report.start(Report.java:874)

at genj.report.Runner.run(Runner.java:68)

at java.base/java.lang.Thread.run(Unknown Source)


Offline Zurga

  • VIP
  • Supernatural Member
  • *
  • Posts: 4 277
    • View Profile
Re: Report issues in v13
« Reply #12 on: July 13, 2024, 13:28:37 »
This bug has nothing to do with pdf conversion.

You have a date that is note recognized as a date.

Zurga

Offline mygrove

  • VIP
  • Full Member
  • *
  • Posts: 32
    • View Profile
Re: Report issues in v13
« Reply #13 on: July 18, 2024, 15:34:37 »
So on another machine I stil;l get an error, but different. This time I have 16GB RAM and on OpenJDK-17.

What is causing this?

Quote
Report begin
*** Exception caught java.lang.NullPointerException: Cannot invoke "genj.gedcom.Indi.getName()" because "indi" is null
   at ancestris.reports.inditimeline.ReportIndiTimeLine.getNamewithSosa(ReportIndiTimeLine.java:675)
   at ancestris.reports.inditimeline.ReportIndiTimeLine.addMarriage(ReportIndiTimeLine.java:458)
   at ancestris.reports.inditimeline.ReportIndiTimeLine.createIndividualEvents(ReportIndiTimeLine.java:361)
   at ancestris.reports.inditimeline.ReportIndiTimeLine.start(ReportIndiTimeLine.java:155)
   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
   at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.base/java.lang.reflect.Method.invoke(Method.java:568)
   at genj.report.Report.start(Report.java:874)
   at genj.report.Runner.run(Runner.java:68)
   at java.base/java.lang.Thread.run(Thread.java:840)

Offline Zurga

  • VIP
  • Supernatural Member
  • *
  • Posts: 4 277
    • View Profile
Re: Report issues in v13
« Reply #14 on: July 23, 2024, 19:59:26 »
This is caused by a wedding date with only one spouse.
This is corrected.

Zurga