Hello,
I am having a hard time figuring out why I receive a 010005: unable to allocate memory error when running the optimal path as line tool. My inputs for the tool include a back direction and distance raster derived from the distance accumulation tool as well as the source destination, which are points in a single feature class. The rasters were created by using a mosaicked DEM as the surface raster and inputting a table representing Tobler's off-path hiking function as a cost relative to vertical movement in the distance accumulation tool. I have successfully generated several LCP's (upwards of 8 during a single run), however after so long, the optimal path as line tool stops working. When operating properly, the tool takes less than a minute to run. Recently, it takes about 20 minutes to trace cells and ultimately fail when I receive the unable to allocate memory error. When troubleshooting the error, I find this:
Description:
The computer does not have enough available memory to perform the operation.
Solution:
Close down other unneeded applications to free up system memory. You can also increase the virtual memory allocation of your system. Another option is to split the input dataset into smaller sections and merge the results. Also try using a larger cell size.
I have reduced datasets, moved projects to a different computer, restarted the project and I do not understand why I keep receiving the error (even when trying to run a single LCP) when I did not experience any issues when beginning my project. If anyone has any insight into this and how to resolve it, it would be very helpful and greatly appreciated.
Thank you,
Talissa
The obvious you tried? New project with only the data to process.
There are a couple of reported issues if you are still getting failures with small datasets.
BUG-000141391: Optimal Path As Line exceeds memory when the input r.. (esri.com)
Yes, I have tried to start a new project that included only the data for processing and still received the error. The information in the hyperlink was very informative. I am using the planar distance method since geodesic is not an option when using vertical or horizontal factor parameters. I wonder, though, if this might be a similar issue.
Tech Support would be your best option
What version is your ArcGIS Pro? Please upgrade to ver. 2.9 or later (Enhancement implemented as per the link shared by Dan), if not already done.
I am using ArcGIS Pro version 2.9. I have had some issues with using outdated versions of ArcGIS Pro in the past, so I typically check for updates whenever I begin a new project.
Hi Talissa,
I am a Product Engineer on the Spatial Analyst team and I would like to investigate why you are getting this error. Would you be able to share your data with me? If so please email me at egraham@esri.com.
Thanks,
Liz
I am having the same problem. I have a set of 76 points and I want to build a network of least cost paths between them. I created 76 pairs of distance accumulation and back direction rasters (planar distance method). Then I used the Optimal Path As Line tool with Path type = "Each cell" and Create network paths = TRUE.
For some pairs of rasters, the tool works fine, completing in about 30 seconds. For other pairs of rasters it runs for upwards of 20 minutes until it uses up all the memory and I get error 010005: unable to allocate memory. I tried using the deprecated Cost Path As Polyline tool and got the same result, making me think there is a problem with the rasters themselves.
Thank you for your help,
Eli
Hi Eli,
I am a Product Engineer on the Spatial Analyst team, and I would like to investigate why you are getting this error. Would you be able to share your data with me? If so, please email me at egraham@esri.com.
Thanks,
Liz
Tips to Fix Memory Allocation Error Problem Issue
Restart your System. As soon as you get the Memory Allocation Error windows 10 the first thing you need to do is to restart your machine.
Perform a Clean Boot.
Deleting All the Temporary Files.
Increase Virtual Memory.
Performing CHKDSK Scan.
Performing System Reset.
Regards,
Rachel Gomez