<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Arcpy still crashing with exit code -1073741819 in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-still-crashing-with-exit-code-1073741819/m-p/724109#M56071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a script that processes ~50,000 records, taking about 30 seconds to process each record. My problem is that my script crashes at a random point, sometimes at the 10th record, 200th record or 1254th record, etc. I wrote this code in 2017, and it never crashed then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also see that multiple people had this issue. For example&amp;nbsp;&lt;A _jive_internal="true" href="https://community.esri.com/thread/160468"&gt;here&lt;/A&gt;&amp;nbsp;the op explains that&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;"&lt;SPAN style="background-color: #ffffff;"&gt;I converted tables into dictionaries or lists and carried out the InsertCursor and UpdateCursor functions with pure Python"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Another user &lt;A href="https://gis.stackexchange.com/questions/278467/arcpy-64bit-gives-0xc0000005-error-with-pycharm"&gt;reports&lt;/A&gt; that applying a patch [ArcGIS (Desktop, Engine) Background Geoprocessing 64-bit Arcpy Exit and Shutdown Patch] fixed the issue. That patch didn't work for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been trying the same script on multiple machines with ArcMap 10.3.1 and ArcMap 10.5.1. Same random crash at some point in the run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The quoted op reported this issue on&amp;nbsp;Jun 11, 2015, and after four years it is still going on.&amp;nbsp;Will ArcGIS support actually fix this problem, or should I circumvent this problem by using less of Arcpy like the quoted op, or by starting to use Python for QGIS? In my opinion, It is a great disservice to the ArcGIS users to give them an unreliable library that would fail them after writing lengthy amounts of code that used to work a couple of years ago that became unfunctional after some updates or some other technical problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Apr 2019 19:47:32 GMT</pubDate>
    <dc:creator>NaciDilekli</dc:creator>
    <dc:date>2019-04-22T19:47:32Z</dc:date>
    <item>
      <title>Arcpy still crashing with exit code -1073741819</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-still-crashing-with-exit-code-1073741819/m-p/724109#M56071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a script that processes ~50,000 records, taking about 30 seconds to process each record. My problem is that my script crashes at a random point, sometimes at the 10th record, 200th record or 1254th record, etc. I wrote this code in 2017, and it never crashed then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also see that multiple people had this issue. For example&amp;nbsp;&lt;A _jive_internal="true" href="https://community.esri.com/thread/160468"&gt;here&lt;/A&gt;&amp;nbsp;the op explains that&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;"&lt;SPAN style="background-color: #ffffff;"&gt;I converted tables into dictionaries or lists and carried out the InsertCursor and UpdateCursor functions with pure Python"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Another user &lt;A href="https://gis.stackexchange.com/questions/278467/arcpy-64bit-gives-0xc0000005-error-with-pycharm"&gt;reports&lt;/A&gt; that applying a patch [ArcGIS (Desktop, Engine) Background Geoprocessing 64-bit Arcpy Exit and Shutdown Patch] fixed the issue. That patch didn't work for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been trying the same script on multiple machines with ArcMap 10.3.1 and ArcMap 10.5.1. Same random crash at some point in the run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The quoted op reported this issue on&amp;nbsp;Jun 11, 2015, and after four years it is still going on.&amp;nbsp;Will ArcGIS support actually fix this problem, or should I circumvent this problem by using less of Arcpy like the quoted op, or by starting to use Python for QGIS? In my opinion, It is a great disservice to the ArcGIS users to give them an unreliable library that would fail them after writing lengthy amounts of code that used to work a couple of years ago that became unfunctional after some updates or some other technical problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2019 19:47:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-still-crashing-with-exit-code-1073741819/m-p/724109#M56071</guid>
      <dc:creator>NaciDilekli</dc:creator>
      <dc:date>2019-04-22T19:47:32Z</dc:date>
    </item>
  </channel>
</rss>

