Opened 4 years ago

Closed 3 years ago

#12870 closed defect (fixed)

Undo while extrude causes exception / unpredictable behaviour

Reported by: malenki Owned by: team
Priority: normal Milestone: 17.07
Component: Core Version: latest
Keywords: template_report undo extrude Cc:


What steps will reproduce the problem?

  1. Create a way with two nodes
  2. Switch to extrude tool (press X)
  3. Extrude from way
  4. While extruding, press ctrl-z

What is the expected result?

Not too sure, most likely: Extruded ways disappear.
Quite sure no exception should show up. :)

What happens instead?

  1. When releasing the left mouse button an error message pops up (about this exception).
  2. When clicking the error message away and clicking somewhere in the data layer, a node remains. Obviously the "undo" command from before was also mapped to the just created way thus letting remain its first node.

Please provide any additional information below. Attach a screenshot if possible.

Tested with
blank ~/.josm
openjdk version "1.8.0_91"
OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-2-b14)
OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)

Reproducing this issue with polygones drawn by hand or with tools (buildings_tools, "create circle"), it also seems that ctrl-z gets mapped to the last action before extruding.

Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2016-05-23 13:57:26 +0200 (Mon, 23 May 2016)
Build-Date:2016-05-24 01:33:07
Relative:URL: ^/trunk

Identification: JOSM/1.5 (10268 de) Linux Debian GNU/Linux unstable (sid)
Memory Usage: 511 MB / 2222 MB (169 MB allocated, but free)
Java version: 1.8.0_91-8u91-b14-2-b14, Oracle Corporation, OpenJDK 64-Bit Server VM
VM arguments: [-Dsun.java2d.opengl=false]
Dataset consistency test: No problems found

Last errors/warnings:
- E: java.lang.ArrayIndexOutOfBoundsException: 2
- E: java.lang.ArrayIndexOutOfBoundsException: 2

java.lang.ArrayIndexOutOfBoundsException: 2
	at org.openstreetmap.josm.actions.mapmode.ExtrudeAction.performExtrusion(
	at org.openstreetmap.josm.actions.mapmode.ExtrudeAction.mouseReleased(
	at java.awt.AWTEventMulticaster.mouseReleased(
	at java.awt.Component.processMouseEvent(
	at javax.swing.JComponent.processMouseEvent(
	at java.awt.Component.processEvent(
	at java.awt.Container.processEvent(
	at java.awt.Component.dispatchEventImpl(
	at java.awt.Container.dispatchEventImpl(
	at java.awt.Component.dispatchEvent(
	at java.awt.LightweightDispatcher.retargetMouseEvent(
	at java.awt.LightweightDispatcher.processMouseEvent(
	at java.awt.LightweightDispatcher.dispatchEvent(
	at java.awt.Container.dispatchEventImpl(
	at java.awt.Window.dispatchEventImpl(
	at java.awt.Component.dispatchEvent(
	at java.awt.EventQueue.dispatchEventImpl(
	at java.awt.EventQueue.access$500(
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	at java.awt.EventQueue.dispatchEvent(
	at java.awt.EventDispatchThread.pumpOneEventForFilters(
	at java.awt.EventDispatchThread.pumpEventsForFilter(
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(
	at java.awt.EventDispatchThread.pumpEvents(
	at java.awt.EventDispatchThread.pumpEvents(

Attachments (0)

Change History (3)

comment:1 Changed 3 years ago by Don-vip

Milestone: 17.07

comment:2 Changed 3 years ago by Don-vip

Keywords: extrude added

comment:3 Changed 3 years ago by Don-vip

Resolution: fixed
Status: newclosed

In 12512/josm:

fix #12870 - Undo while extrude causes exception

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.