grasshopper7 / cucumber-pdf-report

Allows creation of PDF reports for cucumber executions
https://ghchirp.tech/2224/
1 stars 0 forks source link

Stack overflow exception whilst generating report #39

Open Dwje opened 2 years ago

Dwje commented 2 years ago

Occasionally the PDF generator will throw a StackOverflow exception. Aug 08, 2022 11:17:32 AM tech.grasshopper.pdf.PDFCucumberReport collectReportConfiguration INFO: PDF report configuration YAML file not found. Using default settings. java.lang.StackOverflowError at java.util.stream.ReferencePipeline$5$1.accept(ReferencePipeline.java:227) at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1384) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.LongPipeline.reduce(LongPipeline.java:461) at java.util.stream.LongPipeline.sum(LongPipeline.java:419) at java.util.stream.ReferencePipeline.count(ReferencePipeline.java:593) at tech.grasshopper.pdf.section.details.executable.table.TableColumnOptimizer.resizeColumnWidth(TableColumnOptimizer.java:81) at tech.grasshopper.pdf.section.details.executable.table.TableColumnOptimizer.resizeColumnWidth(TableColumnOptimizer.java:101) at tech.grasshopper.pdf.section.details.executable.table.TableColumnOptimizer.resizeColumnWidth(TableColumnOptimizer.java:101)

This can be reproduced by using the cucumber-pdf-plugin-report project and adding the following step to the datatable-docstring.feature scenario

And Customer orders the dishes
      | Taial Cuidjsj             | Taial Cuidjsj Snopqr | Abcef Ghij Klmnopqrs Tuv Wxyz1 Abcef | Abcdefghi Jklmn (Opqrstu Vwxyz) | Abcd Tfdgh Ijkl Mnopq rs Tuvwx (Yz12345) | abcdefg hijklmn opqrstuvwx |      
      | {IND Country Description} | 2                    | 3                                    | 4                               | 5                                        | 6                          |
      | {BEL Country Description} | 2                    | 3                                    | 4                               | 5                                        | 6                          |
grasshopper7 commented 2 years ago

Hi, will look into this. Are you using the latest code which is using 1.11.0 version of the plugin?

Dwje commented 2 years ago

Yes I'm using the latest version.