Skip to content

Intermittent failure in the should cut pages with Ctrl+X and paste them reorganize pages integration test #21403

Description

@timvandermeij

This integration test fails intermittently in GitHub Actions, mostly with the Windows/Firefox combination. The last occurrence is in https://github.com/mozilla/pdf.js/actions/runs/27095904783/job/79967920942:

Failures:
1) Reorganize Pages View Keyboard shortcuts for cut and copy (bug 2018139) should cut pages with Ctrl+X and paste them
  Message:
    Error: Waiting failed
  Stack:
    error properties: Object({ cause: ProtocolError: script.callFunction timed out. Increase the 'protocolTimeout' setting in launch/connect calls for a higher timeout if needed. })
        at <instance_members_initializer> (file:///D:/a/pdf.js/pdf.js/node_modules/puppeteer-core/lib/puppeteer/common/WaitTask.js:21:21)
        at new WaitTask (file:///D:/a/pdf.js/pdf.js/node_modules/puppeteer-core/lib/puppeteer/common/WaitTask.js:27:16)
        at BidiFrameRealm.waitForFunction (file:///D:/a/pdf.js/pdf.js/node_modules/puppeteer-core/lib/puppeteer/api/Realm.js:49:26)
        at BidiFrame.waitForFunction (file:///D:/a/pdf.js/pdf.js/node_modules/puppeteer-core/lib/puppeteer/api/Frame.js:580:43)
        at BidiFrame.<anonymous> (file:///D:/a/pdf.js/pdf.js/node_modules/puppeteer-core/lib/puppeteer/util/decorators.js:101:27)
        at BidiPage.waitForFunction (file:///D:/a/pdf.js/pdf.js/node_modules/puppeteer-core/lib/puppeteer/api/Page.js:1447:37)
        at waitForHavingContents (file:///D:/a/pdf.js/pdf.js/test/integration/reorganize_pages_spec.mjs:128:15)
        at async file:///D:/a/pdf.js/pdf.js/test/integration/reorganize_pages_spec.mjs:1252:11
        at async Promise.all (index 0)
        at async UserContext.<anonymous> (file:///D:/a/pdf.js/pdf.js/test/integration/reorganize_pages_spec.mjs:1232:7)
    Caused by: ProtocolError: script.callFunction timed out. Increase the 'protocolTimeout' setting in launch/connect calls for a higher timeout if needed.
        at <instance_members_initializer> (file:///D:/a/pdf.js/pdf.js/node_modules/puppeteer-core/lib/puppeteer/common/CallbackRegistry.js:102:14)
        at new Callback (file:///D:/a/pdf.js/pdf.js/node_modules/puppeteer-core/lib/puppeteer/common/CallbackRegistry.js:106:16)
        at CallbackRegistry.create (file:///D:/a/pdf.js/pdf.js/node_modules/puppeteer-core/lib/puppeteer/common/CallbackRegistry.js:25:26)
        at BidiConnection.send (file:///D:/a/pdf.js/pdf.js/node_modules/puppeteer-core/lib/puppeteer/bidi/Connection.js:70:32)
        at Session.send (file:///D:/a/pdf.js/pdf.js/node_modules/puppeteer-core/lib/puppeteer/bidi/core/Session.js:134:42)
        at Session.<anonymous> (file:///D:/a/pdf.js/pdf.js/node_modules/puppeteer-core/lib/puppeteer/util/decorators.js:101:27)
        at WindowRealm.callFunction (file:///D:/a/pdf.js/pdf.js/node_modules/puppeteer-core/lib/puppeteer/bidi/core/Realm.js:92:51)
        at WindowRealm.<anonymous> (file:///D:/a/pdf.js/pdf.js/node_modules/puppeteer-core/lib/puppeteer/util/decorators.js:101:27)
        at #evaluate (file:///D:/a/pdf.js/pdf.js/node_modules/puppeteer-core/lib/puppeteer/bidi/Realm.js:136:42)
        at BidiFrameRealm.evaluateHandle (file:///D:/a/pdf.js/pdf.js/node_modules/puppeteer-core/lib/puppeteer/bidi/Realm.js:103:36)

We should find out what's causing this and fix it because it seems to be the last known intermittent we have left for the integration tests at the moment.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions