geodesk-py icon indicating copy to clipboard operation
geodesk-py copied to clipboard

Segfault when trying to access `.nodes` of relation

Open osmuser63783 opened this issue 1 year ago • 2 comments

... or at least that's what I think is going on.

traffic_sign_nodes_on_non_highways = set()
for h in planet_240219("aw[!highway]"):
    print(h)
    traffic_sign_nodes_on_non_highways.update(h.nodes("n[traffic_sign]"))
... 
way/120993860
way/120992621
way/120993742
way/986571987
way/120992739
way/120993191
relation/1655222
Segmentation fault (core dumped)

That's what I get for forgetting to do .ways.

It would be nice to fail more gracefully :-) (not sure if the method should return an empty set in case of an area, or all the nodes that define the multipolygon...)

osmuser63783 avatar Feb 25 '24 17:02 osmuser63783

FYI -- your query aw[!highway] may also be effected by this bug: #52 ; fix coming soon.

However, unable to reproduce the segfault. Tried in both Ubunu 22.04 and Windows 10, with planet-wide GOLs built with GOL Tool pre and post v0.1.9.

Does the segfault appear consistently at relation/1655222? Does the query fail if applied to other relations?

clarisma avatar Feb 26 '24 12:02 clarisma

Regarding nodes of relations, please see #54

clarisma avatar Feb 27 '24 11:02 clarisma

I have not been able to reproduce this recently so I am closing this issue. Sorry for the false positive!

osmuser63783 avatar Aug 05 '24 23:08 osmuser63783