Select to view content in your preferred language

: ArcGIS Pro/ArcPy crashes when using "memory" in arc gis pro notebook

148
1
07-30-2025 07:12 AM
barrylim
Occasional Contributor

Hello @ALL

I'm currently using ArcGIS Pro (latest version) with ArcPy geoprocessing tasks, specifically. My script heavily utilizes the memory (not in_memory) workspace to temporarily store intermediate feature classes and layers in RAM.

Despite having 128 GB of RAM installed on my machine, ArcGIS Pro frequently crashes when the RAM usage reaches about 3–4 GB during operations involving multiple features stored in the memory workspace.

A typical script workflow involves:Creating temporary feature layers and performing operations such as FeatureVerticesToPoints and SpatialJoin.

  • Intensive cursor operations (UpdateCursor, SearchCursor, InsertCursor).

  • Regularly removing memory layers from the TOC and deleting the workspace.  

It does not always crash for this script just sometimes... RAM Usage is between 3 GB and 4GB. The script deletes 2 times the memory and all layer aof TOC but the ram usage rises every time i execute the script. It falls just if I close Arc GIS Pro and start again.

 

 

0 Kudos
1 Reply
barrylim
Occasional Contributor

no ideas? anyone?

0 Kudos