MATLAB: Does MATLAB crash on Windows 10 with “jscript.dll” in the stack trace

java_sun_print_win32printservice_getmediaprintableareaMATLABprintconfigprintingqt5printsupportmw

Why does MATLAB crash on Windows 10 with "jscript.dll" in the stack trace? This happens, for example, when…
  • trying to publish or print code
  • trying to open Simulink
The stack trace in the crash report includes the following lines:
[ 0] 0x00007fffe1ce48c0 C:\WINDOWS\System32\msvcrt.dll+00477376 memcpy+00000448
[ 1] 0x00007fffb1f3dc62 C:\Windows\System32\jscript.dll+00187490 DllCanUnloadNow+00050130
[ 2] 0x00007fffb1f25481 C:\Windows\System32\jscript.dll+00087169
Further below, the stack trace also includes the following signatures (note that precise line/frame numbers may vary from crash to crash):
[ 57] 0x00007fffe117606f C:\WINDOWS\System32\gdi32full.dll+00221295 GdiPrinterThunk+00001743
[ 58] 0x00007fffe29a911a C:\WINDOWS\System32\USER32.dll+00168218 GetWindowTextA+00000202
[ 59] 0x00007fffe357fe14 C:\WINDOWS\SYSTEM32\ntdll.dll+00654868 KiUserCallbackDispatcher+00000036

Best Answer

This appears to be due to a known issue with the Windows Javascript engine ("jscript.dll"), which can affect applications and printer drivers that utilize "jscript.dll".
Microsoft has since provided a fix in October 2019 to resolve the issue. Accordingly, please apply the latest system updates to your version of Windows 10. The following Microsoft articles provide additional details, along with instructions about how to get the relevant Windows 10 update(s).
  • Windows 10 version 1803: October 3, 2019—KB4524149 (OS Build 17134.1040)
  • Windows 10 version 1809: October 8, 2019—KB4519338 (OS Build 17763.805)
  • Windows 10 version 1903: October 3, 2019—KB4524147 (OS Build 18362.388)
In case the above does not resolve the issue, contact MathWorks Technical Support for further assistance: