ayoola-solomon / mytracks

Automatically exported from code.google.com/p/mytracks
0 stars 0 forks source link

java.util.ConcurrentModificationException in TrackDataHub.void notifyNewPoint #721

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It's seems the listener set "sampledListeners" has been modified during the 
traversal.

The stack trace of this error in v1.1.13:
java.util.ConcurrentModificationException
at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:346)
at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:366)
at com.google.android.apps.mytracks.content.TrackDataHub.void 
notifyNewPoint(android.location.Location,long,long,int,int,java.util.Set,java.ut
il.Set)(MT:1085)
at com.google.android.apps.mytracks.content.TrackDataHub.void 
access$25(com.google.android.apps.mytracks.content.TrackDataHub,boolean,long,int
,java.util.Set,java.util.Set)(MT:938)
at com.google.android.apps.mytracks.content.TrackDataHub$12.void run()(MT:930)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:123)
at android.os.HandlerThread.run(HandlerThread.java:60)

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
Expected: the traversal of the set should be run successfully.
Actual: Meet ConcurrentModificationException.

Original issue reported on code.google.com by youtaol@google.com on 28 Dec 2011 at 4:22

GoogleCodeExporter commented 9 years ago

Original comment by jshih@google.com on 21 Jun 2012 at 9:48

GoogleCodeExporter commented 9 years ago

Original comment by jshih@google.com on 23 Jun 2012 at 1:07