Skip to content
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

freeview doesn't open when ssh -X'd from mac #1

Closed
toddt opened this issue Sep 28, 2011 · 3 comments
Closed

freeview doesn't open when ssh -X'd from mac #1

toddt opened this issue Sep 28, 2011 · 3 comments

Comments

@toddt
Copy link

toddt commented Sep 28, 2011

When I log into ba3 using ssh -X from a mac, I can't open freeview. People are able to open freeview when ssh'ing in from a linux system, or using vnc.


from iTerm on a mac:

ssh -X ba3.mit.edu
(initialize freesurfer stuff)

$ which freeview
/software/Freesurfer/5.0.0/bin/freeview

$ freeview
Xlib: extension "RANDR" missing on display "localhost:18.0".
The program 'freeview.bin' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadValue (integer parameter out of range for operation)'.
(Details: serial 19 error_code 2 request_code 146 minor_code 3)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)

@satra
Copy link
Contributor

satra commented Sep 28, 2011

this problem does not exist when i connect to mgh (uses centos) using the same method.

@satra
Copy link
Contributor

satra commented Sep 28, 2011

Update: i think this has something to do with the drivers installed on the machine.

$ ssh -Y ba3
$ . fss cvs
Setting FSLDIR to /usr/share/fsl/4.1
-------- freesurfer-Linux-centos5_x86_64-dev-20110923 --------
Setting up environment for FreeSurfer/FS-FAST (and FSL)
FREESURFER_HOME /software/Freesurfer/cvs
FSFAST_HOME /software/Freesurfer/cvs/fsfast
FSF_OUTPUT_FORMAT nii.gz
SUBJECTS_DIR /software/Freesurfer/5.1.0/subjects
MNI_DIR /software/Freesurfer/cvs/mni
FSL_DIR /usr/share/fsl/4.1
You are now set up to use Freesurfer cvs.
$ which freeview
/software/Freesurfer/cvs/bin/freeview
$ freeview
X Error: BadValue (integer parameter out of range for operation) 2
Extension: 150 (Uknown extension)
Minor opcode: 3 (Unknown request)
Resource id: 0x22
Abort

$ glxgears
Error: couldn't get an RGB, Double-buffered visual

this problem does not happen on the machine 'computor' which has nvidia drivers installed.

@satra
Copy link
Contributor

satra commented Oct 3, 2011

thanks matt

you can see glxgears working in NX if you type:
export LIBGL_ALWAYS_INDIRECT=yes
in the terminal before running glxgears. it's not fast, but it works. i think the same holds true for VNC.
-matt

@satra satra closed this as completed Oct 3, 2011
@tylerper tylerper mentioned this issue Oct 17, 2011
satra pushed a commit that referenced this issue Mar 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants