mtex icon indicating copy to clipboard operation
mtex copied to clipboard

Matlab 2019a crash with MTEX 5.5.1

Open neilmanck opened this issue 4 years ago • 7 comments

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 avatar Dec 14 '20 14:12 neilmanck

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

neilmanck avatar Dec 14 '20 14:12 neilmanck

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

Cheers, Rüdiger

kilir avatar Dec 14 '20 14:12 kilir

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 [email protected] 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 .

neilmanck avatar Dec 14 '20 15:12 neilmanck

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

Ralf.

ralfHielscher avatar Dec 15 '20 07:12 ralfHielscher

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 [email protected] 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 .

neilmanck avatar Dec 15 '20 10:12 neilmanck

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: [email protected] D-09126 Chemnitz http://www.tu-chemnitz.de/~rahi


On Tue, Dec 15, 2020 at 11:59 AM neilmanck [email protected] 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 [email protected] 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 .

ralfHielscher avatar Dec 15 '20 13:12 ralfHielscher

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

  • it is a 4-core Intel i7-3820 at 3.6 GHz.

regards, Neil

On Tue, Dec 15, 2020 at 2:02 PM Ralf Hielscher [email protected] 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: [email protected] D-09126 Chemnitz http://www.tu-chemnitz.de/~rahi


On Tue, Dec 15, 2020 at 11:59 AM neilmanck [email protected] 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 <[email protected]

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 .

neilmanck avatar Dec 15 '20 19:12 neilmanck