Modify

Opened 15 years ago

Closed 14 years ago

#4416 closed defect (worksforme)

IndexOutOfBoundsException when splitting way

Reported by: avarab@… Owned by: team
Priority: major Milestone:
Component: Core Version: latest
Keywords: Cc:

Description

I got this splitting version 2 of this way by selecting nodes 389598254 and 389598256 and pressing "p".

Selecting each node individually and splitting works though.

Build-Date: 2010-01-23 10:14:32		
Revision: 2880
Is-Local-Build: true

Memory Usage: 475 MB / 986 MB (54 MB allocated, but free)
Java version: 1.6.0_16

Dataset consistency test:
{Node id=280748110 version=1 V lat=64.0809357,lon=-21.78882} not found using Dataset.searchNodes()
{Way id=48324054 version=2 V nodes=[{Node id=613904264 version=0 IV }, {Node id=613904265 version=0 IV }, {Node id=613904266 version=0 IV }, {Node id=613904260 version=0 IV }, {Node id=613904261 version=0 IV }, {Node id=613904262 version=0 IV }, {Node id=613904263 version=0 IV }, {Node id=613904247 version=0 IV }, {Node id=613904248 version=0 IV }, {Node id=613904249 version=0 IV }, {Node id=613904250 version=0 IV }, {Node id=613904244 version=0 IV }, {Node id=613904267 version=0 IV }, {Node id=613904269 version=0 IV }, {Node id=613904268 version=0 IV }, {Node id=613904271 version=0 IV }, {Node id=613904270 version=0 IV }, {Node id=613904272 version=0 IV }, {Node id=613904246 version=0 IV }, {Node id=613904245 version=0 IV }, {Node id=613904242 version=0 IV }, {Node id=613904241 version=0 IV }, {Node id=613904243 version=0 IV }, {Node id=613904233 version=0 IV }, {Node id=613904231 version=0 IV }, {Node id=613904232 version=0 IV }, {Node id=613904234 version=0 IV }, {Node id=613904230 version=0 IV }, {Node id=613904228 version=0 IV }, {Node id=613904229 version=0 IV }, {Node id=613904225 version=0 IV }, {Node id=613904226 version=0 IV }, {Node id=613904223 version=0 IV }, {Node id=613904224 version=0 IV }, {Node id=613904227 version=0 IV }, {Node id=613904222 version=0 IV }, {Node id=613904221 version=0 IV }, {Node id=613904220 version=0 IV }, {Node id=613904216 version=0 IV }, {Node id=613904215 version=0 IV }, {Node id=613904214 version=0 IV }, {Node id=613904213 version=0 IV }, {Node id=613904219 version=0 IV }, {Node id=613904217 version=0 IV }, {Node id=613904218 version=0 IV }, {Node id=613904212 version=0 IV }, {Node id=613904211 version=0 IV }, {Node id=613904209 version=0 IV }, {Node id=613904208 version=0 IV }, {Node id=613904207 version=0 IV }, {Node id=613904206 version=0 IV }, {Node id=613904210 version=0 IV }, {Node id=613904205 version=0 IV }, {Node id=613904204 version=0 IV }, {Node id=613904203 version=0 IV }, {Node id=613904202 version=0 IV }, {Node id=613904201 version=0 IV }, {Node id=613904200 version=0 IV }, {Node id=613904194 version=0 IV }, {Node id=613904193 version=0 IV }, {Node id=613904192 version=0 IV }, {Node id=613904191 version=0 IV }, {Node id=613904190 version=0 IV }, {Node id=613904199 version=0 IV }, {Node id=613904198 version=0 IV }, {Node id=613904197 version=0 IV }, {Node id=613904196 version=0 IV }, {Node id=613904195 version=0 IV }, {Node id=613904186 version=0 IV }, {Node id=613904185 version=0 IV }, {Node id=613904184 version=0 IV }, {Node id=613904188 version=0 IV }, {Node id=613904189 version=0 IV }, {Node id=613904187 version=0 IV }, {Node id=613904171 version=0 IV }, {Node id=613904169 version=0 IV }, {Node id=613904168 version=0 IV }, {Node id=613904170 version=0 IV }, {Node id=613904166 version=0 IV }, {Node id=613904167 version=0 IV }, {Node id=613904180 version=0 IV }, {Node id=613904181 version=0 IV }, {Node id=613904178 version=0 IV }, {Node id=613904179 version=0 IV }, {Node id=613904176 version=0 IV }, {Node id=613904177 version=0 IV }, {Node id=613904172 version=0 IV }, {Node id=613904175 version=0 IV }, {Node id=613904183 version=0 IV }, {Node id=613904182 version=0 IV }, {Node id=613904155 version=0 IV }, {Node id=613904154 version=0 IV }, {Node id=613904151 version=0 IV }, {Node id=613904150 version=0 IV }, {Node id=613904153 version=0 IV }, {Node id=613904152 version=0 IV }, {Node id=613904161 version=0 IV }, {Node id=613904160 version=0 IV }, {Node id=613904163 version=0 IV }, {Node id=613904162 version=0 IV }, {Node id=613904157 version=0 IV }, {Node id=613904156 version=0 IV }, {Node id=613904159 version=0 IV }, {Node id=613904158 version=0 IV }, {Node id=613904164 version=0 IV }, {Node id=613904165 version=0 IV }, {Node id=613904141 version=0 IV }, {Node id=613904143 version=0 IV }, {Node id=613904142 version=0 IV }, {Node id=613904137 version=0 IV }, {Node id=613904138 version=0 IV }, {Node id=613904139 version=0 IV }, {Node id=613904140 version=0 IV }, {Node id=613904146 version=0 IV }, {Node id=613904147 version=0 IV }, {Node id=613904148 version=0 IV }, {Node id=613904149 version=0 IV }, {Node id=613904144 version=0 IV }, {Node id=613904145 version=0 IV }, {Node id=613904128 version=0 IV }, {Node id=613904135 version=0 IV }, {Node id=613904134 version=0 IV }, {Node id=613904133 version=0 IV }, {Node id=613904132 version=0 IV }, {Node id=613904136 version=0 IV }, {Node id=613904121 version=0 IV }, {Node id=613904116 version=0 IV }, {Node id=613904115 version=0 IV }, {Node id=613904119 version=0 IV }, {Node id=613904120 version=0 IV }, {Node id=613904117 version=0 IV }, {Node id=613904118 version=0 IV }, {Node id=613904099 version=0 IV }, {Node id=613904102 version=0 IV }, {Node id=613904103 version=0 IV }, {Node id=613904100 version=0 IV }, {Node id=613904101 version=0 IV }, {Node id=613904106 version=0 IV }, {Node id=613904107 version=0 IV }, {Node id=613904104 version=0 IV }, {Node id=613904105 version=0 IV }, {Node id=613904110 version=0 IV }, {Node id=613904111 version=0 IV }, {Node id=613904108 version=0 IV }, {Node id=613904109 version=0 IV }, {Node id=613904113 version=0 IV }, {Node id=613904112 version=0 IV }, {Node id=613904114 version=0 IV }, {Node id=613904097 version=0 IV }, {Node id=613904098 version=0 IV }, {Node id=613904083 version=0 IV }, {Node id=613904085 version=0 IV }, {Node id=613904084 version=0 IV }, {Node id=613904087 version=0 IV }, {Node id=613904086 version=0 IV }, {Node id=613904089 version=0 IV }, {Node id=613904088 version=0 IV }, {Node id=613904091 version=0 IV }, {Node id=613904090 version=0 IV }, {Node id=613904075 version=0 IV }, {Node id=613904074 version=0 IV }, {Node id=613904076 version=0 IV }, {Node id=613904077 version=0 IV }, {Node id=613904078 version=0 IV }, {Node id=613904079 version=0 IV }, {Node id=613904080 version=0 IV }, {Node id=613904092 version=0 IV }, {Node id=613904093 version=0 IV }, {Node id=613904094 version=0 IV }, {Node id=613904095 version=0 IV }, {Node id=613904096 version=0 IV }, {Node id=613904081 version=0 IV }, {Node id=613904082 version=0 IV }, {Node id=613904069 version=0 IV }, {Node id=613904070 version=0 IV }, {Node id=613904071 version=0 IV }, {Node id=613904072 version=0 IV }, {Node id=613904073 version=0 IV }, {Node id=613904068 version=0 IV }, {Node id=613904067 version=0 IV }, {Node id=613904065 version=0 IV }, {Node id=613904066 version=0 IV }, {Node id=613904063 version=0 IV }, {Node id=613904064 version=0 IV }, {Node id=613904061 version=0 IV }, {Node id=613904062 version=0 IV }, {Node id=613904059 version=0 IV }, {Node id=613904060 version=0 IV }, {Node id=613904057 version=0 IV }, {Node id=613904058 version=0 IV }, {Node id=613904056 version=0 IV }, {Node id=613904047 version=0 IV }, {Node id=613904045 version=0 IV }, {Node id=613904046 version=0 IV }, {Node id=613904055 version=0 IV }, {Node id=613904054 version=0 IV }, {Node id=613904053 version=0 IV }, {Node id=613904052 version=0 IV }, {Node id=613904051 version=0 IV }, {Node id=613904050 version=0 IV }, {Node id=613904049 version=0 IV }, {Node id=613904048 version=0 IV }, {Node id=613904041 version=0 IV }, {Node id=613904040 version=0 IV }, {Node id=613904039 version=0 IV }, {Node id=613904038 version=0 IV }, {Node id=613904037 version=0 IV }, {Node id=613904036 version=0 IV }, {Node id=613904035 version=0 IV }, {Node id=613904034 version=0 IV }, {Node id=613904033 version=0 IV }, {Node id=613904042 version=0 IV }, {Node id=613904043 version=0 IV }, {Node id=613904044 version=0 IV }, {Node id=613904032 version=0 IV }, {Node id=613904028 version=0 IV }, {Node id=613904029 version=0 IV }, {Node id=613904030 version=0 IV }, {Node id=613904031 version=0 IV }, {Node id=613904025 version=0 IV }, {Node id=613904026 version=0 IV }, {Node id=613904027 version=0 IV }, {Node id=613900191 version=0 IV }, {Node id=613900186 version=0 IV }, {Node id=613900187 version=0 IV }, {Node id=613900188 version=0 IV }, {Node id=613900189 version=0 IV }, {Node id=613900190 version=0 IV }, {Node id=613900183 version=0 IV }, {Node id=613900182 version=0 IV }, {Node id=613900185 version=0 IV }, {Node id=613900184 version=0 IV }, {Node id=613900179 version=0 IV }, {Node id=613900178 version=0 IV }, {Node id=613900181 version=0 IV }, {Node id=613900180 version=0 IV }, {Node id=613900175 version=0 IV }, {Node id=613900174 version=0 IV }, {Node id=613900177 version=0 IV }, {Node id=613900176 version=0 IV }, {Node id=613900173 version=0 IV }, {Node id=613900172 version=0 IV }, {Node id=613900171 version=0 IV }, {Node id=613900156 version=0 IV }, {Node id=613900165 version=0 IV }, {Node id=613900166 version=0 IV }, {Node id=613900163 version=0 IV }, {Node id=613900164 version=0 IV }, {Node id=613900169 version=0 IV }, {Node id=613900170 version=0 IV }, {Node id=613900167 version=0 IV }, {Node id=613900168 version=0 IV }, {Node id=613900159 version=0 IV }, {Node id=613900160 version=0 IV }, {Node id=613900157 version=0 IV }, {Node id=613900158 version=0 IV }, {Node id=613900161 version=0 IV }, {Node id=613900162 version=0 IV }, {Node id=613900141 version=0 IV }, {Node id=613900140 version=0 IV }, {Node id=613900142 version=0 IV }, {Node id=613900151 version=0 IV }, {Node id=613900150 version=0 IV }, {Node id=613900149 version=0 IV }, {Node id=613900148 version=0 IV }, {Node id=613900155 version=0 IV }, {Node id=613900154 version=0 IV }, {Node id=613900153 version=0 IV }, {Node id=613900152 version=0 IV }, {Node id=613900146 version=0 IV }, {Node id=613900145 version=0 IV }, {Node id=613900144 version=0 IV }, {Node id=613900143 version=0 IV }, {Node id=613900147 version=0 IV }, {Node id=613900136 version=0 IV }, {Node id=613900135 version=0 IV }, {Node id=613900121 version=0 IV }, {Node id=613900125 version=0 IV }, {Node id=613900126 version=0 IV }, {Node id=613900127 version=0 IV }, {Node id=613900128 version=0 IV }, {Node id=613900129 version=0 IV }, {Node id=613900130 version=0 IV }, {Node id=613900131 version=0 IV }, {Node id=613900132 version=0 IV }, {Node id=613900122 version=0 IV }, {Node id=613900123 version=0 IV }, {Node id=613900124 version=0 IV }, {Node id=613900137 version=0 IV }, {Node id=613900138 version=0 IV }, {Node id=613900139 version=0 IV }, {Node id=613900133 version=0 IV }, {Node id=613900134 version=0 IV }, {Node id=613900114 version=0 IV }, {Node id=613900116 version=0 IV }, {Node id=613900115 version=0 IV }, {Node id=613900118 version=0 IV }, {Node id=613900117 version=0 IV }, {Node id=613900120 version=0 IV }, {Node id=613900119 version=0 IV }, {Node id=613900112 version=0 IV }, {Node id=613900111 version=0 IV }, {Node id=613900104 version=0 IV }, {Node id=613900103 version=0 IV }, {Node id=613900106 version=0 IV }, {Node id=613900105 version=0 IV }, {Node id=613900108 version=0 IV }, {Node id=613900107 version=0 IV }, {Node id=613900110 version=0 IV }, {Node id=613900109 version=0 IV }, {Node id=613900113 version=0 IV }, {Node id=613900092 version=0 IV }, {Node id=613900094 version=0 IV }, {Node id=613900093 version=0 IV }, {Node id=613900096 version=0 IV }, {Node id=613900095 version=0 IV }, {Node id=613900098 version=0 IV }, {Node id=613900097 version=0 IV }, {Node id=613900100 version=0 IV }, {Node id=613900099 version=0 IV }, {Node id=613900102 version=0 IV }, {Node id=613900101 version=0 IV }, {Node id=613900088 version=0 IV }, {Node id=613900089 version=0 IV }, {Node id=613900087 version=0 IV }, {Node id=613900091 version=0 IV }, {Node id=613900090 version=0 IV }, {Node id=613900086 version=0 IV }, {Node id=613900081 version=0 IV }, {Node id=613900082 version=0 IV }, {Node id=613900083 version=0 IV }, {Node id=613900084 version=0 IV }, {Node id=613900085 version=0 IV }, {Node id=613900071 version=0 IV }, {Node id=613900072 version=0 IV }, {Node id=613900073 version=0 IV }, {Node id=613900074 version=0 IV }, {Node id=613900075 version=0 IV }, {Node id=613900076 version=0 IV }, {Node id=613900077 version=0 IV }, {Node id=613900078 version=0 IV }, {Node id=613900079 version=0 IV }, {Node id=613900080 version=0 IV }, {Node id=613900069 version=0 IV }, {Node id=613900068 version=0 IV }, {Node id=613900067 version=0 IV }, {Node id=613900065 version=0 IV }, {Node id=613900070 version=0 IV }, {Node id=613900058 version=0 IV }, {Node id=613900057 version=0 IV }, {Node id=613900056 version=0 IV }, {Node id=613900063 version=0 IV }, {Node id=613900061 version=0 IV }, {Node id=613900060 version=0 IV }, {Node id=613900059 version=0 IV }, {Node id=613900051 version=0 IV }, {Node id=613900055 version=0 IV }, {Node id=613900054 version=0 IV }, {Node id=613900053 version=0 IV }, {Node id=613900052 version=0 IV }, {Node id=613900050 version=0 IV }, {Node id=613900044 version=0 IV }, {Node id=613900042 version=0 IV }, {Node id=613900043 version=0 IV }, {Node id=613900047 version=0 IV }, {Node id=613900048 version=0 IV }, {Node id=613900045 version=0 IV }, {Node id=613900046 version=0 IV }, {Node id=613900049 version=0 IV }, {Node id=613900040 version=0 IV }, {Node id=613900038 version=0 IV }, {Node id=613900039 version=0 IV }, {Node id=613900041 version=0 IV }, {Node id=613900033 version=0 IV }, {Node id=613900031 version=0 IV }, {Node id=613900032 version=0 IV }, {Node id=613900035 version=0 IV }, {Node id=613900034 version=0 IV }, {Node id=613900037 version=0 IV }, {Node id=613900036 version=0 IV }, {Node id=613900026 version=0 IV }, {Node id=613900025 version=0 IV }, {Node id=613900028 version=0 IV }, {Node id=613900027 version=0 IV }, {Node id=613900030 version=0 IV }, {Node id=613900029 version=0 IV }, {Node id=613900024 version=0 IV }, {Node id=613900023 version=0 IV }, {Node id=613900022 version=0 IV }, {Node id=613900021 version=0 IV }, {Node id=613900020 version=0 IV }, {Node id=613900019 version=0 IV }]} not found using Dataset.searchWays()


Plugins: validator,wmsplugin
Plugin wmsplugin Version: 19507
Plugin validator Version: 19485

java.lang.IndexOutOfBoundsException
	at org.openstreetmap.josm.tools.CopyList.rangeCheck(CopyList.java:132)
	at org.openstreetmap.josm.tools.CopyList.get(CopyList.java:59)
	at org.openstreetmap.josm.actions.SplitWayAction.splitWay(SplitWayAction.java:406)
	at org.openstreetmap.josm.actions.SplitWayAction.splitWay(SplitWayAction.java:288)
	at org.openstreetmap.josm.actions.SplitWayAction.actionPerformed(SplitWayAction.java:197)
	at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1636)
	at javax.swing.JComponent.processKeyBinding(JComponent.java:2851)
	at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:267)
	at javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:216)
	at javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2928)
	at javax.swing.JComponent.processKeyBindings(JComponent.java:2920)
	at javax.swing.JComponent.processKeyEvent(JComponent.java:2814)
	at java.awt.Component.processEvent(Component.java:6040)
	at java.awt.Container.processEvent(Container.java:2041)
	at java.awt.Component.dispatchEventImpl(Component.java:4630)
	at java.awt.Container.dispatchEventImpl(Container.java:2099)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1848)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:704)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:969)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:841)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:668)
	at java.awt.Component.dispatchEventImpl(Component.java:4502)
	at java.awt.Container.dispatchEventImpl(Container.java:2099)
	at java.awt.Window.dispatchEventImpl(Window.java:2475)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Attachments (0)

Change History (3)

comment:1 by bastiK, 15 years ago

Your dataset was broken: Some nodes were incomplete (not known to JOSM) but their ids were used by some ways. This normally shouldn't happen. Can you describe your steps to get there?

(E.g. a history api call like http://www.openstreetmap.org/api/0.6/way/34006930/2 can lead to such an inconsistent state.)

comment:2 by bastiK, 15 years ago

It also helps to save the data to a file and post here.

comment:3 by stoecker, 14 years ago

Resolution: worksforme
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.