Matlab 2023B keeps crashing every time I edit a script
Show older comments
Here is the log
------------------------------------------------
MATLAB Log File
------------------------------------------------
--------------------------------------------------------------------------------
Access violation detected at 2026-03-13 21:50:24 -0700
--------------------------------------------------------------------------------
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 : Microsoft ( 0x0 ) Microsoft Remote Display Adapter Version 10.0.26100.7705 (2006-6-21)
Graphics card 2 : NVIDIA ( 0x10de ) NVIDIA RTX A4000 Version 27.21.14.6296 (2021-7-2)
Interpreter 0 : Executing request: 54434D657373616765536572766963654C6966656379636C65506C7567696E2E637070
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 : 13541140
MATLAB Root : C:\Program Files\MATLAB\R2023b
MATLAB Version : 23.2.0.2485118 (R2023b) Update 6
OpenGL : hardware
Operating System : Microsoft Windows 11 Pro
Process ID : 14832
Processor ID : x86 Family 25 Model 33 Stepping 0, AuthenticAMD
Session Key : fff3bd3b-69ba-4abf-b330-25c329984861
Window System : Version 10.0 (Build 26200)
Fault Count: 1
Abnormal termination:
Access violation
Current Thread: 'MCR 0 interpreter thread' id 17220
Register State (from fault):
RAX = 0000000000000000 RBX = 000001dcd0ddc190
RCX = 000001dcd0ddc190 RDX = 0000000000000000
RSP = 000000b42f8f5080 RBP = 0000000000000000
RSI = 0000000000000000 RDI = 000001dcd4a096c0
R8 = 000001dccdcc0080 R9 = 000000000000001b
R10 = 000001dcdfda0000 R11 = 000000b42f8f5108
R12 = 0000000000000000 R13 = 000000b42f8f5e40
R14 = 00007ffcc272e468 R15 = 00007ffcc272d180
RIP = 00007ffcc15cf5ca EFL = 00010246
CS = 0033 FS = 0053 GS = 002b
Stack Trace (from fault):
[ 0] 0x00007ffcc15cf5ca C:\WINDOWS\system32\DriverStore\FileRepository\nv_dispi.inf_amd64_ec858e090be52f0e\nvcuda64.dll+03995082 cuProfilerStop+01762586
[ 1] 0x00007ffcc15c0300 C:\WINDOWS\system32\DriverStore\FileRepository\nv_dispi.inf_amd64_ec858e090be52f0e\nvcuda64.dll+03932928 cuProfilerStop+01700432
[ 2] 0x00007ffcc13b9127 C:\WINDOWS\system32\DriverStore\FileRepository\nv_dispi.inf_amd64_ec858e090be52f0e\nvcuda64.dll+01806631
[ 3] 0x00007ffcc13bc1c5 C:\WINDOWS\system32\DriverStore\FileRepository\nv_dispi.inf_amd64_ec858e090be52f0e\nvcuda64.dll+01819077
[ 4] 0x00007ffcc136b277 C:\WINDOWS\system32\DriverStore\FileRepository\nv_dispi.inf_amd64_ec858e090be52f0e\nvcuda64.dll+01487479
[ 5] 0x00007ffcc136c436 C:\WINDOWS\system32\DriverStore\FileRepository\nv_dispi.inf_amd64_ec858e090be52f0e\nvcuda64.dll+01492022
[ 6] 0x00007ffcc136c670 C:\WINDOWS\system32\DriverStore\FileRepository\nv_dispi.inf_amd64_ec858e090be52f0e\nvcuda64.dll+01492592
[ 7] 0x00007ffcc13cb844 C:\WINDOWS\system32\DriverStore\FileRepository\nv_dispi.inf_amd64_ec858e090be52f0e\nvcuda64.dll+01882180 cuInit+00000500
[ 8] 0x00007ffcc86a8949 C:\WINDOWS\SYSTEM32\nvcuda.dll+02066761 cuInit+00000169
[ 9] 0x00007ffcc88a7518 C:\Program Files\MATLAB\R2023b\bin\win64\gpudeviceinfo.dll+00095512 MLTerminate_gpudeviceinfo+00042808
[ 10] 0x00007ffcc889e858 C:\Program Files\MATLAB\R2023b\bin\win64\gpudeviceinfo.dll+00059480 MLTerminate_gpudeviceinfo+00006776
[ 11] 0x00007ffcc88a5622 C:\Program Files\MATLAB\R2023b\bin\win64\gpudeviceinfo.dll+00087586 MLTerminate_gpudeviceinfo+00034882
[ 12] 0x00007ffcc88aa7d3 C:\Program Files\MATLAB\R2023b\bin\win64\gpudeviceinfo.dll+00108499 gpudeviceinfo::setDeviceStatusCallback+00000899
[ 13] 0x00007ffcc889c6ee C:\Program Files\MATLAB\R2023b\bin\win64\gpudeviceinfo.dll+00050926 gpudeviceinfo::validateGPU+00000014
[ 14] 0x00007ffcc89097be C:\Program Files\MATLAB\R2023b\bin\win64\gpushim.dll+00235454 gpushim::gpuArrayLXE::setHandle+00010046
[ 15] 0x00007ffcc8909047 C:\Program Files\MATLAB\R2023b\bin\win64\gpushim.dll+00233543 gpushim::gpuArrayLXE::setHandle+00008135
[ 16] 0x00007ffcc890b417 C:\Program Files\MATLAB\R2023b\bin\win64\gpushim.dll+00242711 gpushim::gpuArrayLXE::setHandle+00017303
[ 17] 0x00007ffcc88fc590 C:\Program Files\MATLAB\R2023b\bin\win64\gpushim.dll+00181648 gpushim::MLTerminate_gpushim+00011728
[ 18] 0x00007ffcc88f9763 C:\Program Files\MATLAB\R2023b\bin\win64\gpushim.dll+00169827 gpushim::MLInitialize_gpushim+00000019
[ 19] 0x00007ffcc8e1bf6f C:\Program Files\MATLAB\R2023b\bin\win64\builtins\parallel\gpuapi\shim\mwgpushim_builtinimpl.dll+04636527 gpushim::gpuArrayLXE::~gpuArrayLXE+00657487
[ 20] 0x00007ffd23f82967 C:\Program Files\MATLAB\R2023b\bin\win64\m_dispatcher.dll+00403815 mdLoadLmBuiltinAllowedProtected::operator=+00020119
[ 21] 0x00007ffd23f5ea73 C:\Program Files\MATLAB\R2023b\bin\win64\m_dispatcher.dll+00256627 Mlm_MATLAB_fn_impl::try_load+00000035
[ 22] 0x00007ffd23f5e13c C:\Program Files\MATLAB\R2023b\bin\win64\m_dispatcher.dll+00254268 Mlm_MATLAB_fn_impl::load+00000044
[ 23] 0x00007ffd23f732da C:\Program Files\MATLAB\R2023b\bin\win64\m_dispatcher.dll+00340698 mdLoadModuleForPackageOrClass+00000522
[ 24] 0x00007ffce6b1bb44 C:\Program Files\MATLAB\R2023b\bin\win64\mcos_impl.dll+00965444 mwboost::serialization::singleton_module::unlock+00443268
[ 25] 0x00007ffd31c70eca C:\Program Files\MATLAB\R2023b\bin\win64\contextdata.dll+00134858 MCOSContextData::ClassInfo::getSuperclassesOfClass+00000058
[ 26] 0x00007ffd31c6264e C:\Program Files\MATLAB\R2023b\bin\win64\contextdata.dll+00075342 MCOSContextData::ClassInfo::ClassInfo+00000366
[ 27] 0x00007ffcd133d898 C:\Program Files\MATLAB\R2023b\bin\win64\pa_bridges.dll+00120984 PathItemImpl::isA+00000504
[ 28] 0x00007ffd226ef391 C:\Program Files\MATLAB\R2023b\bin\win64\pa_function_registry.dll+00652177 MathWorks::functionRegistry::Argument::isArgumentAttribute+00292433
[ 29] 0x00007ffd22780d82 C:\Program Files\MATLAB\R2023b\bin\win64\pa_function_registry.dll+01248642 MathWorks::functionRegistry::fileParts+00003362
[ 30] 0x00007ffd2278fb1c C:\Program Files\MATLAB\R2023b\bin\win64\pa_function_registry.dll+01309468 MathWorks::functionRegistry::Function::lookupFunctionsWithoutPathInfo+00000124
[ 31] 0x00007ffd2278766a C:\Program Files\MATLAB\R2023b\bin\win64\pa_function_registry.dll+01275498 MathWorks::functionRegistry::Function::SignatureMismatchException::getFunction+00009898
[ 32] 0x00007ffd22785d64 C:\Program Files\MATLAB\R2023b\bin\win64\pa_function_registry.dll+01269092 MathWorks::functionRegistry::Function::SignatureMismatchException::getFunction+00003492
[ 33] 0x00007ffd227850b4 C:\Program Files\MATLAB\R2023b\bin\win64\pa_function_registry.dll+01265844 MathWorks::functionRegistry::Function::SignatureMismatchException::getFunction+00000244
[ 34] 0x00007ffd22788925 C:\Program Files\MATLAB\R2023b\bin\win64\pa_function_registry.dll+01280293 MathWorks::functionRegistry::MetadataContainers::getJsonSignatureStems+00000405
[ 35] 0x00007ffd22789976 C:\Program Files\MATLAB\R2023b\bin\win64\pa_function_registry.dll+01284470 MathWorks::functionRegistry::getMatchingFunctionsForStaticAnalysis+00000230
[ 36] 0x00007ffcd15eaa62 C:\Program Files\MATLAB\R2023b\bin\win64\tabcompletion.dll+00895586 mwboost::serialization::singleton_module::unlock+00827586
[ 37] 0x00007ffcd15e8070 C:\Program Files\MATLAB\R2023b\bin\win64\tabcompletion.dll+00884848 mwboost::serialization::singleton_module::unlock+00816848
[ 38] 0x00007ffcd15e7d44 C:\Program Files\MATLAB\R2023b\bin\win64\tabcompletion.dll+00884036 mwboost::serialization::singleton_module::unlock+00816036
[ 39] 0x00007ffcd158f5ff C:\Program Files\MATLAB\R2023b\bin\win64\tabcompletion.dll+00521727 mwboost::serialization::singleton_module::unlock+00453727
[ 40] 0x00007ffcd15407ef C:\Program Files\MATLAB\R2023b\bin\win64\tabcompletion.dll+00198639 mwboost::serialization::singleton_module::unlock+00130639
[ 41] 0x00007ffcd15411af C:\Program Files\MATLAB\R2023b\bin\win64\tabcompletion.dll+00201135 mwboost::serialization::singleton_module::unlock+00133135
[ 42] 0x00007ffcd1540b7e C:\Program Files\MATLAB\R2023b\bin\win64\tabcompletion.dll+00199550 mwboost::serialization::singleton_module::unlock+00131550
[ 43] 0x00007ffcd1598a10 C:\Program Files\MATLAB\R2023b\bin\win64\tabcompletion.dll+00559632 mwboost::serialization::singleton_module::unlock+00491632
[ 44] 0x00007ffcd15986d9 C:\Program Files\MATLAB\R2023b\bin\win64\tabcompletion.dll+00558809 mwboost::serialization::singleton_module::unlock+00490809
[ 45] 0x00007ffcd16a26ea C:\Program Files\MATLAB\R2023b\bin\win64\tabcompletion.dll+01648362 TabContext::FindCompletion+00006186
[ 46] 0x00007ffcd16a621a C:\Program Files\MATLAB\R2023b\bin\win64\tabcompletion.dll+01663514 TabContext::GetInfo+00001050
[ 47] 0x00007ffcd16a473a C:\Program Files\MATLAB\R2023b\bin\win64\tabcompletion.dll+01656634 TabContext::GetInfo+00002074
[ 48] 0x00007ffcd16a5d2f C:\Program Files\MATLAB\R2023b\bin\win64\tabcompletion.dll+01662255 TabContext::GetInfo+00000143
[ 49] 0x00007ffcca07e2b2 C:\Program Files\MATLAB\R2023b\bin\win64\connector_plugins\tabcompletion_message_service\mwtabcompletion_message_service.dll+00254642 mwboost::archive::codecvt_null<wchar_t>::~codecvt_null<wchar_t>+00031026
[ 50] 0x00007ffcca08fcc7 C:\Program Files\MATLAB\R2023b\bin\win64\connector_plugins\tabcompletion_message_service\mwtabcompletion_message_service.dll+00326855 mwboost::serialization::singleton_module::get_lock+00002935
[ 51] 0x00007ffcca058856 C:\Program Files\MATLAB\R2023b\bin\win64\connector_plugins\tabcompletion_message_service\mwtabcompletion_message_service.dll+00100438
[ 52] 0x00007ffcca084c20 C:\Program Files\MATLAB\R2023b\bin\win64\connector_plugins\tabcompletion_message_service\mwtabcompletion_message_service.dll+00281632 mwboost::archive::codecvt_null<wchar_t>::`default constructor closure'+00020528
[ 53] 0x00007ffd243c8c3a C:\Program Files\MATLAB\R2023b\bin\win64\iqm.dll+00822330 iqm::PackagedTaskPlugin::execute+00000074
[ 54] 0x00007ffd241d58e0 C:\Program Files\MATLAB\R2023b\bin\win64\mcr.dll+00415968 installMOCmdWinSink+00074384
[ 55] 0x00007ffd2439cbb7 C:\Program Files\MATLAB\R2023b\bin\win64\iqm.dll+00641975 iqm::Iqm::setupIqmFcnPtrs+00100471
[ 56] 0x00007ffd2436cc61 C:\Program Files\MATLAB\R2023b\bin\win64\iqm.dll+00445537 iqm::Iqm::create+00007745
[ 57] 0x00007ffd23963f5e C:\Program Files\MATLAB\R2023b\bin\win64\libmwbridge.dll+00081758 ioReadLine+00000430
[ 58] 0x00007ffd23963d75 C:\Program Files\MATLAB\R2023b\bin\win64\libmwbridge.dll+00081269 ioReadLine+00000165
[ 59] 0x00007ffd23995fb0 C:\Program Files\MATLAB\R2023b\bin\win64\libmwbridge.dll+00286640 mnGetCommandLineBuffer+00000288
[ 60] 0x00007ffd239964b2 C:\Program Files\MATLAB\R2023b\bin\win64\libmwbridge.dll+00287922 mnParser+00000578
[ 61] 0x00007ffd241db398 C:\Program Files\MATLAB\R2023b\bin\win64\mcr.dll+00439192 mcr_initialize_main+00013816
[ 62] 0x00007ffd24188604 C:\Program Files\MATLAB\R2023b\bin\win64\mcr.dll+00099844 mcrFunctionSignature::set_signature+00078996
[ 63] 0x00007ffd241a61a0 C:\Program Files\MATLAB\R2023b\bin\win64\mcr.dll+00221600 mwboost::archive::codecvt_null<wchar_t>::`default constructor closure'+00017728
[ 64] 0x00007ffd243c8c3a C:\Program Files\MATLAB\R2023b\bin\win64\iqm.dll+00822330 iqm::PackagedTaskPlugin::execute+00000074
[ 65] 0x00007ffd241d58e0 C:\Program Files\MATLAB\R2023b\bin\win64\mcr.dll+00415968 installMOCmdWinSink+00074384
[ 66] 0x00007ffd2439cbb7 C:\Program Files\MATLAB\R2023b\bin\win64\iqm.dll+00641975 iqm::Iqm::setupIqmFcnPtrs+00100471
[ 67] 0x00007ffd2436de81 C:\Program Files\MATLAB\R2023b\bin\win64\iqm.dll+00450177 iqm::Iqm::create+00012385
[ 68] 0x00007ffd2436d5c9 C:\Program Files\MATLAB\R2023b\bin\win64\iqm.dll+00447945 iqm::Iqm::create+00010153
[ 69] 0x00007ffd241c1c1c C:\Program Files\MATLAB\R2023b\bin\win64\mcr.dll+00334876 mcrInstantiationError::operator=+00009948
[ 70] 0x00007ffd241c2645 C:\Program Files\MATLAB\R2023b\bin\win64\mcr.dll+00337477 mcrInstantiationError::operator=+00012549
[ 71] 0x00007ffd241bffd0 C:\Program Files\MATLAB\R2023b\bin\win64\mcr.dll+00327632 mcrInstantiationError::operator=+00002704
[ 72] 0x00007ffd5bcb92ea C:\Program Files\MATLAB\R2023b\bin\win64\mwboost_thread-vc142-mt-x64-1_78.dll+00037610 mwboost::detail::win32::handle_manager::swap+00001642
[ 73] 0x00007ffd7a8437b0 C:\WINDOWS\System32\ucrtbase.dll+00014256 wcsrchr+00000336
[ 74] 0x00007ffd7bd2e8d7 C:\WINDOWS\System32\KERNEL32.DLL+00190679 BaseThreadInitThunk+00000023
[ 75] 0x00007ffd7dfec40c C:\WINDOWS\SYSTEM32\ntdll.dll+00574476 RtlUserThreadStart+00000044
1 Comment
Now send this log-file to Mathworks support (together with a short description of the problem you encounter):
Here i what AI tells you could try:
MATLAB 2023b crashing while editing a script is often related to Java-based UI issues (especially on macOS), graphics driver issues, or temporary file corruption. Here are the steps to recover your work and resolve the issue based on common experiences with R2023b.
1. Recover Unsaved Script
If you had an unsaved or "untitled" script open:
- Check Temp Folder: Type tempdir in the MATLAB command window (or check the temp folder path in your OS) to find where MATLAB stores backup files.
- Auto-Save Recovery: When restarting, MATLAB often offers a recovery session if it detects improper closure.
- File History: Check the matlab directory in your user profile for potential auto-save files.
2. Immediate Fixes & Workarounds
- Disable Data Tips (Variable Previews): A known issue in R2023a/b is that hovering over variables to see previews (datatips) while editing can cause crashes. Disable this in Preferences if necessary.
- Avoid Closing Plots Manually (macOS): On macOS (especially Sonoma), closing figures using the red 'X' can crash the editor. Use close all in the command window instead.
- Clear MATLAB Cache: Delete the ~/.matlab folder (or prefdir on Windows) to clear corrupted preferences, though this will reset settings.
- Run as Administrator (Windows): Occasionally, permissions issues cause editor crashes.
3. Stability Upgrades
- Update to Latest Update Version: Ensure you are running the latest update of 2023b (e.g., Update 5 or later) as many crashes were resolved in subsequent updates.
- Use the New Desktop (Beta): If you are on macOS and experiencing constant unresponsiveness, enable the new MATLAB desktop (available as a beta in recent R2023b updates) to bypass old Java issues.
4. If Crashes Persist
- Check Graphics Drivers: Update your system's graphics drivers, as the MATLAB editor relies on them heavily.
- Check for Infinite Loops: If the crash happens specifically when running code, ensure there are no infinite recursion/loops that exhaust system memory.
- Gather Diagnostics: Look for a matlab_crash_dump.* file in your temp directory and send it to MathWorks support.
Answers (0)
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!