-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Black png returned when using a vnc session #117
Comments
@danlipsa @doutriaux1 this is even better, when I change the: canvas = vcs.init(size=2) to canvas = vcs.init(size=2,bg=True) |
@durack1 Do you have the huss_Amon_HadGEM2-AO_historical_r1i1p1_186001-200512.nc file? |
Dan with recent updates my ubunutu seems to seg fault instantly via x forwarding. RH6 has been sending black png for a while now via x forwarding. @durack1 use the nox version, I know it sucks but that one works. |
@danlipsa this file is 187MB, it's got all the timesteps 186101 to 200512. I've pulled out a single timestep in the linked file (102KB) let me know if this isn't suitable: How do I run VNC through Virtual GL? |
@doutriaux1 just confirming to install the conda create -n uvcdat280-nox -c conda-forge -c uvcdat uvcdat vcs-nox Is that right? How about the |
@doutriaux1 is it right that both the [duro@ocean 090605_FLR2_sptp]$ conda create -n uvcdat280nox -c conda-forge -c uvcdat uvcdat vcs-nox
Fetching package metadata .............
Solving package specifications: .
Package plan for installation in environment /export/durack1/anaconda2/envs/uvcdat280nox:
The following NEW packages will be INSTALLED:
...
dv3d: 2.8-py27_2 uvcdat
dv3d-nox: 2.8-py27_2 uvcdat
...
vcs: 2.8-py27_2 uvcdat
vcs-nox: 2.8-py27_2 uvcdat
vcsaddons: 2.8-py27_2 uvcdat
vcsaddons-nox: 2.8-py27_2 uvcdat
vistrails: 2.8-2 uvcdat
vtk-cdat: 7.1.0.2.8-py27_2 uvcdat
vtk-cdat-nox: 7.1.0.2.8-py27_2 uvcdat
... |
@durack1 you want: |
@doutriaux1 perfect, I'll give that a spin |
@doutriaux1 unfortunately no luck, I successfully installed |
@doutriaux1 ok so installed the (uvcdatNightlyNox) duro@ocean:[170118_PaperPlots_input4MIPs]:[2307]> python make_paperplots.py
Traceback (most recent call last):
File "make_paperplots.py", line 9, in <module>
import vcs
File "/export/duro/anaconda2/envs/uvcdatNightlyNox/lib/python2.7/site-packages/vcs/__init__.py", line 57, in <module>
from utils import * # noqa
File "/export/duro/anaconda2/envs/uvcdatNightlyNox/lib/python2.7/site-packages/vcs/utils.py", line 6, in <module>
import boxfill
File "/export/duro/anaconda2/envs/uvcdatNightlyNox/lib/python2.7/site-packages/vcs/boxfill.py", line 25, in <module>
import VCS_validation_functions
File "/export/duro/anaconda2/envs/uvcdatNightlyNox/lib/python2.7/site-packages/vcs/VCS_validation_functions.py", line 5, in <module>
import genutil
File "/export/duro/anaconda2/envs/uvcdatNightlyNox/lib/python2.7/site-packages/genutil/__init__.py", line 5, in <module>
from grower import grower
File "/export/duro/anaconda2/envs/uvcdatNightlyNox/lib/python2.7/site-packages/genutil/grower.py", line 4, in <module>
import cdms2 as cdms
File "/export/duro/anaconda2/envs/uvcdatNightlyNox/lib/python2.7/site-packages/cdms2/__init__.py", line 33, in <module>
from dataset import createDataset, openDataset, useNetcdf3, \
File "/export/duro/anaconda2/envs/uvcdatNightlyNox/lib/python2.7/site-packages/cdms2/dataset.py", line 6, in <module>
import Cdunif
ImportError: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /export/duro/anaconda2/envs/uvcdatNightlyNox/lib/python2.7/site-packages/cdms2/Cdunif.so) |
ok... so let's try this one on the bleeding edge: |
@doutriaux1 the only |
yes, that's all you need. |
@doutriaux1 no good, basically same output as above |
@doutriaux1 doesn't help, same output: (uvcdatPatternsNox) duro@ocean:[170118_PaperPlots_input4MIPs]:[2308]> python make_paperplots.py
(uvcdatPatternsNox) duro@ocean:[170118_PaperPlots_input4MIPs]:[2308]> export LD_LIBRARY_PATH=/export/duro/anaconda2/envs/uvcdatPatternsNox/lib/
(uvcdatPatternsNox) duro@ocean:[170118_PaperPlots_input4MIPs]:[2309]> python make_paperplots.py |
hum... can you post:
|
works for me on oceanonly
|
@doutriaux1 it doesn't work, you don't get |
@doutriaux1 ok, so if I run |
ok that makes sense (sort of) @danlipsa we should look into why bg=True freaks out on mesa builds. But we could also always turn bg to True on mesa builds |
thanks @durack1 |
@doutriaux1 I can also confirm a similar (but not identically sized output file) png is generated with |
@danlipsa how do I go about running VNC through Virtual GL? While I can get graphics to write out to a file with these |
@durack1 Here are the instructions I followed to setup vnc/virtual GL on my ubuntu and connect from my mac. I used the latest version for vnc/Virtual GL rather the version specified in the instructions. I think you'll need root access on the linux machine. I mostly followed instructions from with help from: Make sure you install the 64 bit versions for virtualgl and turbovnc. Otherwise they won't work! I know because I did this first! :-( When I start the vnc server I run You can do this from ssh and pass the geometry for your own client. Where xtartup contains: [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup On the mac client I run: When running an OpenGL application instead of: # ./app type # vglrun app |
@doutriaux1 Do you install the gcc 4.8.4 package when installing cdat? This should take care of the missing symbol and will remove the need for LD_LIBRARY_PATH. |
@sankhesh I sudoed it. Anyhow I'm trying now now with vgl 2.4 which my yum was able to find and install. More soon |
@sankhesh I get the server up and running
|
Also the follwing hangs and never renders anything
|
@sankhesh do I need to connect to |
I don't think it matters how you're connected to the server. As long as you have a VNC server session running, you should have a valid X environment. |
I think it might be rendering something in the VNC display. Try connecting via VNC to see if you see the xeyes window. |
I'm not sure why the |
@sankhesh it's a total failure on crunchy. Please try.
Please try from crunchy @danlipsa can you please try on crunchy as well? Thanks. |
@sankhesh whilerunning |
Also tried via regular ssh to crunchy |
@doutriaux1 I think your setup should work. Try connecting via a VNC client and run |
@sankhesh both work fine in my turbovnc client but
|
@doutriaux1 I get the same message if I run vglrun from an ssh connected to the server. You have to run vglrun only from turbovnc connected to your server. |
@doutriaux1 This is my message: ~]$ vglrun glxgears [VGL] NOTICE: Automatically setting the DISPLAY environment variable to [VGL] 10.9.0.8:0.0, based on the IP address of your SSH client. Error: couldn't open display 10.9.0.8:0.0 [~]$ |
Awesome 👍 👏
Could you please share the output of the following two commands (when connected via TurboVNC client):
and
|
@danlipsa I am getting this while connected via turbovnc |
@sankhesh do you have an account on crunchy? I would like for you to try it. Because It's definitely not working for me from my mac. |
@doutriaux1 I don't. How do I get one? |
@hoang1 can you help out here? |
@doutriaux1 Could you please try the setup on a local desktop (Ubuntu or Red Hat)? |
@sankhesh both my linux boxes are dead right now... I'll see if I can try the setup from a vm/docker |
@sankhesh I'm going to look into this as well: https://github.com/yantis/docker-virtualgl |
https://github.com/CDAT/cdat/wiki/Remote-server-setup-for-VNC @scottwittenburg please review and let me know if it helps. |
Btw the link @danlipsa provided from the paraviewweb documention (high above), is broken now, but that documentation has moved here: https://kitware.github.io/paraviewweb/docs/virtualgl_turbovnc_howto.html |
@danlipsa @doutriaux1 I just ran the demo script BlueMarble_huss_satellite_view.html and received the appropriate graphic on the active VNC screen. What was saved to the png is below, and is certainly not what I was expecting:

This is certainly not the expected behavior. What additional information do you require to better replicate the issue:
The text was updated successfully, but these errors were encountered: