What steps will reproduce the problem?
- load AlignWayS
- try to use it the normal way
- it's impossible to select, unselect or align ways
What is the expected result?
Normal behaviour... Select, align and unselect lines via hotkey or menu item.
What happens instead?
Actually, most of the time nothing happenes. Sometimes you're able to select ways, but you can't unselect or align them. When you delete selected ways, the plugin crashes and makes JOSM unuseable.
See animation:
URL:http://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2016-03-30 02:55:55 +0200 (Wed, 30 Mar 2016)
Build-Date:2016-03-30 01:34:35
Revision:10082
Relative:URL: ^/trunk
Identification: JOSM/1.5 (10082 de) Windows 7 64-Bit
Memory Usage: 208 MB / 247 MB (109 MB allocated, but free)
Java version: 1.8.0_77-b03, Oracle Corporation, Java HotSpot(TM) Client VM
Dataset consistency test: No problems found
Plugins:
- alignways (31895)
- josm-plugin-opengl (1440156917)
- splinex (31895)
- utilsplugin2 (32099)
Error Message
URL:http://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2016-03-30 02:55:55 +0200 (Wed, 30 Mar 2016)
Build-Date:2016-03-30 01:34:35
Revision:10082
Relative:URL: ^/trunk
Identification: JOSM/1.5 (10082 de) Windows 7 64-Bit
Memory Usage: 131 MB / 247 MB (53 MB allocated, but free)
Java version: 1.8.0_77-b03, Oracle Corporation, Java HotSpot(TM) Client VM
Dataset consistency test: No problems found
Plugins:
- ShapeTools (1000)
- alignways (31895)
- areaselector (263)
- josm-plugin-opengl (1440156917)
- log4j (31895)
- splinex (31895)
- utilsplugin2 (32099)
Last errors/warnings:
- E: java.lang.ArrayIndexOutOfBoundsException: 2
java.lang.ArrayIndexOutOfBoundsException: 2
at org.openstreetmap.josm.data.osm.Way.getNode(Way.java:130)
at com.tilusnet.josm.plugins.alignways.AlignWaysSegment.drawSegment(AlignWaysSegment.java:101)
at com.tilusnet.josm.plugins.alignways.AlignWaysSegment.highlightSegment(AlignWaysSegment.java:96)
at com.tilusnet.josm.plugins.alignways.AlignWaysSegment.paint(AlignWaysSegment.java:88)
at com.tilusnet.josm.plugins.alignways.AlignWaysAlgnSegment.paint(AlignWaysAlgnSegment.java:224)
at org.openstreetmap.josm.gui.MapView.paint(MapView.java:778)
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.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.paintToOffscreen(Unknown Source)
at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager$4.run(Unknown Source)
at javax.swing.RepaintManager$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(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$1200(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$500(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$JavaSecurityAccessImpl.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.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
animation of bug when deleting ways