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.

[WebGL] Failed to compile fragment shader

See original GitHub issue

System information

  • Have I written custom code (as opposed to using a stock example script provided in TensorFlow.js): Yes
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): All platforms
  • TensorFlow.js version (use command below): tf.js 3.7.0 webgl backend.
  • Browser version: Chrome 93.0.4545.0

Describe the current behavior WebGL backend throws Failed to compile fragment shader error while using depthwiseConv2d op with specific options. While WebGPU backend doesn’t reproduce.

Describe the expected behavior No error.

Standalone code to reproduce the issue

CodePen: https://codepen.io/honry/pen/wvdMmva

    const input = tf.fill([1, 65, 65, 960], 0);
    const weights = tf.fill([3, 3, 960, 1], 1);
    const result = tf.depthwiseConv2d(input, weights, 1, 'same', 'NHWC', 4);

Other info / logs Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

Please check error log from https://codepen.io/honry/pen/wvdMmva

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
Honrycommented, Jul 6, 2021

@huningxin, this issue only reproduce on webgl backend.

0reactions
Honrycommented, Jul 26, 2021

Thanks @rthadur, I’ve created a new issue at https://github.com/tensorflow/tfjs/issues/5378.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to compile fragment shader · Issue #1644 · tensorflow/tfjs
TensorFlow.js version : 1.0.0 Browser version: Chromium - Version 74.0.3729.169 (Official Build) Built on Ubuntu , running on Ubuntu 18.04 ...
Read more >
WebGL fragment shader won't compile - Stack Overflow
I am attempting to compile a WebGL fragment shader. I believe the error is in the shader's string, but I am unsure what...
Read more >
Failed to compile fragment shader - Google Groups
I am having an issue similar to #177. When running on chrome I get the error "Failed to compile fragment shader" when I...
Read more >
[SOLVED] Failed to compile fragment shader - iPad
ERROR Failed to compile fragment shader: '[]' : array constructor supported in GLSL ES 3.00 and above only '[]' : first-class arrays (array ......
Read more >
Fragment shader failed to compile. Compile log: ERROR: 0 ...
This is the error message: RuntimeError: Fragment shader failed to compile. Compile log: ERROR: 0:111: 'undefined' : undeclared identifier
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