Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

ConcurrentModificationException when reselecting segment of way. #195

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment
Closed

Comments

@openstreetmap-trac
Copy link

Reporter: openstreetmap[at]riscott.ukfsn.org
[Submitted to the original trac issue database at 7.09am, Thursday, 13th April 2006]

Here's a fun one:

If you make a slight mistake when selecting the segments, deselect the segment then later reselect it, it thinks you're concurrently modifying things... ...with yourself.

The applet then becomes unresponsive with:

java.util.ConcurrentModificationException
	at java.util.AbstractList$Itr.checkForComodification(Unknown Source)
	at java.util.AbstractList$Itr.next(Unknown Source)
	at org.openstreetmap.processing.OsmApplet.draw(OsmApplet.java:493)
	at processing.core.PApplet.display(PApplet.java:1183)
	at processing.core.PGraphics.requestDisplay(PGraphics.java:520)
	at processing.core.PApplet.run(PApplet.java:1009)
	at java.lang.Thread.run(Unknown Source)

Quite annoying if you've just selected ten screens worth of segments for a long way and you have to start again.

@openstreetmap-trac
Copy link
Author

Author: writetodan[at]yahoo.com
[Added to the original trac issue at 9.04pm, Wednesday, 14th March 2007]

fix deployed to www

see http://wiki.openstreetmap.org/index.php/Java_Applet_Development Concurrency section for help in avoiding / resolving related issues

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant