You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have run into RuntimeError: NtQueryVirtualMemory bufsize is too large in ActivitySim test runs with large sample population. It crashes when tracing memory info, even though the run hasn't exploited the RAM on the machine. Below is the full traceback:
After some googling, it seems to be a reporting issue with psutil.Process().memory_full_info(), when the memory value (in Bytes) exceeds a certain large number, this function crashes. I added a try and except condition to work around it in my runs.
The text was updated successfully, but these errors were encountered:
I guess my fix (the same solution as @i-am-sijia) got applied only to the sharrow branch I was working on, and was not ported to the PR with the memory monitor. Please accept my apologies.
Describe the bug
I have run into
RuntimeError: NtQueryVirtualMemory bufsize is too large
in ActivitySim test runs with large sample population. It crashes when tracing memory info, even though the run hasn't exploited the RAM on the machine. Below is the full traceback:Triggering line of code
activitysim/activitysim/core/mem.py
Line 192 in 7ead422
and
activitysim/activitysim/core/mem.py
Line 257 in 7ead422
Thoughts on resolution
After some googling, it seems to be a reporting issue with psutil.Process().memory_full_info(), when the memory value (in Bytes) exceeds a certain large number, this function crashes. I added a try and except condition to work around it in my runs.
The text was updated successfully, but these errors were encountered: