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.

Safari 12 crashes with powerPreference set to high-performance

See original GitHub issue

Unfortunately I’ve just found out that safari 12 crashes when the powerPreference attribute is set to 'high-performance' in the canvas.getContext('webgl', attributes) method.

I’m not sure how long this has been the case.

Previously I made the pull request to include this attribute as it provides more accurate results for devices with multiple GPUs.

I guess a solution is to remove that attribute, or add a check for safari?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
gordonnlcommented, Nov 6, 2019

Yeah good call, my MBP does indeed have two GPUs.

That branch fixes the issue though! Nice one!

0reactions
TimvanScherpenzeelcommented, Nov 6, 2019

Published the workaround in detect-gpu@1.1.3 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Safari 12 crashes with powerPreference set to high-performance
Unfortunately I've just found out that safari 12 crashes when the powerPreference attribute is set to 'high-performance' in the canvas.
Read more >
Safari crashes while trying to open in 12.1 M1 Mini
I have an Apple Silicon (M1) Mini. Since updating to Monterrey 12.1 Safari crashes while loading (will not open).
Read more >
1283929 - Specifying WebGL powerPreference as "high ...
This issue goes away when the "powerPreference" option for the getContext call is removed, or set to "low-power" System is a MacBook Pro...
Read more >
iOS safari crashing (a problem repeatedly occured)
I saw this same error message in Safari when I tried to access a webgl context in "high-performance" mode (using the powerPreference ......
Read more >
How to stop Safari crashing and freezing - Setapp
Here's how to find if any of your extensions are causing Safari crashing: Go to Safari's Preferences (⌘ + ,) Navigate to Extensions....
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