Ticket #2496 (new defect)

Opened 16 months ago

Last modified 4 months ago

Terracer exception

Reported by: fatbozz Owned by: zerebubuth@…
Priority: major Component: Plugin terracer
Version: Keywords:
Cc:

Description

I was terracing selected object in attachment

Path: trunk
URL: http://josm.openstreetmap.de/svn/trunk
Repository Root: http://josm.openstreetmap.de/svn
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 1565
Node Kind: directory
Last Changed Author: ulfl
Last Changed Rev: 1565
Last Changed Date: 2009-04-28 23:12:48 +0200 (Tue, 28 Apr 2009)

Java version: 1.6.0_13
Plugins: DirectUpload;Intersect_way;measurement;multipoly;openstreetbugs;remotecontrol;routing;terracer;usertools;utilsplugin;validator;wmsplugin
Plugin DirectUpload Version: 14133
Plugin Intersect_way Version: 12781
Plugin measurement Version: 14015
Plugin multipoly Version: ${version.entry.commit.revision}
Plugin openstreetbugs Version: 14753
Plugin remotecontrol Version: 14015
Plugin routing Version: 14404
Plugin terracer Version: 14048
Plugin usertools Version: 14125
Plugin utilsplugin Version: 14356
Plugin validator Version: 14123
Plugin wmsplugin Version: 14120

java.lang.ArrayIndexOutOfBoundsException: 12
	at terracer.TerracerAction.findFrontAndBack(TerracerAction.java:290)
	at terracer.TerracerAction.terraceBuilding(TerracerAction.java:158)
	at terracer.TerracerAction.actionPerformed(TerracerAction.java:121)
	at javax.swing.SwingUtilities.notifyAction(Unknown Source)
	at javax.swing.JComponent.processKeyBinding(Unknown Source)
	at javax.swing.KeyboardManager.fireBinding(Unknown Source)
	at javax.swing.KeyboardManager.fireKeyboardAction(Unknown Source)
	at javax.swing.JComponent.processKeyBindingsForAllComponents(Unknown Source)
	at javax.swing.JComponent.processKeyBindings(Unknown Source)
	at javax.swing.JComponent.processKeyEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(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)

Attachments

terracer_bug.jpg Download (253.3 KB) - added by fatbozz 16 months ago.

Change History

Changed 16 months ago by fatbozz

  Changed 15 months ago by stoecker

  • owner changed from team to zerebubuth@…
  • component changed from Plugin to Plugin terracer

follow-up: ↓ 4   Changed 4 months ago by Lambertus

A) This happens when you terrace (with more then 1 segment) an odd shaped building (not having 4 nodes and squarish shape) with all versions of this plugin. This section of code is a bit complicated and I haven't looked at closely yet.

B) It also happens with version 21169 when you add a single address totally unnecessary (because there is nothing to terrace so the front and back don't have to be calculated). This particular problem (B) will be fixed in the next version.

  Changed 4 months ago by Lambertus

Situation B is solved in version 21376.

in reply to: ↑ 2   Changed 4 months ago by bastiK

Replying to Lambertus:

This section of code is a bit complicated and I haven't looked at closely yet.

If I recall correctly, this section is a bit of a hack. Feel free to rewrite it!

Add/Change #2496 (Terracer exception)

Author


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


Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from zerebubuth@gmail.com. Next status will be 'new'
Next status will be 'needinfo'The owner will change to fatbozz
as duplicate The resolution will be set to duplicate. Next status will be 'closed'The specified ticket will be cross-referenced with this ticket
The owner will change from zerebubuth@gmail.com to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.