-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
This is the step by step what I did:
-
Cloned repo
-
Ran
hardwarex_setup.m, which generated the proto and thunk files -
Changed the provided
RPLIDAR0.txtconfiguration file with the settings below -
Connected A3 model RPLIDAR. (connected on
COM3) -
Using MATLAB, executed
test.rplidar.m- A MATLAB figure comes up displaying the LIDAR pointcloud.
- Key press
ESCto close figure and stop the program
-
Disconnect A3 model lidar
-
Connect S1 model lidar (connected again on
COM3) -
Using MATLAB executed
test.rplidar.m- Script executes:
[result, distance, angle, bNewScan, quality] = GetScanDataResponseRPLIDAR(pRPLIDAR)- MATLAB crashes on
calllib()line: result = calllib('hardwarex', 'GetScanDataResponseRPLIDARx', pRPLIDAR, pDistance, pAngle, pbNewScan, Quality)
RPLIDAR0.txt
% Server TCP port (e.g. :4001), client IP address and TCP port (e.g. 127.0.0.1:4001) or local RS232 port
%127.0.0.1:55555
COM3
% BaudRate
256000
% Timeout (in ms)
2500
% threadperiod (in ms, require associated thread)
50
% bSaveRawData (require associated thread)
1
% bStartScanModeAtStartup
1
% ScanMode (0 : SCAN, 1 : EXPRESS_SCAN, 2 : FORCE_SCAN)
0
% motordelay (in ms)
2000
% maxhist (0 : try to automatically remove old data, around 180 : advised for SCAN mode, around 360 : advised for EXPRESS_SCAN mode, require associated thread)
360
% alpha_max_err (in rad)
0.01
% d_max_err (in m)
0.1
MATLAB Crash Report:
MATLAB crash file:C:\Users\ihandzic\AppData\Local\Temp\matlab_crash_dump.12344-1:
--------------------------------------------------------------------------------
Access violation detected at Fri Jul 17 12:12:00 2020 -0400
--------------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled - No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : windows-1252
Deployed : false
Graphics Driver : NVIDIA Corporation Quadro M2200/PCIe/SSE2 Version 4.6.0 NVIDIA 391.58
Graphics card 1 : Intel Corporation ( 0x8086 ) Intel(R) HD Graphics P630 Version 26.20.100.8142 (2020-4-11)
Graphics card 2 : NVIDIA ( 0x10de ) NVIDIA Quadro M2200 Version 23.21.13.9158 (2018-4-30)
Java Version : Java 1.8.0_152-b16 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : win64
MATLAB Entitlement ID : 4791263
MATLAB Root : C:\Program Files\MATLAB\R2018b
MATLAB Version : 9.5.0.944444 (R2018b)
OpenGL : hardware
Operating System : Microsoft Windows 10 Pro for Workstations
Process ID : 12344
Processor ID : x86 Family 6 Model 158 Stepping 9, GenuineIntel
Session Key : ec080639-51b4-485b-a033-5d77013b021c
Window System : Version 10.0 (Build 18362)
Fault Count: 1
Abnormal termination
Register State (from fault):
RAX = 00000000efdc6680 RBX = 00000000efdc6910
RCX = 0000000000000000 RDX = 00000000043f8450
RSP = 00000000043f8410 RBP = 000000000000127f
RSI = 00000000efdc6890 RDI = 00000000efdc65c0
R8 = 00000000043f8430 R9 = 00000000efdc6910
R10 = 00000000cf1d23c0 R11 = 00000000043f8570
R12 = 00000000043f8650 R13 = 00007ffad2551600
R14 = 00000000169eb460 R15 = 00000000efc48d40
RIP = 000000000471983e EFL = 00010202
CS = 0033 FS = 0053 GS = 002b
Stack Trace (from fault):
[ 0] 0x000000000471983e C:\Users\ihandzic\Downloads\Hardware-MATLAB\x64\hardwarex.dll+00104510
[ 1] 0x00007ffad25516bc C:\Users\ihandzic\Downloads\Hardware-MATLAB\hardwarex_thunk_pcwin64.dll+00005820 int32voidPtrvoidPtrvoidPtrvoidPtrvoidPtrThunk+00000188
[ 2] 0x00000000cf18ea00 bin\win64\libmwcli.dll+00059904
[ 3] 0x00000000cf19313d bin\win64\libmwcli.dll+00078141
[ 4] 0x00000000cf1b32a9 bin\win64\libmwcli.dll+00209577 PointerMapSize+00104489
[ 5] 0x00000000cf1b474d bin\win64\libmwcli.dll+00214861 PointerMapSize+00109773
[ 6] 0x00000000179ab724 bin\win64\pgo\m_dispatcher.dll+00046884 Mdispatcher::getDispatcher+00002228
[ 7] 0x00000000179aca07 bin\win64\pgo\m_dispatcher.dll+00051719 Mfh_MATLAB_fn_impl::dispatch_fh_with_reuse+00000343
[ 8] 0x000000001855263c bin\win64\pgo\m_lxe.dll+01189436 mwboost::archive::detail::iserializer<mwboost::archive::binaryTerm_iarchive,MathWorks::lxe::function_descriptor>::load_object_data+00307456
[ 9] 0x000000001848b8e7 bin\win64\pgo\m_lxe.dll+00375015
[ 10] 0x000000001864b5b9 bin\win64\pgo\m_lxe.dll+02209209 mwboost::archive::detail::iserializer<mwboost::archive::binaryTerm_iarchive,std::vector<MathWorks::utl::attach_ptr<ir::IrTree>,std::allocator<MathWorks::utl::attach_ptr<ir::IrTree> > > >::load_object_data+00032749
[ 11] 0x0000000018484ceb bin\win64\pgo\m_lxe.dll+00347371
[ 12] 0x0000000018615a0f bin\win64\pgo\m_lxe.dll+01989135 mwboost::archive::detail::iserializer<mwboost::archive::binaryTerm_iarchive,MathWorks::lxe::function_descriptor>::load_object_data+01107155
[ 13] 0x000000001861597d bin\win64\pgo\m_lxe.dll+01988989 mwboost::archive::detail::iserializer<mwboost::archive::binaryTerm_iarchive,MathWorks::lxe::function_descriptor>::load_object_data+01107009
[ 14] 0x000000001848ab16 bin\win64\pgo\m_lxe.dll+00371478
[ 15] 0x0000000018488e1c bin\win64\pgo\m_lxe.dll+00364060
[ 16] 0x000000001849b265 bin\win64\pgo\m_lxe.dll+00438885
[ 17] 0x0000000018498e26 bin\win64\pgo\m_lxe.dll+00429606
[ 18] 0x0000000018498a24 bin\win64\pgo\m_lxe.dll+00428580
[ 19] 0x00000000179ae007 bin\win64\pgo\m_dispatcher.dll+00057351 Mfh_file::dispatch_fh_impl+00001111
[ 20] 0x00000000179adaf2 bin\win64\pgo\m_dispatcher.dll+00056050 Mfh_file::dispatch_fh_with_reuse+00000066
[ 21] 0x000000001855263c bin\win64\pgo\m_lxe.dll+01189436 mwboost::archive::detail::iserializer<mwboost::archive::binaryTerm_iarchive,MathWorks::lxe::function_descriptor>::load_object_data+00307456
[ 22] 0x000000001848b8e7 bin\win64\pgo\m_lxe.dll+00375015
[ 23] 0x000000001864b5b9 bin\win64\pgo\m_lxe.dll+02209209 mwboost::archive::detail::iserializer<mwboost::archive::binaryTerm_iarchive,std::vector<MathWorks::utl::attach_ptr<ir::IrTree>,std::allocator<MathWorks::utl::attach_ptr<ir::IrTree> > > >::load_object_data+00032749
[ 24] 0x0000000018484ceb bin\win64\pgo\m_lxe.dll+00347371
[ 25] 0x0000000018615a0f bin\win64\pgo\m_lxe.dll+01989135 mwboost::archive::detail::iserializer<mwboost::archive::binaryTerm_iarchive,MathWorks::lxe::function_descriptor>::load_object_data+01107155
[ 26] 0x000000001861597d bin\win64\pgo\m_lxe.dll+01988989 mwboost::archive::detail::iserializer<mwboost::archive::binaryTerm_iarchive,MathWorks::lxe::function_descriptor>::load_object_data+01107009
[ 27] 0x000000001848ab16 bin\win64\pgo\m_lxe.dll+00371478
[ 28] 0x0000000018488e1c bin\win64\pgo\m_lxe.dll+00364060
[ 29] 0x000000001849b265 bin\win64\pgo\m_lxe.dll+00438885
[ 30] 0x000000001849a88c bin\win64\pgo\m_lxe.dll+00436364
[ 31] 0x0000000018498779 bin\win64\pgo\m_lxe.dll+00427897
[ 32] 0x00000000184990eb bin\win64\pgo\m_lxe.dll+00430315
[ 33] 0x0000000018498a49 bin\win64\pgo\m_lxe.dll+00428617
[ 34] 0x00000000179ae007 bin\win64\pgo\m_dispatcher.dll+00057351 Mfh_file::dispatch_fh_impl+00001111
[ 35] 0x00000000179ada9e bin\win64\pgo\m_dispatcher.dll+00055966 Mfh_file::dispatch_fh+00000062
[ 36] 0x0000000018484ead bin\win64\pgo\m_lxe.dll+00347821
[ 37] 0x000000001861e9b6 bin\win64\pgo\m_lxe.dll+02025910 MathWorks::lxe::ShutdownLxeEngine+00004034
[ 38] 0x000000001857fd3c bin\win64\pgo\m_lxe.dll+01375548 mwboost::archive::detail::iserializer<mwboost::archive::binaryTerm_iarchive,MathWorks::lxe::function_descriptor>::load_object_data+00493568
[ 39] 0x000000001858091c bin\win64\pgo\m_lxe.dll+01378588 mwboost::archive::detail::iserializer<mwboost::archive::binaryTerm_iarchive,MathWorks::lxe::function_descriptor>::load_object_data+00496608
[ 40] 0x0000000018581c92 bin\win64\pgo\m_lxe.dll+01383570 mwboost::archive::detail::iserializer<mwboost::archive::binaryTerm_iarchive,MathWorks::lxe::function_descriptor>::load_object_data+00501590
[ 41] 0x00000000185828f8 bin\win64\pgo\m_lxe.dll+01386744 mwboost::archive::detail::iserializer<mwboost::archive::binaryTerm_iarchive,MathWorks::lxe::function_descriptor>::load_object_data+00504764
[ 42] 0x0000000018581ddf bin\win64\pgo\m_lxe.dll+01383903 mwboost::archive::detail::iserializer<mwboost::archive::binaryTerm_iarchive,MathWorks::lxe::function_descriptor>::load_object_data+00501923
[ 43] 0x0000000018581ede bin\win64\pgo\m_lxe.dll+01384158 mwboost::archive::detail::iserializer<mwboost::archive::binaryTerm_iarchive,MathWorks::lxe::function_descriptor>::load_object_data+00502178
[ 44] 0x0000000018489a7d bin\win64\pgo\m_lxe.dll+00367229
[ 45] 0x000000001849b265 bin\win64\pgo\m_lxe.dll+00438885
[ 46] 0x000000001849a88c bin\win64\pgo\m_lxe.dll+00436364
[ 47] 0x00000000184942a1 bin\win64\pgo\m_lxe.dll+00410273
[ 48] 0x00000000184939c6 bin\win64\pgo\m_lxe.dll+00408006
[ 49] 0x0000000018493ace bin\win64\pgo\m_lxe.dll+00408270
[ 50] 0x0000000018673780 bin\win64\pgo\m_lxe.dll+02373504 mwboost::archive::detail::oserializer<mwboost::archive::xml_oarchive,MathWorks::lxe::CodeClearEvent>::oserializer<mwboost::archive::xml_oarchive,MathWorks::lxe::CodeClearEvent>+00012824
[ 51] 0x000000001867372e bin\win64\pgo\m_lxe.dll+02373422 mwboost::archive::detail::oserializer<mwboost::archive::xml_oarchive,MathWorks::lxe::CodeClearEvent>::oserializer<mwboost::archive::xml_oarchive,MathWorks::lxe::CodeClearEvent>+00012742
[ 52] 0x00000000185534fd bin\win64\pgo\m_lxe.dll+01193213 mwboost::archive::detail::iserializer<mwboost::archive::binaryTerm_iarchive,MathWorks::lxe::function_descriptor>::load_object_data+00311233
[ 53] 0x00000000178269e7 bin\win64\pgo\m_interpreter.dll+00354791 inEvalCmdWithLocalReturn+00000063
[ 54] 0x00000000fb610388 bin\win64\libmwbridge.dll+00131976 mnParser+00001304
[ 55] 0x00000000180e3618 bin\win64\mcr.dll+00341528 mcr::runtime::setInterpreterThreadSingletonToCurrent+00020808
[ 56] 0x00000000180e414d bin\win64\mcr.dll+00344397 mcr::runtime::setInterpreterThreadSingletonToCurrent+00023677
[ 57] 0x00000000180ab1ba bin\win64\mcr.dll+00111034 mcrOptions::set_use_license_manager+00075498
[ 58] 0x00000000180c6e74 bin\win64\mcr.dll+00224884 mcrOptions::set_use_license_manager+00189348
[ 59] 0x00000000fd02cfee bin\win64\iqm.dll+00643054 iqm::PackagedTaskPlugin::execute+00000894
[ 60] 0x00000000fd02ce63 bin\win64\iqm.dll+00642659 iqm::PackagedTaskPlugin::execute+00000499
[ 61] 0x00000000fcffcc07 bin\win64\iqm.dll+00445447 iqm::Iqm::setupIqmFcnPtrs+00076215
[ 62] 0x00000000fcffcc59 bin\win64\iqm.dll+00445529 iqm::Iqm::setupIqmFcnPtrs+00076297
[ 63] 0x00000000fcffca16 bin\win64\iqm.dll+00444950 iqm::Iqm::setupIqmFcnPtrs+00075718
[ 64] 0x00000000fcfd9748 bin\win64\iqm.dll+00300872 iqm::Iqm::deliver+00005880
[ 65] 0x00000000fcfd8eef bin\win64\iqm.dll+00298735 iqm::Iqm::deliver+00003743
[ 66] 0x00000000fcfdac0d bin\win64\iqm.dll+00306189 iqm::Iqm::deliver+00011197
[ 67] 0x0000000100203775 bin\win64\libmwservices.dll+02176885 services::system_events::PpeDispatchHook::dispatchOne+00036213
[ 68] 0x0000000100212a63 bin\win64\libmwservices.dll+02239075 sysq::addProcessPendingEventsUnitTestHook+00006035
[ 69] 0x0000000100214310 bin\win64\libmwservices.dll+02245392 sysq::getCondition+00004208
[ 70] 0x000000010021596d bin\win64\libmwservices.dll+02251117 svWS_ProcessPendingEvents+00000221
[ 71] 0x00000000180e7724 bin\win64\mcr.dll+00358180 mcr::runtime::setInterpreterThreadSingletonToCurrent+00037460
[ 72] 0x00000000180e7f16 bin\win64\mcr.dll+00360214 mcr::runtime::setInterpreterThreadSingletonToCurrent+00039494
[ 73] 0x00000000180dcabf bin\win64\mcr.dll+00314047 mcr_process_events+00001007
[ 74] 0x0000000017fed040 bin\win64\MVMLocal.dll+00380992 mvm_server::inproc::LocalFactory::terminate+00177312
[ 75] 0x00000000fa9d9480 bin\win64\mvm.dll+01741952 mvm::detail::SessionImpl::initWithOptions+00000592
[ 76] 0x00000000fa9da170 bin\win64\mvm.dll+01745264 mvm::detail::SessionImpl::runMain+00000128
[ 77] 0x00000000fa9da395 bin\win64\mvm.dll+01745813 mvm::detail::SessionImpl::runMatlabDesktop+00000261
[ 78] 0x0000000140007036 bin\win64\MATLAB.exe+00028726 mwboost::serialization::singleton_module::unlock+00000966
[ 79] 0x0000000140007f13 bin\win64\MATLAB.exe+00032531 mwboost::serialization::singleton_module::unlock+00004771
[ 80] 0x00007ffadec77bd4 C:\WINDOWS\System32\KERNEL32.DLL+00097236 BaseThreadInitThunk+00000020
[ 81] 0x00007ffae086ce51 C:\WINDOWS\SYSTEM32\ntdll.dll+00446033 RtlUserThreadStart+00000033
Metadata
Metadata
Assignees
Labels
No labels