Skip to content

Commit c2aa19e

Browse files
authored
Work around Chrome webgl issue (#1295)
Github runners have been updated which also updated Chrome. There is a regression in Chrome that causes the shaders used by Three.js to break when running in environments without a GPU. This issue will affect our users too interacting with astropi if they also don't have a GPU although I'm not clear how common this would be. We could investigate better handling errors from the webGL canvas. Other reports of the issue: https://github.com/orgs/community/discussions/185629 https://issues.chromium.org/issues/476172421
1 parent 7f070fe commit c2aa19e

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/ci-cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8989

9090
- name: Cypress run
91-
uses: cypress-io/github-action@v6
91+
uses: cypress-io/github-action@v7
9292
with:
9393
install: false
9494
start: |

cypress.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export default defineConfig({
2222
console.log("Applying Chrome launch options");
2323
launchOptions.args.push("--enable-features=SharedArrayBuffer");
2424
launchOptions.args.push("--disable-site-isolation-trials");
25+
launchOptions.args.push("--enable-unsafe-swiftshader");
2526
}
2627
return launchOptions;
2728
});

0 commit comments

Comments
 (0)