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.

PSI: Issues with WebGL

See original GitHub issue

Hi, my website can never be tested I always receive an error. I think I could track it down to one of my packages which uses WebGL + shaders.

There’s a tiny example static website as a showcase for the metaballs-js package.

Reproduction:

  1. Run a test for https://mrtoph.github.io/metaballs-js/
  2. See it fail with Error: Backend Error

image

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
pttskycommented, Jul 10, 2019

I am working on a project which is showing the same issue. Pagespeed is showing either ‘Backend error’ or metrics ‘First CPU Idle’ and ‘Main thread work’ are going crazy. It is using THREE.js. If <canvas> webgl renderer element is not appended into the DOM, these metrics are around 10-30s (here and after “normal scores” 😜 )

I have tested random sites from awwwards claiming to use three.js (https://www.awwwards.com/websites/three-js/)

Here are the scores as of July 2019: https://docs.google.com/spreadsheets/d/1Z9g0pLB3Y-2xdfZXXNtpcUrcjI-NMl8JrJKnK2mXhCU/edit?usp=sharing

2 of 22 got ‘k.o.’ in their desktop score - these are ‘Backend error’ Another 5 of 22 have oddly repeating have 133-137 seconds of first CPU idle / main thread, which looks like a bare timeout value.

It is possible to postpone embedding of <canvas> into the DOM for 1-2 seconds after window.load and get a “normal” score.

Lighthouse is crashing with similar frequency as pagespeed insights.

1reaction
connorjclarkcommented, Jun 25, 2020

unfortunately PSI has to run WebGL in software.

should we dedupe this to https://github.com/GoogleChrome/lighthouse/issues/10334#issuecomment-591127593

Read more comments on GitHub >

github_iconTop Results From Across the Web

WebGL Troubleshooting - Markforged Support
To troubleshoot WebGL issues: Go to get.webgl.org to check if you have WebGL enabled in your browser. If it is enabled, you should...
Read more >
WebGL not found in latest version of chrome? - Super User
I'm running the latest version of Chrome (96.0.4664.45 (Official Build) (64-bit)). A number of tutorials suggest going to chrome://flags.
Read more >
Optimizing WebGL — Emscripten 3.1.26-git (dev) documentation
Transferring memory between the CPU and the GPU is a common source of GL performance issues. This is because creating new GL resources...
Read more >
WebGL Unavailable after chrome updated - Stack Overflow
I had the same problem and solved it. I Just went to settings, advanced settings and enabled hardware acceleration(at the bottom of the ......
Read more >
Three.js auf Twitter: „@Tschoartschi This is the real problem: https://t ...
PSA: Google Pagespeed currently runs WebGL in software mode. Tweet zitieren ... PSI: Issues with WebGL · Issue #8557 · GoogleChrome/lighthouse.
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