mtex icon indicating copy to clipboard operation
mtex copied to clipboard

Matlab crash when using calcDensity to produce pole figure

Open Bazil313 opened this issue 2 years ago • 2 comments

What do you want to do? Generate an ODF figure for individual orientations, https://mtex-toolbox.github.io/orientation.calcDensity.html

What data do you have? Orientation array image

**Error message At line 65 in the calcFourier.m file (gcA2fourier function) the matlab program completely crashes, possibly indicating an issue with the MEX execution Capture

What MTEX version do you use? Windows 10 Enterprise, Matlab R2021a, MTEX 5.8.1

Bazil313 avatar Jun 21 '22 19:06 Bazil313

Hi, what does actually the crash log say? Cheers, Rüdiger

kilir avatar Jun 21 '22 21:06 kilir

Hi Rudiger,

Thanks for looking into this! Here is the simplest code I was able to run to recreate the crash (executed from the mtex-5.8.1\data\EBSD folder):

ebsd = EBSD.load('EDXLMDTi64.cpr'); odf = calcDensity(ebsd('Ti (alpha)').orientations);

See below for log:

MATLAB Log File: C:\Users\CMCOLL~1\AppData\Local\Temp\matlab_crash_dump.15268-1


MATLAB Log File


       Illegal instruction detected at 2022-06-23 13:20:06 -0400

Configuration: Crash Decoding : Disabled - No sandbox or build area path Crash Mode : continue (default) Default Encoding : windows-1252 Deployed : false Graphics Driver : Unknown hardware Graphics card 1 : NVIDIA ( 0x10de ) NVIDIA Quadro K600 Version 10.18.13.5362 (2015-7-22) 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 : 3844339 MATLAB Root : C:\Program Files\MATLAB\R2021a MATLAB Version : 9.10.0.1851785 (R2021a) Update 6 OpenGL : hardware Operating System : Microsoft Windows 10 Enterprise Process ID : 15268 Processor ID : x86 Family 6 Model 58 Stepping 9, GenuineIntel Session Key : 021dbff7-7d30-4198-8ecd-e789f78a714a Window System : Version 10.0 (Build 19044)

Fault Count: 1

Abnormal termination: Illegal instruction

Current Thread: 'MCR 0 interpreter thread' id 14620

Register State (from fault): RAX = 0000000000000004 RBX = 000001d25537b558 RCX = 000001d254c89780 RDX = 0000000000000491 RSP = 000000375dff9d60 RBP = 000000375dff9d90 RSI = 000000000000001a RDI = 0000000000000000

R8 = 0000000000000003 R9 = 0000000000000002 R10 = 0000000000000003 R11 = 000000375dff9cb0 R12 = 000001d25537b558 R13 = 0000000000000052 R14 = 0000000000000019 R15 = 00000000000003e8

RIP = 00007ffd32518c17 EFL = 00010282

CS = 0033 FS = 0053 GS = 002b

Stack Trace (from fault): [ 0] 0x00007ffd32518c17 C:\Program Files\MATLAB\mtex-5.8.1\extern\nfft_openMP\nfsoftmex.mexw64+00101399 fpt_finalize+00022375 [ 1] 0x00007ffd3254c375 C:\Program Files\MATLAB\mtex-5.8.1\extern\nfft_openMP\nfsoftmex.mexw64+00312181 nfsoft_init_guru_advanced+00000165 [ 2] 0x00007ffd32501a5f C:\Program Files\MATLAB\mtex-5.8.1\extern\nfft_openMP\nfsoftmex.mexw64+00006751 mexFunction+00001551 [ 3] 0x00007ffd6e93eec9 C:\Program Files\MATLAB\R2021a\bin\win64\libmex.dll+00585417 mexfile::Inspector::needs_upgrade+00014585 [ 4] 0x00007ffd6e93ffc2 C:\Program Files\MATLAB\R2021a\bin\win64\libmex.dll+00589762 MexRetrieveVersion+00003074 [ 5] 0x00007ffd6e940137 C:\Program Files\MATLAB\R2021a\bin\win64\libmex.dll+00590135 MexRetrieveVersion+00003447 [ 6] 0x00007ffd6e9402e7 C:\Program Files\MATLAB\R2021a\bin\win64\libmex.dll+00590567 MexRetrieveVersion+00003879 [ 7] 0x00007ffd6e920542 C:\Program Files\MATLAB\R2021a\bin\win64\libmex.dll+00460098 mexUnlock_800+00025874 [ 8] 0x00007ffd6d14ee80 bin\win64\pgo\m_dispatcher.dll+00585344 Mfh_file::dispatch_file_common+00000164 [ 9] 0x00007ffd6d14e63e bin\win64\pgo\m_dispatcher.dll+00583230 Mfh_error::lookup+00003386 [ 10] 0x00007ffd6d14edd5 bin\win64\pgo\m_dispatcher.dll+00585173 Mfh_file::dispatch+00000045 [ 11] 0x00007ffd5fd76acd bin\win64\pgo\m_lxe.dll+00355021 [ 12] 0x00007ffd5fd7636f bin\win64\pgo\m_lxe.dll+00353135 [ 13] 0x00007ffd5fd75ca1 bin\win64\pgo\m_lxe.dll+00351393 [ 14] 0x00007ffd5fd923c7 bin\win64\pgo\m_lxe.dll+00467911 MathWorks::lxe::initializeFcn+00106135 [ 15] 0x00007ffd5fd91261 bin\win64\pgo\m_lxe.dll+00463457 MathWorks::lxe::initializeFcn+00101681 [ 16] 0x00007ffd5fd90c72 bin\win64\pgo\m_lxe.dll+00461938 MathWorks::lxe::initializeFcn+00100162 [ 17] 0x00007ffd5fd953f3 bin\win64\pgo\m_lxe.dll+00480243 MathWorks::lxe::initializeFcn+00118467 [ 18] 0x00007ffd5fd9509f bin\win64\pgo\m_lxe.dll+00479391 MathWorks::lxe::initializeFcn+00117615 [ 19] 0x00007ffd5fd7d2c0 bin\win64\pgo\m_lxe.dll+00381632 MathWorks::lxe::initializeFcn+00019856 [ 20] 0x00007ffd5fd7c0eb bin\win64\pgo\m_lxe.dll+00377067 MathWorks::lxe::initializeFcn+00015291 [ 21] 0x00007ffd5fd7b136 bin\win64\pgo\m_lxe.dll+00373046 MathWorks::lxe::initializeFcn+00011270 [ 22] 0x00007ffd5fe54296 bin\win64\pgo\m_lxe.dll+01262230 MathWorks::lxe::ShutdownLxeEngine+00031034 [ 23] 0x00007ffd5fe540c2 bin\win64\pgo\m_lxe.dll+01261762 MathWorks::lxe::ShutdownLxeEngine+00030566 [ 24] 0x00007ffd5fe5363b bin\win64\pgo\m_lxe.dll+01259067 MathWorks::lxe::ShutdownLxeEngine+00027871 [ 25] 0x00007ffd5fe535f2 bin\win64\pgo\m_lxe.dll+01258994 MathWorks::lxe::ShutdownLxeEngine+00027798 [ 26] 0x00007ffd6198ac5a bin\win64\pgo\m_lxe.dll+29797466 mwboost::archive::detail::pointer_oserializermwboost::archive::xml_oarchive,MathWorks::lxe::PreLineExecutionEvent::save_object_ptr+00299002 [ 27] 0x00007ffd6faaa3a9 C:\Program Files\MATLAB\R2021a\bin\win64\libmwbridge.dll+00172969 mnGetPrompt+00027097 [ 28] 0x00007ffd6eba2266 C:\Program Files\MATLAB\R2021a\bin\win64\iqm.dll+00467558 iqm::Iqm::instance+00001190 [ 29] 0x00007ffd6ebf8773 C:\Program Files\MATLAB\R2021a\bin\win64\iqm.dll+00821107 iqm::UserEvalPlugin::execute+00001347 [ 30] 0x00007ffd4a205945 C:\Program Files\MATLAB\R2021a\bin\win64\nativejmi.dll+00350533 nativejmi::JmiIIP::serializeExplicit+00008693 [ 31] 0x00007ffd6ebc66ac C:\Program Files\MATLAB\R2021a\bin\win64\iqm.dll+00616108 iqm::Iqm::setupIqmFcnPtrs+00106204 [ 32] 0x00007ffd6ebd106a C:\Program Files\MATLAB\R2021a\bin\win64\iqm.dll+00659562 iqm::Iqm::setupIqmFcnPtrs+00149658 [ 33] 0x00007ffd6eb97720 C:\Program Files\MATLAB\R2021a\bin\win64\iqm.dll+00423712 iqm::Iqm::create+00008352 [ 34] 0x00007ffd6fa98eaf C:\Program Files\MATLAB\R2021a\bin\win64\libmwbridge.dll+00102063 ioReadLine+00000463 [ 35] 0x00007ffd6fa98ca5 C:\Program Files\MATLAB\R2021a\bin\win64\libmwbridge.dll+00101541 ioReadLine+00000165 [ 36] 0x00007ffd6faaa761 C:\Program Files\MATLAB\R2021a\bin\win64\libmwbridge.dll+00173921 mnGetCommandLineBuffer+00000289 [ 37] 0x00007ffd6faaabb7 C:\Program Files\MATLAB\R2021a\bin\win64\libmwbridge.dll+00175031 mnParser+00000487 [ 38] 0x00007ffd6d453d86 C:\Program Files\MATLAB\R2021a\bin\win64\mcr.dll+00540038 mcr_set_enableReadingFromStdin+00013894 [ 39] 0x00007ffd6d3ef5d3 C:\Program Files\MATLAB\R2021a\bin\win64\mcr.dll+00128467 mcrFunctionSignature::set_signature+00107555 [ 40] 0x00007ffd6d40b550 C:\Program Files\MATLAB\R2021a\bin\win64\mcr.dll+00243024 mcrFunctionSignature::set_signature+00222112 [ 41] 0x00007ffd6ebf39ea C:\Program Files\MATLAB\R2021a\bin\win64\iqm.dll+00801258 iqm::PackagedTaskPlugin::execute+00000074 [ 42] 0x00007ffd6d44e1ed C:\Program Files\MATLAB\R2021a\bin\win64\mcr.dll+00516589 services::lmgr::exception::LicensingStartupException::~LicensingStartupException+00009613 [ 43] 0x00007ffd6ebc66ac C:\Program Files\MATLAB\R2021a\bin\win64\iqm.dll+00616108 iqm::Iqm::setupIqmFcnPtrs+00106204 [ 44] 0x00007ffd6eb984bc C:\Program Files\MATLAB\R2021a\bin\win64\iqm.dll+00427196 iqm::Iqm::create+00011836 [ 45] 0x00007ffd6eb97c32 C:\Program Files\MATLAB\R2021a\bin\win64\iqm.dll+00425010 iqm::Iqm::create+00009650 [ 46] 0x00007ffd6d4258fc C:\Program Files\MATLAB\R2021a\bin\win64\mcr.dll+00350460 mcrInstantiationError::operator=+00010428 [ 47] 0x00007ffd6d4264ac C:\Program Files\MATLAB\R2021a\bin\win64\mcr.dll+00353452 mcrInstantiationError::operator=+00013420 [ 48] 0x00007ffd6d423ac0 C:\Program Files\MATLAB\R2021a\bin\win64\mcr.dll+00342720 mcrInstantiationError::operator=+00002688 [ 49] 0x00007ffdbfa79b9a C:\Program Files\MATLAB\R2021a\bin\win64\mwboost_thread-vc142-mt-x64-1_72.dll+00039834 mwboost::thread::swap+00000074 [ 50] 0x00007ffde4101bb2 C:\WINDOWS\System32\ucrtbase.dll+00138162 configthreadlocale+00000146 [ 51] 0x00007ffde4b37034 C:\WINDOWS\System32\KERNEL32.DLL+00094260 BaseThreadInitThunk+00000020 [ 52] 0x00007ffde6962651 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.

Bazil313 avatar Jun 23 '22 17:06 Bazil313