Modify ↓
Opened 12 years ago
Closed 12 years ago
#9034 closed defect (fixed)
Plugin contourmerge crashes when a way with x hundereds nodes was selected
| Reported by: | anonymous | Owned by: | Gubaer |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Plugin contourmerge | Version: | |
| Keywords: | github | Cc: |
Description
What steps will reproduce the problem?
- select a long way/area with a lot of nodes (e.g. a huge landuse=residential), no nodes were selected, just the way
- activate the plug-in contourmerge in the tools bar in order to select certain nodes
- the plug-in crashes
Repository Root: http://josm.openstreetmap.de/svn Build-Date: 2013-08-26 01:35:29 Last Changed Author: Don-vip Revision: 6196 Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b URL: http://josm.openstreetmap.de/svn/trunk Last Changed Date: 2013-08-26 03:06:04 +0200 (Mon, 26 Aug 2013) Last Changed Rev: 6196 Identification: JOSM/1.5 (6196 de) Windows 7 64-Bit Memory Usage: 280 MB / 4444 MB (77 MB allocated, but free) Java version: 1.7.0_09, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM VM arguments: [-Xmx5000M] Dataset consistency test: No problems found Plugin: Create_grid_of_ways (29854) Plugin: DirectUpload (29866) Plugin: ElevationProfile (29854) Plugin: FastDraw (29854) Plugin: FixAddresses (29854) Plugin: HouseNumberTaggingTool (29854) Plugin: OpeningHoursEditor (29854) Plugin: PicLayer (29854) Plugin: RoadSigns (29854) Plugin: SimplifyArea (29854) Plugin: alignways (29854) Plugin: buildings_tools (29854) Plugin: conflation (0.1.6) Plugin: continuosDownload (28565) Plugin: contourmerge (1005) Plugin: download_along (29854) Plugin: editgpx (29854) Plugin: geotools (29767) Plugin: graphview (29854) Plugin: jts (29854) Plugin: mapdust (29854) Plugin: measurement (29854) Plugin: merge-overlap (29854) Plugin: mirrored_download (29854) Plugin: notes (v0.5) Plugin: opendata (29854) Plugin: openstreetbugs (29854) Plugin: public_transport (29862) Plugin: reltoolbox (29854) Plugin: reverter (29854) Plugin: routes (29854) Plugin: tageditor (29854) Plugin: terracer (29854) Plugin: turnlanes (29854) Plugin: turnrestrictions (29854) Plugin: undelete (29854) Plugin: utilsplugin2 (29854) Plugin: waydownloader (29854) Plugin: wayselector (29854) java.lang.IllegalArgumentException: start out of range, got 0 at org.openstreetmap.josm.plugins.contourmerge.util.Assert.checkArg(Assert.java:18) at org.openstreetmap.josm.plugins.contourmerge.WaySlice.<init>(WaySlice.java:39) at org.openstreetmap.josm.plugins.contourmerge.ContourMergeModel.getWaySliceFromSelectedNodes(ContourMergeModel.java:357) at org.openstreetmap.josm.plugins.contourmerge.ContourMergeModel.getDragSource(ContourMergeModel.java:369) at org.openstreetmap.josm.plugins.contourmerge.ContourMergeView.paint(ContourMergeView.java:355) at org.openstreetmap.josm.gui.MapView.paint(MapView.java:632) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JSplitPane.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JLayeredPane.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paintToOffscreen(Unknown Source) at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source) at javax.swing.RepaintManager$PaintManager.paint(Unknown Source) at javax.swing.RepaintManager.paint(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source) at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source) at sun.awt.SunGraphicsCallback.runComponents(Unknown Source) at java.awt.Container.paint(Unknown Source) at java.awt.Window.paint(Unknown Source) at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source) at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source) at javax.swing.RepaintManager.prePaintDirtyRegions(Unknown Source) at javax.swing.RepaintManager.access$700(Unknown Source) at javax.swing.RepaintManager$ProcessingRunnable.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$200(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.WaitDispatchSupport$2.run(Unknown Source) at java.awt.WaitDispatchSupport$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.awt.WaitDispatchSupport.enter(Unknown Source) at java.awt.Dialog.show(Unknown Source) at java.awt.Component.show(Unknown Source) at java.awt.Component.setVisible(Unknown Source) at java.awt.Window.setVisible(Unknown Source) at java.awt.Dialog.setVisible(Unknown Source) at org.openstreetmap.josm.gui.HelpAwareOptionPane.showOptionDialog(HelpAwareOptionPane.java:301) at org.openstreetmap.josm.plugins.PluginHandler.confirmDeactivatingPluginAfterException(PluginHandler.java:1098) at org.openstreetmap.josm.plugins.PluginHandler.disablePluginAfterException(PluginHandler.java:1163) at org.openstreetmap.josm.tools.BugReportExceptionHandler$1.run(BugReportExceptionHandler.java:88) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$200(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) ...<snip>...
Attachments (0)
Change History (3)
comment:1 by , 12 years ago
| Keywords: | github added; template_report removed |
|---|
comment:2 by , 12 years ago
select a long way/area with a lot of nodes (e.g. a huge landuse=residential), no nodes were selected, just the way
Can you add the OSM id of such a way/area for which the plugin crashes?
comment:3 by , 12 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
It is difficult to reproduce as it doesn't seem to occur each time but it happened more than once in the past. I'll keep an eye on that if the problem persists in the fixed version.
Note:
See TracTickets
for help on using tickets.



Reported to github: https://github.com/Gubaer/josm-contourmerge-plugin/issues/4