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.

API Reference code examples not working in chrome (ubuntu 16.04) when using WebGL

See original GitHub issue

TensorFlow.js version

all Versions

Browser version

Version 65.0.3325.181 (Official Build) (64-Bit)

Describe the problem or feature request

Many code examples from the API Reference are not working in Chrome for Ubuntu e.g. tf.fromPixels. Output in Firefox is [ [[100, 150, 200],]] Output in Chrome is [ [[0, 0, 0],]]

When I disable WebGL trough an extension the code works as expected also in Chrome. In Firefox on Ubuntu everything is working as expected.

Other examples: tf.cast, tf.pad, tf.concat, tf.gather, tf.reverse, tf.slice, tf.split, tf.stack (and many more) Output is always zero.

Code to reproduce the bug / link to feature request

https://js.tensorflow.org/api/0.9.0/#fromPixels

My System:

CPU: Intel® Core™ i7-7820X CPU @ 3.60GHz GPU: 2x Nvidia Titan Xp 64GB Ram Nvidia Drivers: NVIDIA binary driver - version 390.48 from nvidia-390 (open source)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
tafsiricommented, Apr 23, 2018

@xam-ps thanks for reporting this. We recently added a debug page to help us diagnose possible causes, could you go to https://js.tensorflow.org/debug/ and post a screenshot of what you see there?

0reactions
rikkertkoppescommented, Sep 5, 2018

Also having problems image tf.version image

On ubuntu 16.04 LTS. Also no problems on Firefox

Read more comments on GitHub >

github_iconTop Results From Across the Web

how do I enable WebGL? - google chrome - Ask Ubuntu
I'm going to dive into browser game development and thus I need webGL but it does not work in any browser here on...
Read more >
Chromium using ANGLE gl driver and VA-API not working on ...
Chromium using ANGLE gl driver and VA-API not working on Ubuntu 20.04 #91 ... MSAA samples 16 Machine model name Machine model version...
Read more >
53823 - WebGL doesnot work on arm device - chromium
I'll enhance the EGL logging code so it outputs the error code so we can track down the problem. I should get it...
Read more >
how to force chrome to use mesa software driver for webgl
I'm using Ubuntu Linux and I understand that the Mesa GL drivers can be forced to use a software implementation by specifying the...
Read more >
How can I enable WebGL in my browser? - Super User
Chrome · Ensure that Disable WebGL is not activated (you'll need to relaunch Chrome for any changes to take effect) · In newer...
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