luma.gl
luma.gl copied to clipboard
TypeError exception during identifyGPUVendor execution
Actual Result
When using deck.gl
map, sometimes an exception is thrown in our web app, specifically:
TypeError: Cannot read property 'match' of null
From the logs it looks like the root cause is coming from @luma.gl/shadertools/src/utils/webgl-info.js:52
.
Expected Result
There shouldn't be an exception thrown. When vendor
or renderer
is not a string, identifyGPUVendor
should return UNKNOWN GPU
.
Reproduce Steps
I had no luck reproducing the issue locally, it is only reported by error tracking software in client browsers.
To Do List
- [ ] Add label and assign to milestone
- [ ] Coding
- [ ] Test
Thank you for the detailed report. This will be easy enough to fix for 7.1.
Out of curiosity, could tell me what OS/browser/GPU you're running this on? That code is assuming support for an extension that's widely but not universally supported, so I'm interested to know what the exceptions are.
Sure, I have logs from two users. Unfortunately there aren't much details about the machines and no GPU information is available so it won't be much of a surprise if it's not helpful. Here's what we know:
-
Browser: Chrome, Version: 74.0.3729 OS: Windows 10, Version: Unknown
-
Browser: Chrome, Version: 74.0.3729 OS: Mac OS X, Version: 10.14.4 (we can't know for sure whether it's a legitimate Mac or a Hackintosh)
If it's not too much trouble, could you have them navigate to chrome://gpu
and send over the info from that page? GPU and driver info would be in there.
Too bad but all I can access are just user IP addresses, no contact information is available, sorry!