- Please go through the comments in the MATLAB Answer post- https://www.mathworks.com/matlabcentral/answers/1855028-matlab-crashed-when-running-the-mexw64-file
- Try installing MinW-w64 compiler through- https://www.mathworks.com/help/matlab/matlab_external/install-mingw-support-package.html
- https://www.mathworks.com/matlabcentral/answers/219784-talking-to-my-parallel-port-lpt1
MatLab encounters internal problem and closes when using io64
19 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I am trying to implement a script that was functional on a different computer on a new computer. Both are running R2015a. A small code sample is sufficient to recreate the issue:
ioObj = io64;
status = io64(ioObj)
address = hex2dec('3FF8');
io64(ioObj,address,0);
When running this I receive the error: "MATLAB has encountered an internal problem and needs to close." The full contents of the error are reproduced below:
------------------------------------------------------------------------
Access violation detected at Tue Jan 10 16:52:12 2023
------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled
Crash Mode : continue (default)
Current Graphics Driver: Unknown hardware
Default Encoding : windows-1252
Graphics card 1 : NVIDIA ( 0x10de ) NVIDIA Quadro 600 Version 10.18.13.5362
Graphics card 2 : Intel Corporation ( 0x8086 ) Intel(R) UHD Graphics 630 Version 30.0.101.1692
Host Name : CNPRC-D03525
MATLAB Architecture : win64
MATLAB Root : C:\Program Files\MATLAB\R2015a
MATLAB Version : 8.5.0.197613 (R2015a)
OpenGL : hardware
Operating System : Microsoft Windows 10 Enterprise
Processor ID : x86 Family 6 Model 158 Stepping 13, GenuineIntel
Virtual Machine : Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
Window System : Version 10.0 (Build 19041)
Fault Count: 1
Abnormal termination:
Access violation
Register State (from fault):
RAX = 000000001f356bd0 RBX = 0000000000000000
RCX = 0000000000003ff8 RDX = 0000000000000000
RSP = 00000000043f7328 RBP = 00000000043f81b0
RSI = 00000000043f80b0 RDI = 0000000000003ff8
R8 = 000000001f353e60 R9 = 0000000000000000
R10 = 7efefefefeff3f3f R11 = 8101010101010100
R12 = 0000000000000003 R13 = 0000000016beb1f0
R14 = 000000000000127f R15 = 0000000000000003
RIP = 000000001f350150 EFL = 00010202
CS = 0033 FS = 0053 GS = 002b
Stack Trace (from fault):
[ 0] 0x000000001f350150 <unknown-module>+00000000
[ 1] 0x0000000015e71982 C:\Users\admin-moadab\Documents\Cogent2000v1.33\Toolbox\io64.mexw64+00006530 mexFunction+00000306
[ 2] 0x00000000fc5f3751 C:\Program Files\MATLAB\R2015a\bin\win64\libmex.dll+00079697 mexRunMexFile+00000129
[ 3] 0x00000000fc5f2a72 C:\Program Files\MATLAB\R2015a\bin\win64\libmex.dll+00076402 inSwapMexfileReader+00000594
[ 4] 0x00000000fc5f25c8 C:\Program Files\MATLAB\R2015a\bin\win64\libmex.dll+00075208 mexUnlock+00002840
[ 5] 0x0000000011472694 C:\Program Files\MATLAB\R2015a\bin\win64\m_dispatcher.dll+00075412 Mfh_file::dispatch_fh+00000548
[ 6] 0x0000000011472a7e C:\Program Files\MATLAB\R2015a\bin\win64\m_dispatcher.dll+00076414 Mfunction_handle::dispatch+00000766
[ 7] 0x00000000116f9597 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00103831 in_is_matlab_function+00048455
[ 8] 0x00000000118131a7 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+01257895 inIsKeyword+00027799
[ 9] 0x00000000116fb69a C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00112282 in_is_matlab_function+00056906
[ 10] 0x00000000117c684f C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00944207 MathWorks::MException::MExceptionEnvelope::MCOSClassID+00000991
[ 11] 0x00000000117c67b1 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00944049 MathWorks::MException::MExceptionEnvelope::MCOSClassID+00000833
[ 12] 0x000000001173da75 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00383605 inGetCurrentWS+00155269
[ 13] 0x000000001173ce8c C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00380556 inGetCurrentWS+00152220
[ 14] 0x000000001173b6e9 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00374505 inGetCurrentWS+00146169
[ 15] 0x0000000011472757 C:\Program Files\MATLAB\R2015a\bin\win64\m_dispatcher.dll+00075607 Mfh_file::dispatch_fh+00000743
[ 16] 0x0000000011472a7e C:\Program Files\MATLAB\R2015a\bin\win64\m_dispatcher.dll+00076414 Mfunction_handle::dispatch+00000766
[ 17] 0x00000000116f9597 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00103831 in_is_matlab_function+00048455
[ 18] 0x00000000118131a7 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+01257895 inIsKeyword+00027799
[ 19] 0x00000000116fb69a C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00112282 in_is_matlab_function+00056906
[ 20] 0x00000000117c684f C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00944207 MathWorks::MException::MExceptionEnvelope::MCOSClassID+00000991
[ 21] 0x00000000117c67b1 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00944049 MathWorks::MException::MExceptionEnvelope::MCOSClassID+00000833
[ 22] 0x000000001173da75 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00383605 inGetCurrentWS+00155269
[ 23] 0x000000001173ce8c C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00380556 inGetCurrentWS+00152220
[ 24] 0x000000001173b6e9 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00374505 inGetCurrentWS+00146169
[ 25] 0x0000000011472757 C:\Program Files\MATLAB\R2015a\bin\win64\m_dispatcher.dll+00075607 Mfh_file::dispatch_fh+00000743
[ 26] 0x0000000011472a7e C:\Program Files\MATLAB\R2015a\bin\win64\m_dispatcher.dll+00076414 Mfunction_handle::dispatch+00000766
[ 27] 0x00000000117cb268 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00963176 inAnonymousFunction+00000360
[ 28] 0x00000000117cb864 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00964708 inAnonymousFunction+00001892
[ 29] 0x00000000117cba25 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00965157 inAnonymousFunction+00002341
[ 30] 0x00000000117cb9f2 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00965106 inAnonymousFunction+00002290
[ 31] 0x00000000117cb9a7 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00965031 inAnonymousFunction+00002215
[ 32] 0x000000001177f6bd C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00652989 inGetCallersWorkSpace+00001805
[ 33] 0x000000001177854d C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00623949 inEvalCmdWithLocalReturn+00000285
[ 34] 0x0000000011778471 C:\Program Files\MATLAB\R2015a\bin\win64\m_interpreter.dll+00623729 inEvalCmdWithLocalReturn+00000065
[ 35] 0x00000000fb5fe82d C:\Program Files\MATLAB\R2015a\bin\win64\libmwbridge.dll+00059437 mnGetPrompt+00002717
[ 36] 0x00000000fb5ff2a9 C:\Program Files\MATLAB\R2015a\bin\win64\libmwbridge.dll+00062121 mnParser+00000745
[ 37] 0x00000000fd0e13d4 C:\Program Files\MATLAB\R2015a\bin\win64\mcr.dll+00398292 mcrInstance::mnParser_on_interpreter_thread+00000036
[ 38] 0x00000000fd0a9757 C:\Program Files\MATLAB\R2015a\bin\win64\mcr.dll+00169815 mcr::runtime::setInterpreterThreadToCurrent+00019751
[ 39] 0x00000000fd0a9793 C:\Program Files\MATLAB\R2015a\bin\win64\mcr.dll+00169875 mcr::runtime::setInterpreterThreadToCurrent+00019811
[ 40] 0x00000000fd0a9f91 C:\Program Files\MATLAB\R2015a\bin\win64\mcr.dll+00171921 mcr::runtime::setInterpreterThreadToCurrent+00021857
[ 41] 0x00000000fab5d216 C:\Program Files\MATLAB\R2015a\bin\win64\uiw.dll+00512534 UIW_AttachThreadInput+00001270
[ 42] 0x00000000fab5caa5 C:\Program Files\MATLAB\R2015a\bin\win64\uiw.dll+00510629 wsd_to_MSW+00004373
[ 43] 0x00000000fab5cb29 C:\Program Files\MATLAB\R2015a\bin\win64\uiw.dll+00510761 wsd_to_MSW+00004505
[ 44] 0x00007ff82aa6ab97 C:\WINDOWS\System32\USER32.dll+00568215 GetClassNameA+00000599
[ 45] 0x00007ff82a9fded9 C:\WINDOWS\System32\USER32.dll+00122585 IsWindowVisible+00000649
[ 46] 0x00007ff82a9fde54 C:\WINDOWS\System32\USER32.dll+00122452 IsWindowVisible+00000516
[ 47] 0x00007ff82bd4fbf4 C:\WINDOWS\SYSTEM32\ntdll.dll+00654324 KiUserCallbackDispatcher+00000036
[ 48] 0x00007ff829661064 C:\WINDOWS\System32\win32u.dll+00004196 NtUserPeekMessage+00000020
[ 49] 0x00007ff82a9ea5c3 C:\WINDOWS\System32\USER32.dll+00042435 PeekMessageW+00000483
[ 50] 0x00007ff82a9e9ad0 C:\WINDOWS\System32\USER32.dll+00039632 PeekMessageA+00000336
[ 51] 0x00000000fab09bdb C:\Program Files\MATLAB\R2015a\bin\win64\uiw.dll+00170971 UIW_ShowMenuItem+00005179
[ 52] 0x00000000fab5db52 C:\Program Files\MATLAB\R2015a\bin\win64\uiw.dll+00514898 UIW_SuspendAttachThreadInput+00000466
[ 53] 0x0000000100122c83 C:\Program Files\MATLAB\R2015a\bin\win64\libmwservices.dll+01256579 services::system_events::PpeDispatchHook::dispatchOne+00032291
[ 54] 0x000000010012e6f5 C:\Program Files\MATLAB\R2015a\bin\win64\libmwservices.dll+01304309 sysq::addProcessPendingEventsUnitTestHook+00005813
[ 55] 0x000000010012e7a0 C:\Program Files\MATLAB\R2015a\bin\win64\libmwservices.dll+01304480 sysq::addProcessPendingEventsUnitTestHook+00005984
[ 56] 0x0000000100130595 C:\Program Files\MATLAB\R2015a\bin\win64\libmwservices.dll+01312149 sysq::getCondition+00004629
[ 57] 0x0000000100131f52 C:\Program Files\MATLAB\R2015a\bin\win64\libmwservices.dll+01318738 svWS_ProcessPendingEvents+00000162
[ 58] 0x00000000fd0aa6ad C:\Program Files\MATLAB\R2015a\bin\win64\mcr.dll+00173741 mcr::runtime::setInterpreterThreadToCurrent+00023677
[ 59] 0x00000000fd0ab31a C:\Program Files\MATLAB\R2015a\bin\win64\mcr.dll+00176922 mcr::runtime::setInterpreterThreadToCurrent+00026858
[ 60] 0x00000000fd0a2f75 C:\Program Files\MATLAB\R2015a\bin\win64\mcr.dll+00143221 mcr_process_events+00007557
[ 61] 0x00000000fd0a4882 C:\Program Files\MATLAB\R2015a\bin\win64\mcr.dll+00149634 mcr_process_events+00013970
[ 62] 0x000000001404b49d C:\Program Files\MATLAB\R2015a\bin\win64\MVMLocal.dll+00177309 mvm_server::inproc::LocalFactory::terminate+00048141
[ 63] 0x00000000fa8fa27a C:\Program Files\MATLAB\R2015a\bin\win64\mvm.dll+00828026 mvm::detail::initLocalMvmHack+00000490
[ 64] 0x00000000fa8fa838 C:\Program Files\MATLAB\R2015a\bin\win64\mvm.dll+00829496 mvm::detail::SessionImpl::privateSession+00000376
[ 65] 0x00000000fa8faa88 C:\Program Files\MATLAB\R2015a\bin\win64\mvm.dll+00830088 mvm::detail::SessionImpl::privateSession+00000968
[ 66] 0x000000014000630d C:\Program Files\MATLAB\R2015a\bin\win64\MATLAB.exe+00025357
[ 67] 0x0000000140007dd0 C:\Program Files\MATLAB\R2015a\bin\win64\MATLAB.exe+00032208
[ 68] 0x00007ff82b436fd4 C:\WINDOWS\System32\KERNEL32.DLL+00094164 BaseThreadInitThunk+00000020
[ 69] 0x00007ff82bcfcec1 C:\WINDOWS\SYSTEM32\ntdll.dll+00315073 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.
If this problem is reproducible, please submit a Service Request via:
http://www.mathworks.com/support/contact_us/
A technical support engineer might contact you with further information.
Thank you for your help.
Is anyone able to tell me why this is occurring? The same script works as expected on a separate machine. Thanks!
0 comentarios
Respuestas (2)
Aashita Dutta
el 13 de En. de 2023
Hello Joey,
I understand that you are facing MATLAB crash issues while using ‘io64’.
The error is likely due to execution of MEX file ‘mexw64’.
Please refer to the following links that can help resolve the issue:
If you still experience issues, please contact MathWorks Support: http://www.mathworks.com/support/contact_us/
Hope this helps!
0 comentarios
Shubham
el 24 de En. de 2024
Editada: Shubham
el 24 de En. de 2024
I succesfully found the issue. The problem is you may not have moved "inpoutx64.dll" file into "c/windows/system32" directory.
Once you move this file, MATLAB stop crashing. The file is available for download on same webiste from where you got io64 file.
0 comentarios
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!