Modify

Opened 11 years ago

Closed 11 years ago

#8794 closed defect (fixed)

NumberFormatException in Geometry.getCentroid()

Reported by: kr12 Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: Cc:

Description

create line of 2 point
add point to it
shift-o
o

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2013-06-13 01:35:38
Last Changed Author: Don-vip
Revision: 6005
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2013-06-13 02:16:00 +0200 (Thu, 13 Jun 2013)
Last Changed Rev: 6005

Identification: JOSM/1.5 (6005 en) Windows 7 64-Bit
Memory Usage: 335 MB / 1820 MB (129 MB allocated, but free)
Java version: 1.7.0_17, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM

Dataset consistency test:
[SEARCH NODES] {Node id=-1123 version=0 MV lat=-90.0,lon=6.148203123208015E8} not found using Dataset.searchNodes()
[SEARCH NODES] {Node id=-1121 version=0 MV lat=90.0,lon=1.926725681241946E8} not found using Dataset.searchNodes()
[SEARCH NODES] {Node id=-1119 version=0 MV lat=-90.0,lon=-2.2947517607241222E8} not found using Dataset.searchNodes()
[SEARCH NODES] {Node id=-1117 version=0 MV lat=-90.0,lon=1.9267256812419447E8} not found using Dataset.searchNodes()
[SEARCH NODES] {Node id=-1116 version=0 MV lat=-90.0,lon=4.911761007082192E8} not found using Dataset.searchNodes()
[SEARCH NODES] {Node id=-1122 version=0 MV lat=-90.0,lon=4.911761007082192E8} not found using Dataset.searchNodes()
[SEARCH NODES] {Node id=-1120 version=0 MV lat=-90.0,lon=-1.0583096445983008E8} not found using Dataset.searchNodes()
[SEARCH NODES] {Node id=-1118 version=0 MV lat=-90.0,lon=-1.0583096445983016E8} not found using Dataset.searchNodes()


Plugin: Create_grid_of_ways (29435)
Plugin: FastDraw (29596)
Plugin: PicLayer (29601)
Plugin: alignways (29435)
Plugin: buildings_tools (29596)
Plugin: conflation (0.1.6)
Plugin: continuosDownload (28565)
Plugin: contourmerge (1005)
Plugin: imagery_offset_db (29467)
Plugin: jts (29613)
Plugin: junctionchecking (29596)
Plugin: merge-overlap (29645)
Plugin: reltoolbox (29535)
Plugin: reverter (29627)
Plugin: tagging-preset-tester (29435)
Plugin: utilsplugin2 (29615)
Plugin: waydownloader (29435)

java.lang.NumberFormatException: Infinite or NaN
	at java.math.BigDecimal.<init>(Unknown Source)
	at org.openstreetmap.josm.tools.Geometry.getCentroid(Geometry.java:654)
	at org.openstreetmap.josm.actions.AlignInCircleAction.actionPerformed(AlignInCircleAction.java:188)
	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.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$200(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$1.doIntersectionPrivilege(Unknown Source)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.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)

Attachments (0)

Change History (2)

comment:1 by Don-vip, 11 years ago

Priority: minornormal
Summary: NumberFormatExceptionNumberFormatException in Geometry.getCentroid()

comment:2 by Don-vip, 11 years ago

Resolution: fixed
Status: newclosed

In 6007/josm:

fix #8794 - NumberFormatException in Geometry.getCentroid()

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.