Really sorry for the long post. I am a new MRTrix user from UMass trying to visualize DTI data from patients in a mindfulness study. I have a brand new IMac Pro machine which should support up to OpenGL 4.1. I installed MRTrix through homebrew per Building MRtrix3 from source — MRtrix3 3.0 documentation , including QT and other dependencies, and my MRView seems to open a blank window with no tools or images (I tried structural, functional, and DTI .nii and .mif files).
Several troubleshooting steps I’ve taken was to create an mrtrix.conf file in my /etc/ folder with:
NeedOpenGLCoreProfile: 0
Which then instead of launching MRView as a blank screen will then crash with errors:
mrview: [WARNING] unable to determine OpenGL version - operation may be unstable if actual version is less than 3.3
mrview: [ERROR] GLSL log [vertex shader]: ERROR: 0:1: ‘’ : version ‘330’ is not supported
ERROR: 0:1: ‘’ : syntax error: #version
ERROR: 0:2: ‘layout’ : syntax error: syntax error
mrview: [ERROR] error compiling OpenGL vertex shader ID 1
My QT version is 5.12.0 . Also, per: openGL problem with mrview on Mac OSX I ran (pasted into my command line directly): export PATH=brew --prefix/opt/qt5/bin:$PATH
Which didn’t seem to change anything.
I’m really frustrated and at my wit’s end, so any advice is appreciated. Thank you!
This seems to be the same issue as detailed in Help installing in macos mojave 10.14.2 but I don’t really understand how the user went about fixing the issue and getting the results in the last post.
I can reproduce the issue on my macbook pro with macOS Mojave 10.14.3. As the issue happened right after I upgraded the Qt version recently, I suspect that the problem might be related to some changes in Qt:
I have tested MRtrix3 installation with Qt version 5.11.3, 5.12.0, and 5.12.1 (via a manual link to Qt libraries). The issue appeared only on 5.12.0. On my laptop, the issue came up when I opened multiple mrview windows (i.e. the first window was fine, but all the later ones went wrong). Also, if I had some other software packages running in the first place (e.g. Matlab), then the issue appeared on my first mrview window.
So, I would suggest trying with Qt 5.12.1; it works all fine for me.
For future replication/to summarize, I downloaded the QT installer, uninstalled the current qt version with
brew uninstall --ignore-dependencies qt
if it was installed by homebrew, or by running the “maintenance tool” in the qt install directory if it was manually installed. I then used the downloaded QT installer to set up specifically QT version 5.12.1 to the /Users/username directory, and then ran