Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"extension 'GL_ARB_gpu_shader5' is not supported" #9716

Closed
makc opened this issue Sep 19, 2016 · 52 comments
Closed

"extension 'GL_ARB_gpu_shader5' is not supported" #9716

makc opened this issue Sep 19, 2016 · 52 comments

Comments

@makc
Copy link
Contributor

makc commented Sep 19, 2016

chrome is fine on the same mac (objloader's phong materials only there)

screen shot 2016-09-19 at 12 43 39

not sure if random ff bug, or something relevant.

@makc
Copy link
Contributor Author

makc commented Sep 19, 2016

oh god, what have I done...

screen shot 2016-09-19 at 12 55 19

@mrdoob
Copy link
Owner

mrdoob commented Sep 20, 2016

Sounds like a random ff bug to me.

@looeee
Copy link
Collaborator

looeee commented Jan 11, 2017

@makc is this still an issue?

@makc
Copy link
Contributor Author

makc commented Jan 11, 2017

yes, ff nightly from january 3rd still complains about GL_ARB_gpu_shader5 and dumps all the shaders to the console. in one project I even had to

        var ctx = renderer.context;
        ...
        // shut firefox up
        ctx.getShaderInfoLog = function () { return '' };

@makc
Copy link
Contributor Author

makc commented Jan 11, 2017

there seems to be single issue in bugzilla about this with no resolution.

@dhritzkiv
Copy link
Contributor

FWIW, this same warning also occurs in Safari Technology Preview (Release 21) released yesterday (unsure about earlier versions). Stable Safari is fine.

@mrdoob
Copy link
Owner

mrdoob commented Jan 12, 2017

Uh oh...

@btmit
Copy link

btmit commented Feb 10, 2017

I'm experiencing this in a stable firefox release (51.0.1) on Mac. Any workarounds or suggested fixes?

@debruine
Copy link

I too am experiencing this in the same firefox release (51.0.1) on Mac. I "fixed" it as above (makc) by redefining the context.getShaderInfoLog of any renderer, but I'm not sure if this has any knock-on effects:

myRenderer.context.getShaderInfoLog = function () { return '' };

@makc
Copy link
Contributor Author

makc commented Feb 23, 2017

you could call original func, test for GL_ARB_gpu_shader5 and then return empty string or actual log if you want to see other messages

@mrdoob
Copy link
Owner

mrdoob commented Feb 23, 2017

@kearwood what do you guys recommend we do here?

@makc
Copy link
Contributor Author

makc commented Feb 23, 2017

while you can argue that it is firefox problem, something in three.js is triggering it - if you run e g http://jsdo.it/zendenmushi/t0hZ in affected ff you won't see this message.

@FracturedShader
Copy link

FracturedShader commented Feb 26, 2017

According to the GL_ARB_gpu_shader5 specification its main transparent addition is implicit conversion. There's also things like breaking down/building a float by pieces (frexp/ldexp), packing/unpacking vectors into/from a large scalar, and float <-> int bitwise conversions. It's a rather huge spec, so it might be tricky to figure out what parts of the shader are leveraging these operations by review (if any). If I have some time I may take them apart in a branch and figure out where the issue is specifically by adding things one step at a time and make a pull request with any fixes. Considering it affects even the simple vertex shader that does nothing but pass vUv and sets gl_Position, it can hopefully be mostly remedied by small changes to widely a shared block.

@sjando
Copy link

sjando commented Mar 29, 2017

This seems to occur in the most recent version of Safari stable now too (10.1 - which comes with macOS 10.12.4)

@mrdoob mrdoob changed the title nightly firefox@mac not supporting extensions "extension 'GL_ARB_gpu_shader5' is not supported" Mar 30, 2017
@eugjlee
Copy link

eugjlee commented Mar 31, 2017

Experiencing this as well on the latest Safari Version 10.1

@mrdoob
Copy link
Owner

mrdoob commented Mar 31, 2017

@kenrussell any ideas of what to do here?

@kenrussell
Copy link

I think this may be http://crbug.com/671280 . A fix to ANGLE's shader translator was made a while ago, and since Firefox and Safari both use it, they may be using an older version. I've commented on https://bugzilla.mozilla.org/show_bug.cgi?id=1310741 and will contact the developers of the other browsers.

@mrdoob
Copy link
Owner

mrdoob commented Apr 1, 2017

@kenrussell thanks!

@ajyand
Copy link

ajyand commented Apr 17, 2017

I did not face this issue while in Firefox 52 on Ubuntu (Unity) 16.10 but started facing the issue in Firefox 52 on Ubuntu-Gnome 17.04.
@ajyand

Attach files by dragging & dropping,

, or pasting from the clipboard.
Styling with Markdown is supported

@DalimTeam
Copy link

Facing the issue in Safari 10.1 (12603.1.30.0.34) on Mac.
image

@danrossi
Copy link

I can confirm this is happening in macOS Safari / Firefox.

In Firefox on Windows I get something different although the same log appears in macOS.

Error: WebGL warning: texImage2D: Failed to hit GPU-copy fast-path. Falling back to CPU upload.  
Error: WebGL warning: texImage2D: Conversion requires pixel reformatting.

@brunoimbrizi
Copy link

Error still happening on Safari 10.1 MacOS Sierra 10.12.4

THREE.WebGLRenderer – "84"
THREE.WebGLShader: gl.getShaderInfoLog() (3)
"vertex"
"WARNING: 0:1: extension 'GL_ARB_gpu_shader5' is not supported
"
"1: precision highp float;
2: precision highp int;
3: #define SHADER_NAME ShaderMaterial
(...)

@danrossi
Copy link

I have reported it here. But even though many can see the problem this person claims they can't.

https://bugs.webkit.org/show_bug.cgi?id=171054#c3

@FracturedShader
Copy link

FracturedShader commented May 23, 2017

I'm not sure anything can be done about it on this end, even the most simple shader seems to throw a warning:

23:35:46.118 THREE.WebGLShader: gl.getShaderInfoLog() fragment WARNING: 0:1: extension 'GL_ARB_gpu_shader5' is not supported
 1: 
2: void main()
3: {
4:   gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);
5: } 1 three.min.js:59:253

Adding #extension all: disable (see GLSL ES Specification section 3.4) seems to make no difference either. I suppose it will be up to the vendors to repair this one.

@meowgorithm
Copy link

Confirming this in Safari 10.1.1 on OS 10.12.5.

@danrossi
Copy link

Go the the webkit ticket. Of course somebody claimed they can't replicate it. But it's happening on both Safari and Firefox.

@iambumblehead
Copy link

@danrossi in three years, if you have a developer account, they might let you try this feature out yourself in one of the beta releases

@danrossi
Copy link

If there is a fix it would be tracked.

I just got that same treatment in a ticket for the CORS issue and behold. The beta IOS 11 which requires a brand new Ipad 2017 to run doesn't have that fix as someone else tested and mentioned.

I'm not certain what this webgl warning is but seems benign at least ? The CORS issue is more severe.

@iambumblehead
Copy link

@danrossi I know

@michaelybecker
Copy link
Contributor

michaelybecker commented Oct 6, 2017

confirmed - this error is popping up and preventing a simple video-textured plane in A-Frame (presumably going back to three). Works without errors in FF and Chrome iOS/OSX, doesn't work (and this error appears) on Safari (iOS or desktop). I'd be very surprised - and eager - to hear about anyone successfully creating a webGL video texture in threejs (or aframe for that matter) and viewing it on Safari.

@cvan
Copy link
Contributor

cvan commented Oct 17, 2017

confirmed - this error is popping up and preventing a simple video-textured plane in A-Frame (presumably going back to three). Works without errors in FF and Chrome iOS/OSX, doesn't work (and this error appears) on Safari (iOS or desktop). I'd be very surprised - and eager - to hear about anyone successfully creating a webGL video texture in threejs (or aframe for that matter) and viewing it on Safari.

if you add an event listener for a user-initiated gesture (e.g., a click event), and call document.querySelector('video').play() does it work? related: aframevr/aframe#2830 will be merged soon.

@michaelybecker
Copy link
Contributor

I won't get a chance to test that particular instance but have since confirmed that user-initiated video playback does work on Safari (iOS/desktop). The shader error was a bit of a red herring in that regard, sorry about the confusion.

@cvan
Copy link
Contributor

cvan commented Oct 17, 2017

The shader error was a bit of a red herring in that regard, sorry about the confusion.

Yeah, no, I'm doing some testing on various iPhones and my Mac, and I encountered this issue in Safari desktop. So, that's why I commented here. Just wanted to make sure. Thanks for the quick reply! 👍

@machenmusik
Copy link

This says resolved fixed, but I still see it in Safari 11 and Tech Preview.

https://bugs.webkit.org/show_bug.cgi?id=175783

@mrdoob
Copy link
Owner

mrdoob commented Oct 18, 2017

/ping @grorg

@grorg
Copy link
Contributor

grorg commented Oct 19, 2017

Try this test:
https://trac.webkit.org/export/220983/webkit/trunk/LayoutTests/fast/canvas/webgl/no-info-log-for-simple-shaders.html

Safari 11 shipped before the bug was fixed, so you'll get the error shown in the page. Safari Tech Preview has the fix, so should be a blank page. I just verified on STP 41.

@Mugen87
Copy link
Collaborator

Mugen87 commented Nov 17, 2017

screen shot 2016-09-19 at 12 43 39

This message disappeared when upgrading to FF 57. I think we can close the issue now.

@Mugen87 Mugen87 closed this as completed Nov 17, 2017
@nairaner
Copy link

It still happens to me on FF Nightly 59

@Mugen87
Copy link
Collaborator

Mugen87 commented Nov 18, 2017

Um, me too 😒. I thought this was finally fixed...

@Mugen87
Copy link
Collaborator

Mugen87 commented Nov 18, 2017

I've just installed a fresh version of Nightly and the message disappeared. Thank God! 😉

@unphased
Copy link
Contributor

unphased commented Nov 25, 2017

Seeing this in Safari Version 11.0.1 (13604.3.5) on macOS 10.13.1.

Confirmed fixed in Safari Tech Preview Release 44 (Safari 11.1, WebKit 13605.1.13.2)

Good thing that this was just a warning

@alexpriceco
Copy link

I'm also seeing this in Safari 11.0.2 on MacOS 10.13.2 😞

@machenmusik
Copy link

My understanding is that the official fix is in Safari 11.1 (see above)

@brpocock
Copy link

Still seeing these in Firefox 58 ("Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0")

@mrdoob
Copy link
Owner

mrdoob commented Feb 16, 2018

@brpocock Do you mind reporting the bug to Mozilla instead? There isn't much we can do about it.

@danrossi
Copy link

Safari fixed according to here. I think I reported the mozilla one already and was fixed.

https://bugs.webkit.org/show_bug.cgi?id=171054#c12

@23d1
Copy link

23d1 commented May 17, 2018

Safari is not fixed. macOS 10.13.4 Safari 11.1, having the issue.

@toliverAtEScience
Copy link

Still not fixed in Firefox 60.0.1 on Ubuntu 18.04 or Windows 7.

@Mugen87
Copy link
Collaborator

Mugen87 commented May 25, 2018

@toliverAtEScience @23d1 Hey guys. Writing comments at this place won't solve the problem. This thread is closed since it's clearly a browser issue. Please contact the browser developers instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests