Re: Rasterio.features.geometry_window error when geojson has GeometryCollection
The target release date that will include this fix is 5/1/2020 (https://github.com/mapbox/rasterio/issues/1911)
If you need changes sooner, you have a few options:
1) clone the repo and checkout the maint-1.1 branch, and rebuild the Cython files. This can be a bit involved depending on your OS / env; you'll need a compiler, GDAL, Cython, etc. (https://github.com/mapbox/rasterio/blob/master/CONTRIBUTING.rst#development-environment)
2) coerce each GeometryCollection to FeatureCollection
3) use shapely to union each GeometryCollection into a single geometry object before passing into bounds()
4) calculate bounds on each individual geometry within a GeometryCollection, then union the bounds. Here's how it was done in the Cython file (https://github.com/mapbox/rasterio/pull/1915/files#diff-83bc1acea1f8d435fd6c4798a58fc072R411-R426); you can do the same thing on your end.