This forum is shutting down! Please post new discussions at community.naturalcapitalproject.org

Recreation - Errno 12

Hi
I'm trying to run the recreation model for 592 mexican municipalities. I've done it before but this time it encounters an error:

03/21/2019 17:26:49  natcap.invest.utils INFO     Writing log messages to C:\...\InVEST-Recreation-Model-log-2019-03-21--17_26_49.txt
03/21/2019 17:26:49  natcap.invest.ui.model Level 100 Starting model with parameters:
  Arguments for InVEST natcap.invest.recreation.recmodel_client 3.5.0:
  aoi_path           C:/.../MUN_ANP.shp
compute_regression False
end_year           2017
grid_aoi           False
results_suffix     MUN_
start_year         2005
workspace_dir      C:\...\Recreation

03/21/2019 17:26:50  natcap.invest.recmodel_client INFO     Contacting server, please wait.
03/21/2019 17:26:50  natcap.invest.recmodel_client INFO     Server online, version: 3.3.2:./recserver_cache_2017/76e890d2cf86640e_fast_hash.pickle
03/21/2019 17:26:50  natcap.invest.recmodel_client INFO     Server supports year queries between 2005 and 2017
03/21/2019 17:26:51  natcap.invest.recmodel_client INFO     archiving C:\...\aoi_MUN_.prj
03/21/2019 17:26:51  natcap.invest.recmodel_client INFO     archiving C:\...\aoi_MUN_.shp
03/21/2019 17:26:51  natcap.invest.recmodel_client INFO     archiving C:\...\aoi_MUN_.shx
03/21/2019 17:26:51  natcap.invest.recmodel_client INFO     archiving C:\...\aoi_MUN_.dbf
03/21/2019 17:26:51  natcap.invest.recmodel_client INFO     Please wait for server to calculate PUD...
03/21/2019 17:29:51  natcap.invest.ui.model ERROR    Exception while executing <function execute at 0x15FCAE70>
  Traceback (most recent call last):
  File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\natcap\invest\ui\model.py", line 1541, in _logged_target
File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\natcap\invest\recreation\recmodel_client.py", line 229, in execute
File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\Pyro4\core.py", line 171, in __call__
File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\Pyro4\core.py", line 426, in _pyroInvoke
OSError: [Errno 12] Cannot allocate memory
03/21/2019 17:29:51  natcap.invest.ui.model INFO     Execution finished
03/21/2019 17:29:51  natcap.invest.utils INFO     Elapsed time: 3m 1.47s

Tagged:

Comments

  • DaveDave Member, Administrator, NatCap Staff
    Thanks for posting. I'm not entirely sure why you're getting this error, especially if you have succeeded in the past with the same area of interest. I just cleared the server's cache and tested that it's working for me. 

    If you experience this again could you please post your logfile? That will let me investigate your run more closely. 

    Thanks,
  • Thanks, Dave! I just tried and failed again, here is the logfile:

    03/22/2019 13:31:01  natcap.invest.utils INFO     Writing log messages to C:\Users\IMPLAN\Documents\Adrián\Recreation\InVEST-Recreation-Model-log-2019-03-22--13_31_01.txt
    03/22/2019 13:31:01  natcap.invest.ui.model Level 100 Starting model with parameters:
    Arguments for InVEST natcap.invest.recreation.recmodel_client 3.5.0:
    aoi_path           C:/Users/IMPLAN/Documents/Adrián/Recreation/MUN_ANP.shp
    compute_regression False
    end_year           2017
    grid_aoi           False
    results_suffix     MUN2
    start_year         2005
    workspace_dir      C:\Users\IMPLAN\Documents\Adrián\Recreation

    03/22/2019 13:31:02  natcap.invest.recmodel_client INFO     Contacting server, please wait.
    03/22/2019 13:31:02  natcap.invest.recmodel_client INFO     Server online, version: 3.3.2:./recserver_cache_2017/76e890d2cf86640e_fast_hash.pickle
    03/22/2019 13:31:03  natcap.invest.recmodel_client INFO     Server supports year queries between 2005 and 2017
    03/22/2019 13:31:04  natcap.invest.recmodel_client INFO     archiving C:\Users\IMPLAN\Documents\Adrián\Recreation\aoi_MUN2.prj
    03/22/2019 13:31:04  natcap.invest.recmodel_client INFO     archiving C:\Users\IMPLAN\Documents\Adrián\Recreation\aoi_MUN2.shp
    03/22/2019 13:31:04  natcap.invest.recmodel_client INFO     archiving C:\Users\IMPLAN\Documents\Adrián\Recreation\aoi_MUN2.shx
    03/22/2019 13:31:04  natcap.invest.recmodel_client INFO     archiving C:\Users\IMPLAN\Documents\Adrián\Recreation\aoi_MUN2.dbf
    03/22/2019 13:31:04  natcap.invest.recmodel_client INFO     Please wait for server to calculate PUD...
    03/22/2019 13:32:31  natcap.invest.ui.model ERROR    Exception while executing <function execute at 0x15FCAE70>
    Traceback (most recent call last):
      File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\natcap\invest\ui\model.py", line 1541, in _logged_target
      File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\natcap\invest\recreation\recmodel_client.py", line 229, in execute
      File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\Pyro4\core.py", line 171, in __call__
      File "C:\Users\natcap-servers\jenkins-home\workspace\natcap.invest\label\GCE-windows-1\env\lib\site-packages\Pyro4\core.py", line 426, in _pyroInvoke
    MemoryError
    03/22/2019 13:32:31  natcap.invest.ui.model INFO     Execution finished
    03/22/2019 13:32:31  natcap.invest.utils INFO     Elapsed time: 1m 29.45s

  • DaveDave Member, Administrator, NatCap Staff
    Okay, thanks. I took a look at your AOI. It's clear you're pushing the limits of what we've designed for. The server is optimized for more local or regional queries, while the extent of your AOI covers the entirety of Mexico (and the bounding box also includes most of Texas). So you may have more luck if you break your AOI into smaller chunks. 

    You could break your AOI into many smaller AOI shapefiles, and that will probably avoid the error. It's hard to say exactly how small the groups should be, but here's an example of how I might make a group, in the screenshot. Just make sure that the polygons in each AOI are tightly clustered geographically. The overall extent of the AOI is the problem, not the number of polygons in the AOI.

    If you are comfortable with python scripting, you could go so far as to call the model once for each polygon in your AOI.
    1529 x 899 - 297K
Sign In or Register to comment.