mtex-toolbox / mtex

MTEX is a free Matlab toolbox for quantitative texture analysis. Homepage:
http://mtex-toolbox.github.io/
GNU General Public License v2.0
281 stars 185 forks source link

Matlab crashes during MTEX startup #1625

Open zmichels opened 1 year ago

zmichels commented 1 year ago

What do you want to do? Install MTEX 5.8.1 on a new MacBook Air with R2022 Matlab (also tried with R2021 and other 5.X versions of MTEX) and SIP already disabled.

What data do you have? N/A

What code do you use? '''startup_mtex''' Please provide minimalist code with code in the following form

What result do you get Matlab crashes before install or startup. If open Matlab again, it crashes immediately. The only way to stop it crashing is to remove the MTEX folder from the path.

What result do you expect I expect Matlab to: [1] Not crash and [2] install MTEX.

Error Message No error message

What MTEX version do you use? I've tried R2021 (which previously worked on a different Mac and other Windows stations), and R2022 (which works on some Windows stations we have in the lab, but crashes on one -- so I don't think it's just a Mac thing).

I know that install on macs has always been an issue, and I've troubleshoot it a lot in the past... but in those cases there were errors and clear issues. In this case it just crashes and the log is unintelligible to me. Also, we have one windows-OS station that crashes identically if we try to install 5.8.X, but is fine with 5.7.X. So perhaps it's not just a Mac issue at the root?

Any ideas or suggestions? I apologize if I'm missing something simple.

Zach

kilir commented 1 year ago

Hi Zach, it's am arm-based Mac, right? Cheers, Rüdiger

zmichels commented 1 year ago

I guess I don’t know. Is there anything to do?On Nov 3, 2022, at 12:56 PM, Rüdiger Kilian @.***> wrote: Hi Zach, it's am arm-based Mac, right? Cheers, Rüdiger

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

kilir commented 1 year ago

I meant an M1 or M2 based computer. If so, Matlab should at least run natively since 2022b (?), Ithink. Does it still crash when you remove the relevant binaries from the extern/nfft extern/nfft_openmMP?

zmichels commented 1 year ago

Hi Rüdiger,Thanks for your help!It is M2. Matlab runs fine until I try to install MTEX, then it crashes and continues to crash at startup until I remove MTEX (I assume because Matlab is again trying to initialize MTEX on startup).Are all the binaries to be removed? Or… how to know which are most relevant?On Nov 3, 2022, at 1:09 PM, Rüdiger Kilian @.***> wrote: I meant an M1 or M2 based computer. If so, Matlab should at least run natively since 2022b (?), Ithink. Does it still crash when you remove the relevant binaries from the extern/nfft extern/nfft_openmMP?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

kilir commented 1 year ago

Just move those from nfft away to see it those are to blame.

zmichels commented 1 year ago

Ok… yeah… now it does NOT crash (YAY! Thank you!)… and like previous installs it builds some binaries but complains about NFFT. I’ll try workarounds from before and see if I can get it going.

Thank you!!! Zach

On Nov 3, 2022, at 1:17 PM, Rüdiger Kilian @.***> wrote:

Just move those from nfft away to see it those are to blame.

— Reply to this email directly, view it on GitHub https://github.com/mtex-toolbox/mtex/issues/1625#issuecomment-1302618331, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACC5AU5NR6M2Q2MCVS2UU23WGQMVRANCNFSM6AAAAAARWOYYOI. You are receiving this because you authored the thread.

zmichels commented 1 year ago

Yahp. At first I couldn't get it to work with my usual set of binaries I had downloaded a while back from here:

https://www-user.tu-chemnitz.de/~potts/nfft/download.php#matlab

... But then I went back to that link now and saw there are some specifically for the new Macs. Got those and added them, and now everything built without errors. Thanks again and cheers!

HamishB commented 1 year ago

See also issues #1778 and #1493.