MATLAB: About matlab coder causing “Integer divide by zero” crash after updating windows 10 to 1803 version

coderdivide by zeromatlab coder

After I updated my windows 10 to 1803 version, whenever the coder is invoked, it creates this weird crash caused by
--------------------------------------------------------------------------------
Integer divide by zero detected at Sat. Sep 22 08:03:16 2018 +0800
--------------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled - No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : Big5
Deployed : false
Graphics Driver : Unknown hardware
Graphics card 1 : Intel Corporation ( 0x8086 ) Intel(R) HD Graphics 620 Version 23.20.16.5018 (2018-3-27)
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 : 5330307
MATLAB Root : C:\Program Files\MATLAB\R2018b
MATLAB Version : 9.5.0.944444 (R2018b)
OpenGL : hardware
Operating System : Microsoft Windows 10 professional
Process ID : 11064
Processor ID : x86 Family 6 Model 142 Stepping 9, GenuineIntel
Session Key : 3aaea94c-68d1-43f3-a3c1-d1d870a37c66
Window System : Version 10.0 (Build 17134)
I have no idea why it would causing this behavior and couldn't find any related answers similar to this. Has anyone have this same kind of weird crash after updating to windows 10 1803 build?
(It can be triggered as simple as)
function y=hello_world
y='hello world';
end
codegen hello_world

Best Answer

After some digging into the crash report. I think I found the source of this crash (looks like triggered by ISD_Tablet.dll), and it has something to do with the "Wacom ISD Service" for the Tablet Pen function. And I can work around this issue by disable the "Wacom ISD Service" from windows services (although at the expense of the touch screen pen function). And I have submitted a report to the tech support.
Related Question