-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python segmentation fault on Windows/Linux #75
Comments
I was able to build my own version of richdem and produce a coredump with a generated test case.
|
Test case: import numpy as np
import richdem
k = np.random.rand(11999, 20000).astype('float32')
rd = richdem.rdarray(k, no_data=-999)
rd.geotransform = (1.0, 0, 0, 0, 1.0, 0)
richdem.FlowProportions(rd, method='D8') |
After playing with this some more, I'm wondering if maybe the culprit is in the python bindings. I'm able to process my DEM with the standalone executables that richdem builds. |
I am working on large DEM sized (11999, 20000) with a dtype of float32 and experiencing a segfault on windows and linux.
This was the backtrace I was able to obtain from the coredump.
Interestingly, richdem doesn't segfault when using a slightly smaller DEM. I tried 11500x20000 and it ran successfully. I think the system has plenty of memory available because watching memory usage under windows, at the time of the crash, there is still a healthy amount of free memory.
EDIT:
This is running Python 3.11 and richdem 2.3.0.
The text was updated successfully, but these errors were encountered: