Why is the MATLAB R2024b and R2025a Prerelease crashing with "libmwagentspflegacyservicepublisher.dll" in the stack trace?
122 views (last 30 days)
Show older comments
MathWorks Support Team
on 24 Apr 2025
Answered: MathWorks Support Team
on 24 Apr 2025
I am experiencing a sporadic crash in MATLAB. MATLAB crashes shortly after opening while idle, or when attempting to open Simulink, or attaching the Visual Studio Debugger.
Below is the crash log that I receive:
Crash Log:
--------------------------------------------------------------------------------
abort() detected at 2025-03-24 11:42:42 +0100
--------------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled - No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : UTF-8
Deployed : false
Graphics Driver : Intel Intel(R) UHD Graphics Version 4.5.0 - Build 32.0.101.5763
Graphics card 1 : Intel Corporation ( 0x8086 ) Intel(R) UHD Graphics Version 32.0.101.5763 (2024-7-8)
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 : 867723
MATLAB Root : C:\Program Files\MATLAB\R2024b
MATLAB Version : 24.2.0.2833386 (R2024b) Update 4
OpenGL : hardware
Operating System : Microsoft Windows 11 Enterprise
Process ID : 21936
Processor ID : x86 Family 6 Model 154 Stepping 4, GenuineIntel
Session Key : 88a26b1f-0e0a-4940-a790-8c5fc6055ac8
Window System : Version 10.0 (Build 22631)
Fault Count: 1
Abnormal termination:
abort()
Current Thread: '' id 36520
Register State (captured):
RAX = 00007ffdfa3b82c8 RBX = 00007ffdfa3b82c8
RCX = 000000ca2c2f9e20 RDX = 00007ffdfa361920
RSP = 000000ca2c2f9d60 RBP = 000000ca2c2faaf0
RSI = 0000000000000000 RDI = 00007ffdfa3b82c8
R8 = 0000000000000003 R9 = 000000ca2c2f9cd8
R10 = 0000000000000014 R11 = 0000000000000000
R12 = 000000ca2c2fa9f8 R13 = 0000000000000000
R14 = 00007ffdfa3a81f8 R15 = 000000ca2c2fa430
RIP = 00007ffdfa2a21ca EFL = 00000206
CS = 0033 FS = 0053 GS = 002b
Stack Trace (captured):
[ 0] 0x00007ffdfa29b563 C:\Program Files\MATLAB\R2024b\bin\win64\libmwfl.dll+00046435 foundation::core::diag::thread_context::unspecified_bool+00000051
[ 1] 0x00007ffdfa299998 C:\Program Files\MATLAB\R2024b\bin\win64\libmwfl.dll+00039320 foundation::core::diag::stacktrace_base::capture+00000024
[ 2] 0x00007ffdfa29de0f C:\Program Files\MATLAB\R2024b\bin\win64\libmwfl.dll+00056847 foundation::core::diag::symbols::getSymbolAddress+00009903
[ 3] 0x00007ffdfa2a0cb7 C:\Program Files\MATLAB\R2024b\bin\win64\libmwfl.dll+00068791 foundation::core::diag::is_terminate_message_enabled+00000519
[ 4] 0x00007ffd97ba5778 C:\Program Files\MATLAB\R2024b\bin\win64\mcr.dll+00808824 mnFullExitFcn+00042264
[ 5] 0x00007ffd97ba4eed C:\Program Files\MATLAB\R2024b\bin\win64\mcr.dll+00806637 mnFullExitFcn+00040077
[ 6] 0x00007ffd97ba09b5 C:\Program Files\MATLAB\R2024b\bin\win64\mcr.dll+00788917 mnFullExitFcn+00022357
[ 7] 0x00007ffd97ba2b49 C:\Program Files\MATLAB\R2024b\bin\win64\mcr.dll+00797513 mnFullExitFcn+00030953
[ 8] 0x00007ffe1ba7e6d5 C:\windows\System32\ucrtbase.dll+00517845 raise+00000485
[ 9] 0x00007ffe1ba7f6e1 C:\windows\System32\ucrtbase.dll+00521953 abort+00000049
[ 10] 0x00007ffe15643f01 C:\Program Files\MATLAB\R2024b\bin\win64\VCRUNTIME140_1.dll+00016129
[ 11] 0x00007ffe15642631 C:\Program Files\MATLAB\R2024b\bin\win64\VCRUNTIME140_1.dll+00009777
[ 12] 0x00007ffe1def4cd6 C:\windows\SYSTEM32\ntdll.dll+00675030 RtlCaptureContext2+00001190
[ 13] 0x00007ffd5af7818d C:\Program Files\MATLAB\R2024b\bin\win64\spf\servicepublishers\agent\spf\legacyservicepublisher\libmwagentspflegacyservicepublisher.dll+00557453 agent::spf::serialisation::GenericPayloadWrapper::get+00542429
[ 14] 0x00007ffd5af88273 C:\Program Files\MATLAB\R2024b\bin\win64\spf\servicepublishers\agent\spf\legacyservicepublisher\libmwagentspflegacyservicepublisher.dll+00623219 agent::spf::serialisation::GenericPayloadWrapper::get+00608195
[ 15] 0x00007ffd5af35821 C:\Program Files\MATLAB\R2024b\bin\win64\spf\servicepublishers\agent\spf\legacyservicepublisher\libmwagentspflegacyservicepublisher.dll+00284705 agent::spf::serialisation::GenericPayloadWrapper::get+00269681
[ 16] 0x00007ffe1ba29333 C:\windows\System32\ucrtbase.dll+00168755 recalloc+00000163
[ 17] 0x00007ffe1cde259d C:\windows\System32\KERNEL32.DLL+00075165 BaseThreadInitThunk+00000029
[ 18] 0x00007ffe1deaaf38 C:\windows\SYSTEM32\ntdll.dll+00372536 RtlUserThreadStart+00000040
Program State:
Most Recent Tool Interaction:
Editor 1: tools idle, no most recently active toolEditor 2: tools idle, class Simulink::KeyboardSelectionTool is most recently active tool since Mon Mar 24 08:11:41 2025
------=_Part_1977_08_16_1742813030816000000--
Accepted Answer
MathWorks Support Team
on 24 Apr 2025
This is a known issue that is present in MATLAB R2024b Update 4, as well as R2025a Prerelease Updates 2 and 3. It has been fixed in MATLAB R2024b Update 5 and R2025a Prerelease Update 4. Please upgrade MATLAB to its latest versions resolve the issue.
Alternatively, you can ensure that the MathWorks Service Host version is 2025.2.2.1, which features a patch to fix this bug. You can install it by following How do I uninstall and reinstall the MathWorks Service Host?
0 Comments
More Answers (0)
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!