#12376 closed defect (fixed)
Multipolygon test hangs
Reported by: | Aurimas | Owned by: | team |
---|---|---|---|
Priority: | major | Milestone: | 16.02 |
Component: | Core validator | Version: | latest |
Keywords: | regression multipolygon hang thread fork join | Cc: | simon04 |
Description
What steps will reproduce the problem?
- Open multipolygon_hang.osm.bz2
- Press Shift+V
What is the expected result?
Validation completes without any problems.
What happens instead?
Validation hangs on a Multipolygon test.
Please provide any additional information below. Attach a screenshot if possible.
Validation succeeds with JOSM 9165.
URL:http://josm.openstreetmap.de/svn/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2016-01-15 03:12:34 +0100 (Fri, 15 Jan 2016) Build-Date:2016-01-15 02:33:41 Revision:9460 Relative:URL: ^/trunk Identification: JOSM/1.5 (9460 lt) Linux Ubuntu Xenial Xerus (development branch) Memory Usage: 695 MB / 3504 MB (560 MB allocated, but free) Java version: 1.7.0_91-b02, Oracle Corporation, OpenJDK 64-Bit Server VM Java package: openjdk-7-jre:amd64-7u91-2.6.3-3 VM arguments: [-Djosm.restart=true, -Djosm.home=/home/aurimas/.josm-latest, -Djava.net.useSystemProxies=true] Dataset consistency test: No problems found Plugins: - Mapillary (31976) - apache-commons (31895) - apache-http (31895) - buildings_tools (31895) - download_along (31772) - log4j (31895) - measurement (31895) - utilsplugin2 (31895) Last errors/warnings: - W: Roads that cannot be completed: Could not get presets icon presets/way_tertiary.png - E: Nepavyko lokalizuoti piešinio 'presets/way_unclassified.png' - W: Unfinished secondary roads: Could not get presets icon presets/way_unclassified.png - E: Nepavyko lokalizuoti piešinio 'presets/places.png' - W: Place and residential area: Could not get presets icon presets/places.png
Attachments (2)
Change History (13)
by , 9 years ago
Attachment: | multipolygon_hang.osm.bz2 added |
---|
comment:1 by , 9 years ago
Component: | Core → Core validator |
---|---|
Keywords: | regression multipolygon added |
Milestone: | → 16.02 |
Priority: | normal → major |
comment:2 by , 9 years ago
comment:3 by , 9 years ago
I can confirm this bug using the attached data. The test works if I comment out parts of
source:/trunk/src/org/openstreetmap/josm/data/osm/MultipolygonBuilder.java#L305
and use boundaryWays.size()+1 to avoid running the test in parallel and instead force a direct execution.
comment:4 by , 9 years ago
Cc: | added |
---|---|
Keywords: | hang thread fork join added |
regression from r9351 then
by , 9 years ago
Attachment: | josm-12376-MultipolygonBuilder-invokeAll-tasks.patch added |
---|
josm-12376-MultipolygonBuilder-invokeAll-tasks.patch
comment:6 by , 9 years ago
In r9351 actually starting the tasks was forgotten. Waiting for unstarted tasks takes forever.
But then, not having started any tasks was probably better than killing the stack
(source:/trunk/src/org/openstreetmap/josm/data/osm/MultipolygonBuilder.java#L378 needs less-than-or-equal operator)
See patch to fix..
comment:11 by , 9 years ago
part of the work was done by Don-vip by pinpointing me to r9351, so thanks from my side as well
regression between r9346 and r9415