Skip to content

[Bug]: Fix permafail in the "should reorder thumbnails after dropping two adjacent pages" integration test #20814

@timvandermeij

Description

@timvandermeij

Attach (recommended) or Link to PDF file

N/A

Web browser and its version

Firefox 148.0

Operating system and its version

Arch Linux

PDF.js version

5.5.207 (and master)

Is the bug present in the latest PDF.js version?

Yes

Is a browser extension

No

Steps to reproduce the problem

  1. Run https://github.com/mozilla/pdf.js/blob/55fe04657b143f4157c989969d6cbed2180d31bc/test/integration/reorganize_pages_spec.mjs#L256C9-L281 on the Linux bot.
  2. Notice the following failure consistently:
1) Reorganize Pages View Drag & Drop should reorder thumbnails after dropping two adjacent pages
  Message:
    ProtocolError: Protocol error (input.performActions): move target out of bounds Move target (136, 849.6) is out of bounds of viewport dimensions (1152, 836) RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8
    WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:202:5
    MoveTargetOutOfBoundsError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:521:5
    assertTargetInViewPort@chrome://remote/content/shared/webdriver/Actions.sys.mjs:3170:11
    _assertInViewPort@chrome://remote/content/webdriver-bidi/modules/windowglobal/input.sys.mjs:211:17
    handleCommand@chrome://remote/content/shared/messagehandler/MessageHandler.sys.mjs:285:33
    receiveMessage@chrome://remote/content/shared/messagehandler/transports/js-window-actors/MessageHandlerFrameChild.sys.mjs:78:37
    
  Stack:
        at <instance_members_initializer> (file:///home/ubuntu/pdfjs/botio-files-pdfjs/private/983cc7c499f333d/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:99:14)
        at new Callback (file:///home/ubuntu/pdfjs/botio-files-pdfjs/private/983cc7c499f333d/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:103:16)
        at CallbackRegistry.create (file:///home/ubuntu/pdfjs/botio-files-pdfjs/private/983cc7c499f333d/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:22:26)
        at BidiConnection.send (file:///home/ubuntu/pdfjs/botio-files-pdfjs/private/983cc7c499f333d/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Connection.js:70:32)
        at Session.send (file:///home/ubuntu/pdfjs/botio-files-pdfjs/private/983cc7c499f333d/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/Session.js:134:42)
        at Session.<anonymous> (file:///home/ubuntu/pdfjs/botio-files-pdfjs/private/983cc7c499f333d/node_modules/puppeteer-core/lib/esm/puppeteer/util/decorators.js:101:27)
        at BrowsingContext.performActions (file:///home/ubuntu/pdfjs/botio-files-pdfjs/private/983cc7c499f333d/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/core/BrowsingContext.js:384:33)
        at BrowsingContext.<anonymous> (file:///home/ubuntu/pdfjs/botio-files-pdfjs/private/983cc7c499f333d/node_modules/puppeteer-core/lib/esm/puppeteer/util/decorators.js:101:27)
        at BidiMouse.move (file:///home/ubuntu/pdfjs/botio-files-pdfjs/private/983cc7c499f333d/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/Input.js:412:54)
        at dragAndDrop (file:///home/ubuntu/pdfjs/botio-files-pdfjs/private/983cc7c499f333d/test/integration/test_utils.mjs:585:22)

What is the expected behavior?

The integration test should pass on Linux like it does on the Windows bot.

What went wrong?

The integration test fails on Linux.

Link to a viewer

No response

Additional context

The most recent occurrence of this is in #20812, but we have seen it since the introduction of this test in 5e89981 as far as I recall.

Even more interestingly: in #20371 it fails on both Windows and Linux in the GitHub Actions workflows.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions