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
275 stars 182 forks source link

Matlab 2019a crash with MTEX 5.5.1 #630

Open neilmanck opened 3 years ago

neilmanck commented 3 years ago

What do you want to do?

What data do you have?

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

% load the data
ebsd = EBSD.load('myFile.txt')

% plot a pole figure
plotPDF(ebsd,Miller(1,0,0,ebsd.CS)

What result do you get

What result do you expect

Error Message If you get an error message copy and paste it below

put the error message here

What MTEX version do you use?

neilmanck commented 3 years ago

Capture

Matlab 2019a on Windows 10 crashes with startup_mtex for version 5.5.1

All previous versions of MTEX have always loaded just fine (e.g. most recently 5.3 and 5.4.0, which continue to work OK)

regards, Neil

kilir commented 3 years ago

Hi, have you had a look here? https://github.com/mtex-toolbox/mtex/issues/614

Cheers, Rüdiger

neilmanck commented 3 years ago

Dear Rüdiger, Thanks for the head-up. Yes, replacing the contents of the extern/nfft and extern/nfft:openMP folders in 5.5.1 with those from 5.4 solves the problem. Maybe it might be a good idea to make this change in the actual download zip and call it 5.5.2? cheers, Neil Mancktelow Alireza25101989 https://github.com/Alireza25101989 commented 10 days ago https://github.com/mtex-toolbox/mtex/issues/614#issuecomment-738804855

Could you please provide an error message. I also wonder, what file format your data have.

Ralf.

Dear Ralf

I deleted the content of the extern/nfft or extern/nfft:openMP folders, and now the MTEX installs properly.

Regards Alireza [image: @ralfHielscher] https://github.com/ralfHielscher

Member ralfHielscher https://github.com/ralfHielscher commented 10 days ago https://github.com/mtex-toolbox/mtex/issues/614#issuecomment-738808443

Actually removing the content of the folders restricts the functionality of MTEX. You may try to copy the content of the folders from MTEX 5.4.0 to the corresponding folders in MTEX 5.5.

Does this work?

Ralf.

On Mon, Dec 14, 2020 at 3:54 PM Rüdiger Kilian notifications@github.com wrote:

Hi, have you had a look here? #614 https://github.com/mtex-toolbox/mtex/issues/614

Cheers, Rüdiger

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

ralfHielscher commented 3 years ago

We have just released MTEX 5.5.2. Could you please test it.

Ralf.

neilmanck commented 3 years ago

Hi Ralf,

MTEX 5.5.2 loads in MATLAB 2019b without crashing but it is slower than previous versions to start-up and I get this warning message, which I have never had before.

regards, Neil

startup_mtex initialize MTEX 5.5.2 .... done!

For compatibility reasons MTEX is not using OpenMP. You may want to switch on OpenMP in the file mtex_settings.m

MTEX 5.5.2 (show documentation) Import pole figure data Import EBSD data Import ODF data

Uninstall MTEX

On Tue, Dec 15, 2020 at 8:24 AM Ralf Hielscher notifications@github.com wrote:

We have just released MTEX 5.5.2. Could you please test it.

Ralf.

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

ralfHielscher commented 3 years ago

How much is it slower?

The background for all these is that the binaries are compatible with different CPUs and differently performant. Traditionally we have included two binaries:

Starting with MTEX 5.5 we compiled the binaries for more modern CPUs. This means they are faster on modern CPUs but crash on older ones. As a solution for the problem I replaces in MTEX 5.5.2 the non-openMP binaries with the old non-openMP binaries and default to them.

Is this understandable?

Ralf.

The warning message is intentional.


Ralf Hielscher Tel: +371-531-38556 Fakultät für Mathematik +371-531-22200 (Sekr.) Technische Universität Chemnitz Fax: +371-531-22109 Reichenhainer Str. 39 E-mail: ralf.hielscher@mathematik.tu-chemnitz.de D-09126 Chemnitz http://www.tu-chemnitz.de/~rahi


On Tue, Dec 15, 2020 at 11:59 AM neilmanck notifications@github.com wrote:

Hi Ralf,

MTEX 5.5.2 loads in MATLAB 2019b without crashing but it is slower than previous versions to start-up and I get this warning message, which I have never had before.

regards, Neil

startup_mtex initialize MTEX 5.5.2 .... done!

For compatibility reasons MTEX is not using OpenMP. You may want to switch on OpenMP in the file mtex_settings.m

MTEX 5.5.2 (show documentation) Import pole figure data Import EBSD data Import ODF data

Uninstall MTEX

On Tue, Dec 15, 2020 at 8:24 AM Ralf Hielscher notifications@github.com wrote:

We have just released MTEX 5.5.2. Could you please test it.

Ralf.

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

.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mtex-toolbox/mtex/issues/630#issuecomment-745214774, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACBYJ2J5IOFJB6LBBR5RAA3SU46QPANCNFSM4U22VGKA .

neilmanck commented 3 years ago

Hi Ralf,

I only mean a bit slower (a minute or so) during the initialization using startup_mtex. With regard to your answer, is my previous "solution" of replacing the contents of the extern/nfft and extern/nfft:openMP folders in 5.5.1 with those from 5.4 not effectively the same thing - without the warning message. After making this change, the previous 5.5.1 version worked fine for my code - I did not have any further problems. With my "solution" the loading was also as fast as always. I do not have the most up-to-date machine but it is not really so old as to be considered obsolete

regards, Neil

On Tue, Dec 15, 2020 at 2:02 PM Ralf Hielscher notifications@github.com wrote:

How much is it slower?

The background for all these is that the binaries are compatible with different CPUs and differently performant. Traditionally we have included two binaries:

  • one with openMP
  • one without openMP

Starting with MTEX 5.5 we compiled the binaries for more modern CPUs. This means they are faster on modern CPUs but crash on older ones. As a solution for the problem I replaces in MTEX 5.5.2 the non-openMP binaries with the old non-openMP binaries and default to them.

Is this understandable?

Ralf.

The warning message is intentional.


Ralf Hielscher Tel: +371-531-38556 Fakultät für Mathematik +371-531-22200 (Sekr.) Technische Universität Chemnitz Fax: +371-531-22109 Reichenhainer Str. 39 E-mail: ralf.hielscher@mathematik.tu-chemnitz.de D-09126 Chemnitz http://www.tu-chemnitz.de/~rahi


On Tue, Dec 15, 2020 at 11:59 AM neilmanck notifications@github.com wrote:

Hi Ralf,

MTEX 5.5.2 loads in MATLAB 2019b without crashing but it is slower than previous versions to start-up and I get this warning message, which I have never had before.

regards, Neil

startup_mtex initialize MTEX 5.5.2 .... done!

For compatibility reasons MTEX is not using OpenMP. You may want to switch on OpenMP in the file mtex_settings.m

MTEX 5.5.2 (show documentation) Import pole figure data Import EBSD data Import ODF data

Uninstall MTEX

On Tue, Dec 15, 2020 at 8:24 AM Ralf Hielscher <notifications@github.com

wrote:

We have just released MTEX 5.5.2. Could you please test it.

Ralf.

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

https://github.com/notifications/unsubscribe-auth/ASDZKW7WTL3XON562GGBT5DSU4FJTANCNFSM4U22VGKA

.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <https://github.com/mtex-toolbox/mtex/issues/630#issuecomment-745214774 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/ACBYJ2J5IOFJB6LBBR5RAA3SU46QPANCNFSM4U22VGKA

.

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