AnsweredAssumed Answered

Python script crashes ArcMap 10.4.1 unpredictably

Question asked by griner on Sep 26, 2019
Latest reply on Sep 27, 2019 by NWIC

We have a python tool/script (not an add-in) that usually runs fine, but at unpredictable times, it causes ArcMap to crash with the box that asks if you want to send the crash report to ESRI. I've been instructing people to say 'yes' to this box.  And then they restart ArcMap, re-run the tool with the same inputs and it runs fine.


So, how do I find out what is in those crash reports sent to ESRI? We've probably sent in almost 100 of them in the last several months - seems like a useless exercise to me as it provides no information about what went wrong.


Secondly, assuming something is going sideways in the python script - I can't debug this if I can't trap the crash.  The tool crashes the entire ArcMap process and any python process running with it. Anybody got any ideas on how to debug this?