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.

[Android] Error on Live Demos: Failed to compile fragment shader.

See original GitHub issue

I accessed the demo site (https://justadudewhohacks.github.io/face-api.js/face_and_landmark_detection/) on my Android device, but the face detection didn’t work.

There was such an error.

Uncaught (in promise) Error: Failed to compile fragment shader.
    at createFragmentShader (/face-api.js/0-e459655e1a7a45356a06.js:250)
    at e.createProgram (/face-api.js/0-e459655e1a7a45356a06.js:250)
    at compileProgram (/face-api.js/0-e459655e1a7a45356a06.js:250)
    at /face-api.js/0-e459655e1a7a45356a06.js:250
    at e.getAndSaveBinary (/face-api.js/0-e459655e1a7a45356a06.js:250)
    at e.compileAndRun (/face-api.js/0-e459655e1a7a45356a06.js:250)
    at e.conv2d (/face-api.js/0-e459655e1a7a45356a06.js:250)
    at ENV.engine.runKernel.x (/face-api.js/0-e459655e1a7a45356a06.js:250)
    at /face-api.js/0-e459655e1a7a45356a06.js:250
    at e.scopedRun (/face-api.js/0-e459655e1a7a45356a06.js:250)

My device: Android 6.0.1 Chrome 70.0.3538.30 SONY Xperia A4

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
justadudewhohackscommented, Nov 28, 2018

That’s odd, may be some issue with the WebGL backend on your device. Did run any tfjs application on your Xperia before? If not you could try setting up a simple page running a conv2d operation, to see whether it is an issue with your device and if so report an issue at tfjs.

0reactions
IbrahimAliAsgharcommented, Nov 10, 2021

having the same issue on Oppo A37, is there a patch/solution available to this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

java - Unable to compile opengl fragment shader in android
NB: Using the glsl plugin in android and code is stored inside raw folder.Anyway, i'am able to compile and run some other sample...
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 >
Tag: vertex shader - Learn OpenGL ES
Finally, we load in our shaders and compile them. The code for this is essentially identical to Android; please see “Defining vertex and...
Read more >
ShaderEffect QML Type | Qt Quick - Felgo
Error - the shader program failed to compile or link. When setting the fragment or vertex shader source code, the status will become...
Read more >
Basic Shader Programming on Android - CodeProject
It returns String which contains more descriptive error messages. The following code snippet shows steps to compile shader source. Java. Shrink ...
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