help > Latest MRIcroGL not launching on Apple M1
Showing 1-11 of 11 posts
Display:
Results per page:
Nov 12, 2021  05:11 AM | Javier Urriola
Latest MRIcroGL not launching on Apple M1
Hi, I have problems with the latest oct 2021 MRIcroGL version on my M1 MacBook. Since I downloaded the .dmg file it does not launch but it consuming 99% of cpu.
Regards, 

Javier
Nov 12, 2021  12:11 PM | Chris Rorden
RE: Latest MRIcroGL not launching on Apple M1
Neither I nor Taylor Hanayik (using a different computer) can replicate your issue. I do know that some users have reported that some browsers have issues with the NITRC download. The DMG file is notarized by Apple and is a Universal application that runs natively on the M1. Can you please try these commands:


1. Try dmg from here
https://www.nitrc.org/projects/mricrogl/

2. Try dmg from here
https://github.com/rordenlab/MRIcroGL/re...

3. Report OS version and hardware via this terminal command:

sw_vers
system_profiler SPHardwareDataType


-----------
Here is what Taylor reports for these steps. As he notes, even the lowest end 7-core GPU of the M1 MacBook Air has amazing performance. I would suggest for M1 users they choose the "Render Quality: Best" from the Preferences menu, as there is no need for the faster but lower quality modes. 


I have tried both download links. MRIcroGL installs, opens, and runs as expected using both links (the performance is incredible in render mode BTW). Maybe you can have the user post the output from sw_vers as well?

ProductName: macOS
ProductVersion: 12.0.1
BuildVersion: 21A559
Hardware:
Hardware Overview:
Model Name: MacBook Pro
Model Identifier: MacBookPro18,3
Chip: Apple M1 Pro
Total Number of Cores: 8 (6 performance and 2 efficiency)
Memory: 16 GB
System Firmware Version: 7429.41.5
OS Loader Version: 7429.41.5
Serial Number (system): L0JQT3H63D
Hardware UUID: D5F43FC3-FB01-51A1-8DB5-CCE160246595
Provisioning UDID: 00006000-000A49C821D2801E
Activation Lock Status: Enabled
Nov 15, 2021  07:11 AM | Javier Urriola
RE: Latest MRIcroGL not launching on Apple M1
Thank you Chris for the reply. I followed the links and tried them but it gets stuck trying to open the application.
I can run surf ice, mricro and they run flawlessly but mricroGL is the only one that fails to install after the October update (I installed MRIcroGL prior to October and it was working fine). 

Here are the details:
~$system_profiler SPHardwareDataType
Hardware:

Hardware Overview:
Model Name: MacBook Pro
Model Identifier: MacBookPro17,1
Chip: Apple M1
Total Number of Cores: 8 (4 performance and 4 efficiency)
Memory: 16 GB
System Firmware Version: 6723.140.2
OS Loader Version: 6723.140.2
Serial Number (system):
Hardware UUID: F69AA69D-2B08-5B55-9DFF-CCE4AC5363DC
Provisioning UDID: 00008103-000C542826A3001E
Activation Lock Status: Disabled

Also please find the video with the problem in the following link: https://www.dropbox.com/s/gplqfjkw4w3gt0n/Installation_problem_MRIcroGL_AppleSilicon.mp4?dl=0

Thank you Chris in advance, 

Best regards, 

Javier
Nov 15, 2021  12:11 PM | Chris Rorden
RE: Latest MRIcroGL not launching on Apple M1
Javier,

This is tricky, as neither Taylor (macOS 12.0, M1 Pro) nor I (macOS11.5, M1) can replicate this. If you are having this problem, it is likely others will. I develop MRIcroGL on an Apple M1, and the dmg file is notarized by Apple.

1. What do you see if you run this from the terminal:
 sw_vers

2. What do you see if you run this from the terminal:
 locale

3. What do you see when you launch MRIcroGL from the command line, e.g.
 /Applications/MRIcroGL.app/Contents/MacOS/MRIcroGL

4. What do you see when you reset MRIcroGL from the command line, e.g.
 /Applications/MRIcroGL.app/Contents/MacOS/MRIcroGL -R
Nov 15, 2021  12:11 PM | Javier Urriola
RE: Latest MRIcroGL not launching on Apple M1
Hi Chris thank you for your prompt reply, it seems that it is looking for AfniDir. I don't have AFNI in this machine and have never defined a path for it. Please find it below the result from the terminal:

~$sw_vers
ProductName: macOS
ProductVersion: 11.6
BuildVersion: 20G165
~$
~$locale
LANG="en_AU.UTF-8"
LC_COLLATE="en_AU.UTF-8"
LC_CTYPE="en_AU.UTF-8"
LC_MESSAGES="en_AU.UTF-8"
LC_MONETARY="en_AU.UTF-8"
LC_NUMERIC="en_AU.UTF-8"
LC_TIME="en_AU.UTF-8"
LC_ALL=
~$
~$/Applications/MRIcroGL.app/Contents/MacOS/MRIcroGL
Searching for AfniDir
Terminated: 15
~$
~$/Applications/MRIcroGL.app/Contents/MacOS/MRIcroGL -R
Searching for AfniDir

At this stage, the app continues to search using 99% resources of one core until I terminate it. I tried uninstalling the app and deleting the MRIcroGL .ini file stored in ~/Library/Application Support/MRIcroGL/ and installing the app again but did not work.
Nov 15, 2021  12:11 PM | Chris Rorden
RE: Latest MRIcroGL not launching on Apple M1
That is helpful

1. Go to here
  https://github.com/rordenlab/MRIcroGL/releases/tag/v1.2.20211006

2. Download and install the new "which" variant 
  MRIcroGL_macOS_which.dmg

3. Launch from command line and tell me what you see from the command line.

Searching for AfniDir
Running command: /bin/zsh -l -c "which afni"
Result: 0 afni not found

Running command: /bin/bash -l -c "which afni"
...
Nov 15, 2021  12:11 PM | Javier Urriola
RE: Latest MRIcroGL not launching on Apple M1
Thanks again, this is what it shows before getting stuck searching for afni:

~$/Applications/MRIcroGL.app/Contents/MacOS/MRIcroGL
Searching for AfniDir
Running command: /bin/zsh -l -c "which afni"
Result: 0 afni not found

Running command: /bin/bash -l -c "which afni"
Nov 15, 2021  01:11 PM | Chris Rorden
RE: Latest MRIcroGL not launching on Apple M1
Great. Can you try the process again with the latest variant:

MRIcroGL_macOS_which2.dmg
Nov 15, 2021  01:11 PM | Javier Urriola
RE: Latest MRIcroGL not launching on Apple M1
That's excellent! 
All good now, it is working from terminal as well as from the app directly :)
attached is the image with what the terminal shows
Nov 15, 2021  01:11 PM | Chris Rorden
RE: Latest MRIcroGL not launching on Apple M1
Pragmatically, I am glad this resolves your issue. However, the behavior is mysterious. Can you tell me the results of the following three commands run from your terminal:

ls -l /bin/bash
/bin/bash -l -c "which afni"
echo $?
Nov 15, 2021  01:11 PM | Javier Urriola
RE: Latest MRIcroGL not launching on Apple M1
No problem:

~$ls -l /bin/bash
-r-xr-xr-x 1 root wheel 1296704 1 Jan 2020 /bin/bash

~$/bin/bash -l -c "which afni"
-------- freesurfer-Darwin-OSX-stable-pub-v6.0.0-2beb96c --------
Setting up environment for FreeSurfer/FS-FAST (and FSL)
FREESURFER_HOME /Applications/freesurfer
FSFAST_HOME /Applications/freesurfer/fsfast
FSF_OUTPUT_FORMAT nii.gz
SUBJECTS_DIR /Applications/freesurfer/subjects
MNI_DIR /Applications/freesurfer/mni
FSL_DIR /usr/local/fsl

~$echo $?
0