Opened 7 months ago

Closed 6 weeks ago

#15549 closed defect (othersoftware)

AIOOBE at shapetools.DrawableSegment.paint

Reported by: philh-591 Owned by: team
Priority: normal Milestone:
Component: Plugin shapetools Version:
Keywords: template_report github Cc:


What I was doing when the exception occurred

I had installed the Shape Tools plugin to align a rectangular shape to an adjacent path. This is in a public area with benches laid out in a regular manner. The rectangular shape was created to put 4 nodes for benches at each of its corners. The corners were tagged as benches, then the shape was aligned to the path with Shape Tools. The shape was then copied to 3 other similar locations. With the last copy selected I then pressed Delete to remove the way use to square up and align the benches to leave only the nodes for benches. At this point the exception occurred.

After setting up the Shape Tool I couldn't escape from it always highlighting one part of any way I selected in yellow, so the rectangular shape I was trying to delete to leave only the nodes was highlighted mostly in red, except for one section which was highlighted in yellow.

What is the expected result?

The way should have been deleted, leaving only the nodes (benches).

What happens instead?

The exception occurred. Details reported by JOSM attached below.

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

Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2017-10-29 19:52:48 +0100 (Sun, 29 Oct 2017)
Build-Date:2017-10-29 19:11:19
Relative:URL: ^/trunk

Identification: JOSM/1.5 (13053 en_GB) Linux Mint 18.2 Sonya
Memory Usage: 545 MB / 910 MB (271 MB allocated, but free)
Java version: 1.8.0_131-8u131-b11-2ubuntu1.16.04.3-b11, Oracle Corporation, OpenJDK 64-Bit Server VM
Screen: :0.0 1920x1080
Maximum Screen Size: 1920x1080
Java package: openjdk-8-jre:amd64-8u131-b11-2ubuntu1.16.04.3
Dataset consistency test: No problems found

+ ShapeTools (1230)
+ alignways (33784)
+ apache-commons (33668)
+ buildings_tools (33735)
+ cadastre-fr (33706)
+ editgpx (33782)
+ ejml (32680)
+ geotools (33380)
+ jts (32699)
+ measurement (33760)
+ osmarender (33004)
+ print (33579)
+ reverter (33572)
+ undelete (33480)
+ utilsplugin2 (33742)

Last errors/warnings:
- W: No configuration settings found.  Using hardcoded default values for all pools.
- W: JOSM expected to find primitive [way -44576] in dataset but it is not there. Please report this at This is not a critical error, it should be safe to continue in your work.
- E: java.lang.Exception
- E: Handled by bug report queue: java.lang.ArrayIndexOutOfBoundsException: 1
- E: Handled by bug report queue: java.lang.ArrayIndexOutOfBoundsException: 1
- E: Handled by bug report queue: java.lang.ArrayIndexOutOfBoundsException: 1

No data collected.

Warning issued by: BugReportExceptionHandler#handleException

Thread: AWT-EventQueue-0 (18) of main
java.lang.ArrayIndexOutOfBoundsException: 1
	at org.openstreetmap.josm.plugins.shapetools.DrawableSegment.paint(
	at org.openstreetmap.josm.gui.MapView.drawTemporaryLayers(
	at org.openstreetmap.josm.gui.MapView.drawMapContent(
	at org.openstreetmap.josm.gui.MapView.paint(
	at javax.swing.JComponent.paintChildren(
	at javax.swing.JComponent.paint(
	at javax.swing.JComponent.paintToOffscreen(
	at javax.swing.BufferStrategyPaintManager.paint(
	at javax.swing.RepaintManager.paint(
	at javax.swing.JComponent._paintImmediately(
	at javax.swing.JComponent.paintImmediately(
	at javax.swing.RepaintManager$
	at javax.swing.RepaintManager$
	at Method)
	at javax.swing.RepaintManager.paintDirtyRegions(
	at javax.swing.RepaintManager.paintDirtyRegions(
	at javax.swing.RepaintManager.prePaintDirtyRegions(
	at javax.swing.RepaintManager.access$1200(
	at javax.swing.RepaintManager$
	at java.awt.event.InvocationEvent.dispatch(
	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.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 (4)

comment:1 Changed 7 months ago by Don-vip

Component: CorePlugin shapetools

comment:3 Changed 6 weeks ago by Don-vip

Summary: Unexpected exceptionAIOOBE at shapetools.DrawableSegment.paint

comment:4 Changed 6 weeks ago by Don-vip

Keywords: github added
Resolution: othersoftware
Status: newclosed

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.