help > vglrun display error with standalone conn
Showing 1-6 of 6 posts
Display:
Results per page:
Jul 10, 2018  07:07 AM | Joseph Orr - Texas A&M University
vglrun display error with standalone conn
With version 16 of standalone conn I was able to open using 'vglrun conn' but with 17 and 18 (matlab/R2017a), I can no longer open conn, getting the error: "[VGL] ERROR: Could not open display :0"

I am pretty sure my cluster isn't having VirtualGL problems because I can open other programs with vglrun, e.g., matlab, firefox. I followed the instructions here (https://sites.google.com/view/conn/resou...) and have tried using MCR installed on its own and through a matlab module.

I can get standalone conn to open without vglrun, so I'm at a loss for what the problem is. The only thing I can think of is that the folder MCR/v92/X11 doesn't exist, so XAPPLRESDIR isn't going to be set correctly. There's no X11 folder in the matlab installation either though, and that opens with vglrun. 

Here's the full command line output:
[joseph.orr@gfx ~$ vglrun conn
[VGL] NOTICE: Automatically setting VGL_CLIENT environment variable to
[VGL] 165.91.12.191, the IP address of your SSH client.
Initializing MATLAB Runtime version 9.2
Loading MCR. Please wait...
[VGL] ERROR: Could not open display :0.

My LD_LIBRARY_PATH is set to:
/fdata/scratch/joseph.orr/software/MCR/v92/runtime/glnxa64:/fdata/scratch/joseph.orr/software/MCR/v92/bin/glnxa64:/fdata/scratch/joseph.orr/software/MCR/v92/sys/os/glnxa64

My modulefile is doing:
[joseph.orr@gfx ~$ module show conn
-------------------------------------------------------------------------------------------------------------------------------------------
/apps/psyc/psyc-modules/conn/conn18a.lua:
-------------------------------------------------------------------------------------------------------------------------------------------
conflict("matlab/R2017a")
prepend_path("PATH","/apps/psyc/conn/conn18a")
setenv("MCRROOT","/fdata/scratch/joseph.orr/software/MCR/v92")
setenv("XAPPLRESDIR","/fdata/scratch/joseph.orr/software/MCR/v92/X11/app-defaults")
prepend_path("LD_LIBRARY_PATH","/fdata/scratch/joseph.orr/software/MCR/v92/sys/os/glnxa64")
prepend_path("LD_LIBRARY_PATH","/fdata/scratch/joseph.orr/software/MCR/v92/bin/glnxa64")
prepend_path("LD_LIBRARY_PATH","/fdata/scratch/joseph.orr/software/MCR/v92/runtime/glnxa64")

Any suggestions?
Jul 11, 2018  03:07 AM | Alfonso Nieto-Castanon - McGovern Institute for Brain Research. MIT
RE: vglrun display error with standalone conn
Hi Joseph,

Could you try simply deleting all of the following lines from your module file:

   setenv("XAPPLRESDIR","/fdata/scratch/joseph.orr/software/MCR/v92/X11/app-defaults")
   prepend_path("LD_LIBRARY_PATH","/fdata/scratch/joseph.orr/software/MCR/v92/sys/os/glnxa64")
   prepend_path("LD_LIBRARY_PATH","/fdata/scratch/joseph.orr/software/MCR/v92/bin/glnxa64")
   prepend_path("LD_LIBRARY_PATH","/fdata/scratch/joseph.orr/software/MCR/v92/runtime/glnxa64")

This should allow vglrun (and Matlab) to use its own default dynamically linked libraries instead of the MCR ones.

Let me know if that works
Alfonso
Originally posted by Joseph Orr:
With version 16 of standalone conn I was able to open using 'vglrun conn' but with 17 and 18 (matlab/R2017a), I can no longer open conn, getting the error: "[VGL] ERROR: Could not open display :0"

I am pretty sure my cluster isn't having VirtualGL problems because I can open other programs with vglrun, e.g., matlab, firefox. I followed the instructions here (https://sites.google.com/view/conn/resou...) and have tried using MCR installed on its own and through a matlab module.

I can get standalone conn to open without vglrun, so I'm at a loss for what the problem is. The only thing I can think of is that the folder MCR/v92/X11 doesn't exist, so XAPPLRESDIR isn't going to be set correctly. There's no X11 folder in the matlab installation either though, and that opens with vglrun. 

Here's the full command line output:
[joseph.orr@gfx ~$ vglrun conn
[VGL] NOTICE: Automatically setting VGL_CLIENT environment variable to
[VGL] 165.91.12.191, the IP address of your SSH client.
Initializing MATLAB Runtime version 9.2
Loading MCR. Please wait...
[VGL] ERROR: Could not open display :0.

My LD_LIBRARY_PATH is set to:
/fdata/scratch/joseph.orr/software/MCR/v92/runtime/glnxa64:/fdata/scratch/joseph.orr/software/MCR/v92/bin/glnxa64:/fdata/scratch/joseph.orr/software/MCR/v92/sys/os/glnxa64

My modulefile is doing:
[joseph.orr@gfx ~$ module show conn
-------------------------------------------------------------------------------------------------------------------------------------------
/apps/psyc/psyc-modules/conn/conn18a.lua:
-------------------------------------------------------------------------------------------------------------------------------------------
conflict("matlab/R2017a")
prepend_path("PATH","/apps/psyc/conn/conn18a")
setenv("MCRROOT","/fdata/scratch/joseph.orr/software/MCR/v92")
setenv("XAPPLRESDIR","/fdata/scratch/joseph.orr/software/MCR/v92/X11/app-defaults")
prepend_path("LD_LIBRARY_PATH","/fdata/scratch/joseph.orr/software/MCR/v92/sys/os/glnxa64")
prepend_path("LD_LIBRARY_PATH","/fdata/scratch/joseph.orr/software/MCR/v92/bin/glnxa64")
prepend_path("LD_LIBRARY_PATH","/fdata/scratch/joseph.orr/software/MCR/v92/runtime/glnxa64")

Any suggestions?
Jul 11, 2018  08:07 AM | Joseph Orr - Texas A&M University
RE: vglrun display error with standalone conn
Thanks for the suggestion. I tried removing those lines, but still get the error.

[joseph.orr@gfx hcp$ vglrun run_mcc ./conn
INFO: Copying ./conn to /tmp/.joseph.orr/./conn
Initializing MATLAB Runtime version 9.2
Loading MCR. Please wait...
Opening log file: /home/joseph.orr/java.log.16869
[VGL] ERROR: Could not open display :0.
The java.log doesn't seem to contain any useful information:
[joseph.orr@gfx hcp$ more /home/joseph.orr/java.log.16869
Operating System: Linux 2.6.32-696.28.1.el6.x86_64 #1 SMP Wed May 9 23:09:02 U
TC 2018 x86_64
Processor ID: x86 Family 111 Model 1 Stepping 2, AuthenticAMD
Host Name: gfx.brazos.tamu.edu
Picked up _JAVA_OPTIONS: -Xmx256m
Jul 12, 2018  02:07 PM | Alfonso Nieto-Castanon - McGovern Institute for Brain Research. MIT
RE: vglrun display error with standalone conn
Hi Joseph,

I do not believe this is related to the XAPPLRESDIR environment variable, as far as I can tell that seems to be actually disregarded in recent MCR versions (older than 8.5 -2015-). Just a few general questions to see if I can better understand / reproduce this issue, could you please let me know:

1) which version of conn standalone are you using (and whether you compiled it yourself or downloaded a pre-compiled version)
2) which client software you are using (e.g. TurboVNC)
3) what are the values of the environment variables DISPLAY, VGL_CLIENT, and VGL_DISPLAY in your system
4) test whether "vglrun matlab" runs normally, and let me know the output of the command "opengl info" from Matlab right after it starts

Thanks
Alfonso

Originally posted by Joseph Orr:
Thanks for the suggestion. I tried removing those lines, but still get the error.

[joseph.orr@gfx hcp$ vglrun run_mcc ./conn
INFO: Copying ./conn to /tmp/.joseph.orr/./conn
Initializing MATLAB Runtime version 9.2
Loading MCR. Please wait...
Opening log file: /home/joseph.orr/java.log.16869
[VGL] ERROR: Could not open display :0.
The java.log doesn't seem to contain any useful information:
[joseph.orr@gfx hcp$ more /home/joseph.orr/java.log.16869
Operating System: Linux 2.6.32-696.28.1.el6.x86_64 #1 SMP Wed May 9 23:09:02 U
TC 2018 x86_64
Processor ID: x86 Family 111 Model 1 Stepping 2, AuthenticAMD
Host Name: gfx.brazos.tamu.edu
Picked up _JAVA_OPTIONS: -Xmx256m
Jul 12, 2018  06:07 PM | Joseph Orr - Texas A&M University
RE: vglrun display error with standalone conn
>
Thanks Alfonso - looks like I may have been wrong about VirtualGL working
correctly on my cluster. I had based this on vglrun working with firefox
and matlab, but after following your suggestions, I noticed that
VGL_DISPLAY was not set. I followed some troubleshooting steps on
virtualgl.org and found that glxgears wasn't opening and that firefox and
matlab were actually being rendered with software openGL. So the issue does
seem to be on my cluster, which makes more sense than standalone conn just
ceasing to work through VGL.

Thanks for your time!


> 1. conn17f (precompiled), conn18a (compiled)
>
2. xquartz with vglconnect
3. DISPLAY: gfx.brazos.tamu.edu:11.0; VGL_CLIENT: localhost;
VGL_DISPLAY: not set. VGL_DISPLAY not being set seemed odd, so I tried
setting it to :0.0 and tested with 'vglrun glxgears', and I got the same
error: [VGL] ERROR: Could not open display :0.0. This error occurred
without VGL_DISPLAY being set.
4. I had been able to open firefox and matlab with vglrun, but I just
noticed that when I open 'vglrun matlab' the command line says 'MATLAB is
selecting SOFTWARE OPENGL rendering.'. So it looks like the problem is with
VGL on my cluster, not with conn, and firefox and matlab hadn't been
running via OpenGL like I previously thought.

Jul 13, 2018  05:07 AM | Alfonso Nieto-Castanon - McGovern Institute for Brain Research. MIT
RE: vglrun display error with standalone conn
Hi Joseph,

That makes sense. Just a couple of suggestions in case these help: 1) I would suggest perhaps trying TurboVNC (instead of xquartz), even if just for debugging purposes in order to bypass any potential issues related to the X display on your client-side; and 2) using "vglrun matlab -nosoftwareopengl" instead of "vglrun matlab" when testing will force Matlab to avoid software OpenGL if at all possible

Good luck!
Alfonso