question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Missing a dependency on docker image which fails webkit

See original GitHub issue

Context:

Code Snippet

When you running this script in the ubuntu docker

const { webkit } = require('playwright');

(async () => {
  const browser = await webkit.launch({
    dumpio: true,
  });
  const context = await browser.newContext();
  const page = await context.newPage();
  await page.goto('https://google.com');
  await page.screenshot({path: 'screenshot.png'});
  await browser.close();
})();

Describe the bug Seeing:

[err] /home/pwuser/app/node_modules/playwright/.local-browsers/webkit/minibrowser-wpe/MiniBrowser: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory
(node:630) UnhandledPromiseRejectionWarning: Error: Protocol error (Playwright.createContext): Browser has been closed.
    at /home/pwuser/app/node_modules/playwright-core/lib/webkit/wkConnection.js:100:63
    at new Promise (<anonymous>)
    at WKSession.send (/home/pwuser/app/node_modules/playwright-core/lib/webkit/wkConnection.js:99:16)
    at WKBrowser.newContext (/home/pwuser/app/node_modules/playwright-core/lib/webkit/wkBrowser.js:65:65)
    at WKBrowser.<anonymous> (/home/pwuser/app/node_modules/playwright-core/lib/helper.js:84:31)
    at /home/pwuser/app/src/tests/screenshot/specs/test.js:7:33

Basically, it is missing libglu1 for webkit. As long as we added RUN apt-get install -y libglu1, it is working.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
zlk89commented, Apr 13, 2020

hmmm, the screenshot looks correct

0reactions
aslushnikovcommented, Apr 15, 2020

Let me know if there’s anything else we can do to help you; so far it looks like no code changes should be made to Playwright’s docker image.

Read more comments on GitHub >

github_iconTop Results From Across the Web

missing webkit dependencies - Launchpad Bugs
I have a small test application using Webview that displays YouTube videos correctly in Ubuntu 16.04. In a Docker image of Ubuntu 16.04, ......
Read more >
Create a Dev Container - Visual Studio Code
The Visual Studio Code Dev Containers extension lets you use a Docker container as a full-featured development environment. It allows you to open...
Read more >
playwright._impl._api_types.error: executable doesn't exist at - You ...
firefox folder (firefox.exe is missing): image ... When I use "playwright" in Cloud Functions, I get the following error: How should I deal...
Read more >
Image-building best practices - Docker Documentation
Layer caching · Update the Dockerfile to copy in the package.json first, install dependencies, and then copy everything else in. ·...
Read more >
Module Federation - webpack
You are likely missing the remote container, make sure it's added. If you have the container loaded for the remote you are trying...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found