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.

Screenshots for CI on MacOS

See original GitHub issue

Description of the problem

OS
  • Windows
  • macOS
  • Linux

Right now all contributions in Three.js checked with regression tests. If you make a new PR you should also update screenshot in order to simplify code reviews. But current screenshot maker not works in MacOS, and somebody need to create screenshots on Windows or Linux for those users. This is not handy at all. If you have MacBook can you help me to fix CI script for MacOS?

Solution

Try to change flags to --use-gl=swiftshader in file below https://github.com/mrdoob/three.js/blob/47e1e3a9a0ac7cf6848ee005c172912ba4f6eff5/test/e2e/puppeteer.js#L60 or add some another, like --disable-setuid-sandbox and check what gives this command

npm run make-screenshot

right now it produces black images on MacOS.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
munrocketcommented, Apr 13, 2020

Wow, I am not thought that we can do it without GPU.

TEST PASSED! 356 screenshots correctly rendered.

Also we have all platforms inside CI and can check script with one button.

1reaction
mrdoobcommented, Apr 13, 2020

AFAIK, angle is GPU and swiftshader is CPU.

If we want to avoid GPU bugs, we may want to go with --user-gl=swiftshader everywhere…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Take a screenshot on your Mac - Apple Support
To take a screenshot, press and hold these three keys together: Shift, Command, and 3. If you see a thumbnail in the corner...
Read more >
flameshot.org - GitHub
On KDE Plasma desktop ; Prt Sc, Start the Flameshot screenshot tool and take a screenshot ; Ctrl + Prt Sc, Wait for...
Read more >
Kap - Capture your screen
Capture your screen. An open-source screen recorder built with web technology. View and contribute on GitHub macOS 12 or later required. The Kap...
Read more >
One simple trick to make your screenshots 80% smaller - GitLab
The trick is to make this happen automatically every time I capture a screenshot using Hazel or Automator. This allows you to run...
Read more >
ios - XCode CI stuck running the UITests (Uploading 10 ...
Found this on Twitter by @steipete: Known Issues, Xcode 8.2: “Simulator_app shows a black screen when booting simulated devices on macOS that do...
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