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] webgl is null in Firefox on Ubuntu 22.04

See original GitHub issue

Context:

  • Playwright Version: 1.22.0
  • Operating System: Ubuntu 22.04 LTS
  • Node.js version: v18.1.0
  • Browser: Firefox

Code Snippet

Help us help you! Put down a short code snippet that illustrates your bug and that we can run and debug locally. For example:

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

(async () => {
  const browser = await firefox.launch();
  const context = await browser.newContext();
  const page = await context.newPage();

  const webgl = await page.evaluate(() => {
    const canvas = document.createElement("canvas");
    return canvas.getContext("webgl");
  });
  console.log(webgl);
  await browser.close();
})();

Describe the bug

Variable webgl is null (WebGLRenderingContext expected).

On Ubuntu 20.04.4 LTS (with the same version of Node.js and Playwright), the canvas.getContext("webgl") method returns the correct value. I think there is a regression when switching to Ubuntu 22.04.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ltsudacommented, May 15, 2022

Playwright on Ubuntu 22.04 is not supported yet

https://github.com/microsoft/playwright/issues/13738

0reactions
mxschmittcommented, May 15, 2022

Folding into https://github.com/microsoft/playwright/issues/13738 since this should be fixed by a dedicated build.

Read more comments on GitHub >

github_iconTop Results From Across the Web

firefox no WebGL - Ask Ubuntu
The problem here is WebGL which is not working. When I start Firefox, I have this error : $ firefox [GFX1-]: No GPUs...
Read more >
Firefox 91 Linux - WebGL stopped working
My solution was to set the environment variable MOZ_ENABLE_WAYLAND=1 then Firefox uses Wayland and not xwayland. This has fixed the webgl issue, ...
Read more >
WebGL does not work in snap firefox - Launchpad Bugs
Since upgrading to Ubuntu 22.04 LTS I am no longer able to use WebGL on firefox. If I go to https://get.webgl.org/ it says...
Read more >
WebGL not Working on Ubuntu 20.04! Can anyone help pls?
I run into a strange Error. Whenever I try to run a 3D WebGL Game on Sites like itch.io my browser rather crashes...
Read more >
Google Chrome not working after upgrading to 22.04
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null). Firefox works perfectly, but all my bookmarks, ...
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