Hi,
I am running the visitation model and I get an error: Cannot allocate memory. Below is the log file. Yesterday I managed to run with the same files and grid. Can you please advice me on how to solve this?
Thank you for your help
Log file:
Initializing…
Showing messages with level INFO and higher
2021-03-19 12:04:13,734 utils.prepare_workspace(123) INFO Writing log messages to F:/invest_recreation\InVEST-Recreation-Model-log-2021-03-19–12_04_13.txt
2021-03-19 12:04:13,739 model._logged_target(1646) Level 100 Starting model with parameters:
Arguments for InVEST natcap.invest.recreation.recmodel_client 3.9.0:
aoi_path D:/maps/aoi/aoi.shp
cell_size 710
compute_regression True
end_year 2017
grid_aoi True
grid_type square
n_workers -1
predictor_table_path F:/invest_recreation/predictors.csv
results_suffix 46p_710m
scenario_predictor_table_path
start_year 2005
workspace_dir F:/invest_recreation
2021-03-19 12:04:43,523 recmodel_client._grid_vector(549) INFO gridding aoi
2021-03-19 12:06:12,925 recmodel_client._retrieve_photo_user_days(461) INFO Contacting server, please wait.
2021-03-19 12:06:13,076 recmodel_client._retrieve_photo_user_days(464) INFO Server online, version: 3.8.8.post374+gd1cac43:./recserver_cache_py36/76e890d2cf86640e_fast_hash.pickle
2021-03-19 12:06:13,171 recmodel_client._retrieve_photo_user_days(472) INFO Server supports year queries between 2005 and 2017
2021-03-19 12:06:13,174 recmodel_client._retrieve_photo_user_days(491) INFO archiving F:/invest_recreation\intermediate\aoi_46p_710m.prj
2021-03-19 12:06:13,177 recmodel_client._retrieve_photo_user_days(491) INFO archiving F:/invest_recreation\intermediate\aoi_46p_710m.shp
2021-03-19 12:06:13,408 recmodel_client._retrieve_photo_user_days(491) INFO archiving F:/invest_recreation\intermediate\aoi_46p_710m.shx
2021-03-19 12:06:13,425 recmodel_client._retrieve_photo_user_days(491) INFO archiving F:/invest_recreation\intermediate\aoi_46p_710m.dbf
2021-03-19 12:06:13,606 recmodel_client._retrieve_photo_user_days(499) INFO Please wait for server to calculate PUD…
2021-03-19 12:07:52,535 Task.add_task(781) ERROR Something went wrong when adding task photo-user-day-calculation (1), terminating taskgraph.
Traceback (most recent call last):
File “site-packages\taskgraph\Task.py”, line 747, in add_task
File “site-packages\taskgraph\Task.py”, line 1234, in _call
File “site-packages\natcap\invest\recreation\recmodel_client.py”, line 504, in _retrieve_photo_user_days
File “site-packages\Pyro4\core.py”, line 185, in call
File “site-packages\Pyro4\core.py”, line 476, in _pyroInvoke
OSError: [Errno 12] Cannot allocate memory
2021-03-19 12:07:52,540 model._logged_target(1652) ERROR Exception while executing <function execute at 0x0000017E24F68048>
Traceback (most recent call last):
File “site-packages\natcap\invest\ui\model.py”, line 1649, in _logged_target
File “site-packages\natcap\invest\recreation\recmodel_client.py”, line 359, in execute
File “site-packages\taskgraph\Task.py”, line 747, in add_task
File “site-packages\taskgraph\Task.py”, line 1234, in _call
File “site-packages\natcap\invest\recreation\recmodel_client.py”, line 504, in _retrieve_photo_user_days
File “site-packages\Pyro4\core.py”, line 185, in call
File “site-packages\Pyro4\core.py”, line 476, in _pyroInvoke
OSError: [Errno 12] Cannot allocate memory
2021-03-19 12:07:52,543 model._logged_target(1655) INFO Execution finished
2021-03-19 12:07:52,551 utils.prepare_workspace(129) INFO Elapsed time: 3m 38.81999999999999s
2021-03-19 12:07:52,582 execution.run(78) ERROR Target <function InVESTModel.execute_model.._logged_target at 0x0000017E2754ACA8> failed with exception
Traceback (most recent call last):
File “site-packages\natcap\invest\ui\execution.py”, line 68, in run
File “site-packages\natcap\invest\ui\model.py”, line 1649, in _logged_target
File “site-packages\natcap\invest\recreation\recmodel_client.py”, line 359, in execute
File “site-packages\taskgraph\Task.py”, line 747, in add_task
File “site-packages\taskgraph\Task.py”, line 1234, in _call
File “site-packages\natcap\invest\recreation\recmodel_client.py”, line 504, in _retrieve_photo_user_days
File “site-packages\Pyro4\core.py”, line 185, in call
File “site-packages\Pyro4\core.py”, line 476, in _pyroInvoke
OSError: [Errno 12] Cannot allocate memory
2021-03-19 12:07:52,590 execution.run(83) INFO Execution finished