regl icon indicating copy to clipboard operation
regl copied to clipboard

Shader compile error is not helpful

Open Boscop opened this issue 6 years ago • 6 comments

image https://github.com/regl-project/regl/blob/8f26f111a913cd9f7f239ebcdf691189e82c7a5f/lib/util/check.js#L300 https://github.com/regl-project/regl/blob/8f26f111a913cd9f7f239ebcdf691189e82c7a5f/lib/util/check.js#L211

It should show the actual error with line number in the shader source.

This fragment shader is working in chrome but not in IE11 (others are working in IE11), I'm trying to find out why..

Boscop avatar Mar 14 '18 08:03 Boscop

Now that I got the fragment shader compiling, it's not linking, again, the error is not helpful :/ image

Boscop avatar Mar 14 '18 10:03 Boscop

Do other browsers report the errors normally using the same setup? (Details here: Error messages and debug mode)

I think console.log is one of those weird JS things that's not exactly a normal function so that maybe console.log.apply could somehow be weird in IE, though that's a total guess.

rreusser avatar May 17 '18 00:05 rreusser

It's working without errors in other browsers like FF and Chrome

Boscop avatar May 17 '18 00:05 Boscop

If there is an error though, do other browsers report it correctly/usefully?

rreusser avatar May 17 '18 00:05 rreusser

What kind of error? You mean when compiling the shader? They just report the error that this lib throws, with the "unknown" location..

Boscop avatar May 17 '18 00:05 Boscop

So to clarify, other browsers throw errors in the same unhelpful manner when there is an error? That would suggest that maybe you're using the unchecked version of regl. Are you using browserify? Browserify with debug mode enabled? Webpack?

rreusser avatar May 17 '18 01:05 rreusser