tensorflow / tensorboard

TensorFlow's Visualization Toolkit
Apache License 2.0
6.71k stars 1.66k forks source link

Graph visualizations do not render in Firefox #2862

Open xv1nx opened 5 years ago

xv1nx commented 5 years ago

Hi,

i fresh installed my environment and noticed that the visualization of graphs stop working. All other visualization work just fine (scalar, images, histograms, ...). I always get the error:

Graph visualization failed. Error: The graph is empty. This can happen when TensorFlow could not trace any graph. Please refer to https://github.com/tensorflow/tensorboard/issues/1961 for more information

This error always show up and also on old log, which worked perfectly on my old environment. The mentioned ticket is related to Tensorflow 2.0, but i am using TF 1.14

Environment information (required)

Diagnostics

Diagnostics output `````` --- check: autoidentify INFO: diagnose_tensorboard.py version 4725c70c7ed724e2d1b9ba5618d7c30b957ee8a4 --- check: general INFO: sys.version_info: sys.version_info(major=3, minor=6, micro=8, releaselevel='final', serial=0) INFO: os.name: posix INFO: os.uname(): posix.uname_result(sysname='Linux', nodename='container25647', release='4.15.0-66-generic', version='#75-Ubuntu SMP Tue Oct 1 05:24:09 UTC 2019', machine='x86_64') INFO: sys.getwindowsversion(): N/A --- check: package_management INFO: has conda-meta: False INFO: $VIRTUAL_ENV: None --- check: installed_packages INFO: installed: tensorboard==1.14.0 INFO: installed: tensorflow-gpu==1.14.0 INFO: installed: tensorflow-estimator==1.14.0 --- check: tensorboard_python_version INFO: tensorboard.version.VERSION: '1.14.0' --- check: tensorflow_python_version /usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint8 = np.dtype([("qint8", np.int8, 1)]) /usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:517: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint8 = np.dtype([("quint8", np.uint8, 1)]) /usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:518: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint16 = np.dtype([("qint16", np.int16, 1)]) /usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:519: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint16 = np.dtype([("quint16", np.uint16, 1)]) /usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:520: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint32 = np.dtype([("qint32", np.int32, 1)]) /usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:525: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. np_resource = np.dtype([("resource", np.ubyte, 1)]) /usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:541: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint8 = np.dtype([("qint8", np.int8, 1)]) /usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:542: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint8 = np.dtype([("quint8", np.uint8, 1)]) /usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:543: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint16 = np.dtype([("qint16", np.int16, 1)]) /usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:544: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint16 = np.dtype([("quint16", np.uint16, 1)]) /usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:545: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint32 = np.dtype([("qint32", np.int32, 1)]) /usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:550: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. np_resource = np.dtype([("resource", np.ubyte, 1)]) INFO: tensorflow.__version__: '1.14.0' INFO: tensorflow.__git_version__: 'v1.14.0-rc1-22-gaf24dc91b5' --- check: tensorboard_binary_path INFO: which tensorboard: b'/usr/local/bin/tensorboard\n' --- check: readable_fqdn INFO: socket.getfqdn(): 'container25647' --- check: stat_tensorboardinfo INFO: directory: /tmp/.tensorboard-info INFO: .tensorboard-info directory does not exist --- check: source_trees_without_genfiles INFO: tensorboard_roots (1): ['/usr/local/lib/python3.6/dist-packages']; bad_roots (0): [] --- check: full_pip_freeze INFO: pip freeze --all: absl-py==0.8.1 alembic==1.2.1 appdirs==1.4.3 astor==0.8.0 async-generator==1.10 attrs==19.3.0 backcall==0.1.0 black==19.3b0 bleach==3.1.0 certifi==2019.9.11 certipy==0.1.3 cffi==1.13.1 chardet==3.0.4 Click==7.0 cryptography==2.8 cycler==0.10.0 Cython==0.29.13 decorator==4.4.0 deepdish==0.3.6 defusedxml==0.6.0 entrypoints==0.3 gast==0.3.2 google-pasta==0.1.7 grpcio==1.24.1 h5py==2.10.0 idna==2.8 imageio==2.6.1 importlib-metadata==0.23 ipykernel==5.1.3 ipython==7.8.0 ipython-genutils==0.2.0 ipywidgets==7.5.1 jedi==0.15.1 Jinja2==2.10.3 joblib==0.14.0 json5==0.8.5 jsonschema==3.1.1 jupyter==1.0.0 jupyter-client==5.3.4 jupyter-console==6.0.0 jupyter-core==4.6.0 jupyter-tensorboard==0.1.10 jupyterhub==1.0.0 jupyterlab==1.1.4 jupyterlab-code-formatter==0.6.0 jupyterlab-server==1.0.6 Keras==2.3.1 Keras-Applications==1.0.8 Keras-Preprocessing==1.1.0 kiwisolver==1.1.0 Mako==1.1.0 Markdown==3.1.1 MarkupSafe==1.1.1 matplotlib==3.1.1 mistune==0.8.4 more-itertools==7.2.0 nbconvert==5.6.0 nbformat==4.4.0 networkx==2.4 notebook==6.0.1 numexpr==2.7.0 numpy==1.17.3 oauthlib==3.1.0 opencv-python==4.1.1.26 pamela==1.0.0 pandas==0.25.2 pandocfilters==1.4.2 parso==0.5.1 pexpect==4.7.0 pickleshare==0.7.5 Pillow==6.2.1 pip==9.0.1 prometheus-client==0.7.1 prompt-toolkit==2.0.10 protobuf==3.10.0 ptyprocess==0.6.0 pycparser==2.19 pydot==1.4.1 Pygments==2.4.2 pygobject==3.26.1 pyOpenSSL==19.0.0 pyparsing==2.4.2 pyrsistent==0.15.4 python-dateutil==2.8.0 python-editor==1.0.4 pytz==2019.3 PyWavelets==1.1.1 PyYAML==5.1.2 pyzmq==18.1.0 qgrid==1.1.1 qtconsole==4.5.5 requests==2.22.0 scikit-image==0.16.2 scikit-learn==0.21.3 scipy==1.3.1 Send2Trash==1.5.0 setuptools==41.4.0 six==1.12.0 SQLAlchemy==1.3.10 ssh-import-id==5.7 tables==3.6.0 tensorboard==1.14.0 tensorflow-estimator==1.14.0 tensorflow-gpu==1.14.0 termcolor==1.1.0 terminado==0.8.2 testpath==0.4.2 toml==0.10.0 torch==1.3.0 tornado==6.0.3 traitlets==4.3.3 urllib3==1.25.6 wcwidth==0.1.7 webencodings==0.5.1 Werkzeug==0.16.0 wheel==0.33.6 widgetsnbextension==3.5.1 wrapt==1.11.2 zipp==0.6.0 ``````
davidsoergel commented 5 years ago

Hmm. Can you provide a small example log directory that exhibits this behavior?

Also, please try this first step to narrow down where the problem is:

Open the JS console (in Chrome: View -> Developer -> Javascript Console). Reload the page and navigate to the Graph dashboard. Do you see 'Reading graph pbtxt', and if so, what messages follow that? Are any error messages visible there?

Thanks!

xv1nx commented 5 years ago

Normally i prefer to work with Firefox, but i try to follow your instruction. It turns out that the visualization works with the latest Google Chrome, but not with Firefox 60.7.2esr (32-Bit).

With the Firefox Console: grafik

Log file

log.zip

Is that what you need to know?

psybuzz commented 3 years ago

Thanks for the report, and sorry for the delay. I've downloaded the zip file, and was able to open it properly in Firefox 84.0.2 using both TensorBoard 2.4.0 and with TensorBoard 1.14.0.

image

I also tried to download the same Firefox version mentioned here, 60.7esr, but ran into issues getting the browser to work at all. I suspect it might be a bug with Mac + old Firefox on my side.

Could you please try downloading the latest Firefox, and let us know if you're still seeing this error there?

pindinagesh commented 2 years ago

@xv1nx

Could you kindly respond on the above @psybuzz's comment. Thanks