matlab crashes with libiio/ADALM Pluto

I work with ADALM Pluto and soon with an AD-FMCOMMS5-EBZ & ZC706 evaluation board. Since a few days a try to connect the ADALM with matlab R2021a in a windows 10 environment and I installed libiio (libiio-0.21.g565bf68-Windows-setup.exe) the driver seems to work, at least with >iio_info -u ip:pluto.local I get a bunch of information concerning the status of my pluto.  But then when I try to communicate with my device, matlab crashes:

Is there any solution for this issue?

  • 0
    •  Analog Employees 
    on May 12, 2021 2:24 PM

    Can you provide the crash log?

    -Travis

  • here it is:

    MATLAB Log File: C:\Users\THOMAS~1.JUN\AppData\Local\Temp\matlab_crash_dump.19328-1

    ------------------------------------------------

    MATLAB Log File

    ------------------------------------------------

    --------------------------------------------------------------------------------

    Access violation detected at 2021-05-12 16:44:16 +0200

    --------------------------------------------------------------------------------

    Configuration:

    Crash Decoding : Disabled - No sandbox or build area path

    Crash Mode : continue (default)

    Default Encoding : windows-1252

    Deployed : false

    Graphics Driver : NVIDIA Corporation GeForce MX150/PCIe/SSE2 Version 4.6.0 NVIDIA 452.66

    Graphics card 1 : NVIDIA ( 0x10de ) NVIDIA GeForce MX150 Version 27.21.14.5266 (2020-11-20)

    Graphics card 2 : Intel Corporation ( 0x8086 ) Intel(R) UHD Graphics 630 Version 27.20.100.9126 (2020-12-23)

    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 : 4933785

    MATLAB Root : C:\Program Files\MATLAB\R2021a

    MATLAB Version : 9.10.0.1649659 (R2021a) Update 1

    OpenGL : hardware

    Operating System : Microsoft Windows 10 Enterprise

    Process ID : 19328

    Processor ID : x86 Family 6 Model 158 Stepping 13, GenuineIntel

    Session Key : d30340c1-05ea-4203-955c-90243e81056a

    Window System : Version 10.0 (Build 19042)

    Fault Count: 1

    Abnormal termination:

    Access violation

    Current Thread: 'MCR 0 interpreter thread' id 18264

    Register State (from fault):

    RAX = 0000000000000019 RBX = 000002cee3c8dc64

    RCX = 0000000000000000 RDX = 000002cefcddd800

    RSP = 000000e6e63f1d80 RBP = 0000000000000005

    RSI = 0000000000000000 RDI = 0000000000000000

    R8 = 000000000000000a R9 = 0000000000000001

    R10 = 0000000000008000 R11 = 000000e6e63f1c30

    R12 = 000002ceb1a60330 R13 = 000002cefef22dd0

    R14 = 000002cee3c8db9c R15 = 000000e6e63f1f90

    RIP = 00007ff9bb24b7fe EFL = 00010246

    CS = 0033 FS = 0053 GS = 002b

    Stack Trace (from fault):

    [ 0] 0x00007ff9bb24b7fe C:\Windows\SYSTEM32\libusb-1.0.dll+00047102 libusb_interrupt_transfer+00007614

    [ 1] 0x00007ff9bb24e7e6 C:\Windows\SYSTEM32\libusb-1.0.dll+00059366 libusb_interrupt_transfer+00019878

    [ 2] 0x00007ff9bb242b15 C:\Windows\SYSTEM32\libusb-1.0.dll+00011029 libusb_claim_interface+00000165

    [ 3] 0x00007ff9bb24bad4 C:\Windows\SYSTEM32\libusb-1.0.dll+00047828 libusb_interrupt_transfer+00008340

    [ 4] 0x00007ff9bb250638 C:\Windows\SYSTEM32\libusb-1.0.dll+00067128 libusb_interrupt_transfer+00027640

    [ 5] 0x00007ff9bb253b8a C:\Windows\SYSTEM32\libusb-1.0.dll+00080778 libusb_interrupt_transfer+00041290

    [ 6] 0x00007ff9bb24ea85 C:\Windows\SYSTEM32\libusb-1.0.dll+00060037 libusb_interrupt_transfer+00020549

    [ 7] 0x00007ff9bb246b99 C:\Windows\SYSTEM32\libusb-1.0.dll+00027545 libusb_submit_transfer+00000185

    [ 8] 0x00007ff9bb2497df C:\Windows\SYSTEM32\libusb-1.0.dll+00038879 libusb_control_transfer+00000335

    [ 9] 0x00007ff9bb245ee9 C:\Windows\SYSTEM32\libusb-1.0.dll+00024297 libusb_get_string_descriptor_ascii+00000137

    [ 10] 0x00007ff9bb2771b3 C:\ProgramData\MATLAB\SupportPackages\R2021a\3P.instrset\libiio.instrset\win64\MS64\libiio.dll+00029107 iio_scan_context_get_info_list+00002387

    [ 11] 0x00007ff9bb27743b C:\ProgramData\MATLAB\SupportPackages\R2021a\3P.instrset\libiio.instrset\win64\MS64\libiio.dll+00029755 iio_scan_context_get_info_list+00003035

    [ 12] 0x00007ff9bb276893 C:\ProgramData\MATLAB\SupportPackages\R2021a\3P.instrset\libiio.instrset\win64\MS64\libiio.dll+00026771 iio_scan_context_get_info_list+00000051

    [ 13] 0x00007ff9bb27680a C:\ProgramData\MATLAB\SupportPackages\R2021a\3P.instrset\libiio.instrset\win64\MS64\libiio.dll+00026634 iio_scan_block_scan+00000042

    [ 14] 0x00007ff9bb1311a7 C:\ProgramData\MATLAB\SupportPackages\R2021a\toolbox\shared\libiio\lib\win64\libiio_thunk_pcwin64.dll+00004519 int64voidPtrThunk+00000055

    [ 15] 0x00007ff9bb2a0cf9 C:\Program Files\MATLAB\R2021a\bin\win64\libmwcli.dll+00068857

    [ 16] 0x00007ff9bb2a3e54 C:\Program Files\MATLAB\R2021a\bin\win64\libmwcli.dll+00081492 mwboost::serialization::singleton_module::get_lock+00000980

    [ 17] 0x00007ff9bb2c67a3 C:\Program Files\MATLAB\R2021a\bin\win64\libmwcli.dll+00223139 PointerMapSize+00109667

    [ 18] 0x00007ff9bb2c7bf2 C:\Program Files\MATLAB\R2021a\bin\win64\libmwcli.dll+00228338 mfCallLib+00000226

    [ 19] 0x00007ff9e7698bea C:\Program Files\MATLAB\R2021a\bin\win64\builtin.dll+00101354 MathWorks::builtin::BuiltinFcn::invoke+00001130

    [ 20] 0x00007ff9e7fc4b9c bin\win64\pgo\m_dispatcher.dll+00150428 Mfh_MATLAB_fn_impl::dispatch_mf_with_reuse+00000136

    [ 21] 0x00007ff9e7fb4630 bin\win64\pgo\m_dispatcher.dll+00083504 Mfh_MATLAB_fn_impl::ensure_loading_of_load_module+00001856

    [ 22] 0x00007ff9e7fb47b9 bin\win64\pgo\m_dispatcher.dll+00083897 Mfh_MATLAB_fn_impl::dispatch_with_reuse+00000045

    [ 23] 0x00007ff9e4018b01 bin\win64\pgo\m_lxe.dll+00363265 MathWorks::lxe::initializeFcn+00001489

    [ 24] 0x00007ff9e401a323 bin\win64\pgo\m_lxe.dll+00369443 MathWorks::lxe::initializeFcn+00007667

    [ 25] 0x00007ff9e4014056 bin\win64\pgo\m_lxe.dll+00344150

    [ 26] 0x00007ff9e4013f61 bin\win64\pgo\m_lxe.dll+00343905

    [ 27] 0x00007ff9e4013ed3 bin\win64\pgo\m_lxe.dll+00343763

    [ 28] 0x00007ff9e4011ff7 bin\win64\pgo\m_lxe.dll+00335863

    [ 29] 0x00007ff9e401636f bin\win64\pgo\m_lxe.dll+00353135

    [ 30] 0x00007ff9e4182181 bin\win64\pgo\m_lxe.dll+01843585 mwboost::archive::detail::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::ClosedAbstractionFunctionDescriptorOwningIrTree>::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::ClosedAbstractionFunctionDescriptorOwningIrTree>+00047709

    [ 31] 0x00007ff9e40323c7 bin\win64\pgo\m_lxe.dll+00467911 MathWorks::lxe::initializeFcn+00106135

    [ 32] 0x00007ff9e4031261 bin\win64\pgo\m_lxe.dll+00463457 MathWorks::lxe::initializeFcn+00101681

    [ 33] 0x00007ff9e4030c72 bin\win64\pgo\m_lxe.dll+00461938 MathWorks::lxe::initializeFcn+00100162

    [ 34] 0x00007ff9e40353f3 bin\win64\pgo\m_lxe.dll+00480243 MathWorks::lxe::initializeFcn+00118467

    [ 35] 0x00007ff9e403509f bin\win64\pgo\m_lxe.dll+00479391 MathWorks::lxe::initializeFcn+00117615

    [ 36] 0x00007ff9e401d2c0 bin\win64\pgo\m_lxe.dll+00381632 MathWorks::lxe::initializeFcn+00019856

    [ 37] 0x00007ff9e401c0eb bin\win64\pgo\m_lxe.dll+00377067 MathWorks::lxe::initializeFcn+00015291

    [ 38] 0x00007ff9e4018262 bin\win64\pgo\m_lxe.dll+00361058

    [ 39] 0x00007ff9e4017c40 bin\win64\pgo\m_lxe.dll+00359488

    [ 40] 0x00007ff9e7fb3c0d bin\win64\pgo\m_dispatcher.dll+00080909 AutoPushingExecutionFrame::~AutoPushingExecutionFrame+00000765

    [ 41] 0x00007ff9e7fb38bd bin\win64\pgo\m_dispatcher.dll+00080061 Mfh_file::dispatch_with_reuse+00000045

    [ 42] 0x00007ff9db319a20 bin\win64\pgo\mcos_impl.dll+00367136 mdIsA+00013188

    [ 43] 0x00007ff9db31b167 bin\win64\pgo\mcos_impl.dll+00373095 mdIsA+00019147

    [ 44] 0x00007ff9db313236 bin\win64\pgo\mcos_impl.dll+00340534

    [ 45] 0x00007ff9db312ca0 bin\win64\pgo\mcos_impl.dll+00339104

    [ 46] 0x00007ff9db312b85 bin\win64\pgo\mcos_impl.dll+00338821

    [ 47] 0x00007ff9db316e7d bin\win64\pgo\mcos_impl.dll+00355965 mdIsA+00002017

    [ 48] 0x00007ff9e7fb4630 bin\win64\pgo\m_dispatcher.dll+00083504 Mfh_MATLAB_fn_impl::ensure_loading_of_load_module+00001856

    [ 49] 0x00007ff9e7fb47b9 bin\win64\pgo\m_dispatcher.dll+00083897 Mfh_MATLAB_fn_impl::dispatch_with_reuse+00000045

    [ 50] 0x00007ff9e4018b01 bin\win64\pgo\m_lxe.dll+00363265 MathWorks::lxe::initializeFcn+00001489

    [ 51] 0x00007ff9e401a323 bin\win64\pgo\m_lxe.dll+00369443 MathWorks::lxe::initializeFcn+00007667

    [ 52] 0x00007ff9e4014056 bin\win64\pgo\m_lxe.dll+00344150

    [ 53] 0x00007ff9e4013f61 bin\win64\pgo\m_lxe.dll+00343905

    [ 54] 0x00007ff9e4013ed3 bin\win64\pgo\m_lxe.dll+00343763

    [ 55] 0x00007ff9e4011ff7 bin\win64\pgo\m_lxe.dll+00335863

    [ 56] 0x00007ff9e401636f bin\win64\pgo\m_lxe.dll+00353135

    [ 57] 0x00007ff9e4182181 bin\win64\pgo\m_lxe.dll+01843585 mwboost::archive::detail::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::ClosedAbstractionFunctionDescriptorOwningIrTree>::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::ClosedAbstractionFunctionDescriptorOwningIrTree>+00047709

    [ 58] 0x00007ff9e40323c7 bin\win64\pgo\m_lxe.dll+00467911 MathWorks::lxe::initializeFcn+00106135

    [ 59] 0x00007ff9e4031261 bin\win64\pgo\m_lxe.dll+00463457 MathWorks::lxe::initializeFcn+00101681

    [ 60] 0x00007ff9e4030c72 bin\win64\pgo\m_lxe.dll+00461938 MathWorks::lxe::initializeFcn+00100162

    [ 61] 0x00007ff9e40353f3 bin\win64\pgo\m_lxe.dll+00480243 MathWorks::lxe::initializeFcn+00118467

    [ 62] 0x00007ff9e403509f bin\win64\pgo\m_lxe.dll+00479391 MathWorks::lxe::initializeFcn+00117615

    [ 63] 0x00007ff9e401d2c0 bin\win64\pgo\m_lxe.dll+00381632 MathWorks::lxe::initializeFcn+00019856

    [ 64] 0x00007ff9e401c0eb bin\win64\pgo\m_lxe.dll+00377067 MathWorks::lxe::initializeFcn+00015291

    [ 65] 0x00007ff9e4018262 bin\win64\pgo\m_lxe.dll+00361058

    [ 66] 0x00007ff9e4017c40 bin\win64\pgo\m_lxe.dll+00359488

    [ 67] 0x00007ff9e7fb3c0d bin\win64\pgo\m_dispatcher.dll+00080909 AutoPushingExecutionFrame::~AutoPushingExecutionFrame+00000765

    [ 68] 0x00007ff9e7fb38bd bin\win64\pgo\m_dispatcher.dll+00080061 Mfh_file::dispatch_with_reuse+00000045

    [ 69] 0x00007ff9db319a20 bin\win64\pgo\mcos_impl.dll+00367136 mdIsA+00013188

    [ 70] 0x00007ff9db31b167 bin\win64\pgo\mcos_impl.dll+00373095 mdIsA+00019147

    [ 71] 0x00007ff9db313236 bin\win64\pgo\mcos_impl.dll+00340534

    [ 72] 0x00007ff9db312ca0 bin\win64\pgo\mcos_impl.dll+00339104

    [ 73] 0x00007ff9db312b85 bin\win64\pgo\mcos_impl.dll+00338821

    [ 74] 0x00007ff9db316e7d bin\win64\pgo\mcos_impl.dll+00355965 mdIsA+00002017

    [ 75] 0x00007ff9e7fb4630 bin\win64\pgo\m_dispatcher.dll+00083504 Mfh_MATLAB_fn_impl::ensure_loading_of_load_module+00001856

    [ 76] 0x00007ff9e7fb47b9 bin\win64\pgo\m_dispatcher.dll+00083897 Mfh_MATLAB_fn_impl::dispatch_with_reuse+00000045

    [ 77] 0x00007ff9e4018b01 bin\win64\pgo\m_lxe.dll+00363265 MathWorks::lxe::initializeFcn+00001489

    [ 78] 0x00007ff9e401a323 bin\win64\pgo\m_lxe.dll+00369443 MathWorks::lxe::initializeFcn+00007667

    [ 79] 0x00007ff9e4014056 bin\win64\pgo\m_lxe.dll+00344150

    [ 80] 0x00007ff9e4013f61 bin\win64\pgo\m_lxe.dll+00343905

    [ 81] 0x00007ff9e4013ed3 bin\win64\pgo\m_lxe.dll+00343763

    [ 82] 0x00007ff9e4011ff7 bin\win64\pgo\m_lxe.dll+00335863

    [ 83] 0x00007ff9e401636f bin\win64\pgo\m_lxe.dll+00353135

    [ 84] 0x00007ff9e4182181 bin\win64\pgo\m_lxe.dll+01843585 mwboost::archive::detail::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::ClosedAbstractionFunctionDescriptorOwningIrTree>::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::ClosedAbstractionFunctionDescriptorOwningIrTree>+00047709

    [ 85] 0x00007ff9e40323c7 bin\win64\pgo\m_lxe.dll+00467911 MathWorks::lxe::initializeFcn+00106135

    [ 86] 0x00007ff9e4031261 bin\win64\pgo\m_lxe.dll+00463457 MathWorks::lxe::initializeFcn+00101681

    [ 87] 0x00007ff9e4030c72 bin\win64\pgo\m_lxe.dll+00461938 MathWorks::lxe::initializeFcn+00100162

    [ 88] 0x00007ff9e40353f3 bin\win64\pgo\m_lxe.dll+00480243 MathWorks::lxe::initializeFcn+00118467

    [ 89] 0x00007ff9e403509f bin\win64\pgo\m_lxe.dll+00479391 MathWorks::lxe::initializeFcn+00117615

    [ 90] 0x00007ff9e401d2c0 bin\win64\pgo\m_lxe.dll+00381632 MathWorks::lxe::initializeFcn+00019856

    [ 91] 0x00007ff9e401c0eb bin\win64\pgo\m_lxe.dll+00377067 MathWorks::lxe::initializeFcn+00015291

    [ 92] 0x00007ff9e401b136 bin\win64\pgo\m_lxe.dll+00373046 MathWorks::lxe::initializeFcn+00011270

    [ 93] 0x00007ff9e4091667 bin\win64\pgo\m_lxe.dll+00857703 MathWorks::lxe::initializeFcn+00495927

    [ 94] 0x00007ff9e40183fa bin\win64\pgo\m_lxe.dll+00361466

    [ 95] 0x00007ff9e41818c5 bin\win64\pgo\m_lxe.dll+01841349 mwboost::archive::detail::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::ClosedAbstractionFunctionDescriptorOwningIrTree>::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::ClosedAbstractionFunctionDescriptorOwningIrTree>+00045473

    [ 96] 0x00007ff9e7fb49f8 bin\win64\pgo\m_dispatcher.dll+00084472 Mfh_MATLAB_fn_impl::need_FunctionExecutionFrame+00000568

    [ 97] 0x00007ff9e7fb5f0d bin\win64\pgo\m_dispatcher.dll+00089869 Mfh_file::dispatch+00000045

    [ 98] 0x00007ff9db319944 bin\win64\pgo\mcos_impl.dll+00366916 mdIsA+00012968

    [ 99] 0x00007ff9db560962 bin\win64\pgo\mcos_impl.dll+02754914 mcos::waitforWrapper+00251158

    [100] 0x00007ff9c312315f C:\Program Files\MATLAB\R2021a\bin\win64\systemobject_mcos.dll+01192287 somcos::SystemInterfaceSetupCore::operator=+00031135

    [101] 0x00007ff9db313a5e bin\win64\pgo\mcos_impl.dll+00342622

    [102] 0x00007ff9db313005 bin\win64\pgo\mcos_impl.dll+00339973

    [103] 0x00007ff9db312ca0 bin\win64\pgo\mcos_impl.dll+00339104

    [104] 0x00007ff9db316622 bin\win64\pgo\mcos_impl.dll+00353826

    [105] 0x00007ff9db312a11 bin\win64\pgo\mcos_impl.dll+00338449

    [106] 0x00007ff9e7fb3588 bin\win64\pgo\m_dispatcher.dll+00079240 Mfh_MATLAB_fn_impl::dispatch+00000712

    [107] 0x00007ff9e7fb32ed bin\win64\pgo\m_dispatcher.dll+00078573 Mfh_MATLAB_fn_impl::dispatch+00000045

    [108] 0x00007ff9e4016acd bin\win64\pgo\m_lxe.dll+00355021

    [109] 0x00007ff9e418e95c bin\win64\pgo\m_lxe.dll+01894748 mwboost::archive::detail::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::ClosedAbstractionFunctionDescriptorOwningIrTree>::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::ClosedAbstractionFunctionDescriptorOwningIrTree>+00098872

    [110] 0x00007ff9e401636f bin\win64\pgo\m_lxe.dll+00353135

    [111] 0x00007ff9e4197c2d bin\win64\pgo\m_lxe.dll+01932333 mwboost::archive::detail::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::ClosedAbstractionFunctionDescriptorOwningIrTree>::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::ClosedAbstractionFunctionDescriptorOwningIrTree>+00136457

    [112] 0x00007ff9e40323c7 bin\win64\pgo\m_lxe.dll+00467911 MathWorks::lxe::initializeFcn+00106135

    [113] 0x00007ff9e4031261 bin\win64\pgo\m_lxe.dll+00463457 MathWorks::lxe::initializeFcn+00101681

    [114] 0x00007ff9e4030c72 bin\win64\pgo\m_lxe.dll+00461938 MathWorks::lxe::initializeFcn+00100162

    [115] 0x00007ff9e40353f3 bin\win64\pgo\m_lxe.dll+00480243 MathWorks::lxe::initializeFcn+00118467

    [116] 0x00007ff9e403509f bin\win64\pgo\m_lxe.dll+00479391 MathWorks::lxe::initializeFcn+00117615

    [117] 0x00007ff9e401d2c0 bin\win64\pgo\m_lxe.dll+00381632 MathWorks::lxe::initializeFcn+00019856

    [118] 0x00007ff9e401c0eb bin\win64\pgo\m_lxe.dll+00377067 MathWorks::lxe::initializeFcn+00015291

    [119] 0x00007ff9e401b136 bin\win64\pgo\m_lxe.dll+00373046 MathWorks::lxe::initializeFcn+00011270

    [120] 0x00007ff9e40f4296 bin\win64\pgo\m_lxe.dll+01262230 MathWorks::lxe::ShutdownLxeEngine+00031034

    [121] 0x00007ff9e40f40c2 bin\win64\pgo\m_lxe.dll+01261762 MathWorks::lxe::ShutdownLxeEngine+00030566

    [122] 0x00007ff9e40f363b bin\win64\pgo\m_lxe.dll+01259067 MathWorks::lxe::ShutdownLxeEngine+00027871

    [123] 0x00007ff9e40f35f2 bin\win64\pgo\m_lxe.dll+01258994 MathWorks::lxe::ShutdownLxeEngine+00027798

    [124] 0x00007ff9e5c2ac5a bin\win64\pgo\m_lxe.dll+29797466 mwboost::archive::detail::pointer_oserializer<mwboost::archive::xml_oarchive,MathWorks::lxe::PreLineExecutionEvent>::save_object_ptr+00299002

    [125] 0x00007ff9e87ca3a9 C:\Program Files\MATLAB\R2021a\bin\win64\libmwbridge.dll+00172969 mnGetPrompt+00027097

    [126] 0x00007ff9e94c2266 C:\Program Files\MATLAB\R2021a\bin\win64\iqm.dll+00467558 iqm::Iqm::instance+00001190

    [127] 0x00007ff9e95186b3 C:\Program Files\MATLAB\R2021a\bin\win64\iqm.dll+00820915 iqm::UserEvalPlugin::execute+00001347

  • 0
    •  Analog Employees 
    on May 12, 2021 2:53 PM in reply to thom62

    Can you try powering both USB ports on Pluto when running this step? It looks like the USB stack is erroring which usually happens when the device loses power.

    -Travis