https://cypress.io logo
Error creating WebGL context
# i-need-help
h
Hello. I use cypress, it's a very nice product. My application uses three.js to display 3D models, when I run tests via cypress cloud I get an error: Error creating WebGL context. Tests fail on chrome, but everything is fine in firefox. Tell me what parameters you need to pass for chrome to make it work. I have tried passing --ignore-gpu-blocklist to before:browser:launch and removing --disable-gpu. Local tests pass.
g
same error please help
the problem has not been solved....
the problem has not been solved....
e
You don't need daily updates on a problem not being addressed here. If its a true bug throw a ticket in github and wait for a response there.
You could try throwing this in your test to ignore the exception:
Copy code
Cypress.on('uncaught:exception', (err) => {
  // returning false here prevents Cypress from
  // failing the test
  console.log('Cypress detected uncaught exception: ', err);
  return false;
});
g
the problem has not been solved....
e
A quick google search suggests it's related to the graphics card of the machine. I'd suggest looking into these threads. https://stackoverflow.com/questions/54232528/error-creating-webgl-context-three-js-chrome https://github.com/mrdoob/three.js/issues/4927
g
this solution does not work, we know what the problem is, we need to force the browser to enable hardware acceleration, but any parameter passing does not work for cypress.
@enough-truck-68085
the problem still persists
e
Have you opened a github issue or emailed Cypress support directly? It sounds like you have a good understanding of the problem and just need direct, technical understanding from the team behind-the-scenes at this point. I'd suggest going that route as you might get quicker traffic than bumping this thread every week.
2 Views