Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Large Report Prevents PDF Generation #2431

Open
justinr86 opened this issue Oct 28, 2020 · 4 comments
Open

Large Report Prevents PDF Generation #2431

justinr86 opened this issue Oct 28, 2020 · 4 comments
Assignees
Labels
bug Something isn't working needs prioritization We have to prioritize this issue

Comments

@justinr86
Copy link
Contributor

Summary

Submitting a large report prevents PDF generation. The Thank You page takes a long time to display the reference number, when it does the PDF link does not work.

In the browser console the following error messages are displayed:

This is the submission that caused the issue:

This report was inserted into the DB, though it did take too long to display confirmation. This does negatively affect PDF generation.

Steps to reproduce

Start report, enter data from Large Submission.docx, submit. View browser console for errors.

Unresolved questions

The solution seems to be limiting input on some fields. What fields should we limit entry on, and by how much?

@justinr86 justinr86 added bug Something isn't working needs prioritization We have to prioritize this issue labels Oct 28, 2020
@justinr86
Copy link
Contributor Author

This is a problem with react-pdf - diegomura/react-pdf#314

@sdzhangtao sdzhangtao self-assigned this Oct 28, 2020
@sdzhangtao
Copy link

I am the memory expert in java, so if nobody longing to work on this. I will pick this up.
See I can put my java knowledge to work.

@sdzhangtao
Copy link

It only has 15 pages.
I tried to reproduce the problem as much as I can. But I can't reproduce it.
Not only I can't reproduce it. the pdf was generated in lighting speed.
How old is your computer? Memory deeply fragmented?

@sdzhangtao
Copy link

The overall size is not a problem, it can generate pdf into 100s pages. The problem is that no text field can be larger than 10K.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working needs prioritization We have to prioritize this issue
Projects
None yet
Development

No branches or pull requests

2 participants