Opened 11 years ago
Closed 10 years ago
#9680 closed defect (fixed)
Relation validation causes JOSM to freeze
Reported by: | Owned by: | team | |
---|---|---|---|
Priority: | normal | Milestone: | 14.08 |
Component: | Core validator | Version: | latest |
Keywords: | performance | Cc: | simon04 |
Description
Relation #2970267 causes JOSM to crash upon validation. This is a huge forest area in Switzerland, which seems to cause the validator to hang.
I've attached the OSM file containing all members of the relation.
Attachments (4)
Change History (16)
by , 11 years ago
Attachment: | broken.osm.zip added |
---|
comment:1 by , 11 years ago
Can you please also post your system info from Help -> Show status report ? And tell us a bit about your hardware. Thanks :)
comment:2 by , 11 years ago
Cc: | added |
---|---|
Component: | Core → Core validator |
Keywords: | performance added |
Simon, we've got a performance issue here :)
DEBUG: Running test Multipolygon INFO: Test 'Multipolygon' completed in 1 min 9 s
comment:3 by , 11 years ago
This is due to the test added in r6575. We could restrict this test for small relations. I plan to do some profiling to determine why this test takes so long …
by , 11 years ago
Attachment: | 2014-02-11-000335_1150x1043_scrot.png added |
---|
comment:4 by , 11 years ago
Profiling results: 2014-02-11-000335_1150x1043_scrot.png
The comment in org.openstreetmap.josm.data.osm.MultipolygonCreate#findOuterWaysRecursive
, "TODO: bad performance for deep nesting" seems to be true. :-)
by , 11 years ago
Attachment: | 9680_alpha.patch added |
---|
alpha patch, reduces time from 1min 25s to 32s
comment:5 by , 11 years ago
Summary: | Relation validation causes JOSM to freeze → [alpha patch] Relation validation causes JOSM to freeze |
---|
I don't know if we can find a better algorithm but this small patch allows significant improvements. Did you start something Simon ?
comment:6 by , 11 years ago
I haven't started to look into improving the algorithm. So feel free to apply your improvement :-)
comment:8 by , 11 years ago
Summary: | [alpha patch] Relation validation causes JOSM to freeze → Relation validation causes JOSM to freeze |
---|
comment:18 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
OSM file containing broken relation