Hi,
I keep getting the same error when I try to run the model, and I’m not sure why. I’m not sure if it’s something with the AOI or a separate issue. I have the datastack file and log text file attached below. If anyone would be able to take a look and be able to help, it would be much appreciated. Thank you!
invest_recreation_datastack.tgz (3.1 KB)
InVEST-recreation-log-2026-11-18–15_46_34.txt (16.5 KB)
dave
November 19, 2026, 2:51pm
2
Hi @Isabella_Smith , thanks for reporting this. I’m looking into it.
dave
November 19, 2026, 3:05pm
3
This definitely looks like a bug we will try to address as soon as possible. I think this error will occur for any AOI that includes a relatively large number of points, but I don’t know what that threshold is.
opened 03:03PM - 19 Nov 26 UTC
A recreation server process crashes while it is constructing a local quadtree. R… eviewing the server logs, an exception seems to occur anytime that the worker flushes to disk _before_ the quadtree is complete.
The worker should flush to disk after it reaches a certain threshold of bytes in memory. Or after all the points are added to the `local_qt` in memory. If all points were added before the first flush, things proceed as normal. But if the worker needs to do an intermediate flush, then the process crashes. I'm not sure exactly why or when the exception occurs (during flush or after), but this pattern is exhibited a bunch of times in the log.
This surely worked in the past, so I'm not sure if there was a breaking change somewhere in the software stack.
```python
[2026-11-18 20:24:57.043,TUD_44d2469f-91d2-441d-9786-8c223dc6aa98,INFO] 6336000 out of 26728817 points added to local_qt so far, and n_nodes in qt 18897 in 5.00s
[2026-11-18 20:25:02.069,TUD_44d2469f-91d2-441d-9786-8c223dc6aa98,INFO] 6520064 out of 26728817 points added to local_qt so far, and n_nodes in qt 18901 in 5.00s
[2026-11-18 20:25:07.094,TUD_44d2469f-91d2-441d-9786-8c223dc6aa98,INFO] 6700800 out of 26728817 points added to local_qt so far, and n_nodes in qt 18913 in 5.00s
[2026-11-18 20:25:07.348,natcap.invest.recmodel_server.buffered_numpy_disk_map,INFO] Flushing 134217920 bytes in 13660 arrays
[2026-11-18 20:25:07.349,natcap.invest.recmodel_server.buffered_numpy_disk_map,DEBUG] N_WORKERS for flush: 2
[2026-11-18 20:25:10.724,Pyro5,INFO] Pyro log configured using built-in defaults, level=DEBUG
[2026-11-18 20:25:10.725,Pyro5,INFO] Pyro log configured using built-in defaults, level=DEBUG
[2026-11-18 20:25:10.747,Pyro5.server,DEBUG] exposing all members of <class 'Pyro5.server.DaemonObject'>
[2026-11-18 20:25:10.749,Pyro5.server,DEBUG] exposing all members of <class 'Pyro5.server.DaemonObject'>
[2026-11-18 20:25:10.760,Pyro5.server,DEBUG] exposing all members of <class 'Pyro5.nameserver.NameServer'>
[2026-11-18 20:25:10.761,Pyro5.server,DEBUG] exposing all members of <class 'Pyro5.nameserver.NameServer'>
[2026-11-18 20:25:13.102,Pyro5.server,DEBUG] exposing all members of <class 'natcap.invest.recreation.recmodel_server.RecManager'>
[2026-11-18 20:25:13.105,Pyro5.server,DEBUG] exposing all members of <class 'natcap.invest.recreation.recmodel_server.RecManager'>
[2026-11-18 20:25:16.375,natcap.invest.recreation.recmodel_server,ERROR] A process in the process pool was terminated abruptly while the future was running or pending.
Traceback (most recent call last):
File "/mnt/recreation/invest/env/lib/python3.14/site-packages/natcap/invest/recreation/recmodel_server.py", line 205, in calculate_userdays
results[label] = future.result()
~~~~~~~~~~~~~^^
File "/mnt/recreation/invest/env/lib/python3.14/concurrent/futures/_base.py", line 447, in result
return self.__get_result()
~~~~~~~~~~~~~~~~~^^
File "/mnt/recreation/invest/env/lib/python3.14/concurrent/futures/_base.py", line 396, in __get_result
raise self._exception
concurrent.futures.process.BrokenProcessPool: A process in the process pool was terminated abruptly while the future was running or pending.
```
dave
November 19, 2026, 4:28pm
4
@Isabella_Smith I believe the server is running normally again now after having restarted it. I tried your AOI and it completed successfully.