Chrome has real limits with very long tables — we can't remove them entirely, but we can push them out quite a bit.
It turns out one of the things Chrome hits first is accessibility tagging. Tagging a table with tens of thousands of cells blows up both the file size and Chrome's printing itself. This can be turned off, and I've pushed a tagged option to master; it will be in the next release.
You can already test it without upgrading — just add the following to the template
<script>
window.JSREPORT_CHROME_PDF_OPTIONS = {
tagged: false
}
</script>
In our tests this took the same report from failing at ~1100 pages to rendering ~1300 pages, with the output roughly 30x smaller. Please try this first, it may be all you need.
On your summary/cross-tab reports: those shouldn't be affected by this limit at all. Chrome's problem is the number of pages, not the number of input rows — a report consuming 200k rows and printing 2 pages renders in well under a second here. If one of those crashes, it's a different issue and worth a separate thread with the error.
One more thing to check: numberOfWorkers: 6 on 2 cores and 8GB is quite high. Each worker can hold its own Chrome plus your dataset, so that alone could explain the container crash. I'd try 2.
If you still need chunking for the really long ones, it doesn't have to break your totals — the trick is to compute aggregates once over the full dataset before rendering, split on group boundaries rather than row counts, and pass the precomputed subtotals and grand total into every chunk. Happy to go through it on a minimal demo if you can prepare one.
