Modify

Opened 7 years ago

Closed 7 years 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:

Description

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.

URL:http://josm.openstreetmap.de/svn/trunk
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
Revision:13053
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

Plugins:
+ 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 https://josm.openstreetmap.de. 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


=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (18) of main
java.lang.ArrayIndexOutOfBoundsException: 1
	at org.openstreetmap.josm.data.osm.Way.getNode(Way.java:129)
	at org.openstreetmap.josm.data.osm.WaySegment.getFirstNode(WaySegment.java:42)
	at org.openstreetmap.josm.plugins.shapetools.DrawableSegment.paint(DrawableSegment.java:54)
	at org.openstreetmap.josm.gui.MapView.drawTemporaryLayers(MapView.java:668)
	at org.openstreetmap.josm.gui.MapView.drawMapContent(MapView.java:605)
	at org.openstreetmap.josm.gui.MapView.paint(MapView.java:507)
	at javax.swing.JComponent.paintChildren(JComponent.java:889)
	at javax.swing.JComponent.paint(JComponent.java:1065)
	at javax.swing.JComponent.paintToOffscreen(JComponent.java:5210)
	at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:290)
	at javax.swing.RepaintManager.paint(RepaintManager.java:1272)
	at javax.swing.JComponent._paintImmediately(JComponent.java:5158)
	at javax.swing.JComponent.paintImmediately(JComponent.java:4969)
	at javax.swing.RepaintManager$4.run(RepaintManager.java:831)
	at javax.swing.RepaintManager$4.run(RepaintManager.java:814)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
	at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
	at javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
	at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1732)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Attachments (0)

Change History (4)

comment:1 by Don-vip, 7 years ago

Component: CorePlugin shapetools

comment:3 by Don-vip, 7 years ago

Summary: Unexpected exceptionAIOOBE at shapetools.DrawableSegment.paint

comment:4 by Don-vip, 7 years ago

Keywords: github added
Resolution: othersoftware
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.