Skip to content
This repository was archived by the owner on Sep 14, 2021. It is now read-only.

The demo crashes with error: "Failed to link vertex and fragment shaders" #81

Open
CoderFF opened this issue Jul 12, 2019 · 2 comments
Open

Comments

@CoderFF
Copy link

CoderFF commented Jul 12, 2019

This one: https://storage.googleapis.com/tfjs-examples/tsne-mnist-canvas/dist/index.html

This demo page is obtained as an example of tfjs-tsne here: https://github.com/tensorflow/tfjs-tsne ("Example" section)

@Fil
Copy link
Contributor

Fil commented Nov 10, 2019

https://observablehq.com/@mbostock/lets-try-t-sne works by specifying precise version numbers: @tensorflow/[email protected] and @tensorflow/[email protected]. Any version after these seems to break.

@duhaime
Copy link

duhaime commented Apr 29, 2020

I believe this error springs because some of the shader code used in here specifies that the shader program should run using glsl version 300 es [e.g.] while other shader programs [e.g.] used here do not specify the glsl program version number.

Adding a consistent version 300 es declaration to the start of all programs should clear up the "Versions of linked shaders have to match" error...

duhaime added a commit to duhaime/tfjs-tsne that referenced this issue Apr 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants