-
Notifications
You must be signed in to change notification settings - Fork 378
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
Integration tests fail on macOS #349
Comments
I've getting a similar error sometimes on Linux with the strange (1.7976931348623157e+308, -1.7976931348623157e+308) bounds. Is switching to |
Hmm, that's strange. We run all integration tests on Linux and have never seen this error before. I was under the impression that this bug only affects macOS/Linux. Can you share a minimal script that reproduces this bug reliably (possibly with a fixed random seed)?
Unfortunately I don't think that would help with this particular issue. This issue affects both |
It's a bit hard for me to reproduce because it relies on a custom dataset, but I'll post the error message here first: File "/home/username/Documents/github/project/project/neuralnet.py", line 720, in val_dataloader
batch_sampler = torchgeo.samplers.RandomBatchGeoSampler(
File "/home/username/miniconda3/envs/project/lib/python3.9/site-packages/torchgeo/samplers/batch.py", line 98, in __init__
super().__init__(dataset, roi)
File "/home/username/miniconda3/envs/project/lib/python3.9/site-packages/torchgeo/samplers/batch.py", line 41, in __init__
roi = BoundingBox(*self.index.bounds)
File "<string>", line 9, in __init__
File "/home/username/miniconda3/envs/project/lib/python3.9/site-packages/torchgeo/datasets/utils.py", line 246, in __post_init__
raise ValueError(
ValueError: Bounding box is invalid: 'minx=1.7976931348623157e+308' > 'maxx=-1.7976931348623157e+308'
*** Error in `python': double free or corruption (!prev): 0x0000556744a917d0 *** After some troubleshooting, this seems to happen when I make an IntersectionDataset out of two datasets, dataset1 in a UTM projection, and dataset2 in EPSG:4326, and the automatic reprojection of dataset2 from EPSG:4326 to UTM creates an invalid Again, will see if I can manage to get a MWE to reproduce this, but I'll try and do a bit more digging around first. |
What's the length of this dataset? Those specific values tend to mean that the dataset is empty (i.e. there is no intersection between those datasets). |
Actually you're right, the size is 0. Doing |
The parallel dataloader tests still fail on macOS:
This bug was supposed to be fixed by #304, but this appears to be a new manifestation of #184. Also see Toblerity/rtree#87 for details.
We should:
The text was updated successfully, but these errors were encountered: