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

MTEX compatible with MatLab 2022b? #1493

Open masalpert opened 2 years ago

masalpert commented 2 years ago

Trying to setup METX with MatLab 2022b. When I follow the instructions in the GettingStartedwithMTEX... doc and run startup_mtex I get an immediate error:

Any help would be greatly appreciated as now when I open MatLab it immediately gives this error and closes. Thanks.

MATLAB Log File: C:\Users\SAMALP~1\AppData\Local\Temp\matlab_crash_dump.11116-1


MATLAB Log File



       Illegal instruction detected at 2022-07-18 15:48:24 -0400

Configuration: Crash Decoding : Disabled - No sandbox or build area path Crash Mode : continue (default) Default Encoding : UTF-8 Deployed : false Graphics Driver : Uninitialized hardware Graphics card 1 : NVIDIA ( 0x10de ) NVIDIA GeForce GTX 550 Ti Version 23.21.13.8813 (2017-10-27) Java Version : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode MATLAB Architecture : win64 MATLAB Entitlement ID : 1210343 MATLAB Root : C:\Program Files\MATLAB\R2022a MATLAB Version : 9.12.0.1975300 (R2022a) Update 3 OpenGL : hardware Operating System : Microsoft Windows 10 Pro Process ID : 11116 Processor ID : x86 Family 6 Model 45 Stepping 7, GenuineIntel Session Key : 6004b16d-15f1-4e3a-8177-429a4fc5a263 Window System : Version 10.0 (Build 19044)

Fault Count: 1

Abnormal termination: Illegal instruction

Current Thread: 'MCR 0 interpreter thread' id 14916

Register State (from fault): RAX = 0000025d53368b90 RBX = 000000000000000f RCX = 0000000000000010 RDX = 0000000000000000 RSP = 000000ad212f9f70 RBP = 0000025d53368b50 RSI = 0000000000000000 RDI = 0000000000000000

R8 = 0000025d53368b40 R9 = 0000000000000090 R10 = 0000000000000011 R11 = 0000025d53368bd0 R12 = 000000000000000c R13 = 0000000000000005 R14 = 00007ffca19af020 R15 = 0000000000000001

RIP = 00007ffca1943570 EFL = 00010206

CS = 0033 FS = 0053 GS = 002b

Stack Trace (from fault): [ 0] 0x00007ffca1943570 C:\Program Files\MATLAB\mtex-5.8.1\mtex-5.8.1\extern\nfft_openMP\nfsftmex.mexw64+00275824 alpha_al_all+00001216 [ 1] 0x00007ffca1946780 C:\Program Files\MATLAB\mtex-5.8.1\mtex-5.8.1\extern\nfft_openMP\nfsftmex.mexw64+00288640 nfsft_precompute+00000352 [ 2] 0x00007ffca1901ba2 C:\Program Files\MATLAB\mtex-5.8.1\mtex-5.8.1\extern\nfft_openMP\nfsftmex.mexw64+00007074 mexFunction+00001858 [ 3] 0x00007ffcc99081a9 C:\Program Files\MATLAB\R2022a\bin\win64\libmex.dll+00557481 mexfile::Inspector::needs_upgrade+00027305 [ 4] 0x00007ffcc990bc52 C:\Program Files\MATLAB\R2022a\bin\win64\libmex.dll+00572498 MexRetrieveVersion+00011778 [ 5] 0x00007ffcc990bdc7 C:\Program Files\MATLAB\R2022a\bin\win64\libmex.dll+00572871 MexRetrieveVersion+00012151 [ 6] 0x00007ffcc990bf77 C:\Program Files\MATLAB\R2022a\bin\win64\libmex.dll+00573303 MexRetrieveVersion+00012583 [ 7] 0x00007ffcc98ea352 C:\Program Files\MATLAB\R2022a\bin\win64\libmex.dll+00435026 mexUnlock+00016914 [ 8] 0x00007ffcc9e3c200 bin\win64\pgo\m_dispatcher.dll+00639488 Mfh_file::dispatch_file_common+00000168 [ 9] 0x00007ffcc9e3b9c2 bin\win64\pgo\m_dispatcher.dll+00637378 Mfh_error::lookup+00002546 [ 10] 0x00007ffcc9e3c151 bin\win64\pgo\m_dispatcher.dll+00639313 Mfh_file::dispatch+00000045 [ 11] 0x00007ffcc9631324 C:\Program Files\MATLAB\R2022a\bin\win64\libmwlxemainservices.dll+00332580 mwboost::archive::codecvt_null::do_always_noconv+00071588 [ 12] 0x00007ffcc963f720 C:\Program Files\MATLAB\R2022a\bin\win64\libmwlxemainservices.dll+00390944 mwboost::archive::codecvt_null::do_always_noconv+00129952 [ 13] 0x00007ffcc6091721 C:\Program Files\MATLAB\R2022a\bin\win64\m_lxe.dll+05510945 MathWorks::lxe::ReadOnlyXvaluePtr::operator=+00006097 [ 14] 0x00007ffcc6092a29 C:\Program Files\MATLAB\R2022a\bin\win64\m_lxe.dll+05515817 MathWorks::lxe::ReadOnlyXvaluePtr::operator=+00010969 [ 15] 0x00007ffcc5fe79b8 C:\Program Files\MATLAB\R2022a\bin\win64\m_lxe.dll+04815288 MathWorks::lxe::printLxeProfStatsForFeature+00279032 [ 16] 0x00007ffcc5fff889 C:\Program Files\MATLAB\R2022a\bin\win64\m_lxe.dll+04913289 MathWorks::lxe::printLxeProfStatsForFeature+00377033 [ 17] 0x00007ffcc5dfbbab C:\Program Files\MATLAB\R2022a\bin\win64\m_lxe.dll+02800555 MathWorks::lxe::LXEConstants::IsIfElse+00522971 [ 18] 0x00007ffcc5e00074 C:\Program Files\MATLAB\R2022a\bin\win64\m_lxe.dll+02818164 MathWorks::lxe::LXEConstants::IsY+00012660 [ 19] 0x00007ffcc5dfd601 C:\Program Files\MATLAB\R2022a\bin\win64\m_lxe.dll+02807297 MathWorks::lxe::LXEConstants::IsY+00001793 [ 20] 0x00007ffcc5e011b5 C:\Program Files\MATLAB\R2022a\bin\win64\m_lxe.dll+02822581 MathWorks::lxe::LXEConstants::IsY+00017077 [ 21] 0x00007ffcc5e01463 C:\Program Files\MATLAB\R2022a\bin\win64\m_lxe.dll+02823267 MathWorks::lxe::LXEConstants::IsY+00017763 [ 22] 0x00007ffcc5e00db8 C:\Program Files\MATLAB\R2022a\bin\win64\m_lxe.dll+02821560 MathWorks::lxe::LXEConstants::IsY+00016056 [ 23] 0x00007ffcc5dfcda6 C:\Program Files\MATLAB\R2022a\bin\win64\m_lxe.dll+02805158 MathWorks::lxe::LxeTypes::GetTypeXvalueOf+00000598 [ 24] 0x00007ffcc5ecb3e5 C:\Program Files\MATLAB\R2022a\bin\win64\m_lxe.dll+03650533 MathWorks::lxe::SetEngineImplUnlinkFlagForAllCallsOnStack+00043317 [ 25] 0x00007ffcc5ecef60 C:\Program Files\MATLAB\R2022a\bin\win64\m_lxe.dll+03665760 MathWorks::lxe::SetEngineImplUnlinkFlagForAllCallsOnStack+00058544 [ 26] 0x00007ffcc96ff830 C:\Program Files\MATLAB\R2022a\bin\win64\libmwlxemainservices.dll+01177648 FeatureTestObservableWorkspace+00186352 [ 27] 0x00007ffcc966bc7e C:\Program Files\MATLAB\R2022a\bin\win64\libmwlxemainservices.dll+00572542 mwboost::archive::detail::pointer_oserializer<mwboost::archive::xml_oarchive,MathWorks::lxe::PreLineExecutionEvent>::save_object_ptr+00069966 [ 28] 0x00007ffcc966d5bf C:\Program Files\MATLAB\R2022a\bin\win64\libmwlxemainservices.dll+00579007 mwboost::archive::detail::pointer_oserializer<mwboost::archive::xml_oarchive,MathWorks::lxe::PreLineExecutionEvent>::save_object_ptr+00076431 [ 29] 0x00007ffcc96c8cf6 C:\Program Files\MATLAB\R2022a\bin\win64\libmwlxemainservices.dll+00953590 mwboost::archive::detail::pointer_oserializer<mwboost::archive::xml_oarchive,MathWorks::lxe::PreLineExecutionEvent>::save_object_ptr+00451014 [ 30] 0x00007ffcc96caca7 C:\Program Files\MATLAB\R2022a\bin\win64\libmwlxemainservices.dll+00961703 mwboost::archive::detail::pointer_oserializer<mwboost::archive::xml_oarchive,MathWorks::lxe::PreLineExecutionEvent>::save_object_ptr+00459127 [ 31] 0x00007ffcc96ca050 C:\Program Files\MATLAB\R2022a\bin\win64\libmwlxemainservices.dll+00958544 mwboost::archive::detail::pointer_oserializer<mwboost::archive::xml_oarchive,MathWorks::lxe::PreLineExecutionEvent>::save_object_ptr+00455968 [ 32] 0x00007ffcc99a25b9 C:\Program Files\MATLAB\R2022a\bin\win64\libmwbridge.dll+00140729 mnGetPrompt+00025257 [ 33] 0x00007ffcca0c75c6 C:\Program Files\MATLAB\R2022a\bin\win64\iqm.dll+00488902 iqm::Iqm::instance+00001190 [ 34] 0x00007ffcca116a60 C:\Program Files\MATLAB\R2022a\bin\win64\iqm.dll+00813664 iqm::UserEvalPlugin::execute+00001360 [ 35] 0x00007ffcb6e42b75 C:\Program Files\MATLAB\R2022a\bin\win64\nativejmi.dll+00338805 nativejmi::JmiIIP::serializeExplicit+00008005 [ 36] 0x00007ffcca0e9882 C:\Program Files\MATLAB\R2022a\bin\win64\iqm.dll+00628866 iqm::Iqm::setupIqmFcnPtrs+00094722 [ 37] 0x00007ffcca0f33ca C:\Program Files\MATLAB\R2022a\bin\win64\iqm.dll+00668618 iqm::Iqm::setupIqmFcnPtrs+00134474 [ 38] 0x00007ffcca0baf4b C:\Program Files\MATLAB\R2022a\bin\win64\iqm.dll+00438091 iqm::Iqm::create+00009067 [ 39] 0x00007ffcc9992de5 C:\Program Files\MATLAB\R2022a\bin\win64\libmwbridge.dll+00077285 ioReadLine+00000501 [ 40] 0x00007ffcc9992bb5 C:\Program Files\MATLAB\R2022a\bin\win64\libmwbridge.dll+00076725 ioReadLine+00000165 [ 41] 0x00007ffcc99a2970 C:\Program Files\MATLAB\R2022a\bin\win64\libmwbridge.dll+00141680 mnGetCommandLineBuffer+00000288 [ 42] 0x00007ffcc99a2e02 C:\Program Files\MATLAB\R2022a\bin\win64\libmwbridge.dll+00142850 mnParser+00000466 [ 43] 0x00007ffcc9f37226 C:\Program Files\MATLAB\R2022a\bin\win64\mcr.dll+00422438 mcr_set_enableReadingFromStdin+00013622 [ 44] 0x00007ffcc9ee89a3 C:\Program Files\MATLAB\R2022a\bin\win64\mcr.dll+00100771 mcrFunctionSignature::set_signature+00079731 [ 45] 0x00007ffcc9f06230 C:\Program Files\MATLAB\R2022a\bin\win64\mcr.dll+00221744 mwboost::archive::codecvt_null::`default constructor closure'+00017584 [ 46] 0x00007ffcca111e0a C:\Program Files\MATLAB\R2022a\bin\win64\iqm.dll+00794122 iqm::PackagedTaskPlugin::execute+00000074 [ 47] 0x00007ffcc9f319ad C:\Program Files\MATLAB\R2022a\bin\win64\mcr.dll+00399789 services::lmgr::exception::LicensingStartupException::~LicensingStartupException+00006861 [ 48] 0x00007ffcca0e9882 C:\Program Files\MATLAB\R2022a\bin\win64\iqm.dll+00628866 iqm::Iqm::setupIqmFcnPtrs+00094722 [ 49] 0x00007ffcca0bbd86 C:\Program Files\MATLAB\R2022a\bin\win64\iqm.dll+00441734 iqm::Iqm::create+00012710 [ 50] 0x00007ffcca0bb472 C:\Program Files\MATLAB\R2022a\bin\win64\iqm.dll+00439410 iqm::Iqm::create+00010386 [ 51] 0x00007ffcc9f2072c C:\Program Files\MATLAB\R2022a\bin\win64\mcr.dll+00329516 mcrInstantiationError::operator=+00010380 [ 52] 0x00007ffcc9f21165 C:\Program Files\MATLAB\R2022a\bin\win64\mcr.dll+00332133 mcrInstantiationError::operator=+00012997 [ 53] 0x00007ffcc9f1e930 C:\Program Files\MATLAB\R2022a\bin\win64\mcr.dll+00321840 mcrInstantiationError::operator=+00002704 [ 54] 0x00007ffd03e985da C:\Program Files\MATLAB\R2022a\bin\win64\mwboost_thread-vc142-mt-x64-1_75.dll+00034266 mwboost::thread::swap+00000074 [ 55] 0x00007ffd24921bb2 C:\WINDOWS\System32\ucrtbase.dll+00138162 configthreadlocale+00000146 [ 56] 0x00007ffd25ae7034 C:\WINDOWS\System32\KERNEL32.DLL+00094260 BaseThreadInitThunk+00000020 [ 57] 0x00007ffd26c82651 C:\WINDOWS\SYSTEM32\ntdll.dll+00337489 RtlUserThreadStart+00000033

This error was detected while a MEX-file was running. If the MEX-file is not an official MathWorks function, please examine its source code for errors. Please consult the External Interfaces Guide for information on debugging MEX-files.

kilir commented 2 years ago

Hi, your log is from 2022a and so far, I haven't seen that under Windows. Anything that might be non-standard? Cheers, Rüdiger

masalpert commented 2 years ago

Hi, your log is from 2022a and so far, I haven't seen that under Windows. Anything that might be non-standard? Cheers, Rüdiger

sorry, no idea why I thought it was b, my mistake. No I am not running any other modifications. This is a completely fresh base install.

HamishB commented 1 year ago

See also issues #1625 and #1778. You might have to download NFFT and copy or recompile in libraries by hand.