Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-23187

PDF export can hang indefinitely if the headless Chrome crashes or is stopped

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 17.4.0-rc-1, 16.10.8
    • 15.10.16
    • Export - PDF
    • None
    • High
    • Medium
    • N/A
    • N/A

    Description

      Follow these steps to reproduce:

      • Create a wiki page with some simple test content
      • Add a JSX object to this page, with this content:
        require(['xwiki-page-ready'], function(pageReady) {
          pageReady.delayPageReady(new Promise((resolve, reject) => {
            // Delay the page ready with 55 seconds.
            setTimeout(resolve, 55 * 1000);
          }), 'simulate long PDF export');
        });
        
      • Configure the JSX with:
        • Use on this page or on demand
        • No parsing
      • Make sure PDF export is configured to use the headless Chrome Docker container; keep the default 60 seconds page ready timeout
      • Export the page to PDF
      • While the PDF export is running (in fact it is waiting for the page to be ready before printing to PDF) stop the headless Chrome Docker container

      Expected: the PDF export should fail, at most after the 60 seconds page ready timeout.
      Actual: the PDF export keeps running beyond those 60 seconds. In fact, it will keep waiting for the page to be ready until you restart XWiki or use some script to kill the background thread used by the PDF export job.

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: