When exporting a Task Timeline view containing more than 2,000 tasks to PDF in the Modern UX (MUX), the export process fails or causes system instability due to high memory consumption by the Playwright process.
Steps to Reproduce (STR)
Expected Result: The PDF preview generates successfully, allowing users to preview and download the document.
Actual Result: The preview fails, errors out, or crashes the host process with below error stack
Playwright error during export to PDF:
com.microsoft.playwright.impl.TargetClosedError: Error {
message='Target page, context or browser has been closed
name='TargetClosedError
stack='TargetClosedError: Target page, context or browser has been closed
Error
at captureRawStack (/opt/ppm/tomcat-app-deploy/temp/playwright-java-9852647741401550975/package/lib/utils/stackTrace.js:49:17)
at LongStandingScope._race (/opt/ppm/tomcat-app-deploy/temp/playwright-java-9852647741401550975/package/lib/utils/manualPromise.js:91:52)
at LongStandingScope.race (/opt/ppm/tomcat-app-deploy/temp/playwright-java-9852647741401550975/package/lib/utils/manualPromise.js:84:17)
at PageDispatcher._handleCommand (/opt/ppm/tomcat-app-deploy/temp/playwright-java-9852647741401550975/package/lib/server/dispatchers/dispatcher.js:96:36)
at DispatcherConnection.dispatch (/opt/ppm/tomcat-app-deploy/temp/playwright-java-9852647741401550975/package/lib/server/dispatchers/dispatcher.js:361:39)
}
Call log:
taking page screenshot
waiting for fonts to load...
Clarity 16.4.1, 16.4.2
DE184006
The issue is driven by system memory exhaustion:
Fixed in
Workaround: Reduce display screen resolution prior to exporting. Using a standard HD Display (1920px width or lower) reduces render overhead and allows the export to complete or partially succeed in some scenarios.
Symptoms & Behaviors: Depending on available system memory at the time of export, one of three scenarios occurs:
TargetClosedError.