spinalcordtoolbox / sct_docker

Docker distribution of Spinal Cord Toolbox
3 stars 3 forks source link

Unable to access the X Display on OSX on 4.2.1. #44

Open alexfoias opened 4 years ago

alexfoias commented 4 years ago

I did a pull of the docker neuropoly/sct:sct-v4.2.1-official

docker pull neuropoly/sct:sct-v4.2.1-official
mkdir ~/docker_shared_folder
docker run -p 2222:22 --rm -it -v ~/docker_shared_folder://home/sct/docker_shared_folder neuropoly/sct:sct-v4.2.1-official
defaults write org.macosforge.xquartz.X11 enable_iglx -bool true

When running sct_check_dependencies:

sct_check_dependencies 

--
Spinal Cord Toolbox (4.2.1)

SCT info:
- version: 4.2.1
- path: /home/sct/sct_4.2.1
OS: linux (Linux-4.9.184-linuxkit-x86_64-with-debian-buster-sid)
CPU cores: Available: 4, Used by SCT: 4
RAM: MemTotal:        4042196 kB
total        used        free      shared  buff/cache   available
Mem:           3947         382         464           0        3100        3281
Swap:          1023           0        1023
Check Python executable.............................[OK]
  Using bundled python 3.6.10 |Anaconda, Inc.| (default, Jan  7 2020, 21:14:29) 
[GCC 7.3.0] at /home/sct/sct_4.2.1/python/envs/venv_sct/bin/python
Check if data are installed.........................[OK]
Check if numpy is installed.........................[OK] (1.17.4)
Check if cryptography is installed..................[OK] (2.8)
Check if dipy is installed..........................[OK] (1.0.0)
Check if futures is installed.......................[OK]
Check if h5py is installed..........................[OK] (2.10.0)
Check if Keras is installed.........................[OK] (2.3.1)
Check if matplotlib is installed....................[OK] (3.1.2)
Check if nibabel is installed.......................[OK] (3.0.0)
Check if pandas is installed........................[OK] (0.25.3)
Check if psutil is installed........................[OK] (5.6.7)
Check if pyqt5 (5.11.3) is installed................[OK]
Check if pytest is installed........................[OK] (5.3.2)
Check if pytest-cov is installed....................[OK] (2.8.1)
Check if raven is installed.........................[OK]
Check if requests is installed......................[OK] (2.22.0)
Check if scipy is installed.........................[OK] (1.4.0)
Check if scikit-image is installed..................[OK] (0.16.2)
Check if scikit-learn is installed..................[OK] (0.22)
Check if tensorflow is installed....................[OK] (2.0.0)
Check if xlrd is installed..........................[OK] (1.2.0)
Check if xlutils is installed.......................[OK]
Check if xlwt is installed..........................[OK] (1.3.0)
Check if tqdm is installed..........................[OK] (4.40.2)
Check if transforms3d is installed..................[OK] (0.3.1)
Check if urllib3[secure] is installed...............[OK] (1.25.7)
Check if spinalcordtoolbox is installed.............[OK]
Check ANTs compatibility with OS ...................[OK]
Check PropSeg compatibility with OS ................[OK]
Check if DISPLAY variable is set....................[OK]
Check if figure can be opened with PyQt.............QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-sct'
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
[OK]

When trying to open fsleyes

sct@aec4bf3dc413:~$ fsleyes

(fsleyes:5057): Gdk-ERROR **: 18:19:42.709: The program 'fsleyes' received an X Window System error.
This probably reflects a bug in the program.
The error was 'GLXBadContext'.
  (Details: serial 391 error_code 160 request_code 149 (GLX) minor_code 6)
  (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 GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
Trace/breakpoint trap